/* Joci Sushi checkout: existing logo/navigation with a warm, legible order form. */

body.jc-checkout-page .article__header--page { display: none !important; }
body.jc-checkout-page .c-bully { display: none !important; }
body.jc-checkout-page .article--main,
body.jc-checkout-page .article--main > .article__content { background: #f6f1e9 !important; }
body.jc-checkout-page .article--main { padding-top: 126px; }
body.jc-checkout-page .article--main > .article__content { padding: 54px 0 76px !important; }
body.jc-checkout-page .article--main > .article__content > .container {
    box-sizing: border-box;
    width: 100% !important;
    max-width: 1192px !important;
    margin: 0 auto !important;
    padding: 0 36px !important;
}
body.jc-checkout-page .page__content {
    float: none;
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
    color: #211d1b;
    font-family: "Cabin", Arial, sans-serif;
    font-size: 14px;
    line-height: 1.75;
    text-align: left;
}
body.jc-checkout-page .page__content *,
body.jc-checkout-page .page__content *::before,
body.jc-checkout-page .page__content *::after { box-sizing: border-box; }
body.jc-checkout-page .page__content h1,
body.jc-checkout-page .page__content h2,
body.jc-checkout-page .page__content h3 {
    color: #211d1b;
    font-family: Georgia, serif;
    font-weight: 500;
    letter-spacing: -.015em;
    text-transform: none;
}
body.jc-checkout-page .jc-order-intro { margin: 0 0 28px; padding-bottom: 28px; border-bottom: 1px solid #dfd3c4; }
body.jc-checkout-page .jc-order-intro__top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 22px;
}
body.jc-checkout-page .jc-order-eyebrow {
    margin: 0;
    color: #8b6240;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .18em;
    text-transform: uppercase;
}
body.jc-checkout-page .jc-order-menu {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    min-height: 44px;
    color: #8c672f;
    font-size: 12px;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
}
body.jc-checkout-page .jc-order-intro h1 {
    margin: 0 0 12px;
    font-size: clamp(42px, 5vw, 64px);
    line-height: 1.03;
}
body.jc-checkout-page .jc-order-lead { margin: 0; color: #746d67; font-size: 14px; }
body.jc-checkout-page .woocommerce .woocommerce-info,
body.jc-checkout-page .woocommerce .woocommerce-message,
body.jc-checkout-page .woocommerce .woocommerce-error {
    margin: 0 0 24px !important;
    padding: 18px 20px 18px 46px !important;
    border: 1px solid #dfd3c4;
    border-left: 3px solid #b18a54;
    border-radius: 6px;
    background: #fffdfa !important;
    color: #514840;
    font-size: 13px;
    line-height: 1.7;
    overflow-wrap: anywhere;
}
body.jc-checkout-page .woocommerce .woocommerce-error { border-left-color: #a52f38; color: #8a2932; }
body.jc-checkout-page .woocommerce .woocommerce-error li { margin: 0; }
body.jc-checkout-page .woocommerce .woocommerce-info::before,
body.jc-checkout-page .woocommerce .woocommerce-message::before,
body.jc-checkout-page .woocommerce .woocommerce-error::before { top: 19px; left: 18px; color: #9b7a55; }
body.jc-checkout-page .woocommerce .woocommerce-info a,
body.jc-checkout-page .woocommerce .woocommerce-message a,
body.jc-checkout-page .woocommerce .woocommerce-error a { color: #8c672f; text-underline-offset: 3px; }
body.jc-checkout-page form.checkout { margin: 28px 0 0; }
body.jc-checkout-page #customer_details { min-width: 0; width: 100%; }
body.jc-checkout-page #customer_details > .col-1,
body.jc-checkout-page #customer_details > .col-2 { float: none !important; width: 100% !important; margin: 0; padding: 0; }
body.jc-checkout-page .woocommerce-billing-fields,
body.jc-checkout-page .woocommerce-additional-fields,
body.jc-checkout-page #order_review {
    min-width: 0;
    padding: 28px;
    border: 1px solid #dfd3c4;
    border-radius: 6px;
    background: #fffdfa;
    box-shadow: 0 10px 30px rgba(45,35,30,.035);
}
body.jc-checkout-page .woocommerce-additional-fields { margin-top: 24px; }
body.jc-checkout-page #customer_details h3,
body.jc-checkout-page #order_review_heading { margin: 0 0 22px; font-size: 32px; line-height: 1.15; }
body.jc-checkout-page #order_review_heading { margin-top: 30px; }
body.jc-checkout-page .woocommerce-billing-fields__field-wrapper {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px 16px;
}
body.jc-checkout-page form .form-row {
    float: none !important;
    width: 100% !important;
    min-width: 0;
    margin: 0;
    padding: 0;
}
body.jc-checkout-page .woocommerce-billing-fields__field-wrapper .form-row-wide { grid-column: 1 / -1; }
body.jc-checkout-page form .form-row label {
    display: block;
    margin: 0 0 8px;
    color: #514840;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.6;
    letter-spacing: 0;
    text-transform: none;
}
body.jc-checkout-page form .form-row .optional { color: #746d67; font-size: 10px; font-weight: 400; }
body.jc-checkout-page .woocommerce-input-wrapper { display: block; }
body.jc-checkout-page .page__content input.input-text,
body.jc-checkout-page .page__content textarea,
body.jc-checkout-page .page__content select,
body.jc-checkout-page .select2-container .select2-selection--single {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    min-height: 48px;
    margin: 0;
    padding: 11px 13px;
    border: 1px solid #d6cab9 !important;
    border-radius: 4px !important;
    background: #fff !important;
    color: #211d1b !important;
    font-family: "Cabin", Arial, sans-serif;
    font-size: 16px;
    line-height: 1.5;
}
body.jc-checkout-page .page__content textarea { min-height: 110px; resize: vertical; }
body.jc-checkout-page .select2-container { width: 100% !important; max-width: 100%; }
body.jc-checkout-page .select2-container .select2-selection__rendered { padding: 0; line-height: 24px; }
body.jc-checkout-page .select2-container .select2-selection__arrow { top: 11px; right: 9px; }
body.jc-checkout-page .woocommerce-additional-fields .form-row,
body.jc-checkout-page .local-pickup-time-select-field { margin-bottom: 20px; }
body.jc-checkout-page .woocommerce-additional-fields .form-row:last-child { margin-bottom: 0; }
body.jc-checkout-page form .form-row label.checkbox { display: flex; align-items: center; gap: 10px; min-height: 44px; }
body.jc-checkout-page .page__content input[type="checkbox"] { width: 18px; height: 18px; margin: 0; accent-color: #8c672f; flex: 0 0 auto; }
body.jc-checkout-page .page__content input[type="radio"] { accent-color: #8c672f; }


body.jc-checkout-page .jc-order-intro a,
body.jc-checkout-page .woocommerce-cart-form .product-name > a { background-image: none !important; box-shadow: none; }
body.jc-checkout-page .woocommerce .woocommerce-cart-form table.shop_table.cart .product-name > a { border-bottom: 0 !important; text-decoration: none !important; }
body.jc-checkout-page #order_review table.shop_table { display: table; width: 100%; margin: 0; border: 0; border-collapse: collapse; background: transparent; font-size: 13px; line-height: 1.7; }
body.jc-checkout-page #order_review table tr { display: table-row; background: transparent; }
body.jc-checkout-page #order_review table th,
body.jc-checkout-page #order_review table td { display: table-cell; padding: 14px 0; border: 0; border-bottom: 1px solid #e6dbcd; background: transparent; color: #514840; text-align: left; vertical-align: top; overflow-wrap: anywhere; }
body.jc-checkout-page #order_review table th:last-child,
body.jc-checkout-page #order_review table td:last-child { padding-left: 16px; text-align: right; }
body.jc-checkout-page #order_review table td::before { display: none !important; }
body.jc-checkout-page #order_review table thead th { color: #8b6240; font-size: 10px; letter-spacing: .09em; text-transform: uppercase; }
body.jc-checkout-page #order_review .product-name { width: 64%; font-weight: 500; }
body.jc-checkout-page #order_review .amount { white-space: nowrap; font-variant-numeric: tabular-nums; }
body.jc-checkout-page #order_review .product-quantity { font-weight: 500; white-space: nowrap; }
body.jc-checkout-page #order_review .order-total th,
body.jc-checkout-page #order_review .order-total td { padding: 20px 0; border-bottom: 0; color: #8c672f; font-size: 20px; font-weight: 600; }
body.jc-checkout-page #order_review .order-total td { padding-left: 16px; }
body.jc-checkout-page #order_review ul.woocommerce-shipping-methods { margin: 0; padding: 0; list-style: none; font-size: 12px; text-align: right; }
body.jc-checkout-page #order_review ul.woocommerce-shipping-methods li { padding: 0; margin: 0; }
body.jc-checkout-page #order_review ul.woocommerce-shipping-methods label { font-weight: 400; }
body.jc-checkout-page form.checkout .woocommerce-shipping-destination { display: none; }
body.jc-checkout-page #payment { padding: 20px 0 0; border: 0; border-top: 1px solid #dfd3c4; border-radius: 0; background: transparent !important; }
body.jc-checkout-page #payment ul.payment_methods { margin: 0; padding: 0; border: 0; list-style: none; }
body.jc-checkout-page #payment ul.payment_methods li { margin: 0 0 18px; padding: 0; text-align: left; }
body.jc-checkout-page #payment ul.payment_methods li > label { font-size: 13px; font-weight: 600; line-height: 1.7; }
body.jc-checkout-page #payment .payment_box { display: block; width: 100%; margin: 12px 0 0; padding: 14px 16px; border: 1px solid #e6dbcd; border-radius: 4px; background: #f6f1e9; color: #514840; }
body.jc-checkout-page #payment .payment_box::before { display: none; }
body.jc-checkout-page #payment .payment_box p { display: block; margin: 0; font-size: 12px; line-height: 1.8; }
body.jc-checkout-page #payment .place-order { padding: 0; margin: 0; }
body.jc-checkout-page #payment .woocommerce-privacy-policy-text { margin: 20px 0; color: #746d67; font-size: 11px; line-height: 1.9; }
body.jc-checkout-page #payment .woocommerce-privacy-policy-text p { margin: 0; }
body.jc-checkout-page #payment .woocommerce-privacy-policy-text a { color: #8c672f; text-decoration: underline; text-underline-offset: 3px; }
body.jc-checkout-page .woocommerce .button,
body.jc-checkout-page .woocommerce input[type="submit"],
body.jc-checkout-page .woocommerce .btn {
    min-height: 48px;
    padding: 13px 22px !important;
    border: 1px solid #8c672f !important;
    border-radius: 4px !important;
    background: #8c672f !important;
    color: #fff9ef !important;
    font-family: "Cabin", Arial, sans-serif;
    font-size: 12px !important;
    font-weight: 600;
    line-height: 1.6 !important;
    letter-spacing: .035em;
    text-decoration: none;
    white-space: normal;
}
body.jc-checkout-page .woocommerce .button:hover { background: #6f5127 !important; }
body.jc-checkout-page .woocommerce .button:disabled { opacity: .5; cursor: default; }
body.jc-checkout-page #payment #place_order { float: none; width: 100%; margin: 0; min-height: 54px; }
body.jc-checkout-page .page__content a:focus-visible,
body.jc-checkout-page .page__content button:focus-visible,
body.jc-checkout-page .page__content input:not([type="hidden"]):not([type="radio"]):focus-visible,
body.jc-checkout-page .page__content select:focus-visible,
body.jc-checkout-page .page__content textarea:focus-visible { outline: 2px solid #9b7a55 !important; outline-offset: 3px; }


@media (min-width: 1000px) {
    body.jc-checkout-page form.checkout { display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(0, 1fr); grid-template-rows: min-content 1fr; gap: 0 28px; align-items: start; }
    body.jc-checkout-page form.checkout::before,
    body.jc-checkout-page form.checkout::after { display: none; }
    body.jc-checkout-page form.checkout > * { grid-column: 1 / -1; min-width: 0; }
    body.jc-checkout-page form.checkout > #customer_details { grid-column: 1; grid-row: 1 / span 2; }
    body.jc-checkout-page form.checkout > #order_review_heading { grid-column: 2; grid-row: 1; margin: 0; padding: 28px 28px 0; border: 1px solid #dfd3c4; border-bottom: 0; border-radius: 6px 6px 0 0; background: #fffdfa; }
    body.jc-checkout-page form.checkout > #order_review { grid-column: 2; grid-row: 2; padding-top: 12px; border-top: 0; border-radius: 0 0 6px 6px; }
}
@media (max-width: 767px) {
    body.jc-checkout-page .article--main > .article__content { padding: 28px 0 48px !important; }
    body.jc-checkout-page .article--main > .article__content > .container { padding: 0 20px !important; }
    body.jc-checkout-page .jc-order-intro__top { margin-bottom: 15px; }
    body.jc-checkout-page .jc-order-intro h1 { font-size: 44px; }
    body.jc-checkout-page .jc-order-lead { font-size: 13px; line-height: 1.8; }
    body.jc-checkout-page .woocommerce-billing-fields,
    body.jc-checkout-page .woocommerce-additional-fields,
    body.jc-checkout-page #order_review { padding: 22px 20px; }
    body.jc-checkout-page #customer_details h3,
    body.jc-checkout-page #order_review_heading { font-size: 29px; }
    body.jc-checkout-page #order_review .product-name { width: 62%; }
    body.jc-checkout-page #order_review table th,
    body.jc-checkout-page #order_review table td { font-size: 12px; }
    body.jc-checkout-page #order_review .order-total th,
    body.jc-checkout-page #order_review .order-total td { font-size: 19px; }
    
}
@media (max-width: 600px) {
    body.jc-checkout-page .woocommerce-billing-fields__field-wrapper { grid-template-columns: minmax(0, 1fr); }
    
}
@media (max-width: 360px) {
    body.jc-checkout-page .article--main > .article__content > .container { padding: 0 16px !important; }
    body.jc-checkout-page .jc-order-eyebrow { font-size: 9px; letter-spacing: .1em; }
    body.jc-checkout-page .woocommerce-billing-fields,
    body.jc-checkout-page .woocommerce-additional-fields,
    body.jc-checkout-page #order_review { padding-right: 16px; padding-left: 16px; }
}


/* Progressive enhancement of the existing, authoritative pickup-time select. */
body.jc-checkout-page select.jc-time-source { display: none !important; }
body.jc-checkout-page .jc-time-picker {
    display: block;
    min-width: 0;
    width: 100%;
    color: #211d1b;
    font-family: "Cabin", Arial, sans-serif;
}
body.jc-checkout-page .jc-time-picker .jc-time-instruction {
    display: block;
    margin: 0 0 18px;
    color: #746d67;
    font-size: 12px;
    line-height: 1.8;
}
body.jc-checkout-page .jc-time-picker .jc-time-controls {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    margin: 0;
}
body.jc-checkout-page .jc-time-picker .jc-time-field { display: block; min-width: 0; }
body.jc-checkout-page .jc-time-picker .jc-time-field > label {
    display: block;
    margin: 0 0 8px;
    color: #514840;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.6;
    letter-spacing: 0;
    text-transform: none;
}
body.jc-checkout-page .jc-time-picker select.jc-time-select {
    display: block;
    box-sizing: border-box;
    min-width: 0;
    width: 100%;
    max-width: 100%;
    min-height: 48px !important;
    margin: 0;
    padding: 11px 34px 11px 10px;
    border: 1px solid #d6cab9 !important;
    border-radius: 4px !important;
    appearance: none;
    -webkit-appearance: none;
    background-color: #fff !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='m2 2 4 4 4-4' fill='none' stroke='%238c672f' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: right 12px center !important;
    background-size: 12px 8px !important;
    color: #211d1b !important;
    font-family: "Cabin", Arial, sans-serif !important;
    font-size: 16px !important;
    font-weight: 400;
    line-height: 1.5;
}
body.jc-checkout-page .jc-time-picker .jc-time-summary {
    display: block;
    margin: 16px 0 0;
    padding: 12px 14px;
    border-left: 2px solid #b18a54;
    border-radius: 0 3px 3px 0;
    background: #f6f1e9;
    color: #746d67;
    font-size: 12px;
    line-height: 1.8;
    overflow-wrap: anywhere;
}
body.jc-checkout-page .jc-time-picker--selected .jc-time-summary { color: #8c672f; font-weight: 600; }
body.jc-checkout-page .jc-time-picker--invalid .jc-time-summary { border-color: #a52f38; color: #8a2932; }
body.jc-checkout-page .jc-time-picker--disabled { opacity: .6; }
body.jc-checkout-page .jc-time-picker select.jc-time-select:focus-visible {
    outline: 2px solid #9b7a55 !important;
    outline-offset: 3px;
}
@media (max-width: 600px) {
    body.jc-checkout-page .jc-time-picker .jc-time-controls { grid-template-columns: minmax(0, 1fr); gap: 14px; }
}

body.jc-checkout-page .jc-time-picker .jc-time-error { display: block; margin-top: 12px; color: #8a2932; font-size: 12px; line-height: 1.8; }
body.jc-checkout-page .jc-time-picker .jc-time-error:empty { display: none; }

/* Keep native time, notes and bag fields easy to scan. */








body.jc-checkout-page .woocommerce-additional-fields { display: flex; flex-direction: column; gap: 20px; }
body.jc-checkout-page .woocommerce-additional-fields > h3 { order: 0; margin-bottom: 0 !important; }
body.jc-checkout-page .woocommerce-additional-fields > #local_pickup_time_select { order: 1; margin: 0; }
body.jc-checkout-page .woocommerce-additional-fields > .woocommerce-additional-fields__field-wrapper { order: 2; }
body.jc-checkout-page .woocommerce-additional-fields > #wp_ext_cst_field { order: 3; }




body.jc-checkout-page #payment .woocommerce-terms-and-conditions-wrapper label.checkbox,
body.jc-checkout-page #payment .mailpoet-subscription-section label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 12px;
    line-height: 1.8;
}
body.jc-checkout-page #payment .woocommerce-terms-and-conditions-wrapper input[type="checkbox"],
body.jc-checkout-page #payment .mailpoet-subscription-section input[type="checkbox"] { margin-top: 4px; }
body.jc-checkout-page #payment .woocommerce-terms-and-conditions-wrapper a { color: #8c672f; text-decoration: underline; }
body.jc-checkout-page #payment ul.payment_methods li img { max-width: 160px; max-height: 22px; margin: 0 0 0 8px; vertical-align: middle; }
body.jc-checkout-page #payment ul.payment_methods li input[type="radio"] { margin-right: 7px; }
body.jc-checkout-page #payment ul.payment_methods li > input[type="radio"] { display: inline-block !important; vertical-align: middle; }
body.jc-checkout-page #payment ul.payment_methods li > label { display: inline !important; }
body.jc-checkout-page #payment ul.payment_methods li > label img { float: right; }
body.jc-checkout-page #payment .payment_box { clear: both; }
body.jc-checkout-page .woocommerce .woocommerce-message,
body.jc-checkout-page .woocommerce .woocommerce-info { border: 1px solid #dfd3c4 !important; border-left: 3px solid #b18a54 !important; }
body.jc-checkout-page #order_review table tfoot .shipping td { max-width: 250px; }
body.jc-checkout-page #order_review table tfoot .shipping td .woocommerce-info { margin: 0 !important; padding: 10px !important; font-size: 12px; }
body.jc-checkout-page #order_review table tfoot .shipping td .woocommerce-info::before { display: none; }
body.jc-checkout-page .page__content input[type="checkbox"],
body.jc-checkout-page .page__content input[type="radio"] { accent-color: #8c672f; }
body.jc-checkout-page .woocommerce-invalid input.input-text,
body.jc-checkout-page .woocommerce-invalid select { border-color: #a52f38 !important; }
@media (max-width: 899px) {
    body.jc-checkout-page .article--main { padding-top: 100px; }
}
@media (max-width: 480px) {
    body.jc-checkout-page .jc-order-intro h1 { font-size: 38px; }
    body.jc-checkout-page .jc-order-intro__top { gap: 12px; }
    body.jc-checkout-page .jc-order-eyebrow { font-size: 9px; letter-spacing: .1em; }
    
    
    
    
    
}

/* The shop cart opens the editable basket and checkout together. */
body.jc-cart-checkout .jc-basket { margin: 0 0 34px; scroll-margin-top: 150px; }
body.jc-cart-checkout #customer_details { scroll-margin-top: 150px; }
body.jc-cart-checkout .jc-basket__heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin: 0 0 18px;
}
body.jc-cart-checkout .jc-basket__heading > p { margin: 0; }
body.jc-cart-checkout .jc-basket__heading h2 { margin: 0; font-size: 32px; line-height: 1.2; }
body.jc-cart-checkout .jc-basket__heading a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 44px;
    color: #8c672f !important;
    font-size: 13px;
    text-decoration: none !important;
    background: none !important;
    border: 0 !important;
    white-space: normal;
}
body.jc-cart-checkout .woocommerce-cart-form {
    margin: 0;
    padding: 24px 28px;
    border: 1px solid #dfd3c4;
    border-radius: 6px;
    background: #fffdfa;
    box-shadow: 0 10px 30px rgba(45,35,30,.035);
}
body.jc-cart-checkout .woocommerce .woocommerce-cart-form table.shop_table.cart {
    display: table;
    width: 100%;
    margin: 0;
    border: 0 !important;
    border-collapse: collapse;
    background: transparent;
    color: #514840;
    font-size: 14px;
}
body.jc-cart-checkout .woocommerce .woocommerce-cart-form table.shop_table.cart thead { display: table-header-group; }
body.jc-cart-checkout .woocommerce .woocommerce-cart-form table.shop_table.cart tbody { display: table-row-group; }
body.jc-cart-checkout .woocommerce .woocommerce-cart-form table.shop_table.cart tr { display: table-row; margin-bottom: 0; border: 0; background: transparent; }
body.jc-cart-checkout .woocommerce .woocommerce-cart-form table.shop_table.cart th,
body.jc-cart-checkout .woocommerce .woocommerce-cart-form table.shop_table.cart td {
    display: table-cell;
    padding: 16px 12px;
    border: 0;
    border-bottom: 1px solid #e6dbcd;
    background: transparent;
    color: #514840;
    text-align: left;
    vertical-align: middle;
    border-top: 0 !important;
    border-left: 0 !important;
    border-right: 0 !important;
}
body.jc-cart-checkout .woocommerce .woocommerce-cart-form table.shop_table.cart th { padding-top: 0; color: #8b6240; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; }
body.jc-cart-checkout .woocommerce .woocommerce-cart-form table.shop_table.cart .product-thumbnail { display: none !important; }
body.jc-cart-checkout .woocommerce .woocommerce-cart-form table.shop_table.cart .product-name { width: 48%; padding-left: 0; }
body.jc-cart-checkout .woocommerce .woocommerce-cart-form table.shop_table.cart .product-price,
body.jc-cart-checkout .woocommerce .woocommerce-cart-form table.shop_table.cart .product-subtotal { white-space: nowrap; }
body.jc-cart-checkout .woocommerce .woocommerce-cart-form table.shop_table.cart td::before { display: none; position: static !important; float: none !important; width: auto !important; margin: 0 !important; padding: 0 !important; transform: none !important; }
body.jc-cart-checkout .woocommerce-cart-form .quantity { display: inline-block; position: static !important; float: none !important; width: auto; margin: 0; }
body.jc-cart-checkout .woocommerce-cart-form .quantity input.qty { width: 84px; max-width: 100%; text-align: center; }
body.jc-cart-checkout .woocommerce .woocommerce-cart-form table.shop_table.cart .product-remove { width: 44px; padding-right: 0; }
body.jc-cart-checkout .woocommerce-cart-form a.remove {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 4px;
    color: #8a2932 !important;
    font-size: 24px;
    text-decoration: none;
    background: transparent;
}
body.jc-cart-checkout .woocommerce-cart-form a.remove:hover { color: #fff !important; background: #8a2932; }
body.jc-cart-checkout .woocommerce .woocommerce-cart-form table.shop_table.cart .actions { padding: 20px 0 0 !important; border: 0 !important; text-align: right; }
body.jc-cart-checkout .woocommerce-cart-form .actions .button { float: none; width: auto; margin: 0; }
body.jc-cart-checkout .woocommerce-cart-form .coupon { display: flex; align-items: center; gap: 10px; float: left; max-width: 100%; }
body.jc-cart-checkout .woocommerce-cart-form .coupon label { color: #514840; }
body.jc-cart-checkout .woocommerce-cart-form #coupon_code { float: none; width: 160px; margin: 0; }
body.jc-cart-checkout .cart-collaterals:empty { display: none; }

@media (max-width: 600px) {
    body.jc-cart-checkout .jc-basket__heading { align-items: flex-start; gap: 12px; }
    body.jc-cart-checkout .jc-basket__heading h2 { font-size: 29px; }
    body.jc-cart-checkout .jc-basket__heading > p { max-width: 55%; }
    body.jc-cart-checkout .jc-basket__heading a { max-width: 100%; min-height: 35px; font-size: 12px; }
    body.jc-cart-checkout .woocommerce-cart-form { padding: 4px 20px 20px; }
    body.jc-cart-checkout .woocommerce .woocommerce-cart-form table.shop_table.cart,
    body.jc-cart-checkout .woocommerce .woocommerce-cart-form table.shop_table.cart tbody { display: block; }
    body.jc-cart-checkout .woocommerce .woocommerce-cart-form table.shop_table.cart thead { display: none; }
    body.jc-cart-checkout .woocommerce .woocommerce-cart-form table.shop_table.cart tr { display: block; }
    body.jc-cart-checkout .woocommerce .woocommerce-cart-form table.shop_table.cart tr.cart_item {
        position: relative;
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto;
        gap: 10px 12px;
        padding: 20px 0;
        border: 0;
        border-bottom: 1px solid #e6dbcd;
    }
    body.jc-cart-checkout .woocommerce .woocommerce-cart-form table.shop_table.cart tr.cart_item > td { display: block; width: auto; padding: 0; border: 0 !important; text-align: left !important; }
    body.jc-cart-checkout .woocommerce .woocommerce-cart-form table.shop_table.cart tr.cart_item > .product-name { grid-column: 1 / -1; padding-right: 44px; font-weight: 600; overflow-wrap: anywhere; }
    body.jc-cart-checkout .woocommerce .woocommerce-cart-form table.shop_table.cart tr.cart_item > .product-price { grid-column: 1 / -1; color: #746d67; font-size: 12px; }
    body.jc-cart-checkout .woocommerce .woocommerce-cart-form table.shop_table.cart tr.cart_item > .product-quantity { display: flex !important; align-items: center; gap: 10px; grid-column: 1; }
    body.jc-cart-checkout .woocommerce .woocommerce-cart-form table.shop_table.cart tr.cart_item > .product-subtotal { grid-column: 2; align-self: center; font-weight: 600; }
    body.jc-cart-checkout .woocommerce .woocommerce-cart-form table.shop_table.cart tr.cart_item > .product-remove { position: absolute; top: 12px; right: 0; }
    body.jc-cart-checkout .woocommerce .woocommerce-cart-form table.shop_table.cart .product-price::before,
    body.jc-cart-checkout .woocommerce .woocommerce-cart-form table.shop_table.cart .product-quantity::before { display: inline-block !important; content: attr(data-title) ": " !important; flex: 0 0 auto; font-size: 12px; font-weight: 400; text-align: left; line-height: 1.5; }
    body.jc-cart-checkout .woocommerce-cart-form .quantity input.qty { width: 70px; }
    body.jc-cart-checkout .woocommerce .woocommerce-cart-form table.shop_table.cart td.actions { display: block; padding-top: 20px; }
    body.jc-cart-checkout .woocommerce-cart-form .actions .button { width: 100%; }
    body.jc-cart-checkout .woocommerce-cart-form .coupon { float: none; flex-wrap: wrap; margin-bottom: 16px; }
    body.jc-cart-checkout .woocommerce-cart-form #coupon_code { width: 100%; }
    body.jc-cart-checkout #customer_details,
    body.jc-cart-checkout .jc-basket { scroll-margin-top: 120px; }
}
@media (max-width: 360px) {
    body.jc-cart-checkout .woocommerce-cart-form { padding-right: 16px; padding-left: 16px; }
}

/* Cart notices can sit outside the shortcode's .woocommerce wrapper. */
body.jc-cart-checkout .page__content .woocommerce-message,
body.jc-cart-checkout .page__content .woocommerce-info {
    margin: 0 0 24px !important;
    padding: 18px 20px 18px 46px !important;
    border: 1px solid #dfd3c4 !important;
    border-left: 3px solid #b18a54 !important;
    border-radius: 6px;
    background: #fffdfa !important;
    color: #514840;
    font-size: 13px;
    line-height: 1.7;
    overflow-wrap: anywhere;
}
body.jc-cart-checkout .page__content .woocommerce-message::before,
body.jc-cart-checkout .page__content .woocommerce-info::before { top: 19px; left: 18px; color: #9b7a55; }


/* Retain the shop's existing notice in a quieter, readable panel. */
body.jc-checkout-page .jc-existing-notice {
    margin: 0 0 28px;
    padding: 16px 20px;
    border: 1px solid #dfd3c4;
    border-left: 3px solid #b18a54;
    border-radius: 6px;
    background: #fffdfa;
    color: #514840;
    font-size: 13px;
    line-height: 1.8;
}
body.jc-checkout-page .jc-existing-notice p { margin: 0; }
body.jc-checkout-page .jc-existing-notice strong { color: #514840 !important; }
