/* ============================================================
   Carlton Foundation — Checkout Page Style Overrides
   Drop into Elementor > Site Settings > Custom CSS
   ============================================================ */

/* ---- 1. Fix header overlap / top cutoff ---------------------- */
.woocommerce-checkout main#content,
.woocommerce-checkout .page-content {
    padding-top: 140px;
    padding-bottom: 80px;
}
@media (max-width: 1024px) {
    .woocommerce-checkout main#content,
    .woocommerce-checkout .page-content {
        padding-top: 110px;
        padding-bottom: 60px;
    }
}
@media (max-width: 600px) {
    .woocommerce-checkout main#content,
    .woocommerce-checkout .page-content {
        padding-top: 90px;
        padding-bottom: 40px;
    }
}

/* ---- 2. Constrain width --------------------------------------- */
.woocommerce-checkout .wp-block-woocommerce-checkout {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ---- 3. Force two-column layout (fields left, summary right) - */
.woocommerce-checkout .wc-block-checkout.wc-block-components-sidebar-layout {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) 380px;
    gap: 48px;
    align-items: start;
}

.woocommerce-checkout .wc-block-checkout__main {
    grid-column: 1;
    max-width: none !important;
    width: 100% !important;
}

.woocommerce-checkout .wc-block-checkout__sidebar {
    grid-column: 2;
    max-width: none !important;
    width: 100% !important;
    position: sticky;
    top: 140px;
}

@media (max-width: 900px) {
    .woocommerce-checkout .wc-block-checkout.wc-block-components-sidebar-layout {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    .woocommerce-checkout .wc-block-checkout__sidebar {
        grid-column: 1;
        position: static;
    }
}

/* ---- 4. FONT — Albert Sans on all checkout elements (button excluded, it uses Muggsy) */
.woocommerce-checkout .wc-block-components-form,
.woocommerce-checkout .wc-block-components-form *,
.woocommerce-checkout .wc-block-components-title,
.woocommerce-checkout .wc-block-components-title *,
.woocommerce-checkout .wc-block-components-text-input,
.woocommerce-checkout .wc-block-components-text-input *,
.woocommerce-checkout .wc-block-components-select,
.woocommerce-checkout .wc-block-components-select *,
.woocommerce-checkout .wc-block-components-checkbox,
.woocommerce-checkout .wc-block-components-checkbox *,
.woocommerce-checkout .wc-block-components-radio-control,
.woocommerce-checkout .wc-block-components-radio-control *,
.woocommerce-checkout .wc-block-components-order-summary,
.woocommerce-checkout .wc-block-components-order-summary *,
.woocommerce-checkout .wc-block-components-totals-item,
.woocommerce-checkout .wc-block-components-totals-item *,
.woocommerce-checkout .wc-block-components-formatted-money-amount,
.woocommerce-checkout .wc-block-components-product-name,
.woocommerce-checkout .wc-block-components-product-metadata,
.woocommerce-checkout .wc-block-components-product-metadata *,
.woocommerce-checkout .wc-block-components-panel__button,
.woocommerce-checkout .wc-block-components-totals-coupon-link,
.woocommerce-checkout .wc-block-components-address-form,
.woocommerce-checkout .wc-block-components-address-form *,
.woocommerce-checkout .wc-block-components-country-input,
.woocommerce-checkout .wc-block-components-state-input,
.woocommerce-checkout .wc-block-components-validation-error,
.woocommerce-checkout .wc-block-components-notice-banner,
.woocommerce-checkout .wc-block-components-notice-banner *,
.woocommerce-checkout .wp-block-woocommerce-checkout-contact-information-block,
.woocommerce-checkout .wp-block-woocommerce-checkout-contact-information-block *,
.woocommerce-checkout .wp-block-woocommerce-checkout-shipping-address-block,
.woocommerce-checkout .wp-block-woocommerce-checkout-shipping-address-block *,
.woocommerce-checkout .wp-block-woocommerce-checkout-billing-address-block,
.woocommerce-checkout .wp-block-woocommerce-checkout-billing-address-block *,
.woocommerce-checkout .wp-block-woocommerce-checkout-payment-block,
.woocommerce-checkout .wp-block-woocommerce-checkout-payment-block *,
.woocommerce-checkout .wp-block-woocommerce-checkout-order-note-block,
.woocommerce-checkout .wp-block-woocommerce-checkout-order-note-block *,
.woocommerce-checkout .wp-block-woocommerce-checkout-terms-block,
.woocommerce-checkout .wp-block-woocommerce-checkout-terms-block *,
.woocommerce-checkout .wc-block-checkout__actions__return label,
.woocommerce-checkout .wc-block-components-checkout-return-to-cart-button {
    font-family: var(--font-albert-sans), sans-serif !important;
}

/* ---- 5. Section headings (Contact info, Shipping address, Payment, etc.) */
.woocommerce-checkout .wc-block-components-title,
.woocommerce-checkout h2.wc-block-components-title,
.woocommerce-checkout .wc-block-components-checkout-step__title {
    color: #0c2b3f;
    font-weight: 700;
    font-size: 22px;
    margin-bottom: 16px;
}

/* Order summary heading */
.woocommerce-checkout .wp-block-woocommerce-checkout-order-summary-block h2 {
    text-transform: uppercase;
    font-size: 14px;
    letter-spacing: 0.08em;
    padding-bottom: 16px;
    border-bottom: 2px solid #0c2b3f;
    color: #0c2b3f;
}

/* ---- 6. Form inputs ----------------------------------------- */
.woocommerce-checkout .wc-block-components-text-input input,
.woocommerce-checkout .wc-block-components-select select,
.woocommerce-checkout .wc-block-components-country-input input,
.woocommerce-checkout .wc-block-components-state-input input {
    border: 1px solid #d5d5d5 !important;
    border-radius: 10px !important;
    padding: 14px 16px !important;
    font-size: 16px !important;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.woocommerce-checkout .wc-block-components-text-input input:focus,
.woocommerce-checkout .wc-block-components-select select:focus,
.woocommerce-checkout .wc-block-components-country-input input:focus,
.woocommerce-checkout .wc-block-components-state-input input:focus {
    border-color: #0c2b3f !important;
    box-shadow: 0 0 0 3px rgba(12, 43, 63, 0.12) !important;
    outline: none !important;
}

.woocommerce-checkout .wc-block-components-text-input label,
.woocommerce-checkout .wc-block-components-select label {
    color: #5a5a5a;
}

/* Checkboxes / radios */
.woocommerce-checkout .wc-block-components-checkbox__input,
.woocommerce-checkout .wc-block-components-radio-control__input {
    accent-color: #0c2b3f;
}

/* ---- 7. Order summary card ---------------------------------- */
.woocommerce-checkout .wp-block-woocommerce-checkout-totals-block {
    background: #ffffff;
    border: 1px solid #e5e5e5;
    border-radius: 16px;
    padding: 28px;
    box-shadow: 0 2px 8px rgba(12, 43, 63, 0.04);
}

.woocommerce-checkout .wc-block-components-order-summary-item {
    padding: 16px 0;
    border-bottom: 1px solid #eee;
}

.woocommerce-checkout .wc-block-components-order-summary-item:last-child {
    border-bottom: none;
}

.woocommerce-checkout .wc-block-components-order-summary-item__image img,
.woocommerce-checkout .wc-block-components-order-summary-item__thumbnail img {
    border-radius: 10px;
}

.woocommerce-checkout .wc-block-components-product-name {
    color: #0c2b3f;
    font-weight: 600;
}

.woocommerce-checkout .wc-block-components-totals-item {
    padding: 10px 0;
}

.woocommerce-checkout .wc-block-components-totals-footer-item,
.woocommerce-checkout .wc-block-components-totals-footer-item .wc-block-components-totals-item__value {
    font-size: 18px;
    font-weight: 700;
    color: #0c2b3f;
    border-top: 2px solid #0c2b3f;
    padding-top: 16px;
    margin-top: 8px;
}

/* ---- 8. Express checkout & payment methods ------------------ */
.woocommerce-checkout .wp-block-woocommerce-checkout-express-payment-block {
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #e5e5e5;
}

.woocommerce-checkout .wc-block-components-checkout-payment-options__label,
.woocommerce-checkout .wc-block-components-express-payment__title-container {
    color: #0c2b3f;
    font-weight: 600;
}

.woocommerce-checkout .wc-block-components-express-payment__event-buttons > li > button,
.woocommerce-checkout .wc-block-components-express-payment__event-buttons button {
    border-radius: 12px !important;
}

/* Payment method radio cards */
.woocommerce-checkout .wc-block-components-payment-method-label {
    color: #0c2b3f;
    font-weight: 600;
}

.woocommerce-checkout .wc-block-components-payment-methods__container,
.woocommerce-checkout .wc-block-components-radio-control__option {
    border-radius: 10px;
}

/* ---- 9. Place Order button (Muggsy, matches Contact Us) ------
   Contact Us uses #0c2b3f navy bg, white text, Muggsy font, rounded.
   Hover inverts to white bg + navy text.

   Higher specificity selectors to beat the Albert Sans rule in
   section 4 that matches all form descendants.
---------------------------------------------------------------- */
.woocommerce-checkout .wp-block-woocommerce-checkout .wc-block-components-checkout-place-order-button,
.woocommerce-checkout .wp-block-woocommerce-checkout button.wc-block-components-checkout-place-order-button,
.woocommerce-checkout .wp-block-woocommerce-checkout .wp-block-woocommerce-checkout-actions-block button,
.woocommerce-checkout .wc-block-components-checkout-place-order-button,
.woocommerce-checkout button.wc-block-components-checkout-place-order-button,
.woocommerce-checkout .wp-block-woocommerce-checkout-actions-block button {
    background: #0c2b3f !important;
    color: #ffffff !important;
    border: 2px solid #0c2b3f !important;
    border-radius: 12px !important;
    padding: 16px 32px !important;
    font-family: "Muggsy", sans-serif !important;
    font-weight: 600 !important;
    font-size: 18px !important;
    letter-spacing: normal !important;
    text-transform: none !important;
    width: 100% !important;
    text-align: center !important;
    transition: all 0.2s ease !important;
    box-shadow: 0 2px 4px rgba(12, 43, 63, 0.15) !important;
    cursor: pointer;
}

.woocommerce-checkout .wp-block-woocommerce-checkout .wc-block-components-checkout-place-order-button:hover,
.woocommerce-checkout .wp-block-woocommerce-checkout .wp-block-woocommerce-checkout-actions-block button:hover,
.woocommerce-checkout .wc-block-components-checkout-place-order-button:hover,
.woocommerce-checkout button.wc-block-components-checkout-place-order-button:hover,
.woocommerce-checkout .wp-block-woocommerce-checkout-actions-block button:hover {
    background: #ffffff !important;
    color: #0c2b3f !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(12, 43, 63, 0.2) !important;
}

/* The inner text span on the button — force Muggsy explicitly
   (not just inherit) to beat the Albert Sans rule from section 4 */
.woocommerce-checkout .wp-block-woocommerce-checkout .wc-block-components-checkout-place-order-button .wc-block-components-button__text,
.woocommerce-checkout .wc-block-components-checkout-place-order-button .wc-block-components-button__text,
.woocommerce-checkout .wp-block-woocommerce-checkout-actions-block button .wc-block-components-button__text {
    font-family: "Muggsy", sans-serif !important;
    font-size: inherit !important;
    font-weight: inherit !important;
    text-transform: inherit !important;
    letter-spacing: inherit !important;
    color: inherit !important;
}

/* Return to cart link */
.woocommerce-checkout .wc-block-components-checkout-return-to-cart-button {
    color: #0c2b3f !important;
    font-weight: 600;
    text-decoration: none;
}

.woocommerce-checkout .wc-block-components-checkout-return-to-cart-button:hover {
    text-decoration: underline;
}

/* ---- 10. Checkout step separators --------------------------- */
.woocommerce-checkout .wc-block-checkout__main > * {
    margin-bottom: 32px;
}

/* ---- 11. Mobile tweaks -------------------------------------- */
@media (max-width: 900px) {
    .woocommerce-checkout .wp-block-woocommerce-checkout-totals-block {
        padding: 20px;
    }
}
	
	
	#content > div > div > div.wc-block-components-sidebar-layout.wc-block-checkout.is-large > div.wc-block-components-main.wc-block-checkout__main.wp-block-woocommerce-checkout-fields-block > form > div.wc-block-checkout__actions.wp-block-woocommerce-checkout-actions-block > div.wc-block-checkout__actions_row > button > div > div {font-family: "Muggsy", Sans-serif !important; }
