/**
 * Fichier  : /ott/checkout/assets/css/coupon.css
 * Fonction : style de la section coupon
 */


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

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

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

#checkout .checkout .coupon p {
    margin: 10px 0 0 0;
}

#checkout .checkout .coupon p {
    font-family: 'content-font';
    font-size: 13px;
    line-height: 1.45;
    color: rgba(255,255,255,.64);
}


/* ==================================================
   FIELD
================================================== */

#checkout .checkout .coupon-field {
    margin-top: 14px;
}

#checkout .checkout .coupon-field {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 4px;
}

#checkout .checkout .coupon input,
#checkout .checkout .coupon .mm-field,
#checkout .checkout .coupon .mm-formField input {
    width: 100% !important;
    max-width: 100% !important;
}

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

#checkout .checkout .coupon input,
#checkout .checkout .coupon .mm-field,
#checkout .checkout .coupon .mm-formField input {
    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 0 0 14px !important;
    backdrop-filter: blur(18px);
}

#checkout .checkout .coupon input,
#checkout .checkout .coupon .mm-field,
#checkout .checkout .coupon .mm-formField input {
    font-family: 'content-font' !important;
    font-size: 14px !important;
    color: #fff !important;
}

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


/* ==================================================
   APPLY BUTTON
================================================== */

#checkout .checkout .coupon .apply {
    min-height: 48px;
    padding: 0 18px;
}

#checkout .checkout .coupon .apply {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

#checkout .checkout .coupon .apply {
    background:
        linear-gradient(
            135deg,
            #8e0e00,
            #c91f16 35%,
            #e9401b 68%,
            #ff7b00
        );
    border-radius: 0 14px 14px 0;
}

#checkout .checkout .coupon .apply {
    box-shadow:
        0 8px 24px rgba(233,64,27,.28),
        0 0 16px rgba(255,123,0,.14);
}

#checkout .checkout .coupon .apply {
    font-family: 'content-font';
    font-size: 12px;
    font-weight: 700;
    color: #fff;
}

#checkout .checkout .coupon .apply {
    transition:
        transform .2s ease,
        box-shadow .2s ease;
}

#checkout .checkout .coupon .apply:hover {
    transform: translateY(-1px);
}

#checkout .checkout .coupon .apply:hover {
    box-shadow:
        0 12px 30px rgba(233,64,27,.38),
        0 0 22px rgba(255,123,0,.20);
}


/* ==================================================
   MESSAGES
================================================== */

#checkout .checkout .coupon .mm-formMessage,
#checkout .checkout .coupon .mm-formError,
#checkout .checkout .coupon .mm-error {
    margin-top: 12px;

    font-family: 'content-font';
    font-size: 13px;
    color: #fff;
}


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

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

    #checkout .checkout .coupon-field {
        grid-template-columns: 1fr auto;
    }

    #checkout .checkout .coupon .apply {
        width: fit-content;
    }

}