/**
 * Fichier  : /ott/checkout/assets/css/billing.css
 * Fonction : style paiement et facturation
 */


/* ==================================================
   BILLING
================================================== */

#checkout .checkout .billing {
    display: flex;
    flex-direction: column;
}

#checkout .checkout .billing .group {
    padding: clamp(18px, 2vw, 24px);
}

#checkout .checkout .billing h5 {
    margin: 0;
}

#checkout .checkout .billing h5 {
    font-family: 'bold-font';
    font-size: clamp(16px, 1.2vw, 20px);
    font-weight: 700;
    color: #fff;
}


/* ==================================================
   HEADER
================================================== */

#checkout .checkout .billing .group-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}

#checkout .checkout .billing .trust {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
}

#checkout .checkout .billing .trust img {
    width: auto;
    height: auto;
    max-height: 36px;
}


/* ==================================================
   SEPARATOR
================================================== */

#checkout .checkout .billing hr {
    width: 100%;
    height: 1px;
}

#checkout .checkout .billing hr {
    margin: 0;
    border: 0;
}

#checkout .checkout .billing hr {
    background: rgba(255,255,255,.08);
}


/* ==================================================
   FIELDS
================================================== */

#checkout .checkout .billing .fields {
    margin-top: 18px;
}

#checkout .checkout .billing .fields {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

#checkout .checkout .billing .fields .full {
    grid-column: 1 / -1;
}

#checkout .checkout .billing label {
    display: block;
}

#checkout .checkout .billing label {
    margin-bottom: 7px;
}

#checkout .checkout .billing label {
    font-family: 'content-font';
    font-size: 12px;
    font-weight: 500;
    color: rgba(255,255,255,.58);
}


/* ==================================================
   MEMBERMOUSE FIELDS
================================================== */

#checkout .checkout .billing input,
#checkout .checkout .billing select,
#checkout .checkout .billing textarea,
#checkout .checkout .billing .mm-formField input,
#checkout .checkout .billing .mm-formField select,
#checkout .checkout .billing .mm-formField textarea {
    width: 100% !important;
    max-width: 100% !important;
}

#checkout .checkout .billing input,
#checkout .checkout .billing select,
#checkout .checkout .billing textarea,
#checkout .checkout .billing .mm-formField input,
#checkout .checkout .billing .mm-formField select,
#checkout .checkout .billing .mm-formField textarea {
    min-height: 48px !important;
    padding: 0 14px !important;
}

#checkout .checkout .billing input,
#checkout .checkout .billing select,
#checkout .checkout .billing textarea,
#checkout .checkout .billing .mm-formField input,
#checkout .checkout .billing .mm-formField select,
#checkout .checkout .billing .mm-formField textarea {
    background:
        linear-gradient(
            180deg,
            rgba(255,255,255,.08),
            rgba(255,255,255,.03)
        ) !important;

    border: 1px solid rgba(255,255,255,.08) !important;
    border-radius: 14px !important;

    backdrop-filter: blur(18px);
}

#checkout .checkout .billing input,
#checkout .checkout .billing select,
#checkout .checkout .billing textarea,
#checkout .checkout .billing .mm-formField input,
#checkout .checkout .billing .mm-formField select,
#checkout .checkout .billing .mm-formField textarea {
    font-family: 'content-font' !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    color: #fff !important;
}

#checkout .checkout .billing input::placeholder,
#checkout .checkout .billing textarea::placeholder {
    color: rgba(255,255,255,.42) !important;
}


/* ==================================================
   SELECTS
================================================== */

#checkout .checkout .billing select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
}

#checkout .checkout .billing select {
    cursor: pointer;
    padding-right: 46px !important;
}

#checkout .checkout .billing select {
    background:
        url("data:image/svg+xml,%3Csvg width='18' height='18' viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M7 10L12 15L17 10' stroke='%23ff7b00' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E")
        no-repeat right 15px center,
        linear-gradient(
            180deg,
            rgba(255,255,255,.08),
            rgba(255,255,255,.03)
        ) !important;
}

#checkout .checkout .billing select option {
    color: #111;
}


/* ==================================================
   FOCUS
================================================== */

#checkout .checkout .billing input:focus,
#checkout .checkout .billing select:focus,
#checkout .checkout .billing textarea:focus {
    outline: none !important;
}

#checkout .checkout .billing input:focus,
#checkout .checkout .billing select:focus,
#checkout .checkout .billing textarea:focus {
    border-color: rgba(255,123,0,.35) !important;
}

#checkout .checkout .billing input:focus,
#checkout .checkout .billing select:focus,
#checkout .checkout .billing textarea:focus {
    box-shadow:
        0 0 0 3px rgba(255,123,0,.15) !important;
}


/* ==================================================
   STRIPE / CARD IFRAME HELPERS
================================================== */

#checkout .checkout .billing iframe {
    width: 100% !important;
    max-width: 100% !important;
}

#checkout .checkout .billing .payment-fields > div {
    min-width: 0;
}


/* ==================================================
   RESPONSIVE
================================================== */

@media screen and (max-width: 768px) {

    #checkout .checkout .billing .group-header {
        align-items: flex-start;
        flex-direction: column;
    }

    #checkout .checkout .billing .trust {
        justify-content: flex-start;
        flex-wrap: wrap;
    }

    #checkout .checkout .billing .fields {
        grid-template-columns: 1fr;
    }

}