/* =========================================================
   HNIA HARRATI
   CHECKOUT — PREMIUM REFINED
========================================================= */


/* =========================================================
   PAGE BASE
========================================================= */

body.woocommerce-checkout {
    background: #fcfbf8;
    color: #17120f;
}


/* =========================================================
   MAIN
========================================================= */

body.woocommerce-checkout .site-main,
body.woocommerce-checkout main {
    width: calc(100% - 72px);
    max-width: 1640px;

    margin: 0 auto;

    padding:
        152px
        0
        150px;
}


/* =========================================================
   PAGE TITLE
========================================================= */

body.woocommerce-checkout .entry-title {
    display: none !important;
}


/* =========================================================
   CHECKOUT BASE
========================================================= */

body.woocommerce-checkout .woocommerce {
    width: 100%;
}


/* =========================================================
   HIDE TOP COUPON PROMPT
========================================================= */

body.woocommerce-checkout
.woocommerce-form-coupon-toggle {
    display: none !important;
}


/* =========================================================
   CHECKOUT LAYOUT
========================================================= */

body.woocommerce-checkout form.checkout {
    display: grid;

    grid-template-columns:
        minmax(0, 1.1fr)
        minmax(420px, .82fr);

    grid-template-areas:
        "customer order";

    align-items: start;

    column-gap:
        clamp(56px, 7vw, 124px);

    width: 100%;
}


/* =========================================================
   CUSTOMER DETAILS
========================================================= */

body.woocommerce-checkout #customer_details {
    grid-area: customer;

    width: 100%;
}


body.woocommerce-checkout #customer_details .col-1,
body.woocommerce-checkout #customer_details .col-2 {
    float: none;

    width: 100%;
}


body.woocommerce-checkout #customer_details .col-2 {
    margin-top: 56px;
}


/* =========================================================
   MAIN TITLES
========================================================= */

body.woocommerce-checkout
.woocommerce-billing-fields
h3,
body.woocommerce-checkout
.woocommerce-shipping-fields
h3 {
    margin:
        0
        0
        30px;

    font-family:
        "League Spartan",
        Arial,
        sans-serif;

    font-size:
        clamp(30px, 3vw, 40px);

    font-weight:
        400;

    line-height:
        1;

    letter-spacing:
        -.03em;

    color:
        #17120f;
}


/* =========================================================
   FIELD WRAPPERS
========================================================= */

body.woocommerce-checkout
.woocommerce-billing-fields__field-wrapper,
body.woocommerce-checkout
.woocommerce-shipping-fields__field-wrapper {
    display: flex;

    flex-wrap: wrap;

    align-items: flex-start;
}


/* =========================================================
   FIELD ROWS
========================================================= */

body.woocommerce-checkout
.form-row {
    margin:
        0
        0
        22px;
}


/* =========================================================
   LABELS
========================================================= */

body.woocommerce-checkout
.form-row
label {
    display: block;

    margin:
        0
        0
        9px;

    font-family:
        "Manrope",
        Arial,
        sans-serif;

    font-size:
        9px;

    font-weight:
        700;

    line-height:
        1.2;

    letter-spacing:
        .14em;

    text-transform:
        uppercase;

    color:
        #7b7068;
}


body.woocommerce-checkout
.form-row
label
.required {
    color:
        #a6754c;

    text-decoration:
        none;
}


/* =========================================================
   INPUTS
========================================================= */

body.woocommerce-checkout
input.input-text,
body.woocommerce-checkout
textarea,
body.woocommerce-checkout
select {
    width: 100%;

    min-height:
        56px;

    padding:
        0
        16px;

    border:
        1px solid
        rgba(23,18,15,.12);

    border-radius:
        0;

    outline:
        none;

    background:
        rgba(255,255,255,.48);

    box-shadow:
        none;

    font-family:
        "Manrope",
        Arial,
        sans-serif;

    font-size:
        12px;

    font-weight:
        400;

    color:
        #17120f;

    transition:
        border-color 220ms ease,
        background-color 220ms ease,
        box-shadow 220ms ease;
}


body.woocommerce-checkout
textarea {
    min-height:
        140px;

    padding:
        16px;

    resize:
        vertical;
}


body.woocommerce-checkout
input.input-text::placeholder,
body.woocommerce-checkout
textarea::placeholder {
    color:
        #9d938b;

    opacity:
        1;
}


body.woocommerce-checkout
input.input-text:focus,
body.woocommerce-checkout
textarea:focus,
body.woocommerce-checkout
select:focus {
    border-color:
        rgba(166,117,76,.55);

    background:
        #fff;

    box-shadow:
        0
        0
        0
        3px
        rgba(166,117,76,.06);
}


/* =========================================================
   TWO COLUMN FIELDS
========================================================= */

body.woocommerce-checkout
.form-row-first,
body.woocommerce-checkout
.form-row-last {
    width:
        calc(50% - 10px);

    float:
        none;
}


body.woocommerce-checkout
.form-row-first {
    margin-right:
        20px;
}


body.woocommerce-checkout
.form-row-wide {
    width: 100%;
}


/* =========================================================
   CHECKBOX / RADIO
========================================================= */

body.woocommerce-checkout
input[type="checkbox"],
body.woocommerce-checkout
input[type="radio"] {
    accent-color:
        #17120f;
}


/* =========================================================
   SHIP TO DIFFERENT ADDRESS
========================================================= */

body.woocommerce-checkout
#ship-to-different-address {
    margin:
        0
        0
        28px;
}


body.woocommerce-checkout
#ship-to-different-address
label {
    display:
        inline-flex;

    align-items:
        center;

    gap:
        10px;

    margin: 0;

    font-family:
        "Manrope",
        Arial,
        sans-serif;

    font-size:
        10px;

    font-weight:
        700;

    letter-spacing:
        .10em;

    text-transform:
        uppercase;

    color:
        #17120f;
}


/* =========================================================
   ADDITIONAL FIELDS
========================================================= */

body.woocommerce-checkout
.woocommerce-additional-fields {
    margin-top:
        44px;
}


body.woocommerce-checkout
.woocommerce-additional-fields
h3 {
    margin:
        0
        0
        20px;

    font-family:
        "League Spartan",
        Arial,
        sans-serif;

    font-size:
        22px;

    font-weight:
        400;

    line-height:
        1;

    letter-spacing:
        -.02em;

    color:
        #17120f;
}


body.woocommerce-checkout
.woocommerce-additional-fields
textarea {
    min-height:
        105px;
}


/* =========================================================
   ORDER REVIEW HEADING
========================================================= */

body.woocommerce-checkout
#order_review_heading {
    display: none !important;
}


/* =========================================================
   ORDER REVIEW CARD
========================================================= */

body.woocommerce-checkout
#order_review {
    grid-area:
        order;

    position:
        sticky;

    top:
        122px;

    width: 100%;

    padding:
        40px
        38px
        34px;

    border:
        1px solid
        rgba(23,18,15,.08);

    background:
        linear-gradient(
            180deg,
            rgba(247,244,239,1) 0%,
            rgba(252,251,248,1) 100%
        );

    box-shadow:
        0
        18px
        48px
        rgba(23,18,15,.05);
}


body.woocommerce-checkout
#order_review::before {
    content:
        "Il tuo ordine";

    display: block;

    margin:
        0
        0
        30px;

    font-family:
        "League Spartan",
        Arial,
        sans-serif;

    font-size:
        clamp(36px, 3vw, 46px);

    font-weight:
        400;

    line-height:
        .96;

    letter-spacing:
        -.035em;

    color:
        #17120f;
}


/* =========================================================
   ORDER TABLE
========================================================= */

body.woocommerce-checkout
#order_review
.shop_table {
    width: 100%;

    margin:
        0
        0
        30px !important;

    border:
        0 !important;

    border-collapse:
        collapse;

    background:
        transparent;
}


body.woocommerce-checkout
#order_review
.shop_table
th,
body.woocommerce-checkout
#order_review
.shop_table
td {
    padding:
        16px
        0 !important;

    border:
        0 !important;

    border-bottom:
        1px solid
        rgba(23,18,15,.08) !important;

    background:
        transparent !important;

    font-family:
        "Manrope",
        Arial,
        sans-serif;

    font-size:
        10px;

    line-height:
        1.55;

    color:
        #756b64;
}


body.woocommerce-checkout
#order_review
.shop_table
th {
    font-weight:
        600;

    text-align:
        left;

    letter-spacing:
        .02em;
}


body.woocommerce-checkout
#order_review
.shop_table
td {
    font-weight:
        600;

    text-align:
        right;

    color:
        #17120f;
}


/* =========================================================
   PRODUCT ROW
========================================================= */

body.woocommerce-checkout
#order_review
.product-name {
    padding-right:
        20px !important;

    text-align:
        left !important;

    color:
        #17120f !important;

    font-size:
        11px !important;

    font-weight:
        600;
}


body.woocommerce-checkout
#order_review
.product-name
strong {
    font-weight:
        500;

    color:
        #a6754c;
}


/* =========================================================
   TOTAL
========================================================= */

body.woocommerce-checkout
#order_review
.order-total
th,
body.woocommerce-checkout
#order_review
.order-total
td {
    padding-top:
        22px !important;

    padding-bottom:
        22px !important;

    font-size:
        13px;

    font-weight:
        700;

    color:
        #17120f;
}


body.woocommerce-checkout
#order_review
.order-total
strong {
    font-weight:
        700;
}


body.woocommerce-checkout
#order_review
.includes_tax {
    display:
        inline-block;

    margin-top:
        4px;

    font-size:
        8px;

    font-weight:
        500;

    color:
        #8a7f77;
}


/* =========================================================
   PAYMENT
========================================================= */

body.woocommerce-checkout
#payment {
    margin: 0;

    border:
        0;

    border-radius:
        0;

    background:
        transparent;
}


/* =========================================================
   PAYMENT METHODS
========================================================= */

body.woocommerce-checkout
#payment
ul.payment_methods {
    margin:
        0
        0
        24px;

    padding:
        0 !important;

    border:
        0 !important;

    list-style:
        none;
}


body.woocommerce-checkout
#payment
ul.payment_methods
li {
    padding:
        14px
        0;

    border-bottom:
        1px solid
        rgba(23,18,15,.08);
}


/* =========================================================
   PAYMENT LABELS
========================================================= */

body.woocommerce-checkout
#payment
.payment_method
label {
    font-family:
        "Manrope",
        Arial,
        sans-serif;

    font-size:
        10px;

    font-weight:
        700;

    color:
        #17120f;
}


/* =========================================================
   PAYMENT BOX
========================================================= */

body.woocommerce-checkout
#payment
.payment_box {
    margin:
        12px
        0
        0 !important;

    padding:
        14px !important;

    border-radius:
        0 !important;

    background:
        rgba(23,18,15,.04) !important;

    font-family:
        "Manrope",
        Arial,
        sans-serif;

    font-size:
        10px;

    line-height:
        1.65;

    color:
        #6f655e;
}


body.woocommerce-checkout
#payment
.payment_box::before {
    display:
        none !important;
}


/* =========================================================
   NO PAYMENT MESSAGE
========================================================= */

body.woocommerce-checkout
#payment
.woocommerce-info,
body.woocommerce-checkout
#payment
.woocommerce-notice--info {
    margin:
        18px
        0
        26px !important;

    padding:
        16px !important;

    border:
        0 !important;

    border-left:
        2px solid
        #a6754c !important;

    background:
        rgba(166,117,76,.05) !important;

    font-family:
        "Manrope",
        Arial,
        sans-serif;

    font-size:
        9px;

    line-height:
        1.75;

    color:
        #655b54;
}


/* =========================================================
   PRIVACY / TERMS
========================================================= */

body.woocommerce-checkout
.woocommerce-privacy-policy-text,
body.woocommerce-checkout
.woocommerce-terms-and-conditions-wrapper {
    font-family:
        "Manrope",
        Arial,
        sans-serif;

    font-size:
        9px;

    line-height:
        1.7;

    color:
        #847971;
}


body.woocommerce-checkout
.woocommerce-privacy-policy-text
a,
body.woocommerce-checkout
.woocommerce-terms-and-conditions-wrapper
a {
    color:
        #a6754c;

    text-decoration:
        none;
}


body.woocommerce-checkout
.woocommerce-privacy-policy-text
a:hover,
body.woocommerce-checkout
.woocommerce-terms-and-conditions-wrapper
a:hover {
    text-decoration:
        underline;
}


/* =========================================================
   PLACE ORDER BUTTON
========================================================= */

body.woocommerce-checkout
#place_order {
    display:
        flex;

    align-items:
        center;

    justify-content:
        center;

    width:
        100%;

    min-height:
        60px;

    margin:
        24px
        0
        0 !important;

    padding:
        0
        24px !important;

    border:
        0 !important;

    border-radius:
        0 !important;

    background:
        #17120f !important;

    box-shadow:
        none !important;

    color:
        #fffdf9 !important;

    font-family:
        "Manrope",
        Arial,
        sans-serif;

    font-size:
        9px !important;

    font-weight:
        700 !important;

    line-height:
        1;

    letter-spacing:
        .16em;

    text-transform:
        uppercase;

    transition:
        background-color 280ms ease,
        transform 280ms cubic-bezier(.16,1,.3,1),
        box-shadow 280ms ease;
}


body.woocommerce-checkout
#place_order:hover {
    background:
        #a6754c !important;

    transform:
        translateY(-1px);

    box-shadow:
        0
        12px
        28px
        rgba(23,18,15,.10);
}


/* =========================================================
   SELECT2
========================================================= */

body.woocommerce-checkout
.select2-container {
    width:
        100% !important;
}


body.woocommerce-checkout
.select2-container
.select2-selection--single {
    height:
        56px;

    border:
        1px solid
        rgba(23,18,15,.12);

    border-radius:
        0;

    background:
        rgba(255,255,255,.48);

    transition:
        border-color 220ms ease,
        background-color 220ms ease,
        box-shadow 220ms ease;
}


body.woocommerce-checkout
.select2-container
.select2-selection--single
.select2-selection__rendered {
    padding:
        0
        42px
        0
        16px;

    line-height:
        54px;

    font-family:
        "Manrope",
        Arial,
        sans-serif;

    font-size:
        12px;

    color:
        #17120f;
}


body.woocommerce-checkout
.select2-container
.select2-selection--single
.select2-selection__arrow {
    top:
        1px;

    right:
        10px;

    height:
        54px;
}


body.woocommerce-checkout
.select2-container.select2-container--open
.select2-selection--single {
    border-color:
        rgba(166,117,76,.55);

    background:
        #fff;

    box-shadow:
        0
        0
        0
        3px
        rgba(166,117,76,.06);
}


/* =========================================================
   VALIDATION
========================================================= */

body.woocommerce-checkout
.woocommerce-invalid
input.input-text,
body.woocommerce-checkout
.woocommerce-invalid
.select2-selection {
    border-color:
        rgba(160,60,43,.55) !important;
}


body.woocommerce-checkout
.woocommerce-validated
input.input-text,
body.woocommerce-checkout
.woocommerce-validated
.select2-selection {
    border-color:
        rgba(23,18,15,.16);
}


/* =========================================================
   GENERAL NOTICES
========================================================= */

body.woocommerce-checkout
.woocommerce-error,
body.woocommerce-checkout
.woocommerce-message,
body.woocommerce-checkout
.woocommerce-info {
    margin:
        0
        0
        30px !important;

    padding:
        16px
        18px !important;

    border:
        0 !important;

    border-left:
        2px solid
        #a6754c !important;

    border-radius:
        0 !important;

    background:
        #f7f4ef !important;

    font-family:
        "Manrope",
        Arial,
        sans-serif;

    font-size:
        10px;

    line-height:
        1.6;

    color:
        #17120f;
}


body.woocommerce-checkout
.woocommerce-error::before,
body.woocommerce-checkout
.woocommerce-message::before,
body.woocommerce-checkout
.woocommerce-info::before {
    display:
        none !important;
}


/* =========================================================
   TABLET
========================================================= */

@media (max-width: 1024px) {

    body.woocommerce-checkout
    .site-main,
    body.woocommerce-checkout
    main {
        width:
            calc(100% - 48px);

        padding:
            126px
            0
            118px;
    }


    body.woocommerce-checkout
    form.checkout {
        grid-template-columns:
            minmax(0,1fr)
            minmax(330px,.78fr);

        column-gap:
            42px;
    }


    body.woocommerce-checkout
    .woocommerce-billing-fields
    h3,
    body.woocommerce-checkout
    .woocommerce-shipping-fields
    h3 {
        font-size:
            34px;
    }


    body.woocommerce-checkout
    #order_review {
        padding:
            32px
            28px
            28px;
    }


    body.woocommerce-checkout
    #order_review::before {
        font-size:
            38px;
    }
}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 767px) {

    body.woocommerce-checkout
    .site-main,
    body.woocommerce-checkout
    main {
        width:
            calc(100% - 24px);

        padding:
            108px
            0
            84px;
    }


    body.woocommerce-checkout
    form.checkout {
        display:
            block;
    }


    body.woocommerce-checkout
    #customer_details {
        margin-bottom:
            54px;
    }


    body.woocommerce-checkout
    #customer_details
    .col-2 {
        margin-top:
            40px;
    }


    body.woocommerce-checkout
    .woocommerce-billing-fields
    h3,
    body.woocommerce-checkout
    .woocommerce-shipping-fields
    h3 {
        margin-bottom:
            26px;

        font-size:
            30px;

        line-height:
            1;
    }


    body.woocommerce-checkout
    .woocommerce-additional-fields {
        margin-top:
            40px;
    }


    body.woocommerce-checkout
    .woocommerce-additional-fields
    h3 {
        font-size:
            20px;
    }


    body.woocommerce-checkout
    .form-row-first,
    body.woocommerce-checkout
    .form-row-last {
        width:
            100%;

        margin-right:
            0;
    }


    body.woocommerce-checkout
    input.input-text,
    body.woocommerce-checkout
    textarea,
    body.woocommerce-checkout
    select {
        min-height:
            52px;

        font-size:
            11px;
    }


    body.woocommerce-checkout
    .select2-container
    .select2-selection--single {
        height:
            52px;
    }


    body.woocommerce-checkout
    .select2-container
    .select2-selection--single
    .select2-selection__rendered {
        line-height:
            50px;
    }


    body.woocommerce-checkout
    .select2-container
    .select2-selection--single
    .select2-selection__arrow {
        height:
            50px;
    }


    body.woocommerce-checkout
    #order_review {
        position:
            static;

        width:
            100%;

        padding:
            24px
            22px
            22px;
    }


    body.woocommerce-checkout
    #order_review::before {
        margin-bottom:
            22px;

        font-size:
            32px;
    }


    body.woocommerce-checkout
    #order_review
    .shop_table
    th,
    body.woocommerce-checkout
    #order_review
    .shop_table
    td {
        font-size:
            9px;
    }


    body.woocommerce-checkout
    #order_review
    .order-total
    th,
    body.woocommerce-checkout
    #order_review
    .order-total
    td {
        font-size:
            11px;
    }


    body.woocommerce-checkout
    #place_order {
        min-height:
            56px;
    }
}