/* ==========================================================================
   Larp Wallet — WooCommerce (cart, checkout, account, notices)
   Covers both classic shortcode pages and the Cart/Checkout blocks.
   ========================================================================== */

/* ---------- Checkout header ---------- */
.lw-checkout-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px 32px; flex-wrap: wrap; margin-bottom: 32px; }
.lw-checkout-head .lw-page__title { margin: 0; }
.lw-checkout-trust { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.lw-checkout-trust li { display: inline-flex; align-items: center; gap: 7px; padding: 8px 12px; border-radius: 999px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); color: var(--muted); font-size: 13px; }
.lw-checkout-trust .lw-icon { color: var(--lime); }

/* ---------- Notices ---------- */
.woocommerce-message, .woocommerce-info, .woocommerce-error, .wc-block-components-notice-banner {
	list-style: none; margin: 0 0 20px !important; padding: 14px 18px !important; border-radius: var(--radius-sm) !important;
	background: var(--surface) !important; color: var(--text) !important; border: 0 !important; box-shadow: inset 0 0 0 1px var(--line-2);
	display: flex; align-items: center; gap: 12px; flex-wrap: wrap; font-size: 15px;
}
.woocommerce-message, .wc-block-components-notice-banner.is-success { box-shadow: inset 0 0 0 1px rgba(140, 255, 0, .4); }
.woocommerce-error, .wc-block-components-notice-banner.is-error { box-shadow: inset 0 0 0 1px rgba(255, 90, 90, .5); }
.woocommerce-message::before, .woocommerce-info::before, .woocommerce-error::before { display: none; }
.woocommerce-message .button, .woocommerce-info .button { margin-left: auto; order: 2; }
.wc-block-components-notice-banner > svg { fill: var(--lime) !important; background: transparent !important; }
.woocommerce-error li { list-style: none; }

/* ---------- Form controls (classic) ---------- */
.woocommerce form .form-row { margin: 0 0 16px; padding: 0; }
.woocommerce form .form-row label { display: block; margin-bottom: 6px; color: var(--muted); font-size: 14px; font-weight: 600; }
.woocommerce form .form-row .required { color: var(--lime); text-decoration: none; }
.woocommerce input.input-text, .woocommerce textarea, .woocommerce select,
.woocommerce form .form-row input.input-text, .woocommerce-page input[type="email"], .woocommerce-page input[type="password"],
.select2-container .select2-selection--single {
	width: 100%; min-height: 50px; padding: 12px 16px; border-radius: 12px; border: 0;
	background: #0a0b0a; color: var(--text); font: inherit; font-size: 16px;
	box-shadow: inset 0 0 0 1px var(--line-2); transition: box-shadow .2s;
}
.woocommerce input.input-text:focus, .woocommerce textarea:focus, .woocommerce select:focus { outline: none; box-shadow: inset 0 0 0 1.5px var(--lime), 0 0 0 4px rgba(140, 255, 0, .12); }
.select2-container .select2-selection--single { display: flex; align-items: center; }
.select2-container--default .select2-selection--single .select2-selection__rendered { color: var(--text); padding: 0; line-height: 1.4; }
.select2-container--default .select2-selection--single .select2-selection__arrow { top: 12px; right: 10px; }
.select2-dropdown { background: var(--surface-2); color: var(--text); border-color: var(--line-2); }
.select2-container--default .select2-results__option--highlighted[aria-selected], .select2-container--default .select2-results__option--highlighted[data-selected] { background: var(--lime); color: var(--on-lime); }
.select2-search--dropdown .select2-search__field { background: #0a0b0a; color: var(--text); border: 1px solid var(--line-2) !important; }

/* ---------- Buttons (classic + blocks) ---------- */
.woocommerce a.button, .woocommerce button.button, .woocommerce input.button, .woocommerce #respond input#submit,
.woocommerce #place_order, .woocommerce a.button.alt, .woocommerce button.button.alt,
.wc-block-components-button:not(.is-link), .wc-block-cart__submit-button, .wc-block-components-checkout-place-order-button {
	display: inline-flex !important; align-items: center; justify-content: center; gap: 8px;
	min-height: 52px; padding: 0 24px !important; border: 0 !important; border-radius: 999px !important;
	background: var(--lime) !important; color: var(--on-lime) !important;
	font: 700 16px/1 var(--font) !important; letter-spacing: -.01em; text-decoration: none !important; cursor: pointer;
	box-shadow: 0 10px 30px -10px rgba(140, 255, 0, .55), inset 0 -2px 0 rgba(0, 0, 0, .18);
	transition: transform .2s var(--ease), background .2s, box-shadow .3s;
}
.woocommerce a.button:hover, .woocommerce button.button:hover, .woocommerce #place_order:hover,
.wc-block-components-button:not(.is-link):hover { background: var(--lime-2) !important; transform: translateY(-1px); }
.woocommerce #place_order, .wc-block-components-checkout-place-order-button { width: 100%; min-height: 60px; font-size: 18px !important; }
.woocommerce button.button:disabled, .woocommerce button.button.disabled { opacity: .5; }

/* ---------- Classic checkout layout ---------- */
.woocommerce-checkout form.checkout { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 0 40px; align-items: start; }
.woocommerce-checkout form.checkout > .woocommerce-NoticeGroup { grid-column: 1 / -1; }
.woocommerce-checkout #customer_details { grid-column: 1; }
.woocommerce-checkout #customer_details .col-1, .woocommerce-checkout #customer_details .col-2 { width: 100%; float: none; }
.woocommerce-checkout #order_review_heading, .woocommerce-checkout #order_review { grid-column: 2; }
.woocommerce-checkout #order_review_heading { grid-row: 1; margin: 0 0 14px; }
.woocommerce-checkout #order_review { grid-row: 2; position: sticky; top: 90px; }
.woocommerce-checkout #customer_details { grid-row: 1 / span 2; }
.woocommerce-checkout h3 { margin: 0 0 18px; font-size: 22px; letter-spacing: -.03em; }
.woocommerce-billing-fields, .woocommerce-account-fields, .woocommerce-checkout-review-order {
	padding: clamp(20px, 3vw, 30px); border-radius: var(--radius); background: var(--surface); box-shadow: inset 0 0 0 1px var(--line);
}
.woocommerce-checkout-review-order { padding-top: 10px; }
.woocommerce-billing-fields__field-wrapper { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
.woocommerce-billing-fields__field-wrapper .form-row-wide, .woocommerce-billing-fields__field-wrapper #billing_email_field, .woocommerce-billing-fields__field-wrapper #billing_country_field { grid-column: 1 / -1; }
.woocommerce-billing-fields__field-wrapper .form-row { width: auto !important; float: none !important; }
@media (max-width: 860px) {
	.woocommerce-checkout form.checkout { grid-template-columns: 1fr; }
	.woocommerce-checkout #customer_details, .woocommerce-checkout #order_review_heading, .woocommerce-checkout #order_review { grid-column: 1; grid-row: auto; position: static; }
	.woocommerce-checkout #order_review_heading { margin-top: 28px; }
}
@media (max-width: 520px) { .woocommerce-billing-fields__field-wrapper { grid-template-columns: 1fr; } }

/* Review table */
.woocommerce table.shop_table { width: 100%; border-collapse: collapse; border: 0; font-size: 15px; }
.woocommerce table.shop_table th, .woocommerce table.shop_table td { padding: 14px 0; border: 0; border-bottom: 1px solid var(--line); text-align: left; background: none; }
.woocommerce table.shop_table td:last-child, .woocommerce table.shop_table th:last-child { text-align: right; }
.woocommerce table.shop_table thead th { color: var(--dim); font: 600 12px var(--mono); letter-spacing: .08em; text-transform: uppercase; }
.woocommerce table.shop_table .order-total th, .woocommerce table.shop_table .order-total td { font-size: 20px; font-weight: 700; border-bottom: 0; }
.woocommerce table.shop_table .order-total .amount { color: var(--lime); }
.woocommerce table.shop_table .product-quantity { color: var(--muted); }

/* Payment methods */
#payment { margin-top: 10px; background: none !important; border-radius: 0; }
#payment ul.payment_methods { list-style: none; margin: 0 0 16px; padding: 0 !important; border: 0 !important; display: grid; gap: 8px; }
#payment ul.payment_methods li { padding: 14px 16px; border-radius: 14px; background: #0a0b0a; box-shadow: inset 0 0 0 1px var(--line-2); }
#payment ul.payment_methods li label { font-weight: 600; cursor: pointer; }
#payment ul.payment_methods li img { display: inline; max-height: 22px; vertical-align: middle; margin-left: 6px; }
#payment div.payment_box { margin: 12px 0 0 !important; padding: 12px 14px !important; border-radius: 10px; background: var(--surface-2) !important; color: var(--muted) !important; font-size: 14px; }
#payment div.payment_box::before { display: none; }
#payment .place-order { padding: 0 !important; margin: 0; }
.woocommerce-privacy-policy-text, .woocommerce-terms-and-conditions-wrapper { color: var(--muted); font-size: 13px; }
.woocommerce-privacy-policy-text a, .woocommerce-terms-and-conditions-wrapper a { color: var(--text); }
.woocommerce form .form-row.woocommerce-invalid input.input-text { box-shadow: inset 0 0 0 1.5px var(--danger); }
.woocommerce-form-coupon-toggle .woocommerce-info { font-size: 14px; }
.woocommerce-form-coupon-toggle a, .showcoupon { color: var(--lime); }
form.checkout_coupon { display: flex; gap: 10px; padding: 16px; border-radius: var(--radius-sm); background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); margin-bottom: 20px; }
form.checkout_coupon p { margin: 0; }
form.checkout_coupon .form-row-first { flex: 1; }
form.checkout_coupon p:not(.form-row) { display: none; }

/* ---------- Checkout & Cart blocks ---------- */
.wp-block-woocommerce-checkout, .wp-block-woocommerce-cart { color: var(--text); }
.wc-block-components-sidebar-layout { gap: 0 40px; }
.wc-block-components-main, .wc-block-components-sidebar { box-sizing: border-box; }
.wc-block-checkout__main .wc-block-components-checkout-step,
.wc-block-components-sidebar .wp-block-woocommerce-checkout-order-summary-block,
.wc-block-cart .wc-block-cart__totals-title + *, .wc-block-cart-items {
	border-radius: var(--radius); background: var(--surface); box-shadow: inset 0 0 0 1px var(--line);
}
.wc-block-checkout__main .wc-block-components-checkout-step { padding: 22px 22px 6px !important; margin-bottom: 14px !important; }
.wc-block-components-checkout-step__container::after, .wc-block-components-checkout-step::after { display: none !important; }
.wc-block-components-checkout-step__heading .wc-block-components-title { font-size: 20px !important; letter-spacing: -.03em; color: var(--text); }
.wc-block-components-checkout-step__title::before { display: none; }
.wc-block-components-checkout-step__description { color: var(--muted); }
.wp-block-woocommerce-checkout-order-summary-block { padding: 6px 20px 10px; }
.wc-block-components-order-summary-item__quantity { background: var(--lime) !important; color: var(--on-lime) !important; border: 0 !important; box-shadow: none !important; }
.wc-block-components-order-summary-item__image img { border-radius: 10px; }
.wc-block-components-totals-item__label, .wc-block-components-order-summary-item__description { color: var(--muted); }
.wc-block-components-totals-footer-item .wc-block-components-totals-item__value,
.wc-block-components-totals-footer-item .wc-block-components-totals-item__label { font-size: 20px !important; font-weight: 700 !important; color: var(--text); }
.wc-block-components-totals-footer-item .wc-block-components-totals-item__value { color: var(--lime); }
.wc-block-components-totals-wrapper, .wc-block-components-order-summary { border-color: var(--line) !important; }
.wc-block-components-text-input input, .wc-block-components-combobox .wc-block-components-combobox-control input,
.wc-blocks-components-select .wc-blocks-components-select__select, .wc-block-components-textarea {
	background: #0a0b0a !important; color: var(--text) !important; border: 0 !important; border-radius: 12px !important;
	box-shadow: inset 0 0 0 1px var(--line-2) !important; font-family: var(--font) !important;
}
.wc-block-components-text-input input:focus, .wc-blocks-components-select .wc-blocks-components-select__select:focus { box-shadow: inset 0 0 0 1.5px var(--lime), 0 0 0 4px rgba(140, 255, 0, .12) !important; }
.wc-block-components-text-input label, .wc-blocks-components-select__label, .wc-block-components-combobox label { color: var(--muted) !important; }
.wc-blocks-components-select__container { background: transparent !important; }
.wc-blocks-components-select__expand { fill: var(--muted) !important; }
.wc-block-components-radio-control__option, .wc-block-components-radio-control-accordion-option {
	background: #0a0b0a; border-radius: 14px !important; box-shadow: inset 0 0 0 1px var(--line-2) !important; margin-bottom: 8px;
}
.wc-block-components-radio-control__option-checked, .wc-block-components-radio-control-accordion-option--checked-option-highlighted { box-shadow: inset 0 0 0 1.5px var(--lime) !important; }
.wc-block-components-radio-control__input { border-color: var(--line-2) !important; background: #0a0b0a !important; }
.wc-block-components-radio-control__input:checked::before { background: var(--lime) !important; }
.wc-block-components-checkbox .wc-block-components-checkbox__input[type=checkbox] { background: #0a0b0a !important; border-color: var(--line-2) !important; }
.wc-block-components-checkbox .wc-block-components-checkbox__mark { fill: var(--lime) !important; }
.wc-block-checkout__terms, .wc-block-components-checkout-step__description, .wc-block-checkout__guest-checkout-notice { color: var(--muted); font-size: 13px; }
.wc-block-checkout__terms a { color: var(--text); }
.wc-block-components-panel__button, .wc-block-components-totals-coupon-link { color: var(--lime) !important; }
.wc-block-checkout__actions_row .wc-block-components-checkout-return-to-cart-button { color: var(--muted); }
.wc-block-components-product-name { color: var(--text) !important; font-weight: 600; text-decoration: none; }
.wc-block-components-product-metadata, .wc-block-components-product-price__regular { color: var(--muted); }
.wc-block-components-sale-badge { background: rgba(140, 255, 0, .12) !important; color: var(--lime) !important; border: 0 !important; border-radius: 6px !important; }
.wc-block-components-validation-error { color: var(--danger) !important; }
.wc-block-components-checkout-place-order-button__text { color: var(--on-lime); }

/* Cart block: hide quantity (sold individually) */
.wc-block-cart-item__quantity .wc-block-components-quantity-selector { display: none; }
.wc-block-cart-items { padding: 4px 20px; border-collapse: separate; }
.wc-block-cart-items th { color: var(--dim); }
.wc-block-cart-item__remove-link { color: var(--muted) !important; }

/* ---------- Classic cart ---------- */
.woocommerce-cart-form { padding: clamp(16px, 3vw, 28px); border-radius: var(--radius); background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); }
.woocommerce-cart .product-thumbnail img { width: 80px; border-radius: 10px; }
.woocommerce a.remove { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: rgba(255, 255, 255, .06); color: var(--muted) !important; text-decoration: none; font-size: 18px; }
.woocommerce a.remove:hover { background: var(--danger); color: #fff !important; }
.cart-collaterals { margin-top: 20px; }
.cart_totals { padding: clamp(16px, 3vw, 28px); border-radius: var(--radius); background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); max-width: 460px; margin-left: auto; }
.cart_totals h2 { margin-top: 0; font-size: 22px; }
.cart-empty.woocommerce-info { justify-content: center; }
.return-to-shop { text-align: center; }
.wc-block-cart__empty-cart__title, .wp-block-woocommerce-empty-cart-block h2 { color: var(--text); }

/* ---------- Order received ---------- */
.woocommerce-order { display: grid; gap: 24px; }
.woocommerce-thankyou-order-received {
	margin: 0; padding: 28px; border-radius: var(--radius); font-size: clamp(22px, 3vw, 30px); font-weight: 700; letter-spacing: -.03em;
	background: radial-gradient(100% 120% at 100% 0, rgba(140, 255, 0, .2), transparent 60%), linear-gradient(160deg, #102a12, #0a0d0a 70%);
	box-shadow: inset 0 0 0 1px rgba(140, 255, 0, .25);
}
.woocommerce-order-overview { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 10px; }
.woocommerce-order-overview li { padding: 16px; border-radius: var(--radius-sm); background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); color: var(--muted); font-size: 13px; }
.woocommerce-order-overview li strong { display: block; margin-top: 4px; color: var(--text); font-size: 16px; }
.woocommerce-order-downloads { padding: clamp(18px, 3vw, 28px); border-radius: var(--radius); background: var(--surface); box-shadow: inset 0 0 0 1.5px rgba(140, 255, 0, .45), 0 30px 60px -30px rgba(140, 255, 0, .35); }
.woocommerce-order-downloads__title { margin-top: 0; }
.woocommerce-order-downloads .woocommerce-MyAccount-downloads-file, .woocommerce-account .woocommerce-MyAccount-downloads-file { min-height: 44px; }
.woocommerce-order-details, .woocommerce-customer-details { padding: clamp(18px, 3vw, 28px); border-radius: var(--radius); background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); }
.woocommerce-order-details__title, .woocommerce-column__title { margin-top: 0; font-size: 20px; }
.woocommerce-customer-details address { font-style: normal; color: var(--muted); border: 0 !important; padding: 0 !important; }
.woocommerce-table--order-downloads td.download-file { text-align: right; }

/* ---------- My account ---------- */
.woocommerce-account .woocommerce { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 32px; align-items: start; }
.woocommerce-account .woocommerce > .woocommerce-notices-wrapper { grid-column: 1 / -1; }
.woocommerce-MyAccount-navigation ul { list-style: none; margin: 0; padding: 8px; border-radius: var(--radius); background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); }
.woocommerce-MyAccount-navigation a { display: block; padding: 11px 14px; border-radius: 12px; color: var(--muted); text-decoration: none; font-weight: 600; }
.woocommerce-MyAccount-navigation a:hover { color: var(--text); background: rgba(255, 255, 255, .04); }
.woocommerce-MyAccount-navigation .is-active a { background: var(--lime); color: var(--on-lime); font-weight: 700; }
.woocommerce-MyAccount-content { min-width: 0; }
.woocommerce-MyAccount-content a:not(.button) { color: var(--lime); }
.woocommerce-account:not(.logged-in) .woocommerce { display: block; max-width: 520px; }
.woocommerce form.login, .woocommerce form.register, .woocommerce form.lost_reset_password { padding: clamp(20px, 3vw, 30px); border-radius: var(--radius); background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); border: 0; margin: 0 0 20px; }
.woocommerce form.login .woocommerce-form-login__rememberme { display: flex; align-items: center; gap: 8px; color: var(--muted); margin-bottom: 14px; }
.woocommerce .lost_password a { color: var(--muted); }
#customer_login.col2-set { display: grid; gap: 20px; }
#customer_login .u-column1, #customer_login .u-column2 { width: 100%; float: none; }
@media (max-width: 760px) {
	.woocommerce-account .woocommerce { grid-template-columns: 1fr; gap: 18px; }
	.woocommerce-MyAccount-navigation ul { display: flex; overflow-x: auto; gap: 4px; scrollbar-width: none; }
	.woocommerce-MyAccount-navigation a { white-space: nowrap; }
}

/* ---------- Responsive tables ---------- */
@media (max-width: 640px) {
	.woocommerce table.shop_table_responsive thead { display: none; }
	.woocommerce table.shop_table_responsive tr { display: block; padding: 10px 0; border-bottom: 1px solid var(--line); }
	.woocommerce table.shop_table_responsive td { display: flex; justify-content: space-between; gap: 12px; padding: 6px 0; border: 0; text-align: right !important; }
	.woocommerce table.shop_table_responsive td::before { content: attr(data-title); color: var(--muted); font-weight: 600; text-align: left; }
}

/* Misc */
.woocommerce .blockUI.blockOverlay { background: rgba(5, 5, 5, .6) !important; }
.woocommerce-password-strength { margin-top: 6px; padding: 6px 10px; border-radius: 8px; font-size: 13px; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px, 1px, 1px, 1px); }

/* ---------- Review form (inside landing) ---------- */
.lw-write-review { margin-top: 14px; }
.lw-write-review #reviews .woocommerce-Reviews-title, .lw-write-review .commentlist, .lw-write-review .woocommerce-noreviews { display: none; }
.lw-write-review #reply-title { display: block; margin: 0 0 12px; font-weight: 600; color: var(--text); }
.lw-write-review .comment-form p { margin: 0 0 14px; }
.lw-write-review label { display: block; margin-bottom: 6px; color: var(--muted); font-size: 14px; }
.lw-write-review textarea, .lw-write-review input[type="text"], .lw-write-review input[type="email"] {
	width: 100%; padding: 12px 16px; border: 0; border-radius: 12px; background: #0a0b0a; color: var(--text); font: inherit;
	box-shadow: inset 0 0 0 1px var(--line-2);
}
.lw-write-review textarea:focus, .lw-write-review input:focus { outline: none; box-shadow: inset 0 0 0 1.5px var(--lime); }
.lw-write-review p.stars a { color: var(--lime); }
.lw-write-review .form-submit input[type="submit"] {
	min-height: 48px; padding: 0 24px; border: 0; border-radius: 999px; background: var(--lime); color: var(--on-lime); font: 700 16px var(--font); cursor: pointer;
}
.lw-write-review p.stars { margin: 0 0 14px; }
.lw-write-review p.stars span { display: inline-flex; gap: 4px; }
.lw-write-review p.stars a { position: relative; display: inline-block; width: 26px; height: 26px; overflow: hidden; text-indent: -999em; text-decoration: none; }
.lw-write-review p.stars a::before { content: "★"; position: absolute; inset: 0; text-indent: 0; font-size: 24px; line-height: 26px; color: rgba(255, 255, 255, .2); }
.lw-write-review p.stars:hover a::before, .lw-write-review p.stars.selected a::before { color: var(--lime); }
.lw-write-review p.stars a:hover ~ a::before, .lw-write-review p.stars.selected a.active ~ a::before { color: rgba(255, 255, 255, .2); }

/* Full custom: next step box on the order page */
.lw-nextstep { margin: 0 0 24px; padding: clamp(18px, 3vw, 28px); border-radius: var(--radius); background: radial-gradient(100% 120% at 100% 0, rgba(140, 255, 0, .18), transparent 60%), var(--surface); box-shadow: inset 0 0 0 1.5px rgba(140, 255, 0, .45); }
.lw-nextstep h2 { margin: 0 0 8px; font-size: 22px; letter-spacing: -.03em; }
.lw-nextstep p { color: #c9cec6; }

/* Withdrawal waiver checkbox (classic checkout) */
.lw-waiver { margin: 4px 0 14px !important; padding: 12px 14px; border-radius: 12px; background: rgba(140, 255, 0, .06); box-shadow: inset 0 0 0 1px rgba(140, 255, 0, .25); }
.lw-waiver label { display: flex !important; gap: 10px; align-items: flex-start; color: var(--text) !important; font-size: 13px !important; line-height: 1.45; cursor: pointer; }
.lw-waiver input { margin-top: 2px; accent-color: var(--lime); width: 16px; height: 16px; flex: none; }
.lw-waiver a { color: var(--lime); }
