/**
 * RentalPress frontend styles.
 */

.rentalpress-product-subtitle {
	margin: -0.25em 0 0.75em;
	font-size: 1.05em;
	color: #64748b;
	line-height: 1.5;
}

.rentalpress-hire-description {
	margin: 1em 0 1.25em;
	color: #475569;
	font-size: 0.95em;
	line-height: 1.6;
}

.rentalpress-live-price-wrap {
	margin-bottom: 0.5em;
}

.rentalpress-per-day-label {
	color: #64748b;
	font-size: 0.85em;
}

.rentalpress-qty-live-wrap {
	display: block;
	margin: 0.75em 0 1em;
	padding: 0.65em 0.85em;
	background: #eff6ff;
	border: 1px solid #bfdbfe;
	border-radius: 6px;
	font-size: 0.95em;
}

.rentalpress-qty-live-label {
	color: #475569;
}

#rentalpress-qty-live-price {
	color: #1d4ed8;
}

.rentalpress-price-formula,
.rentalpress-live-calc-formula,
.rentalpress-qty-live-formula strong {
	color: #1d4ed8;
	font-weight: 700;
}

.rentalpress-price-formula,
.rentalpress-live-calc-formula {
	display: block;
	margin-top: 0.35em;
	font-size: 0.95em;
}

.rentalpress-live-calc {
	margin-top: 1em;
	padding: 0.85em 1em;
	background: #eff6ff;
	border: 1px solid #93c5fd;
	border-radius: 6px;
}

.rentalpress-live-calc-row {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 0.35em;
	margin-bottom: 0.35em;
}

.rentalpress-live-calc-total {
	font-size: 1.1em;
	font-weight: 700;
	color: #1e3a8a;
}

.rentalpress-qty-live-row {
	margin-bottom: 0.3em;
}

.rentalpress-qty-live-total {
	font-size: 1.05em;
	font-weight: 700;
	color: #1e3a8a;
}

.rentalpress-variation-notice {
	margin: 1em 0;
	padding: 0.85em 1em;
	background: #fff7ed;
	border: 1px solid #fdba74;
	border-radius: 6px;
	color: #9a3412;
	font-size: 0.95em;
}

.rentalpress-product-info-cards {
	display: grid;
	grid-template-columns: repeat( 2, minmax( 0, 1fr ) );
	gap: 1em;
	width: 100%;
	margin: 1.25em 0;
	box-sizing: border-box;
}

.rentalpress-product-info-cards > .rentalpress-hire-prices,
.rentalpress-product-info-cards > .rentalpress-specifications {
	width: 100%;
	min-width: 0;
	margin: 0;
	box-sizing: border-box;
}

.rentalpress-specifications {
	margin: 1.5em 0;
	padding: 1.1em 1.25em;
	background: #f8f9fa;
	border: 1px solid #e2e4e8;
	border-radius: 10px;
}

.rentalpress-specifications__title {
	margin: 0 0 0.85em;
	padding-bottom: 0.65em;
	border-bottom: 1px solid #e5e7eb;
	font-size: 1.05rem;
	font-weight: 700;
	color: #374151;
}

.rentalpress-specifications__table {
	display: flex;
	flex-direction: column;
}

.rentalpress-specifications__row {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 1.5em;
	padding: 0.75em 0;
	border-bottom: 1px solid #e5e7eb;
}

.rentalpress-specifications__row:last-child {
	border-bottom: none;
}

.rentalpress-specifications__label {
	flex: 1 1 50%;
	min-width: 0;
	font-weight: 500;
	color: #4b5563;
	font-size: 0.95rem;
	white-space: normal;
	word-break: normal;
}

.rentalpress-specifications__value {
	flex: 0 1 auto;
	min-width: 4.5em;
	text-align: right;
	color: #4b5563;
	font-size: 0.95rem;
	white-space: nowrap;
}

.rentalpress-hire-prices {
	margin: 1.25em 0;
	padding: 1.1em 1.25em;
	background: #f8f9fa;
	border: 1px solid #e2e4e8;
	border-radius: 10px;
}

.rentalpress-hire-prices__title {
	margin: 0 0 0.85em;
	padding-bottom: 0.65em;
	border-bottom: 1px solid #e5e7eb;
	font-size: 1.05rem;
	font-weight: 700;
	color: #374151;
}

.rentalpress-hire-prices__table {
	display: flex;
	flex-direction: column;
}

.rentalpress-hire-prices__row {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 1em;
	padding: 0.75em 0;
	border-bottom: 1px solid #e5e7eb;
	background: transparent;
	border-left: none;
	border-right: none;
	border-top: none;
	border-radius: 0;
	margin: 0;
	transition: background 0.2s;
}

.rentalpress-hire-prices__row:last-child {
	border-bottom: none;
}

.rentalpress-hire-prices__row.active {
	background: #fdf2f8;
}

.rentalpress-hire-prices__range {
	font-size: 1rem;
	color: #374151;
	font-weight: 500;
	min-width: 4em;
}

.rentalpress-hire-prices__price {
	text-align: right;
	font-size: 0.95rem;
	color: #4b5563;
}

.rentalpress-hire-prices__price strong {
	color: #9d174d;
	font-size: 1.05rem;
	font-weight: 700;
}

.rentalpress-hire-prices__price strong .woocommerce-Price-amount {
	color: #9d174d;
}

.rentalpress-quote-wrap {
	margin: 1em 0 1.5em;
	padding: 1.25em;
	border: 1px solid #e2e8f0;
	border-radius: 8px;
	background: #f8fafc;
}

.rentalpress-pricing-info h4 {
	margin: 0 0 0.75em;
	font-size: 1rem;
}

.rentalpress-slab-list {
	list-style: none;
	margin: 0 0 1em;
	padding: 0;
}

.rentalpress-slab-item:not(.rentalpress-hire-prices__row) {
	display: flex;
	justify-content: space-between;
	padding: 0.5em 0.75em;
	margin-bottom: 0.35em;
	border-radius: 6px;
	background: #fff;
	border: 1px solid #e2e8f0;
	transition: border-color 0.2s, background 0.2s;
}

.rentalpress-slab-item:not(.rentalpress-hire-prices__row).active {
	border-color: #2563eb;
	background: #eff6ff;
}

.rentalpress-get-quote-btn,
.rentalpress-proceed-btn {
	margin-top: 0;
}

.rentalpress-product-rental-summary {
	margin: 1.25em 0;
	width: 100%;
}

.rentalpress-variation-field {
	margin-bottom: 0.85em;
}

.rentalpress-variations-form table.variations {
	width: 100%;
	margin: 0;
	border: none;
}

.rentalpress-variations-form table.variations tr,
.rentalpress-variations-form table.variations td,
.rentalpress-variations-form table.variations th {
	display: block;
	padding: 0;
	border: none;
}

.rentalpress-variations-form table.variations th.label {
	display: none;
}

.rentalpress-variations-form table.variations td.value {
	position: relative;
}

.rentalpress-variations-form table.variations select {
	width: 100%;
	min-height: 3rem;
	padding: 0.75rem 2.75rem 0.75rem 1.1rem;
	border: 1px solid #e5e7eb;
	border-radius: 999px;
	background-color: #f3f4f6;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none'%3E%3Cpath d='M6 9l6 6 6-6' stroke='%23145a64' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 1rem center;
	color: #4b5563;
	font-size: 1rem;
	font-weight: 500;
	line-height: 1.3;
	appearance: none;
	cursor: pointer;
	box-sizing: border-box;
}

.rentalpress-variations-form table.variations select:focus {
	outline: 2px solid #be185d;
	outline-offset: 2px;
}

.rentalpress-variations-form .reset_variations {
	display: none !important;
}

.rentalpress-single-variation-wrap {
	display: none !important;
}

.rentalpress-variations-form + .rentalpress-quote-action-wrap {
	margin-top: 0.85em;
	margin-bottom: 1em;
}

body.rentalpress-rental-product .wc-block-add-to-cart-form,
body.rentalpress-rental-product .wp-block-add-to-cart-form,
body.rentalpress-rental-product .wp-block-woocommerce-add-to-cart-with-options,
body.rentalpress-rental-product .wc-block-add-to-cart-with-options,
body.rentalpress-rental-product form.variations_form:not(.rentalpress-variations-form) {
	display: none !important;
}

.rentalpress-product-rental-summary .rentalpress-product-info-cards {
	margin-top: 0;
	margin-bottom: 1em;
}

.rentalpress-quote-action-wrap {
	display: block !important;
	margin-bottom: 1em;
	visibility: visible !important;
	opacity: 1 !important;
}

.rentalpress-quote-action {
	display: flex;
	align-items: stretch;
	gap: 0.75em;
	margin: 0;
	width: 100%;
}

.rentalpress-qty-stepper {
	display: inline-flex;
	align-items: center;
	justify-content: space-between;
	gap: 0.35em;
	flex: 0 0 auto;
	min-width: 8.5rem;
	padding: 0.3rem 0.45rem;
	background: #f3f4f6;
	border-radius: 999px;
	box-sizing: border-box;
}

.rentalpress-qty-stepper__btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 2.25rem;
	height: 2.25rem;
	padding: 0;
	border: 2px solid #be185d;
	border-radius: 50%;
	background: #fff;
	color: #be185d;
	font-size: 1.2rem;
	font-weight: 600;
	line-height: 1;
	cursor: pointer;
	transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.rentalpress-qty-stepper__btn:hover {
	background: #fdf2f8;
}

.rentalpress-qty-stepper__input {
	width: 2.25rem;
	min-width: 2.25rem;
	padding: 0;
	border: none;
	background: transparent;
	color: #1f2937;
	font-size: 1rem;
	font-weight: 600;
	text-align: center;
	-moz-appearance: textfield;
	appearance: textfield;
}

.rentalpress-qty-stepper__input::-webkit-outer-spin-button,
.rentalpress-qty-stepper__input::-webkit-inner-spin-button {
	-webkit-appearance: none;
	margin: 0;
}

.rentalpress-get-quote-btn {
	flex: 1 1 auto;
	width: auto !important;
	min-height: 3rem;
	padding: 0.7rem 1.35rem !important;
	border: none !important;
	border-radius: 999px !important;
	background: #f5b335 !important;
	color: #1e293b !important;
	font-size: 1rem !important;
	font-weight: 700 !important;
	line-height: 1.2 !important;
	display: inline-flex !important;
	align-items: center;
	justify-content: center;
	gap: 0.55rem;
	cursor: pointer;
	box-shadow: none !important;
	transition: background 0.2s;
}

.rentalpress-get-quote-btn:hover,
.rentalpress-get-quote-btn:focus {
	background: #e9a62a !important;
	color: #1e293b !important;
}

.rentalpress-get-quote-btn:disabled {
	opacity: 0.65;
	cursor: not-allowed;
}

.rentalpress-get-quote-btn:not(:disabled) {
	opacity: 1;
}

.rentalpress-get-quote-btn__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	color: #fff;
}

.rentalpress-get-quote-btn__icon svg {
	display: block;
}

.rentalpress-quote-form {
	margin-top: 1em;
	padding-top: 1em;
	border-top: 1px solid #e2e8f0;
}

.rentalpress-form-row {
	margin-bottom: 1em;
}

.rentalpress-form-row-2 {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 1em;
}

.rentalpress-field label {
	display: block;
	margin-bottom: 0.35em;
	font-weight: 600;
	font-size: 0.9em;
}

.rentalpress-field input {
	width: 100%;
	padding: 0.6em 0.75em;
	border: 1px solid #cbd5e1;
	border-radius: 6px;
	font-size: 1em;
	box-sizing: border-box;
}

.rentalpress-days-hint {
	font-size: 0.85em;
	color: #64748b;
	margin: 0 0 1em;
}

.rentalpress-quote-summary {
	background: #fff;
	border: 1px solid #e2e8f0;
	border-radius: 6px;
	padding: 1em;
	margin-bottom: 1em;
}

.rentalpress-summary-row {
	display: flex;
	align-items: baseline;
	gap: 0.5em;
	margin-bottom: 0.4em;
	font-size: 0.95em;
}

.rentalpress-total-row {
	margin-top: 0.5em;
	padding-top: 0.5em;
	border-top: 1px dashed #e2e8f0;
	font-size: 1.1em;
}

.rentalpress-form-messages {
	color: #dc2626;
	font-size: 0.9em;
	margin-bottom: 0.75em;
}

.rentalpress-form-messages:empty {
	display: none;
}

/* --------------------------------------------------------------------------
   Responsive — product rental summary
   -------------------------------------------------------------------------- */

.rentalpress-product-rental-summary,
.rentalpress-variations-form,
.rentalpress-quote-action-wrap,
.rentalpress-product-info-cards {
	max-width: 100%;
	box-sizing: border-box;
}

/* Tablet: stack info cards */
@media (max-width: 768px) {
	.rentalpress-product-rental-summary {
		margin: 1em 0;
	}

	.rentalpress-product-info-cards {
		grid-template-columns: 1fr;
		gap: 0.85em;
	}

	.rentalpress-specifications,
	.rentalpress-hire-prices {
		padding: 1em;
	}

	.rentalpress-hire-description {
		font-size: 0.9em;
	}
}

/* Small tablet / large phone */
@media (max-width: 640px) {
	.rentalpress-variations-form table.variations select {
		min-height: 2.85rem;
		padding: 0.65rem 2.5rem 0.65rem 1rem;
		font-size: 0.95rem;
	}

	.rentalpress-quote-action {
		gap: 0.65em;
	}

	.rentalpress-qty-stepper {
		min-width: 7.75rem;
		padding: 0.25rem 0.4rem;
	}

	.rentalpress-qty-stepper__btn {
		width: 2.1rem;
		height: 2.1rem;
		font-size: 1.1rem;
	}

	.rentalpress-get-quote-btn {
		min-height: 2.85rem;
		padding: 0.65rem 1.1rem !important;
		font-size: 0.95rem !important;
	}

	.rentalpress-hire-prices__range,
	.rentalpress-hire-prices__price {
		font-size: 0.9rem;
	}

	.rentalpress-hire-prices__price strong {
		font-size: 1rem;
	}

	.rentalpress-specifications__label,
	.rentalpress-specifications__value {
		font-size: 0.9rem;
	}
}

/* Mobile: stack qty + button, tighten cards */
@media (max-width: 520px) {
	.rentalpress-quote-action {
		flex-direction: column;
		align-items: stretch;
	}

	.rentalpress-qty-stepper {
		width: 100%;
		min-width: 0;
		max-width: none;
		justify-content: center;
	}

	.rentalpress-get-quote-btn {
		width: 100% !important;
		flex: none;
	}

	.rentalpress-specifications__row,
	.rentalpress-hire-prices__row {
		flex-wrap: wrap;
		gap: 0.35em 0.75em;
		padding: 0.65em 0;
	}

	.rentalpress-hire-prices__price {
		text-align: left;
		width: 100%;
	}

	.rentalpress-specifications__row {
		flex-direction: row;
		justify-content: space-between;
		align-items: center;
	}

	.rentalpress-specifications__value {
		text-align: right;
	}
}

/* Very small phones */
@media (max-width: 380px) {
	.rentalpress-variations-form table.variations select {
		min-height: 2.75rem;
		padding: 0.6rem 2.35rem 0.6rem 0.9rem;
		font-size: 0.9rem;
	}

	.rentalpress-specifications__title,
	.rentalpress-hire-prices__title {
		font-size: 1rem;
	}

	.rentalpress-get-quote-btn__label {
		font-size: 0.9rem;
	}
}

@media (max-width: 600px) {
	.rentalpress-form-row-2 {
		grid-template-columns: 1fr;
	}
}
