/*
 * CHINMIG look for the WooCommerce cart, checkout and account pages.
 * Appearance only: nothing here changes what the form does. The form itself sits on a light panel
 * so the card fields supplied by the payment provider stay readable.
 */

/* ---- Page chrome: hide the theme's header and footer, use the CHINMIG ones ---- */
body.cmu-woo { background: radial-gradient(120% 60% at 50% 0%, #33204a 0%, #23152f 34%, #0c0b13 76%) #0c0b13 fixed; color: #f4efe6; padding-bottom: calc(var(--tab-h) + var(--safe-b)); }
body.cmu-woo.cmu-woo--checkout { padding-bottom: 0; }
body.cmu-woo .et-l--header, body.cmu-woo #main-header, body.cmu-woo #top-header, body.cmu-woo #main-footer, body.cmu-woo .et-l--footer, body.cmu-woo #sidebar, body.cmu-woo #et-top-navigation { display: none !important; }
body.cmu-woo #page-container { padding-top: 0 !important; margin-top: 0 !important; background: transparent; overflow: visible; }
body.cmu-woo #et-main-area, body.cmu-woo #main-content { background: transparent; }
body.cmu-woo #main-content { padding: calc(var(--top-h) + 26px) 0 64px; }
body.cmu-woo #main-content .container { width: min(100% - 32px, 1080px); max-width: none; padding-top: 0 !important; }
body.cmu-woo #main-content .container::before { display: none; }
body.cmu-woo #left-area { width: 100% !important; float: none; padding: 0 !important; }
body.cmu-woo.admin-bar .cm-top { top: 32px; }
@media (max-width: 782px) { body.cmu-woo.admin-bar .cm-top { top: 46px; } }

/* ---- The light panel that holds the WooCommerce content ---- */
body.cmu-woo #left-area > article {
	background: linear-gradient(180deg, #f8efdd, #ecdcc0); color: #2a1c30; border-radius: 28px; border: 1px solid #c9a56a;
	box-shadow: 0 0 0 6px rgba(201, 165, 106, .1), 0 40px 80px -40px #000; padding: 26px 18px 30px; margin: 0;
	font-family: "Jost", "Segoe UI", system-ui, sans-serif; font-size: 16px; line-height: 1.55;
}
@media (min-width: 782px) { body.cmu-woo #left-area > article { padding: 44px 48px 48px; } }
body.cmu-woo #left-area > article .entry-title, body.cmu-woo #left-area > article h1 {
	font: 500 clamp(2.1rem, 6vw, 3rem)/1.05 "Cormorant Garamond", Georgia, serif; color: #2a1c30; text-align: center; padding: 0; margin: 0 0 22px;
}
body.cmu-woo #left-area > article .entry-title::before { content: "CHINMIG"; display: block; font: 500 .72rem/1 "Jost", sans-serif; letter-spacing: .26em; color: #8a6326; margin-bottom: 12px; }
body.cmu-woo #left-area > article h2, body.cmu-woo #left-area > article h3, body.cmu-woo .wc-block-components-title, body.cmu-woo .wc-block-components-checkout-step__title, body.cmu-woo .wc-block-cart__totals-title {
	font-family: "Cormorant Garamond", Georgia, serif !important; font-weight: 500 !important; color: #2a1c30; letter-spacing: 0;
}
body.cmu-woo .wc-block-components-checkout-step__title, body.cmu-woo .wc-block-components-title { font-size: 1.5rem !important; }
body.cmu-woo #left-area > article a { color: #8a6326; }
body.cmu-woo #left-area > article, body.cmu-woo #left-area > article p, body.cmu-woo #left-area > article label, body.cmu-woo #left-area > article td, body.cmu-woo #left-area > article th, body.cmu-woo #left-area > article span, body.cmu-woo #left-area > article li { font-family: "Jost", "Segoe UI", system-ui, sans-serif; }
body.cmu-woo #left-area > article p { color: inherit; }

/* ---- Buttons ---- */
body.cmu-woo .wc-block-components-button:not(.is-link), body.cmu-woo .wc-block-cart__submit-button, body.cmu-woo .wc-block-components-checkout-place-order-button,
body.cmu-woo .woocommerce a.button, body.cmu-woo .woocommerce button.button, body.cmu-woo .woocommerce input.button, body.cmu-woo .wp-element-button {
	background: linear-gradient(135deg, #f0ddb0, #c9a56a 55%, #b08a4b) !important; color: #1c1322 !important; border: 0 !important; border-radius: 999px !important;
	min-height: 54px; padding: 0 28px !important; font: 500 .84rem/1 "Jost", sans-serif !important; letter-spacing: .16em; text-transform: uppercase;
	box-shadow: 0 10px 26px -12px rgba(142, 108, 56, .9); transition: transform .2s, box-shadow .2s; text-decoration: none !important;
}
body.cmu-woo .wc-block-components-button:not(.is-link):hover, body.cmu-woo .woocommerce a.button:hover, body.cmu-woo .woocommerce button.button:hover { transform: translateY(-1px); box-shadow: 0 14px 30px -12px rgba(142, 108, 56, 1); }
body.cmu-woo .wc-block-components-button:not(.is-link)::after, body.cmu-woo .woocommerce a.button::after, body.cmu-woo .woocommerce button.button::after { display: none !important; }
body.cmu-woo .wc-block-components-button:not(.is-link) .wc-block-components-button__text { font: inherit; letter-spacing: inherit; }
body.cmu-woo .wc-block-components-button:not(.is-link):disabled { opacity: .6; }

/* ---- Fields ---- */
body.cmu-woo .wc-block-components-text-input input, body.cmu-woo .wc-block-components-textarea, body.cmu-woo .wc-blocks-components-select__select, body.cmu-woo .wc-block-components-combobox .wc-block-components-combobox-control input,
body.cmu-woo .woocommerce form .form-row input.input-text, body.cmu-woo .woocommerce form .form-row textarea, body.cmu-woo .woocommerce form .form-row select {
	border-radius: 12px !important; border: 1px solid rgba(42, 28, 48, .28) !important; background: #fffaf0 !important; color: #2a1c30 !important; font-family: "Jost", sans-serif !important; font-size: 16px !important;
}
body.cmu-woo .wc-block-components-text-input input:focus, body.cmu-woo .wc-blocks-components-select__select:focus, body.cmu-woo .woocommerce form .form-row input.input-text:focus {
	border-color: #8a6326 !important; box-shadow: 0 0 0 3px rgba(201, 165, 106, .35) !important; outline: none;
}
body.cmu-woo .wc-block-components-checkbox .wc-block-components-checkbox__input[type="checkbox"] { border-radius: 6px; border-color: rgba(42, 28, 48, .45); }
body.cmu-woo .wc-block-components-checkbox .wc-block-components-checkbox__input[type="checkbox"]:checked { background: #2a1c30; border-color: #2a1c30; }

/* ---- Panels inside the form ---- */
body.cmu-woo .wc-block-components-sidebar .wc-block-components-panel, body.cmu-woo .wc-block-checkout__sidebar .wc-block-components-totals-wrapper, body.cmu-woo .wp-block-woocommerce-checkout-order-summary-block,
body.cmu-woo .wc-block-cart__sidebar .wc-block-components-sidebar, body.cmu-woo .wp-block-woocommerce-cart-order-summary-block { border-color: rgba(42, 28, 48, .16) !important; }
body.cmu-woo .wp-block-woocommerce-checkout-order-summary-block, body.cmu-woo .wc-block-cart__sidebar > .wc-block-components-sidebar, body.cmu-woo .wp-block-woocommerce-cart-totals-block {
	background: rgba(255, 255, 255, .5); border-radius: 20px !important; border: 1px solid rgba(42, 28, 48, .16) !important;
}
body.cmu-woo .wc-block-components-radio-control-accordion-option, body.cmu-woo .wc-block-components-radio-control__option { border-radius: 12px; }
body.cmu-woo .wc-block-components-totals-footer-item .wc-block-components-totals-item__value, body.cmu-woo .wc-block-components-totals-footer-item .wc-block-components-totals-item__label { font-family: "Cormorant Garamond", Georgia, serif !important; font-size: 1.5rem; }
body.cmu-woo .wc-block-components-product-name { font-family: "Cormorant Garamond", Georgia, serif !important; font-size: 1.2rem; color: #2a1c30 !important; text-decoration: none; }
body.cmu-woo .wc-block-cart-items, body.cmu-woo .wc-block-cart-items th, body.cmu-woo .wc-block-cart-items td { border-color: rgba(42, 28, 48, .16) !important; }
body.cmu-woo .wc-block-components-notice-banner, body.cmu-woo .woocommerce-message, body.cmu-woo .woocommerce-info, body.cmu-woo .woocommerce-error { border-radius: 14px; }
body.cmu-woo .wc-block-cart__empty-cart__title, body.cmu-woo .wp-block-woocommerce-empty-cart-block h2 { font-family: "Cormorant Garamond", Georgia, serif !important; }

/* ---- The CHINMIG top bar and footer on these pages ---- */
.cm-chrome { font-family: var(--sans); font-size: 1.0625rem; line-height: 1.6; color: var(--ivory); }
.cm-chrome p, .cm-chrome h2 { padding: 0; margin: 0; }
.cm-chrome ul { list-style: none; padding: 0; margin: 0; }
.cm-chrome a { text-decoration: none; }
.cm-chrome .cm-top { background: rgba(12, 11, 19, .82); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); border-bottom: 1px solid var(--line-soft); }
.cm-chrome .cm-foot__col h2 { color: var(--gold); }
.cm-chrome .cm-sheet__title { color: var(--ivory); }

/* ---- Small corrections found while testing on the real pages ---- */
body.cmu-woo .wc-block-components-express-payment ul, body.cmu-woo .wc-block-components-express-payment__event-buttons { list-style: none !important; padding-left: 0 !important; margin-left: 0 !important; }
body.cmu-woo .wc-block-components-express-payment li { list-style: none !important; }
body.cmu-woo .wp-block-woocommerce-cart-totals-block { padding: 18px 16px; }
body.cmu-woo .wc-block-cart__totals-title { padding: 0 0 8px; }

/* ---- Ordinary pages (privacy policies, contact, cards…) inside the light panel ---- */
body.cmu-woo #left-area > article .entry-content { color: #2a1c30; }
body.cmu-woo #left-area > article .entry-content h2 { font-size: 1.7rem; line-height: 1.2; padding: 0; margin: 1.3em 0 .5em; }
body.cmu-woo #left-area > article .entry-content h3 { font-size: 1.35rem; line-height: 1.25; padding: 0; margin: 1.2em 0 .4em; }
body.cmu-woo #left-area > article .entry-content p { padding-bottom: .9em; }
body.cmu-woo #left-area > article .entry-content ul, body.cmu-woo #left-area > article .entry-content ol { padding: 0 0 .9em 1.3em; line-height: 1.6; }
body.cmu-woo #left-area > article .entry-content li { margin-bottom: .3em; }
body.cmu-woo #left-area > article .entry-content code { background: rgba(42, 28, 48, .08); padding: 2px 6px; border-radius: 6px; font-size: .92em; color: #2a1c30; }
body.cmu-woo #left-area > article .entry-content table { border-color: rgba(42, 28, 48, .2); }
body.cmu-woo #left-area > article .entry-content img { border-radius: 14px; }
body.cmu-woo #left-area > article .entry-content hr { border: 0; border-top: 1px solid rgba(42, 28, 48, .18); margin: 1.6em 0; }
body.cmu-woo .wpforms-container button[type="submit"], body.cmu-woo .wpforms-container .wpforms-submit {
	background: linear-gradient(135deg, #f0ddb0, #c9a56a 55%, #b08a4b) !important; color: #1c1322 !important; border: 0 !important; border-radius: 999px !important;
	min-height: 52px; padding: 0 30px !important; font: 500 .84rem/1 "Jost", sans-serif !important; letter-spacing: .16em; text-transform: uppercase;
}
body.cmu-woo .wpforms-container input[type="text"], body.cmu-woo .wpforms-container input[type="email"], body.cmu-woo .wpforms-container textarea, body.cmu-woo .wpforms-container select {
	border-radius: 12px !important; border: 1px solid rgba(42, 28, 48, .28) !important; background: #fffaf0 !important; color: #2a1c30 !important; font-size: 16px !important;
}
