/*
 * Side cart (WooCommerce Mini-Cart drawer), styled as live's Elementor side cart plus snippet #38:
 * opens from the left, 350px (full width on phones), dark panel, yellow X, 56px thumbnails,
 * "1 × £price" line, round remove button, centred subtotal bar, two parallelogram buttons.
 * Drawer contents come from parts/mini-cart.html. Measured on live 10 Nov 2026.
 */

/* Overlay and panel */
.wc-block-components-drawer__screen-overlay:has(.wc-block-mini-cart__drawer) { background-color: rgba(0,0,0,.25); z-index: 9998; }
.wc-block-mini-cart__drawer.wc-block-components-drawer {
	--drawer-width: 350px; --neg-drawer-width: -350px;
	inset-inline-start: 0; transform: translateX(0); width: 350px; max-width: 100%;
	background: #1a1a1a; color: #fff; box-shadow: 0 0 20px rgba(0,0,0,.2); font-size: 14px; line-height: 21px;
}
.wc-block-components-drawer__screen-overlay--is-hidden .wc-block-mini-cart__drawer.wc-block-components-drawer { transform: translateX(-100%); }
.wc-block-components-drawer__screen-overlay--with-slide-out .wc-block-mini-cart__drawer { transition: transform .3s; }
.wc-block-components-drawer__screen-overlay--with-slide-in .wc-block-mini-cart__drawer { animation-name: tlt-side-cart-in; }
@keyframes tlt-side-cart-in { from { transform: translateX(-100%); } to { transform: translateX(0); } }
@media (max-width: 767px) { .wc-block-mini-cart__drawer.wc-block-components-drawer { width: 100%; } }

.wc-block-mini-cart__drawer .wp-block-woocommerce-mini-cart-contents.tlt-side-cart {
	background-color: #1a1a1a !important; padding: 64px 30px 20px; justify-content: flex-start; min-height: 100%;
}
.tlt-side-cart .wp-block-woocommerce-filled-mini-cart-contents-block { height: auto; }

/* Close: yellow X from two bars, 25px, top right */
.tlt-side-cart .wc-block-components-drawer__close-wrapper { position: absolute; top: 20px; right: 30px; width: 25px; height: 24px; z-index: 2; }
.wc-block-components-button.wc-block-components-drawer__close { position: absolute !important; inset: 0 !important; display: block !important; margin: 0 !important; padding: 0 !important; width: 25px !important; height: 24px !important; min-height: 0 !important; opacity: 1; border: 0 !important; border-radius: 0 !important; clip-path: none !important; box-shadow: none !important; transform: none !important; background: transparent !important; }
.wc-block-components-drawer__close svg { display: none !important; }
.wc-block-components-drawer__close::before, .wc-block-components-drawer__close::after {
	content: ""; position: absolute; left: 0; top: 11.86px; width: 25px; height: 3px; margin-top: -1px; background: #f9d616; transition: .3s;
}
.wc-block-components-drawer__close::before { transform: rotate(45deg); }
.wc-block-components-drawer__close::after { transform: rotate(-45deg); }
.wc-block-components-drawer__close:hover::before, .wc-block-components-drawer__close:hover::after { background: #fff; }

/* Items */
.tlt-side-cart .wc-block-mini-cart__items { flex-grow: 0; max-height: calc(100vh - 250px); overflow: hidden auto; padding: 15px; }
.tlt-side-cart .wc-block-mini-cart-items, .tlt-side-cart .wc-block-mini-cart-items tbody { display: block; width: 100%; margin: 0; border: 0; }
.tlt-side-cart .wc-block-mini-cart-items thead { display: none; }
.tlt-side-cart .wc-block-mini-cart__products-table .wc-block-cart-items__row {
	position: relative; display: grid !important; grid-template-columns: 56px minmax(0, 1fr) !important; grid-template-rows: auto !important; gap: 0 10px !important; align-items: start;
	padding: 12px 4px !important; border-bottom: 1px solid #333;
}
.tlt-side-cart .wc-block-mini-cart__products-table .wc-block-cart-items__row[hidden] { display: none !important; }
.tlt-side-cart .wc-block-mini-cart__products-table .wc-block-cart-items__row::after { content: none; }
.tlt-side-cart .wc-block-cart-items__row > td { display: block; padding: 0 !important; border: 0; }
.tlt-side-cart .wc-block-cart-item__image { grid-column: 1 !important; grid-row: 1 / span 9 !important; width: 56px; }
.tlt-side-cart .wc-block-cart-item__image > img, .tlt-side-cart .wc-block-cart-item__image [hidden] { display: none !important; }
.tlt-side-cart .wc-block-cart-item__image > a { display: block; }
.tlt-side-cart .wc-block-cart-item__image a img { display: block; width: 56px !important; height: 56px; max-width: none; box-sizing: border-box; object-fit: cover; border: 1px solid #4a4a4a; border-radius: 4px; background: #3f3f3f; }
.tlt-side-cart .wc-block-cart-item__product { grid-column: 2 !important; grid-row: 1 !important; min-width: 0; text-align: left; }
.tlt-side-cart .wc-block-cart-item__total { display: none !important; }
.tlt-side-cart .wc-block-cart-item__wrap { display: flex; flex-direction: column; align-items: stretch !important; gap: 0 !important; }
.tlt-side-cart .wc-block-components-product-name {
	order: 0; display: block; margin: 0 !important; padding: 0 28px 0 0; color: #fff !important; font-size: 12px !important; font-weight: 600; line-height: 21px !important; text-decoration: none; text-transform: none;
}
.tlt-side-cart .wc-block-components-product-name[hidden] { display: none; }
.tlt-side-cart a.wc-block-components-product-name:hover { color: #f9d616; }

/* Chosen options (WAPF) under the name: yellow label, grey value */
.tlt-side-cart .wc-block-components-product-metadata { order: 1; margin: 0; font-size: 9px; line-height: 1.6; }
.tlt-side-cart .wc-block-components-product-metadata__description { display: none; }
.tlt-side-cart .wc-block-components-product-details { margin: 4px 0 0; padding: 0; list-style: none; }
.tlt-side-cart .wc-block-components-product-details > * { display: block; margin: 0 0 1px; color: #999; font-size: 9px; line-height: 1.6; }
.tlt-side-cart .wc-block-components-product-details__name { margin-right: 3px; color: #f9d616; font-weight: 600; text-transform: uppercase; }
.tlt-side-cart .wc-block-components-product-details__value { color: #999; }
.tlt-side-cart .wc-block-components-product-details__value p { display: inline; margin: 0; }
.tlt-side-cart .wc-block-components-product-details > * > [aria-hidden="true"], .tlt-side-cart .wc-block-components-product-details > [hidden] { display: none !important; }
.tlt-side-cart .wapf-edit-cartitem { display: none !important; }

/* "1 × £price" line: quantity written in by assets/js/mini-cart.js */
.tlt-side-cart .wc-block-cart-item__prices {
	order: 2; display: flex; align-items: center; gap: 8px; margin: 12px 0 0 !important; /* live: name 8px + price 4px */ padding: 10px 0 0 20px;
	border-top: 1px solid rgba(255,255,255,.1); color: #f9d616; font-size: 11px !important; font-weight: 700; line-height: 16.5px !important;
}
.tlt-side-cart .wc-block-cart-item__prices .price { display: inline; margin: 0; color: #f9d616; font-size: 15px; font-weight: 600; line-height: 22.5px; }
.tlt-side-cart .wc-block-cart-item__prices .price[hidden] { display: none; }
.tlt-side-cart .wc-block-cart-item__prices .price::before { content: attr(data-tlt-qty) " \00d7 "; color: rgba(255,255,255,.6); font-size: 13px; font-weight: 700; line-height: 19.5px; }
.tlt-side-cart .wc-block-cart-item__prices del { color: rgba(255,255,255,.5); }
.tlt-side-cart .wc-block-cart-item__prices ins { text-decoration: none; }
.tlt-side-cart .wc-block-components-product-badge { order: 3; margin-top: 4px; border-color: #ee1c25; color: #ee1c25; font-size: 9px; }

/* No quantity control in the side cart (as live); the remove button sits top right as a grey circle */
.tlt-side-cart .wc-block-cart-item__quantity { order: 4; margin: 0; }
.tlt-side-cart .wc-block-components-quantity-selector { display: none !important; }
.tlt-side-cart .wc-block-cart-item__remove-link {
	position: absolute !important; top: 10px; right: 2px; z-index: 10; display: flex !important; align-items: center; justify-content: center;
	width: 22px !important; height: 22px !important; min-height: 0 !important; margin: 0 !important; padding: 0 !important; border: 0 !important; border-radius: 50% !important; clip-path: none !important; box-shadow: none !important;
	background: #555 !important; color: #fff !important; font-size: 15px !important; line-height: 22px !important; text-decoration: none !important; cursor: pointer; transform: none !important; transition: background .2s;
}
.tlt-side-cart .wc-block-cart-item__remove-link[hidden] { display: none !important; }
.tlt-side-cart .wc-block-cart-item__remove-link svg { display: none; }
.tlt-side-cart .wc-block-cart-item__remove-link::before { content: "\00d7"; }
.tlt-side-cart .wc-block-cart-item__remove-link:hover { background: #ee1c25 !important; }

/* Subtotal bar and buttons */
.tlt-side-cart .wc-block-mini-cart__footer { margin: 0; padding: 0; border: 0; box-shadow: none; background: #2a2a2a; font-size: 20px; line-height: 30px; }
.tlt-side-cart .wc-block-mini-cart__footer::after { content: none; }
.tlt-side-cart .wc-block-mini-cart__footer-subtotal {
	display: block !important; margin: 0 !important; padding: 14px 16px; text-align: center; font-weight: 600; color: #fff;
	border-top: 1px solid #f9d616; border-bottom: 1px solid #fff;
}
.tlt-side-cart .wc-block-mini-cart__footer-subtotal .wc-block-components-totals-item__label { display: inline-flex; flex: none; font-size: 14px; font-weight: 600; line-height: 21px; text-transform: uppercase; letter-spacing: .5px; }
.tlt-side-cart .wc-block-mini-cart__footer-subtotal .wc-block-components-totals-item__label::after { content: ":"; }
.tlt-side-cart .wc-block-mini-cart__footer-subtotal .wc-block-components-totals-item__value { display: inline; margin: 0 !important; color: #f9d616; font-size: 16px; font-weight: 700; line-height: 24px; }
.tlt-side-cart .wc-block-mini-cart__footer-subtotal .wc-block-components-totals-item__description { display: none !important; }
.tlt-side-cart .wc-block-mini-cart__footer-actions { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 8px; margin: 0 !important; padding: 12px 16px 16px; }
.tlt-side-cart .wc-block-mini-cart__footer-actions .wc-block-components-button {
	flex: 1; min-height: 0 !important; margin: 0; padding: 10px 16px; border-radius: 0; box-shadow: none; text-align: center;
	font-size: 11px; font-weight: 700; line-height: 11px; letter-spacing: 1px; text-transform: uppercase; text-decoration: none;
	clip-path: polygon(10px 0%, 100% 0%, calc(100% - 10px) 100%, 0% 100%); transition: background .2s, color .2s;
}
.tlt-side-cart .wc-block-mini-cart__footer-actions .wc-block-components-button__text { font-size: inherit; line-height: inherit; }
.tlt-side-cart .wc-block-mini-cart__footer-cart.wc-block-components-button { background: transparent !important; border: 1px solid #f9d616 !important; color: #f9d616 !important; }
.tlt-side-cart .wc-block-mini-cart__footer-cart.wc-block-components-button:hover { background: #f9d616 !important; color: #3f3f3f !important; }
.tlt-side-cart .wc-block-mini-cart__footer-checkout.wc-block-components-button { background: #f9d616 !important; border: 0 !important; color: #3f3f3f !important; }
.tlt-side-cart .wc-block-mini-cart__footer-checkout.wc-block-components-button:hover { background: #fff !important; }

/* Empty basket */
.tlt-side-cart .wc-block-mini-cart__empty-cart-wrapper { padding: 15px; }
.tlt-side-cart .tlt-side-cart__empty { margin: 0 0 16px; color: #fff; font-size: 14px; font-weight: 600; letter-spacing: .5px; text-transform: uppercase; }
.tlt-side-cart .wc-block-mini-cart__shopping-button.wc-block-components-button {
	display: inline-block; min-height: 0; padding: 10px 24px; border: 0; border-radius: 0; background: #f9d616 !important; color: #3f3f3f !important;
	font-size: 11px; font-weight: 700; line-height: 11px; letter-spacing: 1px; text-transform: uppercase; text-decoration: none;
	clip-path: polygon(10px 0%, 100% 0%, calc(100% - 10px) 100%, 0% 100%);
}
.tlt-side-cart .wc-block-mini-cart__shopping-button.wc-block-components-button:hover { background: #fff !important; }

/* Empty wrappers WooCommerce leaves in place (notices, product details) take no space, as on live */
.tlt-side-cart .wc-block-components-notices:not(:has(*)) { display: none !important; }
.tlt-side-cart .wc-block-components-product-metadata { margin: 0 !important; }
.tlt-side-cart .wc-block-components-product-metadata:not(:has(.wc-block-components-product-details:not([hidden]) .wc-block-components-product-details__name)) { display: none; }
.tlt-side-cart .wc-block-mini-cart__footer-actions .wc-block-components-button__text { line-height: 11px !important; }

/* Phones: buttons stacked full width (live kit CSS, .elementor-menu-cart__footer-buttons at 767px and below) */
@media (max-width: 767px) {
	.tlt-side-cart .wc-block-mini-cart__footer-actions { flex-direction: column; align-items: stretch; }
	.tlt-side-cart .wc-block-mini-cart__footer-actions .wc-block-components-button { flex: none; width: 100%; box-sizing: border-box; }
}
/* WooCommerce's own rules outrank the ones above for these two */
.tlt-side-cart table.wc-block-cart-items .wc-block-cart-items__row .wc-block-components-product-name { font-weight: 600; }
.tlt-side-cart .wc-block-mini-cart__footer-actions .wc-block-mini-cart__footer-cart.wc-block-components-button { box-shadow: none !important; }
