/* ==========================================================================
   Shop UI (2026-12-03): product cards, product page details, recommendations,
   cart and checkout. Loaded after style.css / woocommerce.css.
   Tokens: text #1c1f21 · muted #6b7075 · line #e3e5e8 · card #f6f6f6 · red #dc523b / #c34834
   ========================================================================== */

/* --- Product cards (everywhere) ------------------------------------------ */
ul.products li.product .custom-category {
	padding: 14px 13px 0; font-size: 11px; font-weight: 600; letter-spacing: .06em; line-height: 1.3;
	color: #6b7075; text-transform: uppercase; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
ul.products li.product h2.woocommerce-loop-product__title { margin-top: 6px !important; line-height: 1.25 !important; }
ul.products li.product span.price { align-items: baseline; gap: 6px; flex-wrap: wrap; }
.custom-24h { font-size: inherit; margin: 0; order: initial !important; }
ul.products li.product .custom-24h, .cart_totals .custom-24h { display: inline; }
ul.products li.product .woocommerce-price-suffix,
ul.products li.product .custom-24h { font-size: 13px; font-weight: 600; color: #6b7075; }

/* --- Product page: title + price ------------------------------------------ */
.single-product .summary .product_title {
	font-size: clamp(28px, 4.2vw, 42px) !important; line-height: 1.02 !important; letter-spacing: -.005em;
	margin: 0 0 10px !important; overflow-wrap: anywhere;
}
.single-product .summary p.price { display: flex !important; align-items: baseline; gap: 8px; flex-wrap: wrap; font-size: 28px; font-weight: 800; color: #1c1f21; }
.single-product .summary p.price .custom-24h { display: inline; margin: 0 !important; font-size: 16px; font-weight: 600; color: #6b7075; }
.single-product .summary .custom-24h { font-size: 16px; }
.single-product .summary .woocommerce-product-details__short-description { margin-top: 18px; }

/* --- Recommendations ("Sulle võib meeldida ka", cart add-ons) ------------- */
.single-product section.up-sells,
.single-product section.related,
.woocommerce-cart .cross-sells { width: 100%; margin: 56px 0 0; padding: 0; float: none; }
.single-product section.up-sells > h2,
.single-product section.related > h2,
.woocommerce-cart .cross-sells > h2 {
	margin: 0 0 18px !important; padding: 0 !important;
	font-size: 22px !important; font-weight: 800; line-height: 1.15 !important; color: #1c1f21 !important; text-transform: uppercase;
}
.single-product section.up-sells ul.products,
.single-product section.related ul.products,
.woocommerce-cart .cross-sells ul.products {
	display: grid !important; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin: 0; padding: 0 !important;
}
.woocommerce-cart .cross-sells ul.products { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.single-product section.up-sells ul.products::before, .single-product section.up-sells ul.products::after,
.single-product section.related ul.products::before, .single-product section.related ul.products::after,
.woocommerce-cart .cross-sells ul.products::before, .woocommerce-cart .cross-sells ul.products::after { display: none; }
.single-product section.up-sells li.product,
.single-product section.related li.product,
.woocommerce-cart .cross-sells li.product {
	width: auto !important; min-height: 0 !important; margin: 0 !important; padding: 0 0 4px !important; float: none !important;
	border-radius: 12px; box-shadow: 0 1px 2px rgba(0, 0, 0, .06), 0 4px 16px rgba(0, 0, 0, .06); background: #fff;
}
.single-product section.up-sells li.product img,
.single-product section.related li.product img,
.woocommerce-cart .cross-sells li.product img {
	width: 100% !important; aspect-ratio: 4 / 3; object-fit: contain; padding: 14px 14px 0 !important; box-sizing: border-box; margin: 0 !important;
}

/* --- Forms (cart coupon + checkout): same look as the footer form, light --- */
.woocommerce form .form-row label,
.woocommerce-checkout label { display: block; margin: 0 0 6px; font-size: 14px; font-weight: 600; color: #1c1f21; line-height: 1.3; }
.woocommerce form .form-row .required { color: #c34834; text-decoration: none; border: 0; }
.woocommerce form .form-row { margin: 0 0 16px; padding: 0; }
.woocommerce form .form-row input.input-text,
.woocommerce form .form-row textarea,
.woocommerce form .form-row select,
.woocommerce-cart .coupon input.input-text,
.woocommerce-checkout .select2-container .select2-selection--single {
	width: 100% !important; box-sizing: border-box; height: 48px; margin: 0;
	padding: 0 14px !important; border: 1px solid #d5d8db !important; border-radius: 8px !important;
	background: #fff !important; color: #1c1f21; font-size: 16px; line-height: 46px; box-shadow: none !important;
	transition: border-color .15s, box-shadow .15s;
}
.woocommerce form .form-row textarea { height: 110px; padding: 12px 14px !important; line-height: 1.5; resize: vertical; }
.woocommerce form .form-row input.input-text:focus,
.woocommerce form .form-row textarea:focus,
.woocommerce-cart .coupon input.input-text:focus,
.woocommerce-checkout .select2-container--open .select2-selection--single,
.woocommerce-checkout .select2-container--focus .select2-selection--single {
	outline: none; border-color: #dc523b !important; box-shadow: 0 0 0 3px rgba(220, 82, 59, .15) !important;
}
.woocommerce form .form-row input::placeholder, .woocommerce form .form-row textarea::placeholder { color: #9aa0a6; }
.woocommerce form .form-row.woocommerce-invalid input.input-text,
.woocommerce form .form-row.woocommerce-invalid .select2-selection { border-color: #d63638 !important; }
.woocommerce-checkout .select2-container .select2-selection--single .select2-selection__rendered { padding: 0 !important; line-height: 46px; color: #1c1f21; }
.woocommerce-checkout .select2-container .select2-selection--single .select2-selection__arrow { height: 46px; right: 10px; }
.select2-dropdown { border-color: #d5d8db !important; border-radius: 8px !important; overflow: hidden; }
.select2-container--default .select2-results__option--highlighted[aria-selected],
.select2-container--default .select2-results__option--highlighted[data-selected] { background: #dc523b !important; }

/* Buttons: big, rounded, no 8px drop */
.woocommerce .checkout-button,
.woocommerce #place_order,
.woocommerce-cart .coupon .button {
	transform: none !important; border-radius: 8px !important;
}
.woocommerce .checkout-button,
.woocommerce #place_order {
	display: block; width: 100%; height: 54px; padding: 0 20px !important; margin: 18px 0 0 !important;
	font-size: 17px !important; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; text-align: center; line-height: 54px !important;
	background: #dc523b !important; border: 0 !important; color: #fff !important;
}
.woocommerce .checkout-button:hover, .woocommerce #place_order:hover { background: #c34834 !important; }
.woocommerce .checkout-button { display: flex; align-items: center; justify-content: center; text-decoration: none; }

/* Booking details under the product name (cart, checkout, order) */
.woocommerce dl.variation {
	display: grid; grid-template-columns: max-content 1fr; gap: 3px 10px; margin: 8px 0 0; font-size: 14px; line-height: 1.4; color: #3a3f44;
}
.woocommerce dl.variation dt { margin: 0; font-weight: 600; color: #1c1f21; float: none; clear: none; }
.woocommerce dl.variation dd { margin: 0; float: none; }
.woocommerce dl.variation dd p { margin: 0; }

/* --- Cart ------------------------------------------------------------------- */
.woocommerce-cart .entry-content-inside,
.woocommerce-cart .woocommerce { background: transparent; }
.woocommerce-cart table.shop_table.cart { border: 0; border-collapse: collapse; width: 100%; margin: 0 0 8px; background: #fff; }
.woocommerce-cart table.shop_table.cart thead { display: none; }
.woocommerce-cart table.shop_table.cart tr.cart_item {
	display: grid; grid-template-columns: 110px minmax(0, 1fr) auto 36px; grid-template-areas: "thumb name total remove";
	align-items: start; gap: 18px; padding: 20px; margin: 0 0 14px;
	border: 1px solid #e3e5e8; border-radius: 12px; background: #fff;
}
.woocommerce-cart table.shop_table.cart tr.cart_item td { display: block; padding: 0 !important; border: 0 !important; text-align: left; background: none; }
.woocommerce-cart table.shop_table.cart td::before { display: none !important; }
.woocommerce-cart table.shop_table.cart td.product-thumbnail { grid-area: thumb; }
.woocommerce-cart table.shop_table.cart td.product-thumbnail img { width: 110px !important; height: 82px !important; object-fit: contain; border-radius: 8px; background: #f6f6f6; }
.woocommerce-cart table.shop_table.cart td.product-name { grid-area: name; }
.woocommerce-cart table.shop_table.cart td.product-name > a { font-size: 18px; font-weight: 700; color: #1c1f21 !important; text-transform: uppercase; }
.woocommerce-cart table.shop_table.cart td.product-price,
.woocommerce-cart table.shop_table.cart td.product-quantity { display: none; }
.woocommerce-cart table.shop_table.cart td.product-subtotal { grid-area: total; font-size: 18px; font-weight: 800; color: #1c1f21; white-space: nowrap; }
.woocommerce-cart table.shop_table.cart td.product-remove { grid-area: remove; justify-self: end; }
.woocommerce-cart table.shop_table.cart td.product-remove a.remove {
	display: flex; align-items: center; justify-content: center; width: 32px; height: 32px; border-radius: 50%;
	font-size: 22px; line-height: 1; color: #6b7075 !important; background: #f1f2f3;
}
.woocommerce-cart table.shop_table.cart td.product-remove a.remove:hover { background: #dc523b; color: #fff !important; }
.woocommerce-cart table.shop_table.cart tr:not(.cart_item) td.actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; padding: 6px 0 0 !important; border: 0 !important; }
.woocommerce-cart table.shop_table.cart td.actions > button[name="update_cart"] { display: none !important; } /* rentals have no quantity */
.woocommerce-cart .coupon { display: flex; gap: 8px; align-items: center; float: none !important; }
.woocommerce-cart .coupon label { display: none; }
.woocommerce-cart .coupon input.input-text { width: 220px !important; height: 44px; line-height: 42px; }
.woocommerce-cart .coupon .button {
	height: 44px; padding: 0 16px !important; background: #fff !important; color: #1c1f21 !important;
	border: 1px solid #1c1f21 !important; font-size: 13px; font-weight: 700; text-transform: uppercase;
}
.woocommerce-cart .coupon .button:hover { background: #1c1f21 !important; color: #fff !important; }

.woocommerce-cart .cart-collaterals { display: flex; justify-content: flex-end; width: 100%; margin-top: 18px; }
.woocommerce-cart .cart_totals {
	float: none !important; width: 100% !important; max-width: 420px; margin: 0 0 0 auto !important; padding: 22px !important;
	border-radius: 12px; background: #f6f6f6; box-sizing: border-box;
}
.woocommerce-cart .cart_totals > h2 { margin: 0 0 12px !important; padding: 0 !important; font-size: 16px !important; color: #1c1f21 !important; line-height: 1.2 !important; }
.woocommerce-cart .cart_totals table { width: 100%; border: 0; margin: 0; }
.woocommerce-cart .cart_totals table th, .woocommerce-cart .cart_totals table td { padding: 8px 0 !important; border: 0 !important; border-top: 1px solid #e3e5e8 !important; background: none; font-size: 15px; text-align: left; }
.woocommerce-cart .cart_totals table td { text-align: right !important; }
.woocommerce-cart .cart_totals tr.order-total th, .woocommerce-cart .cart_totals tr.order-total td { font-size: 18px; font-weight: 800; }
.woocommerce-cart .cart_totals table td::before { display: none; }
.woocommerce-cart .wc-proceed-to-checkout { padding: 0 !important; }

/* --- Checkout --------------------------------------------------------------- */
.woocommerce-checkout .woocommerce-billing-fields > h3,
.woocommerce-checkout .woocommerce-additional-fields > h3,
.woocommerce-checkout #order_review_heading {
	margin: 0 0 18px !important; padding: 0 !important; font-size: 20px !important; font-weight: 800; line-height: 1.2 !important;
	color: #1c1f21 !important; text-transform: uppercase; letter-spacing: .01em;
}
.woocommerce-checkout .woocommerce-form-coupon-toggle .woocommerce-info {
	margin: 0 0 24px; padding: 12px 16px; border: 1px dashed #d5d8db; border-radius: 10px; background: #fff; font-size: 14px; text-align: center;
}
.woocommerce-checkout .woocommerce-form-coupon-toggle .woocommerce-info::before { display: none; }
.woocommerce-checkout .woocommerce-form-coupon-toggle a { color: #c34834 !important; font-weight: 700; }

.woocommerce-checkout #order_review {
	padding: 24px !important; border-radius: 12px; background: #f6f6f6; box-sizing: border-box;
}
.woocommerce-checkout table.woocommerce-checkout-review-order-table { width: 100%; border: 0; margin: 0 0 8px; background: none; }
.woocommerce-checkout table.woocommerce-checkout-review-order-table th,
.woocommerce-checkout table.woocommerce-checkout-review-order-table td { padding: 10px 0 !important; border: 0 !important; border-top: 1px solid #e3e5e8 !important; background: none !important; font-size: 15px; vertical-align: top; text-align: left; }
.woocommerce-checkout table.woocommerce-checkout-review-order-table thead th { border-top: 0 !important; font-size: 12px; font-weight: 700; color: #6b7075; text-transform: uppercase; letter-spacing: .05em; }
.woocommerce-checkout table.woocommerce-checkout-review-order-table td.product-total,
.woocommerce-checkout table.woocommerce-checkout-review-order-table tfoot td,
.woocommerce-checkout table.woocommerce-checkout-review-order-table th.product-total { text-align: right !important; white-space: nowrap; }
.woocommerce-checkout table.woocommerce-checkout-review-order-table td.product-name { font-weight: 700; color: #1c1f21; }
.woocommerce-checkout table.woocommerce-checkout-review-order-table td.product-name dl.variation { font-weight: 400; }
.woocommerce-checkout table.woocommerce-checkout-review-order-table tr.order-total th,
.woocommerce-checkout table.woocommerce-checkout-review-order-table tr.order-total td { font-size: 19px; font-weight: 800; color: #1c1f21; }

/* Payment methods as selectable cards */
.woocommerce-checkout #payment { background: none !important; border-radius: 0; padding: 0; margin-top: 18px; }
.woocommerce-checkout #payment ul.payment_methods { margin: 0; padding: 0 !important; border: 0 !important; list-style: none; display: grid; gap: 10px; }
.woocommerce-checkout #payment ul.payment_methods > li.wc_payment_method {
	position: relative; margin: 0 !important; padding: 14px 16px 14px 46px !important; border: 1px solid #d5d8db; border-radius: 10px; background: #fff;
	cursor: pointer; transition: border-color .15s, box-shadow .15s; line-height: 1.35;
}
.woocommerce-checkout #payment ul.payment_methods > li.wc_payment_method:hover { border-color: #b9bdc1; }
.woocommerce-checkout #payment ul.payment_methods > li.wc_payment_method:has(> input:checked) { border-color: #dc523b; box-shadow: 0 0 0 3px rgba(220, 82, 59, .12); }
.woocommerce-checkout #payment ul.payment_methods > li > input[type="radio"] {
	position: absolute; left: 16px; top: 17px; width: 18px; height: 18px; margin: 0; accent-color: #dc523b;
}
.woocommerce-checkout #payment ul.payment_methods > li > label { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin: 0; font-size: 15px; font-weight: 600; color: #1c1f21; cursor: pointer; }
.woocommerce-checkout #payment ul.payment_methods > li > label img { max-height: 22px; width: auto; margin: 0 !important; float: none; }
.woocommerce-checkout #payment div.payment_box {
	margin: 10px 0 0 !important; padding: 0 !important; background: none !important; color: #5a5f64; font-size: 14px; line-height: 1.5;
}
.woocommerce-checkout #payment div.payment_box::before { display: none !important; }
.woocommerce-checkout #payment div.payment_box p { margin: 0 0 6px; }
.woocommerce-checkout .woocommerce-privacy-policy-text p, .woocommerce-checkout .woocommerce-terms-and-conditions-wrapper { font-size: 13px; color: #6b7075; margin-top: 14px; }
.woocommerce-checkout .place-order { padding: 0 !important; margin: 0 !important; }

/* Notices */
.woocommerce-checkout .woocommerce-error,
.woocommerce-cart .woocommerce-error {
	margin: 0 0 22px !important; padding: 14px 18px 14px 18px !important; list-style: none;
	border: 1px solid #f3c2bb !important; border-left: 4px solid #d63638 !important; border-radius: 10px; background: #fff5f3 !important; color: #8a1f17 !important; font-size: 15px;
}
.woocommerce-checkout .woocommerce-error::before, .woocommerce-cart .woocommerce-error::before { display: none; }
.woocommerce-checkout .woocommerce-error li { margin: 2px 0; }

/* --- Responsive --------------------------------------------------------------- */
@media only screen and (max-width: 900px) {
	.single-product section.up-sells ul.products,
	.single-product section.related ul.products,
	.woocommerce-cart .cross-sells ul.products { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
	.woocommerce-cart .cart_totals { max-width: none; }
}
@media only screen and (max-width: 600px) {
	.woocommerce-cart table.shop_table.cart tr.cart_item {
		grid-template-columns: 76px minmax(0, 1fr) 32px; grid-template-areas: "thumb name remove" "thumb total remove"; gap: 6px 14px; padding: 14px;
	}
	.woocommerce-cart table.shop_table.cart td.product-thumbnail img { width: 76px !important; height: 60px !important; }
	.woocommerce-cart table.shop_table.cart td.product-name > a { font-size: 16px; }
	.woocommerce-cart table.shop_table.cart td.product-subtotal { font-size: 17px; }
	.woocommerce dl.variation { grid-template-columns: 1fr; gap: 0; }
	.woocommerce dl.variation dd { margin-bottom: 6px; }
	.woocommerce-cart .coupon { width: 100%; }
	.woocommerce-cart .coupon input.input-text { width: auto !important; flex: 1; }
	.woocommerce-checkout #order_review { padding: 18px !important; }
	.single-product section.up-sells li.product h2.woocommerce-loop-product__title,
	.single-product section.related li.product h2.woocommerce-loop-product__title { font-size: 14px !important; }
}

/* --- Cart: win over the theme's !important cart-table rules ----------------- */
.woocommerce-cart table.shop_table.shop_table_responsive.cart,
.woocommerce-cart table.shop_table.shop_table_responsive.cart tbody { display: block !important; width: 100% !important; border: 0 !important; background: none !important; }
.woocommerce-cart table.shop_table.shop_table_responsive.cart tr.woocommerce-cart-form__cart-item.cart_item {
	display: grid !important; grid-template-columns: 110px minmax(0, 1fr) auto 36px !important; grid-template-areas: "thumb name total remove" !important;
	align-items: start !important; gap: 18px !important; width: 100% !important; box-sizing: border-box;
	padding: 20px !important; margin: 0 0 14px !important; border: 1px solid #e3e5e8 !important; border-radius: 12px; background: #fff !important;
}
.woocommerce-cart tr.woocommerce-cart-form__cart-item.cart_item > td {
	display: block !important; width: auto !important; min-width: 0; padding: 0 !important; margin: 0 !important; border: 0 !important;
	text-align: left !important; background: none !important; float: none !important;
}
.woocommerce-cart tr.woocommerce-cart-form__cart-item.cart_item > td::before { display: none !important; content: none !important; }
.woocommerce-cart tr.woocommerce-cart-form__cart-item.cart_item > td.product-thumbnail { grid-area: thumb !important; }
.woocommerce-cart tr.woocommerce-cart-form__cart-item.cart_item > td.product-thumbnail img { width: 110px !important; height: 82px !important; max-width: none !important; object-fit: contain; border-radius: 8px; background: #f6f6f6; margin: 0 !important; }
.woocommerce-cart tr.woocommerce-cart-form__cart-item.cart_item > td.product-name { grid-area: name !important; }
.woocommerce-cart tr.woocommerce-cart-form__cart-item.cart_item > td.product-price,
.woocommerce-cart tr.woocommerce-cart-form__cart-item.cart_item > td.product-quantity { display: none !important; }
.woocommerce-cart tr.woocommerce-cart-form__cart-item.cart_item > td.product-subtotal { grid-area: total !important; text-align: right !important; font-size: 18px; font-weight: 800; white-space: nowrap; }
.woocommerce-cart tr.woocommerce-cart-form__cart-item.cart_item > td.product-remove { grid-area: remove !important; justify-self: end; }
.woocommerce-cart table.shop_table.shop_table_responsive.cart tr:not(.cart_item) { display: block !important; border: 0 !important; background: none !important; }
.woocommerce-cart table.shop_table.shop_table_responsive.cart tr:not(.cart_item) > td.actions { display: flex !important; flex-wrap: wrap; gap: 10px; align-items: center; width: 100% !important; padding: 6px 0 0 !important; border: 0 !important; background: none !important; text-align: left !important; }
.woocommerce-cart table.shop_table.shop_table_responsive.cart td.actions::before { display: none !important; }

.woocommerce-cart .cart_totals table { display: table !important; width: 100% !important; border-collapse: collapse; }
.woocommerce-cart .cart_totals table tbody { display: table-row-group !important; }
.woocommerce-cart .cart_totals table tr { display: table-row !important; }
.woocommerce-cart .cart_totals table th,
.woocommerce-cart .cart_totals table td { display: table-cell !important; width: auto !important; }
.woocommerce-cart .cart_totals table td::before { display: none !important; content: none !important; }

.woocommerce-cart .cross-sells { width: 100% !important; float: none !important; clear: both; }

@media only screen and (max-width: 600px) {
	.woocommerce-cart table.shop_table.shop_table_responsive.cart tr.woocommerce-cart-form__cart-item.cart_item {
		grid-template-columns: 76px minmax(0, 1fr) 32px !important; grid-template-areas: "thumb name remove" "thumb total remove" !important; gap: 6px 14px !important; padding: 14px !important;
	}
	.woocommerce-cart tr.woocommerce-cart-form__cart-item.cart_item > td.product-thumbnail img { width: 76px !important; height: 60px !important; }
	.woocommerce-cart tr.woocommerce-cart-form__cart-item.cart_item > td.product-subtotal { text-align: left !important; font-size: 17px; }
}

/* Recommendation cards fill their grid cell (theme sets li.product widths in % with !important) */
body.woocommerce-cart .cross-sells ul.products[class*="columns-"] li.product,
body.single-product section.up-sells ul.products[class*="columns-"] li.product,
body.single-product section.related ul.products[class*="columns-"] li.product { width: auto !important; max-width: none !important; margin: 0 !important; float: none !important; }

/* Payment cards v2: radio + title share one centred row; description below the title; instant open/close. */
.woocommerce-checkout #payment ul.payment_methods > li.wc_payment_method {
	display: grid !important; grid-template-columns: 20px minmax(0, 1fr); column-gap: 14px; align-items: center;
	padding: 16px 18px !important; cursor: pointer; user-select: none;
}
.woocommerce-checkout #payment ul.payment_methods > li > input[type="radio"] {
	position: static !important; grid-column: 1; grid-row: 1; width: 20px; height: 20px; margin: 0 !important; align-self: center;
}
.woocommerce-checkout #payment ul.payment_methods > li > label { grid-column: 2; grid-row: 1; min-height: 24px; padding: 0 !important; line-height: 1.3; }
.woocommerce-checkout #payment ul.payment_methods > li > div.payment_box { grid-column: 2; grid-row: 2; cursor: default; user-select: text; }
/* WooCommerce animates the description with jQuery slideUp/Down – make it instant so cards don't jump while clicking. */
.woocommerce-checkout #payment ul.payment_methods > li.wc_payment_method:not(:has(> input:checked)) > div.payment_box { display: none !important; }
.woocommerce-checkout #payment ul.payment_methods > li.wc_payment_method:has(> input:checked) > div.payment_box {
	display: block !important; height: auto !important; overflow: visible !important; padding: 0 !important; margin: 8px 0 0 !important; opacity: 1 !important;
}
