/*
Template: salient
*/

/* ======================================================
   VARIABLES
====================================================== */

:root {
    --primary: #2563eb;
    --primary-dark: #1d4ed8;
    --border: #e5e7eb;
    --background: #f8fafc;
    --card: #ffffff;
    --text: #111827;
    --muted: #6b7280;
    --radius: 12px;
    --transition: .25s;
    --shadow:
        0 4px 14px rgba(0, 0, 0, .05);
}

/* ======================================================
   GLOBAL
====================================================== */
.woocommerce-checkout {
    background: var(--background);
}

.woocommerce-checkout .woocommerce {
    max-width: 1400px;
    margin: auto;
}

/* ======================================================
   DESKTOP LAYOUT
====================================================== */
@media(min-width:992px) {
    .woocommerce-checkout .col2-set {
        display: flex;
        gap: 40px;
        align-items: flex-start;
    }

    .woocommerce-checkout .col2-set>.col-1 {
        flex: 0 0 65%;
        max-width: 65%;
    }

    .woocommerce-checkout .col2-set>.col-2 {
        flex: 0 0 35%;
        max-width: 35%;
    }

}

/* ======================================================
   CARD
====================================================== */

.woocommerce-billing-fields,
.woocommerce-shipping-fields,
.woocommerce-additional-fields,
#payment,
#order_review {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 25px;
    box-shadow: var(--shadow);
}



/* ======================================================
   TITLE
====================================================== */

.woocommerce-checkout h3 {
    margin: 0 0 24px;
    padding: 0;
    border: none;
    font-size: 24px !important;
    font-weight: 700;
    color: var(--text);
}

.checkout #order_review {
    margin-top: 5px;
}

.woocommerce form .form-row .input-text,.woocommerce form .form-row select {
    font-family: inherit;
    font-weight: 400;
    letter-spacing: normal;
    padding: .5em;
    display: block;
    background-color: var(--wc-form-color-background,#fff);
    border: var(--wc-form-border-width, 1px) solid var(--wc-form-color-border, #e5e7eb);
    border-radius: var(--wc-form-border-radius);
    color: var(--wc-form-color-text,#000);
    box-sizing: border-box;
    width: 100%;
    margin: 0;
    line-height: normal;
    height: auto
}

/* ======================================================
   FORM ROW
====================================================== */

.woocommerce-checkout .form-row {
    display: block;
    width: 100%;
    margin-bottom: 20px;
}

.woocommerce-checkout label {
    display: block;
    margin-bottom: 8px;
    color: var(--text);
    font-weight: 600;
    font-size: 14px;
}

.woocommerce-input-wrapper {
    display: block;
    width: 100%;
}

/* ======================================================
   INPUT
====================================================== */
.woocommerce-checkout input.input-text,
.woocommerce-checkout textarea,
.woocommerce-checkout select {
    width: 100%;
    max-width: none;
    min-height: 50px;
    padding: 12px 16px;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: #fff;
    transition: var(--transition);
    box-sizing: border-box;
}

.woocommerce-checkout textarea {
    min-height: 120px;
    resize: vertical;
}

.woocommerce-checkout input:focus,
.woocommerce-checkout textarea:focus,
.woocommerce-checkout select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, .15);
}

/* ======================================================
   SELECT2
====================================================== */
.select2-container {
    width: 100% !important;
}

.select2-selection {
    height: 50px !important;
    border-radius: 10px !important;
    border: 1px solid var(--border) !important;
}

.select2-selection__rendered {
    line-height: 48px !important;
    padding-left: 15px !important;
}

.select2-selection__arrow {
    height: 48px !important;
}

/* ======================================================
   TWO COLUMN
====================================================== */

@media(min-width:768px) {

    #billing_phone_field,
    #billing_email_field,
    #billing_state_field,
    #billing_city_field,
    #billing_district_field,
    #billing_postcode_field {
        display: inline-block;
        width: calc(50% - 10px);
        vertical-align: top;
    }

    #billing_phone_field,
    #billing_state_field,
    #billing_district_field {
        margin-right: 20px;
    }

}

/* ======================================================
   MOBILE
====================================================== */
@media(max-width:767px) {

    #billing_phone_field,
    #billing_email_field,
    #billing_state_field,
    #billing_city_field,
    #billing_district_field,
    #billing_postcode_field {
        width: 100%;
        margin-right: 0;
    }

    .woocommerce-billing-fields,
    #order_review,
    #payment {
        padding: 15px;
    }

}

/* ======================================================
   ORDER SUMMARY
====================================================== */

#order_review {
    position: relative;
    overflow: hidden;
}

@media(min-width:992px) {
    #order_review {
        position: sticky;
        top: 30px;
    }
}

.woocommerce-checkout-review-order-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
}

.woocommerce-checkout-review-order-table th,
.woocommerce-checkout-review-order-table td {
    padding: 14px 0;
    border-bottom: 1px solid var(--border);
    vertical-align: middle;
}

.woocommerce-checkout-review-order-table thead {
    display: none;
}

.woocommerce-checkout-review-order-table .product-name {
    font-weight: 600;
    color: var(--text);
}

.woocommerce-checkout-review-order-table .product-total {
    text-align: right;
    font-weight: 600;
}

.cart-subtotal th,
.shipping th,
.order-total th {
    color: var(--muted);
    font-weight: 500;
}

.cart-subtotal td,
.shipping td {
    text-align: right;
}

.order-total th,
.order-total td {
    padding-top: 18px;
    font-size: 22px;
    font-weight: 700;
}

.order-total td {
    color: var(--primary);
}



/* ======================================================
   PRODUCT ITEM
====================================================== */
.product-container {
    display: flex;
    gap: 15px;
    align-items: center;
    margin-bottom: 20px;
}

.product-image {
    width: 75px;
    flex-shrink: 0;
}

.product-image img {
    width: 75px;
    border-radius: 10px;
}

.product-info {
    flex: 1;
}

.product-info h4 {
    margin: 0 0 6px;
    font-size: 15px;
    font-weight: 600;
}

.product-info .quantity {
    color: var(--muted);
    font-size: 13px;
}



/* ======================================================
   SHIPPING CARD
====================================================== */

.shipping-selector-card {
    margin-top: 18px;
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 18px;
    background: #fff;
    transition: .25s;
}

.shipping-selector-card:hover {
    border-color: var(--primary);
}

.shipping-selector-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
}

.shipping-selector-info {
    flex: 1;
}

.shipping-selector-info small {
    display: block;
    color: var(--muted);
    margin-bottom: 6px;
}

.shipping-selected {
    font-weight: 600;
    color: var(--text);
}

.shipping-change-btn {
    border: none;
    background: var(--primary);
    color: #fff;
    padding: 10px 16px;
    border-radius: 10px;
    cursor: pointer;
    transition: .25s;
}

.shipping-change-btn:hover {
    background: var(--primary-dark);
}

/* ======================================================
   PAYMENT
====================================================== */

#payment{

    background:#fff;

    border:1px solid #e5e7eb;

    border-radius:16px;

    padding:0;

    overflow:hidden;

}

.wc_payment_methods{

    margin:0;

    padding:0;

    list-style:none;

}

.wc_payment_methods>li{
    display:grid;
    grid-template-columns:24px 1fr;
    grid-template-areas:
        "radio label"
        ". description";
    gap:3px;
    padding:10px 0 0 12px;
    border-bottom:1px solid #e5e7eb;
    transition:.25s;
}

.wc_payment_methods>li:last-child{

    border-bottom:none;

}

.wc_payment_methods>li:hover{

    background:#f8fafc;

}


/* Radio */

.wc_payment_methods input[type=radio]{

    grid-area:radio;

    margin-top:3px;

}


/* Label */

.wc_payment_methods label{

    grid-area:label;

    margin:0;

    font-size:16px;

    font-weight:600;

    cursor:pointer;

}


/* Description */

.payment_box{

    grid-area:description;

    margin:0;

    padding:16px;

    border:1px solid #e5e7eb;

    border-radius:10px;

    background:#f8fafc;

    color:#4b5563;

    line-height:1.8;

}


/* Selected */

.wc_payment_methods li:has(input:checked){

    background:#eff6ff;

}

.wc_payment_methods li:has(input:checked) .payment_box{

    border-color:#bfdbfe;

    background:#f8fbff;

}


/* ======================================================
   PRIVACY TEXT
====================================================== */

.woocommerce-privacy-policy-text {
    margin-top: 18px;
    font-size: 13px;
    color: var(--muted);
    line-height: 1.8;
}



/* ======================================================
   PLACE ORDER
====================================================== */
#place_order{
    width:100%;
    height:56px;
    padding:24px;
    border-top:1px solid #e5e7eb;
    border-radius:12px;
    background:#2563eb;
    font-size:16px;
    font-weight:600;
    margin-top:20px;
}

#place_order:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

#place_order:active {
    transform: translateY(0);
}

/* ======================================================
   SHIPPING MESSAGE
====================================================== */

.woocommerce-shipping-destination,

.woocommerce-shipping-calculator {

    display: none;

}

.shipping td {

    color: var(--muted);

}



/* ======================================================
   COUPON
====================================================== */

.checkout_coupon {

    margin-bottom: 25px;

    border: 1px dashed var(--border);

    border-radius: 12px;

    padding: 20px;

}



/* ======================================================
   MOBILE
====================================================== */

@media(max-width:768px) {

    #order_review {

        position: relative;

        top: auto;

    }

    .shipping-selector-header {

        flex-direction: column;

        align-items: flex-start;

    }

    .shipping-change-btn {

        width: 100%;

    }

}

/* ======================================================
   BIOZATIX CHECKOUT
   PART 3
   Shipping Modal + Polish + Mobile
====================================================== */



/* ======================================================
   SHIPPING MODAL
====================================================== */

#shipping-modal {

    display: none;

    position: fixed;

    inset: 0;

    z-index: 999999;

    animation: fadeIn .25s;

}

.shipping-modal-overlay {

    position: absolute;

    inset: 0;

    background: rgba(17, 24, 39, .55);

    backdrop-filter: blur(2px);

}

.shipping-modal-content {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 92%;
    max-width: 650px;
    max-height: 85vh;
    background: #fff;
    border-radius: 18px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow:
        0 30px 80px rgba(0, 0, 0, .25);
}

.shipping-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 22px 24px;
    border-bottom: 1px solid #e5e7eb;
}

.shipping-modal-header h3 {
    margin: 0;
    font-size: 22px;
}

.shipping-close {
    font-size: 28px;
    cursor: pointer;
    color: #6b7280;
    transition: .2s;
}

.shipping-close:hover {
    color: #111827;
}

.shipping-modal-body {
    overflow: auto;
    padding: 20px;
}



/* ======================================================
   SHIPPING OPTION
    ====================================================== */
.shipping-option {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    padding: 18px;
    margin-bottom: 12px;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    cursor: pointer;
    transition: .25s;
    background: #fff;
}

.shipping-option:hover {
    border-color: #2563eb;
    background: #f8fbff;
}

.shipping-option input {
    margin-top: 3px;
}

.shipping-option:has(input:checked) {
    border-color: #2563eb;
    background: #eff6ff;
    box-shadow:
        0 0 0 3px rgba(37, 99, 235, .08);
}

.shipping-option-content {
    flex: 1;
}

.shipping-option-top {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 8px;
}

.shipping-courier {
    font-weight: 700;
    color: #111827;
}

.shipping-price {
    font-weight: 700;
    color: #2563eb;
}

.shipping-estimate {
    font-size: 13px;
    color: #6b7280;
}

/* ======================================================
   LOADING
    ====================================================== */

.processing {
    pointer-events: none;
    opacity: .75;
}

.processing:after {
    content: "";
    position: fixed;
    inset: 0;
    background: rgba(255, 255, 255, .45);
    z-index: 99999;
}



/* ======================================================
   REQUIRED STAR
    ====================================================== */

.required {
    color: #dc2626;
}

/* ======================================================
   MESSAGE
    ====================================================== */

.woocommerce-message,
.woocommerce-info,
.woocommerce-error {
    border: none;
    border-radius: 12px;
    padding: 16px 20px;
    margin-bottom: 25px;
    box-shadow:
        0 5px 20px rgba(0, 0, 0, .05);
}

.woocommerce-error {
    background: #fef2f2;
}

.woocommerce-message {
    background: #f0fdf4;
}

.woocommerce-info {
    background: #eff6ff;
}

/* ======================================================
   SELECT2
====================================================== */

.select2-dropdown {
    border-radius: 12px;
    border: 1px solid #d1d5db;
    overflow: hidden;
}

.select2-results__option {
    padding: 10px 14px;
}

.select2-results__option--highlighted {
    background: #2563eb !important;
}

/* ======================================================
   PLACEHOLDER
====================================================== */
::placeholder {
    color: #9ca3af;
}

/* ======================================================
   CHECKBOX
====================================================== */

.woocommerce-checkout input[type=checkbox] {
    width: 18px;
    height: 18px;
    accent-color: #2563eb;
}

/* ======================================================
   ORDER REVIEW TABLE
====================================================== */
.shop_table tr:last-child td,
.shop_table tr:last-child th {
    border-bottom: none;
}


/* ======================================================
   PRODUCT IMAGE
====================================================== */
.product-image img {
    border: 1px solid #e5e7eb;
}

/* ======================================================
   SCROLLBAR
====================================================== */
.shipping-modal-body::-webkit-scrollbar {
    width: 8px;
}

.shipping-modal-body::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 20px;
}

/* ======================================================
   MOBILE
====================================================== */
@media(max-width:768px) {
    .shipping-modal-content {
        left: 0;
        bottom: 0;
        top: auto;
        transform: none;
        width: 100%;
        max-width: none;
        max-height: 80vh;
        border-radius: 22px 22px 0 0;
        animation: slideUp .25s;
    }

    #place_order {
        height: 58px;
    }
}


/* ======================================================
   ANIMATION
====================================================== */
@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes slideUp {
    from {
        transform: translateY(100%);
    }

    to {
        transform: translateY(0);
    }
}

.woocommerce-privacy-policy-text{

    padding:20px;

    color:#6b7280;

    font-size:13px;

    line-height:1.7;

}

.woocommerce-checkout #payment{

    background:#fff !important;

    border:1px solid #e5e7eb !important;

    border-radius:16px !important;

}

/* ==========================================
   PAYMENT DESCRIPTION
========================================== */

.payment_box{
    margin-top:6px !important;
    padding:8px 12px !important;
    border-radius:10px;
    line-height:1.6;
}

.payment_box p{
    margin:0 !important;
    padding:0 !important;
    line-height:1.6;
}

.payment_box p:last-child{
    margin-bottom:0 !important;
}

.woocommerce-additional-fields{
	display: none;
}

.shipping-selected {
    font-weight: 600;
    color: var(--text);
    font-size: 10pt;
}

.shipping-selector-card {
/*     margin-top: 18px; */
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 5px;
    background: #fff;
    transition: .25s;
	margin: 0 0 10px 15px
}

/* Select2 WooCommerce */
.woocommerce .select2-container--default .select2-selection--single{
    height:50px !important;
    min-height:50px !important;
    padding:0 40px 0 15px !important;
    display:flex !important;
    align-items:center !important;
    border-radius:8px;
}

.woocommerce .select2-container--default
.select2-selection--single
.select2-selection__rendered{
    padding:0 !important;
    margin:0 !important;
    line-height:1 !important;
    display:flex !important;
    align-items:center !important;
    height:100% !important;
}

.woocommerce .select2-container--default
.select2-selection--single
.select2-selection__arrow{
    height:100% !important;
    top:0 !important;
    right:12px !important;
}

.woocommerce #payment{
    padding: 24px !important;
    border-radius: 12px;
}

.woocommerce #payment .wc-privacy-policy-text{
    margin-bottom: 24px !important;
}

.woocommerce #payment .form-row.place-order{
    padding: 24px 0 0 !important;
}

.woocommerce-billing-fields,
.woocommerce-shipping-fields,
.woocommerce-additional-fields,
#payment,
#order_review {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 10px;
    /* padding: 20px; */
    margin-bottom: 25px;
    box-shadow: var(--shadow);
}

.woocommerce-checkout-review-order-table .product-container {
    background-color: rgba(0,0,0,.02);
    padding:2px !important;
    max-height: 456px !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
    margin-bottom: 3px !important;
}

@media (min-width: 992px){

    .woocommerce .col2-set{
        display:flex;
        gap:40px;
        width:100%;
		padding-top: 30px
    }

    .woocommerce .col2-set .col-1,
    .woocommerce .col2-set .col-2{
        float:none !important;
        width:auto !important;
        max-width:none !important;
        min-width:0;
    }

    .woocommerce .col2-set .col-1{
        flex:1;
    }

    .woocommerce .col2-set .col-2{
        flex:0 0 420px;
    }

}
