/* Mongkung Menu — WooCommerce cart, checkout and order confirmation (dark).
   Covers both the Checkout/Cart blocks (.wc-block-components-*) and the
   classic shortcode templates (.woocommerce-*). */

/* ---- Container ---- */
.woocommerce-account .woocommerce,
.woocommerce-cart .woocommerce,
.woocommerce-checkout .woocommerce,
.wc-block-checkout,
.wc-block-cart {
	color-scheme: dark;
}

/* Shared card treatment for the main checkout/cart surfaces. */
.woocommerce-checkout-review-order,
.wc-block-components-order-meta,
.woocommerce-cart-form,
.cart_totals,
.woocommerce-order-overview,
.woocommerce-order-details,
.woocommerce-customer-details {
	background: var(--wp--preset--color--surface);
	border: 1px solid var(--wp--preset--color--border);
	border-radius: var(--wp--preset--radius--md);
	padding: 1rem;
}

/* ---- Form controls ---- */
.woocommerce input[type="text"],
.woocommerce input[type="tel"],
.woocommerce input[type="email"],
.woocommerce input[type="password"],
.woocommerce input[type="search"],
.woocommerce input[type="url"],
.woocommerce input[type="number"],
.woocommerce textarea,
.woocommerce select,
.wc-block-components-text-input input,
.wc-block-components-textarea {
	width: 100%;
	padding: 0.625rem 0.75rem;
	background: var(--wp--preset--color--surface-raised);
	color: var(--wp--preset--color--text);
	border: 1px solid var(--wp--preset--color--border);
	border-radius: var(--wp--preset--radius--sm);
	font: inherit;
}

.woocommerce input::placeholder,
.wc-block-components-text-input input::placeholder {
	color: var(--wp--preset--color--muted);
}

.woocommerce input:focus,
.woocommerce textarea:focus,
.woocommerce select:focus,
.wc-block-components-text-input input:focus,
.wc-block-components-textarea:focus {
	border-color: var(--wp--preset--color--primary);
	box-shadow: 0 0 0 1px var(--wp--preset--color--primary);
	outline: none;
}

.woocommerce form .form-row label,
.wc-block-components-text-input label {
	font-weight: 600;
}

.woocommerce input[type="radio"],
.woocommerce input[type="checkbox"] {
	accent-color: var(--wp--preset--color--primary);
}

/* Block checkout/cart: WC's own CSS loads after this file and paints inputs
   white (its active/autofill states outrank equal selectors), so colors are
   forced here — same approach as the buttons below. */
.wc-block-checkout .wc-block-components-text-input input,
.wc-block-checkout .wc-block-components-textarea,
.wc-block-cart .wc-block-components-text-input input {
	background: var(--wp--preset--color--surface-raised) !important;
	color: var(--wp--preset--color--text) !important;
}

.wc-block-checkout .wc-block-components-text-input .wc-block-components-text-input__wrapper,
.wc-block-cart .wc-block-components-text-input .wc-block-components-text-input__wrapper {
	background: var(--wp--preset--color--surface-raised);
	border-color: var(--wp--preset--color--border);
}

/* Floating labels ride on the input as white chips in WC — match our input. */
.wc-block-checkout .wc-block-components-text-input label,
.wc-block-cart .wc-block-components-text-input label {
	color: var(--wp--preset--color--muted) !important;
	background: var(--wp--preset--color--surface-raised) !important;
}

.wc-block-checkout .wc-block-components-text-input input::placeholder,
.wc-block-checkout .wc-block-components-textarea::placeholder {
	color: var(--wp--preset--color--muted);
}

/* Autofill keeps WC's white flash away. */
.wc-block-checkout .wc-block-components-text-input input:-webkit-autofill,
.wc-block-cart .wc-block-components-text-input input:-webkit-autofill {
	-webkit-box-shadow: 0 0 0 1000px var(--wp--preset--color--surface-raised) inset;
	-webkit-text-fill-color: var(--wp--preset--color--text);
}

/* Country/state dropdowns: dark container, theme border. WC dims the
   selected value with its placeholder gray — force the full text color. */
.wc-block-checkout .wc-blocks-components-select__container,
.wc-block-cart .wc-blocks-components-select__container {
	background: var(--wp--preset--color--surface-raised) !important;
	color: var(--wp--preset--color--text) !important;
	border: 1px solid var(--wp--preset--color--border) !important;
	border-radius: var(--wp--preset--radius--sm);
}

.wc-block-checkout .wc-blocks-components-select__select,
.wc-block-cart .wc-blocks-components-select__select {
	color: var(--wp--preset--color--text);
}

/* Country select sits tight under the name row — give it breathing room. */
.wc-block-checkout__form .wc-block-components-address-form__country .wc-blocks-components-select {
	margin-top: 0.7rem;
}

/* Classic select2 dropdowns. */
.select2-container--default .select2-selection--single {
	background: var(--wp--preset--color--surface-raised);
	border: 1px solid var(--wp--preset--color--border);
	border-radius: var(--wp--preset--radius--sm);
	height: 2.5rem;
}

.select2-container--default .select2-selection--single .select2-selection__rendered {
	color: var(--wp--preset--color--text);
	line-height: 2.5rem;
}

.select2-container--default .select2-selection--single .select2-selection__arrow b {
	border-color: var(--wp--preset--color--muted) transparent transparent;
}

.select2-dropdown {
	background: var(--wp--preset--color--surface);
	border: 1px solid var(--wp--preset--color--border);
	color: var(--wp--preset--color--text);
}

.select2-results__option--highlighted {
	background: var(--wp--preset--color--surface-raised) !important;
	color: var(--wp--preset--color--text) !important;
}

/* ---- Buttons (amber + dark ink; !important beats WC defaults) ---- */
.woocommerce #place_order,
.woocommerce button.button,
.woocommerce a.button,
.woocommerce input.button,
.wc-block-components-button,
.wc-block-cart__submit-button,
.wc-block-components-checkout-return-to-cart-button {
	background: var(--wp--preset--color--primary) !important;
	color: var(--wp--preset--color--background) !important;
	border: 0 !important;
	border-radius: var(--wp--preset--radius--sm) !important;
	font-weight: 600;
	text-shadow: none;
}

.woocommerce #place_order:hover,
.woocommerce button.button:hover,
.woocommerce a.button:hover,
.woocommerce input.button:hover,
.wc-block-components-button:hover {
	background: var(--wp--preset--color--primary-dark) !important;
	color: var(--wp--preset--color--background) !important;
}

.woocommerce a.button.alt:disabled,
.woocommerce button.button:disabled,
.wc-block-components-button[disabled],
.wc-block-components-button[aria-disabled="true"] {
	opacity: 0.5;
	cursor: default;
}

/* ---- Notices ---- */
.woocommerce-message,
.woocommerce-info,
.woocommerce-error,
.wc-block-components-notice-banner {
	background: var(--wp--preset--color--surface) !important;
	color: var(--wp--preset--color--text) !important;
	border: 1px solid var(--wp--preset--color--border);
	border-left: 3px solid var(--wp--preset--color--primary);
	border-radius: var(--wp--preset--radius--sm);
}

.woocommerce-error,
.wc-block-components-notice-banner.is-error {
	border-left-color: var(--wp--preset--color--danger) !important;
}

.woocommerce-message,
.wc-block-components-notice-banner.is-success {
	border-left-color: var(--wp--preset--color--success) !important;
}

.wc-block-components-notice-banner > .wc-block-components-notice-banner__content {
	color: var(--wp--preset--color--text) !important;
}

/* ---- Order review / totals ---- */
.woocommerce-checkout-review-order-table,
.woocommerce-checkout-review-order-table tfoot,
.shop_table,
.wc-block-components-order-details {
	border-color: var(--wp--preset--color--border);
}

.woocommerce-checkout-review-order-table th,
.woocommerce-checkout-review-order-table td,
.shop_table th,
.shop_table td {
	border-color: var(--wp--preset--color--border) !important;
}

/* Quantity badge in the order summary: WC paints the circle light but
   leaves the number white — put dark ink on it (both cart and thank-you). */
.wc-block-components-order-summary-item__quantity span {
	color: var(--wp--preset--color--background) !important;
	font-weight: 700;
}

/* ---- Payment methods ---- */
.wc_payment_methods,
.wc-block-components-payment-methods {
	background: var(--wp--preset--color--surface-raised);
	border: 1px solid var(--wp--preset--color--border);
	border-radius: var(--wp--preset--radius--md);
	padding: 0.75rem 1rem;
	list-style: none;
}

.payment_box {
	background: var(--wp--preset--color--surface);
	border-radius: var(--wp--preset--radius--sm);
	padding: 0.75rem;
}

/* ---- Cart page ---- */
.woocommerce a.remove {
	color: var(--wp--preset--color--danger);
}

.woocommerce a.remove:hover {
	background: var(--wp--preset--color--danger);
	color: var(--wp--preset--color--text);
}

/* ---- Thank-you page ---- */
.woocommerce-thankyou-order-received {
	color: var(--wp--preset--color--success);
	font-weight: 700;
}