/* =========================================================
   ROASTiME Checkout V1
   ========================================================= */

.rt-checkout-page {
    background: #f4eadb;
    color: #171410;
}

.rt-checkout-hero__inner,
.rt-checkout-content__inner {
    width: min(1180px, calc(100% - 48px));
    margin: 0 auto;
}

.rt-checkout-hero__inner {
    padding: 72px 0 32px;
}

.rt-checkout-hero__eyebrow {
    margin: 0 0 12px;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .16em;
    line-height: 1.3;
}

.rt-checkout-hero__title {
    margin: 0;
    font-size: clamp(48px, 5vw, 72px);
    font-weight: 800;
    letter-spacing: -.055em;
    line-height: .98;
}

.rt-checkout-hero__intro {
    margin: 18px 0 0;
    color: #746b60;
    font-size: 16px;
    line-height: 1.75;
}

.rt-checkout-content__inner {
    padding-bottom: 104px;
}


/* =========================================================
   Notices / coupon
   ========================================================= */

.rt-checkout-page .woocommerce-notices-wrapper {
    margin-bottom: 20px;
}

.rt-checkout-page .woocommerce-info,
.rt-checkout-page .woocommerce-message,
.rt-checkout-page .woocommerce-error {
    box-sizing: border-box;
    margin: 0 0 18px;
    padding: 18px 22px 18px 48px;
    border: 1px solid #ded3c3;
    border-top: 1px solid #ded3c3;
    border-radius: 14px;
    background: #fffdf8;
    color: #171410;
    line-height: 1.65;
}

.rt-checkout-page .woocommerce-info::before,
.rt-checkout-page .woocommerce-message::before,
.rt-checkout-page .woocommerce-error::before {
    top: 18px;
    left: 20px;
    color: #171410;
}

.rt-checkout-page .woocommerce-info a,
.rt-checkout-page .woocommerce-message a {
    color: inherit;
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.rt-checkout-page form.checkout_coupon {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 12px;
    align-items: end;
    margin: 0 0 28px;
    padding: 20px;
    border: 1px solid #ded3c3;
    border-radius: 16px;
    background: #fffdf8;
}

.rt-checkout-page form.checkout_coupon > p:first-child {
    grid-column: 1 / -1;
    margin: 0;
    color: #746b60;
}

.rt-checkout-page form.checkout_coupon .form-row {
    width: auto;
    float: none;
    margin: 0;
}


/* =========================================================
   Checkout architecture
   ========================================================= */

.rt-checkout-page form.checkout.woocommerce-checkout {
    display: grid;
    grid-template-columns:
        minmax(0, 1.15fr)
        minmax(360px, .85fr);
    column-gap: 36px;
    align-items: start;
}

.rt-checkout-page #customer_details {
    grid-column: 1;
    grid-row: 1;
    box-sizing: border-box;
    padding: 30px;
    border: 1px solid #ded3c3;
    border-radius: 18px;
    background: #fffdf8;
}

.rt-checkout-page #customer_details::after {
    display: none;
}

.rt-checkout-page #customer_details .col-1,
.rt-checkout-page #customer_details .col-2 {
    width: 100%;
    float: none;
}

.rt-checkout-page #customer_details .col-2 {
    margin-top: 28px;
    padding-top: 26px;
    border-top: 1px solid #e4dbcf;
}

.rt-checkout-page
#customer_details
.woocommerce-billing-fields > h3,
.rt-checkout-page
#customer_details
.woocommerce-shipping-fields > h3,
.rt-checkout-page
#customer_details
.woocommerce-additional-fields > h3,
.rt-checkout-page
#order_review_heading {
    margin: 0 0 22px;
    color: #171410;
    font-size: 28px;
    font-weight: 800;
    letter-spacing: -.035em;
    line-height: 1.15;
}

.rt-checkout-page #order_review_heading {
    grid-column: 2;
    grid-row: 1;
    margin: 0 0 14px;
}

.rt-checkout-page #order_review {
    grid-column: 2;
    grid-row: 1;
    align-self: start;
    margin-top: 52px;
    overflow: hidden;
    border: 1px solid #ded3c3;
    border-radius: 18px;
    background: #fffdf8;
}


/* =========================================================
   Fields
   ========================================================= */

.rt-checkout-page
.woocommerce-billing-fields__field-wrapper,
.rt-checkout-page
.woocommerce-shipping-fields__field-wrapper {
    display: grid;
    grid-template-columns:
        repeat(2, minmax(0, 1fr));
    gap: 18px 20px;
}

.rt-checkout-page .form-row {
    box-sizing: border-box;
    margin: 0 0 18px;
}

.rt-checkout-page
.woocommerce-billing-fields__field-wrapper
.form-row,
.rt-checkout-page
.woocommerce-shipping-fields__field-wrapper
.form-row {
    width: auto;
    float: none;
    margin: 0;
}

.rt-checkout-page
.woocommerce-billing-fields__field-wrapper
.form-row-wide,
.rt-checkout-page
.woocommerce-shipping-fields__field-wrapper
.form-row-wide {
    grid-column: 1 / -1;
}

.rt-checkout-page
.woocommerce-billing-fields__field-wrapper
.form-row-first,
.rt-checkout-page
.woocommerce-shipping-fields__field-wrapper
.form-row-first {
    grid-column: 1;
}

.rt-checkout-page
.woocommerce-billing-fields__field-wrapper
.form-row-last,
.rt-checkout-page
.woocommerce-shipping-fields__field-wrapper
.form-row-last {
    grid-column: 2;
}

.rt-checkout-page
.woocommerce form
.form-row label {
    display: block;
    margin: 0 0 8px;
    color: #171410;
    font-size: 13px;
    font-weight: 750;
    line-height: 1.45;
}

.rt-checkout-page
.woocommerce form
.form-row .required {
    color: #b42e38;
}

.rt-checkout-page
.woocommerce form
.input-text,
.rt-checkout-page
.woocommerce form
select,
.rt-checkout-page
.select2-container
.select2-selection--single {
    box-sizing: border-box;
    width: 100%;
    min-height: 48px;
    border: 1px solid #d8cdbd;
    border-radius: 10px;
    background: #fff;
    color: #171410;
    box-shadow: none;
    font: inherit;
}

.rt-checkout-page
.woocommerce form
.input-text,
.rt-checkout-page
.woocommerce form
select {
    padding: 11px 13px;
}

.rt-checkout-page
.woocommerce form
textarea.input-text {
    min-height: 116px;
    resize: vertical;
    line-height: 1.55;
}

.rt-checkout-page
.select2-container
.select2-selection--single
.select2-selection__rendered {
    padding: 9px 38px 9px 13px;
    color: #171410;
    line-height: 28px;
}

.rt-checkout-page
.select2-container
.select2-selection--single
.select2-selection__arrow {
    height: 46px;
    right: 8px;
}

.rt-checkout-page
.woocommerce form
.input-text:focus,
.rt-checkout-page
.woocommerce form
select:focus,
.rt-checkout-page
.select2-container--focus
.select2-selection--single {
    border-color: #171410;
    outline: none;
}


/* =========================================================
   Shipping / notes
   ========================================================= */

.rt-checkout-page
#ship-to-different-address {
    margin: 0 0 20px;
    font-size: 17px;
    font-weight: 750;
    line-height: 1.4;
}

.rt-checkout-page
#ship-to-different-address label {
    display: inline-flex;
    gap: 9px;
    align-items: center;
    margin: 0;
}

.rt-checkout-page
.woocommerce-additional-fields {
    margin-top: 22px;
}

.rt-checkout-page
.woocommerce-additional-fields__field-wrapper
.form-row {
    margin-bottom: 0;
}


/* =========================================================
   Order review
   ========================================================= */

.rt-checkout-page
#order_review
table.shop_table {
    width: 100%;
    margin: 0;
    border: 0;
    border-collapse: collapse;
    border-radius: 0;
}

.rt-checkout-page
#order_review
table.shop_table th,
.rt-checkout-page
#order_review
table.shop_table td {
    padding: 16px 20px;
    border: 0;
    border-bottom: 1px solid #e5dccf;
    background: transparent;
    color: #171410;
    vertical-align: top;
}

.rt-checkout-page
#order_review
table.shop_table thead th {
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.rt-checkout-page
#order_review
table.shop_table th:last-child,
.rt-checkout-page
#order_review
table.shop_table td:last-child {
    text-align: right;
}

.rt-checkout-page
#order_review
.product-name {
    font-weight: 750;
}

.rt-checkout-page
#order_review
.product-name dl.variation {
    margin: 10px 0 0;
    color: #655d53;
    font-size: 12px;
    line-height: 1.55;
}

.rt-checkout-page
#order_review
.product-name dl.variation dt,
.rt-checkout-page
#order_review
.product-name dl.variation dd {
    float: none;
    display: inline;
    margin: 0;
    padding: 0;
}

.rt-checkout-page
#order_review
.product-name dl.variation dt::after {
    content: "：";
}

.rt-checkout-page
#order_review
.product-name dl.variation dd::after {
    content: "";
    display: block;
}


/* =========================================================
   Payment / terms / place order
   ========================================================= */

.rt-checkout-page
.woocommerce-checkout
#payment {
    margin: 0;
    border-radius: 0;
    background: transparent;
}

.rt-checkout-page
.woocommerce-checkout
#payment
ul.payment_methods {
    margin: 0;
    padding: 20px;
    border: 0;
    border-bottom: 1px solid #e5dccf;
    background: #faf6ef;
}

.rt-checkout-page
.woocommerce-checkout
#payment
ul.payment_methods li {
    margin: 0;
    line-height: 1.6;
}

.rt-checkout-page
.woocommerce-checkout
#payment
div.payment_box {
    margin: 14px 0 0;
    border-radius: 10px;
    background: #f1e8da;
    color: #171410;
}

.rt-checkout-page
.woocommerce-checkout
#payment
div.payment_box::before {
    border-bottom-color: #f1e8da;
}

.rt-checkout-page
.woocommerce-checkout
#payment
.form-row.place-order {
    margin: 0;
    padding: 22px;
    background: transparent;
}

.rt-checkout-page
.woocommerce-privacy-policy-text {
    margin-bottom: 16px;
    color: #6c645a;
    font-size: 12px;
    line-height: 1.65;
}

.rt-checkout-page
.woocommerce-terms-and-conditions-wrapper {
    margin-bottom: 18px;
    color: #4f4942;
    font-size: 12px;
    line-height: 1.65;
}

.rt-checkout-page
.woocommerce-privacy-policy-text a,
.rt-checkout-page
.woocommerce-terms-and-conditions-wrapper a {
    color: inherit;
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.rt-checkout-page
#place_order {
    float: none;
    width: 100%;
    min-height: 52px;
    margin: 0;
    padding: 14px 22px;
    border: 0;
    border-radius: 999px;
    background: #171410;
    color: #fff;
    font-size: 14px;
    font-weight: 800;
    line-height: 1.2;
    text-align: center;
    transition:
        opacity .2s ease,
        transform .2s ease;
}

.rt-checkout-page
#place_order:hover {
    opacity: .86;
}

.rt-checkout-page
#place_order:active {
    transform: translateY(1px);
}


/* =========================================================
   Buttons / coupon inputs
   ========================================================= */

.rt-checkout-page
button.button,
.rt-checkout-page
input.button {
    min-height: 46px;
    padding: 11px 20px;
    border: 1px solid #171410;
    border-radius: 999px;
    background: #171410;
    color: #fff;
    font-weight: 750;
}

.rt-checkout-page
form.checkout_coupon
.input-text {
    min-height: 46px;
}


/* =========================================================
   Responsive
   ========================================================= */

@media (max-width: 900px) {

    .rt-checkout-page
    form.checkout.woocommerce-checkout {
        display: block;
    }

    .rt-checkout-page
    #customer_details {
        margin-bottom: 30px;
    }

    .rt-checkout-page
    #order_review_heading {
        margin-top: 0;
    }

    .rt-checkout-page
    #order_review {
        margin-top: 0;
    }

}


@media (max-width: 640px) {

    .rt-checkout-hero__inner,
    .rt-checkout-content__inner {
        width: min(
            100% - 28px,
            1180px
        );
    }

    .rt-checkout-hero__inner {
        padding: 46px 0 24px;
    }

    .rt-checkout-hero__title {
        font-size: 46px;
    }

    .rt-checkout-hero__intro {
        margin-top: 12px;
        font-size: 14px;
    }

    .rt-checkout-content__inner {
        padding-bottom: 72px;
    }

    .rt-checkout-page
    #customer_details {
        padding: 20px;
        border-radius: 15px;
    }

    .rt-checkout-page
    #order_review {
        border-radius: 15px;
    }

    .rt-checkout-page
    .woocommerce-billing-fields__field-wrapper,
    .rt-checkout-page
    .woocommerce-shipping-fields__field-wrapper {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .rt-checkout-page
    .woocommerce-billing-fields__field-wrapper
    .form-row,
    .rt-checkout-page
    .woocommerce-shipping-fields__field-wrapper
    .form-row {
        grid-column: 1;
    }

    .rt-checkout-page
    form.checkout_coupon {
        display: block;
        padding: 18px;
    }

    .rt-checkout-page
    form.checkout_coupon
    .form-row {
        margin-top: 12px;
    }

    .rt-checkout-page
    form.checkout_coupon
    button.button {
        width: 100%;
    }

    .rt-checkout-page
    #order_review
    table.shop_table th,
    .rt-checkout-page
    #order_review
    table.shop_table td {
        padding: 14px;
    }

    .rt-checkout-page
    .woocommerce-checkout
    #payment
    .form-row.place-order {
        padding: 18px;
    }

}


/* =========================================================
   CHECKOUT FINAL CLOSURE R1A
   Remove WooCommerce private-font notice glyphs.
   Keep real form checkboxes untouched.
   ========================================================= */

.rt-checkout-page .woocommerce-info,
.rt-checkout-page .woocommerce-message,
.rt-checkout-page .woocommerce-error {
    padding-left: 22px !important;
}

.rt-checkout-page .woocommerce-info::before,
.rt-checkout-page .woocommerce-message::before,
.rt-checkout-page .woocommerce-error::before {
    content: none !important;
    display: none !important;
}



/* =========================================================
   THANK YOU FINAL CLOSURE R1B-R1
   Order-received presentation only.
   WooCommerce templates and order data remain authoritative.
   ========================================================= */


/* Completion message
   --------------------------------------------------------- */

body.woocommerce-order-received
.rt-checkout-page
.woocommerce-thankyou-order-received {
    color: var(--rt-ink);
    font-size: 18px;
    font-weight: 850;
    line-height: 1.5;
    margin: 0 0 22px;
}


/* Order overview
   --------------------------------------------------------- */

body.woocommerce-order-received
.rt-checkout-page
ul.woocommerce-order-overview.order_details {
    background: rgba(255,255,255,.28);
    border: 1px solid rgba(20,18,15,.18);
    border-radius: 18px;
    display: grid;
    gap: 0;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    list-style: none;
    margin: 0 0 46px !important;
    overflow: hidden;
    padding: 0 !important;
}

body.woocommerce-order-received
.rt-checkout-page
ul.woocommerce-order-overview.order_details > li {
    border: 0 !important;
    border-right: 1px solid rgba(20,18,15,.12) !important;
    box-sizing: border-box;
    color: rgba(20,18,15,.58);
    float: none !important;
    font-size: 11px;
    line-height: 1.4;
    margin: 0 !important;
    min-width: 0;
    padding: 17px 18px !important;
    text-transform: none;
}

body.woocommerce-order-received
.rt-checkout-page
ul.woocommerce-order-overview.order_details > li:last-child {
    border-right: 0 !important;
}

body.woocommerce-order-received
.rt-checkout-page
ul.woocommerce-order-overview.order_details > li strong {
    color: var(--rt-ink);
    display: block;
    font-size: 16px;
    font-weight: 900;
    line-height: 1.35;
    margin-top: 5px;
    overflow-wrap: anywhere;
    text-transform: none;
}


/* Section headings
   --------------------------------------------------------- */

body.woocommerce-order-received
.rt-checkout-page
.woocommerce-order-details__title,
body.woocommerce-order-received
.rt-checkout-page
.woocommerce-customer-details > h2,
body.woocommerce-order-received
.rt-checkout-page
.woocommerce-customer-details
.woocommerce-column__title {
    color: var(--rt-ink);
    font-size: 28px;
    font-weight: 950;
    letter-spacing: -.035em;
    line-height: 1.1;
    margin: 0 0 18px;
}


/* Order details
   --------------------------------------------------------- */

body.woocommerce-order-received
.rt-checkout-page
.woocommerce-order-details {
    margin: 0 0 42px !important;
}

body.woocommerce-order-received
.rt-checkout-page
.woocommerce-order-details table.shop_table {
    background: rgba(255,255,255,.28);
    border: 1px solid rgba(20,18,15,.18) !important;
    border-collapse: separate;
    border-radius: 18px;
    border-spacing: 0;
    margin: 0 !important;
    overflow: hidden;
    width: 100%;
}

body.woocommerce-order-received
.rt-checkout-page
.woocommerce-order-details table.shop_table th,
body.woocommerce-order-received
.rt-checkout-page
.woocommerce-order-details table.shop_table td {
    border: 0 !important;
    box-sizing: border-box;
    color: var(--rt-ink);
    line-height: 1.5;
    padding: 16px 18px !important;
    vertical-align: middle;
}

body.woocommerce-order-received
.rt-checkout-page
.woocommerce-order-details table.shop_table thead th {
    border-bottom: 1px solid rgba(20,18,15,.14) !important;
    font-size: 12px;
    font-weight: 950;
}

body.woocommerce-order-received
.rt-checkout-page
.woocommerce-order-details table.shop_table tbody td,
body.woocommerce-order-received
.rt-checkout-page
.woocommerce-order-details table.shop_table tfoot th,
body.woocommerce-order-received
.rt-checkout-page
.woocommerce-order-details table.shop_table tfoot td {
    border-bottom: 1px solid rgba(20,18,15,.12) !important;
}

body.woocommerce-order-received
.rt-checkout-page
.woocommerce-order-details table.shop_table tfoot tr:last-child th,
body.woocommerce-order-received
.rt-checkout-page
.woocommerce-order-details table.shop_table tfoot tr:last-child td {
    border-bottom: 0 !important;
}

body.woocommerce-order-received
.rt-checkout-page
.woocommerce-order-details table.shop_table .product-name {
    font-weight: 850;
}

body.woocommerce-order-received
.rt-checkout-page
.woocommerce-order-details table.shop_table .product-total,
body.woocommerce-order-received
.rt-checkout-page
.woocommerce-order-details table.shop_table tfoot td {
    text-align: right;
}


/* Customer details
   --------------------------------------------------------- */

body.woocommerce-order-received
.rt-checkout-page
.woocommerce-customer-details {
    margin: 0 !important;
}

body.woocommerce-order-received
.rt-checkout-page
.woocommerce-customer-details .woocommerce-columns,
body.woocommerce-order-received
.rt-checkout-page
.woocommerce-customer-details .addresses {
    display: grid;
    gap: 18px;
    grid-template-columns:
        repeat(auto-fit, minmax(260px, 1fr));
    margin: 0 !important;
}

body.woocommerce-order-received
.rt-checkout-page
.woocommerce-customer-details .woocommerce-column {
    float: none !important;
    margin: 0 !important;
    width: auto !important;
}

body.woocommerce-order-received
.rt-checkout-page
.woocommerce-customer-details address {
    background: rgba(255,255,255,.28);
    border: 1px solid rgba(20,18,15,.18) !important;
    border-radius: 18px !important;
    box-sizing: border-box;
    color: var(--rt-ink);
    font-style: normal;
    line-height: 1.75;
    min-height: 100%;
    padding: 20px !important;
    width: 100%;
}

body.woocommerce-order-received
.rt-checkout-page
.woocommerce-customer-details
.woocommerce-customer-details--email,
body.woocommerce-order-received
.rt-checkout-page
.woocommerce-customer-details
.woocommerce-customer-details--phone {
    padding-left: 0 !important;
    padding-right: 0 !important;
}

body.woocommerce-order-received
.rt-checkout-page
.woocommerce-customer-details
.woocommerce-customer-details--email::before,
body.woocommerce-order-received
.rt-checkout-page
.woocommerce-customer-details
.woocommerce-customer-details--phone::before {
    content: none !important;
    display: none !important;
}


/* Mobile
   --------------------------------------------------------- */

@media (max-width: 900px) {

    body.woocommerce-order-received
    .rt-checkout-page
    .woocommerce-thankyou-order-received {
        font-size: 17px;
        margin-bottom: 20px;
    }

    body.woocommerce-order-received
    .rt-checkout-page
    ul.woocommerce-order-overview.order_details {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
        margin-bottom: 38px !important;
    }

    body.woocommerce-order-received
    .rt-checkout-page
    ul.woocommerce-order-overview.order_details > li {
        border-bottom:
            1px solid rgba(20,18,15,.12) !important;
        padding: 15px 14px !important;
    }

    body.woocommerce-order-received
    .rt-checkout-page
    ul.woocommerce-order-overview.order_details > li:nth-child(even) {
        border-right: 0 !important;
    }

    body.woocommerce-order-received
    .rt-checkout-page
    ul.woocommerce-order-overview.order_details > li:last-child {
        border-bottom: 0 !important;
    }

    body.woocommerce-order-received
    .rt-checkout-page
    ul.woocommerce-order-overview.order_details > li strong {
        font-size: 15px;
    }

    body.woocommerce-order-received
    .rt-checkout-page
    .woocommerce-order-details__title,
    body.woocommerce-order-received
    .rt-checkout-page
    .woocommerce-customer-details > h2,
    body.woocommerce-order-received
    .rt-checkout-page
    .woocommerce-customer-details
    .woocommerce-column__title {
        font-size: 26px;
        margin-bottom: 16px;
    }

    body.woocommerce-order-received
    .rt-checkout-page
    .woocommerce-order-details table.shop_table th,
    body.woocommerce-order-received
    .rt-checkout-page
    .woocommerce-order-details table.shop_table td {
        padding: 14px 13px !important;
    }

    body.woocommerce-order-received
    .rt-checkout-page
    .woocommerce-customer-details .woocommerce-columns,
    body.woocommerce-order-received
    .rt-checkout-page
    .woocommerce-customer-details .addresses {
        grid-template-columns: 1fr;
    }

    body.woocommerce-order-received
    .rt-checkout-page
    .woocommerce-customer-details address {
        padding: 18px !important;
    }

}



/* =========================================================
   THANK YOU FINAL CLOSURE R1D
   WooCommerce order_details clearfix neutralization.
   Prevent invisible ::before / ::after from occupying grid cells.
   ========================================================= */

body.woocommerce-order-received
.rt-checkout-page
ul.woocommerce-order-overview.order_details::before,
body.woocommerce-order-received
.rt-checkout-page
ul.woocommerce-order-overview.order_details::after {
    content: none !important;
    display: none !important;
}

