.step-number,
button.ref-btn {
    font-size: 16px;
    font-weight: 600;
}
dialog#friends-referral-modal.modal {
    width: 100%;
    max-width: 1000px;
    padding: 0;
    border: none;
}
dialog#friends-referral-modal.modal::backdrop {
    background: rgba(0, 0, 0, 0.4);
}
button#close-referral-modal {
    top: 20px;
    right: 20px;
    display: flex;
    border-radius: 50px;
    background: #f6f6f6;
    color: #333;
    padding: 2px;
    font-size: 22px;
    position: absolute;
    border: none;
}
.referral-steps {
    display: flex;
    flex-direction: column;
    gap: 20px;
    max-width: 900px;
    margin: 0 auto;
}
.referral-step {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 20px;
    border-radius: 12px;
    background-color: #f7f7f7;
}
.step-number {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #000;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
}
.step-text {
    margin: 0;
    font-size: 15px;
    line-height: 1.5;
    color: #222;
}
button.ref-btn {
    width: 100%;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    line-height: 1;
    padding: 14px 20px;
    border-radius: 2px;
    border: 0;
}
button.friends-referral-continue {
    margin-top: 20px;
    color: #fff;
    background: #111;
}
button.ref-instructions-goback,
button.share-options-goback {
    margin-top: 10px;
    background: 0 0;
    color: #111;
}
.friends-referral {
    position: relative;
}
.friends-referral-inner {
    padding: 20px;
}
.friends-referral-inner h3 {
    width: 80%;
    font-weight: 800;
    line-height: 1.2;
    font-size: 20px;
    color: #111;
    text-align: left;
}
.friends-referral-img {
    background: linear-gradient(135deg, #ffd194 0%, #ffb347 100%);
}
@media (min-width: 768px) {
    dialog#friends-referral-modal.modal {
        height: 600px !important;
        overflow: hidden;
    }
    .friends-referral,
    dialog#friends-referral-modal.modal .modal-content {
        height: 100%;
        max-height: 100%;
    }
    .friends-referral {
        display: grid;
        grid-template-columns: 2fr 3fr;
    }
    .friends-referral-img img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        transition: transform 0.4s;
        max-height: 600px;
    }
    .friends-referral-inner {
        padding: 40px !important;
        overflow-x: auto;
    }
    .friends-referral-inner h3 {
        font-size: 24px !important;
    }
    button.friends-referral-continue {
        margin-top: 40px !important;
    }
}
.friends-referral-form-wrapper p {
    line-height: 1.4;
    color: #9b9b9b;
    margin: 0;
}
.share-link-wrapper {
    display: flex;
    background: #eee;
    overflow: hidden;
    border-radius: 3px;
}
input#share_link {
    text-overflow: ellipsis;
    border: none;
    border-radius: 0;
    padding-right: 0;
}
button.share-link-copy {
    background: 0 0 !important;
    position: relative;
    font-size: 16px;
    color: #111;
    font-weight: 600;
    text-transform: uppercase;
    padding: 0 10px;
    border: none !important;
    width: 93px;
}
button.referral-link.api-loading::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 18px;
    height: 18px;
    transform: translate(-50%, -50%);
    animation: 0.6s linear infinite spinLoad;
    border: 3px solid #111;
    border-top-color: transparent;
    border-radius: 50%;
}
button.referral-link.share-link-email.api-loading::after,
button.referral-link.share-link-wa.api-loading::after {
    border-color: transparent #fff #fff;
}
.referral-share-social {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 20px;
}
.referral-link, .referral-btn {
    padding: 10px;
    border-radius: 10px;
    height: 50px;
    width: 50px;
    position: relative;
}
button.share-link-wa {
    background: #25d366;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 25px;
}
button.share-link-social,
button.share-link-social:focus,
button.share-link-social:hover {
    background: 0 0;
    color: #111;
    border: 2px solid #111;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}
button.share-btn-email {
    background: #111;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}
.share-options-separator {
    display: flex;
    width: 100%;
    padding: 30px 0;
    flex-direction: column;
    box-sizing: border-box;
    position: relative;
    -webkit-box-pack: center;
    justify-content: center;
    -webkit-box-align: center;
    align-items: center;
    overflow: hidden;
}
.share-options-separator::after {
    content: "";
    position: absolute;
    height: 1px;
    width: auto;
    inset: 0px -20px;
    background-color: #d9d9d9;
    margin: auto;
}
.link-or-separator {
    background: #fff;
    padding: 0 10px;
    color: #9d9d9d;
    font-size: 14px;
    line-height: 24px;
    z-index: 1;
    text-transform: uppercase;
}
form#friends-referral-email {
    display: flex;
    flex-direction: column;
    gap: 15px;
    font-size: 16px;
}
form#friends-referral-email input, form#friends-referral-email textarea {
    font-size: 16px;
}
.referral-input-email {
    min-height: 40px;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    cursor: text;
}
.email-chip {
    padding: 8px 12px;
    line-height: 1;
    border-radius: 25px;
    font-size: 16px;
    background: #f6f6f6;
    box-shadow: 0 2px 0 0 #eee;
    color: #4a4a4a;
    pointer-events: all;
    cursor: pointer;
}
.referral-input-email .email-chip:last-of-type::after {
    content: "\f055";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    font-size: 18px;
    margin-left: 6px;
}
input#referral_email {
    border: none;
    outline: 0;
    min-width: 120px;
    flex: 1;
    padding: 0;
    line-height: 1;
    min-height: fit-content;
    font-size: 16px;
}
.referral-notice-snackbar.is-visible {
    visibility: visible;
    animation:
        0.5s forwards fadeIn,
        0.5s 4.5s forwards fadeOut;
}
.referral-notice-snackbar.success {
    background-color: #f4fff7;
    border: 1px solid #4ab866;
    color: #2f2f2f;
}
.referral-notice-snackbar.error {
    background-color: #ffb3b3;
    border: 1px solid #b84a4a;
    color: #2f2f2f;
}
.referral-notice-snackbar {
    visibility: hidden;
    position: fixed;
    z-index: 99999;
    margin: calc(8px + 1.5625vw) !important;
    margin-top: 5px !important;
    padding: 10px;
    color: #fff;
    right: 0;
    opacity: 0;
    border-radius: 4px;
}
@media (max-width: 768px) {
    dialog#friends-referral-modal.modal {
        height: 100%;
        max-height: 100% !important;
        max-width: 100%;
        margin: 0;
    }
    .friends-referral-img {
        height: 150px;
    }
    .friends-referral-img img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        transition: transform 0.4s;
        object-position: 0% 15%;
    }
    .referral-notice-snackbar {
        width: auto;
        left: 0;
    }
}
@media (min-width: 768px) {
    .referral-notice-snackbar {
        position: absolute !important;
        top: 20px;
        right: 20px;
        margin: 0 !important;
        width: 55% !important;
    }
}
button.submit-email-referral {
    height: 45px;
    position: relative;
    background-color: #111 !important;
    border: 0;
}
button.submit-email-referral.api-loading::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 18px;
    height: 18px;
    transform: translate(-50%, -50%);
    animation: 0.6s linear infinite spinLoad;
    border: 3px solid #fff;
    border-top-color: transparent;
    border-radius: 50%;
}










section.friends-referral-cta_checkout {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 20px;
}
.friends-referral-cta-img {
    height: 200px;
    display: flex;
    background: linear-gradient(135deg, #ffd194 0%, #ffb347 100%);
}
.friends-referral-cta-img img {
    width: 70%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s;
    object-position: 0% 15%;
    margin-left: auto;
    margin-right: -40px;
}
.friends-referral-cta-inner {
    position: absolute;
    top: 30px;
    left: 30px;
}
.friends-referral-cta-inner h3 {
    font-size: 22px;
    font-weight: 800;
    color: #111;
    margin-bottom: 10px !important;
}
.friends-referral-cta-inner p {
    line-height: 1.2;
    color: #1a1a1a;
}
button.open-friends-referral {
    display: inline-block;
    background: #000;
    color: #fff;
    padding: 0.75rem 1.6rem;
    border-radius: 8px;
    border: 0;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    transition: 0.2s ease-in-out;
}
@media (max-width: 600px) {
    .custom-account-dashboard-wrapper section.friends-referral-cta_checkout {
        margin: 0 !important;
    }
    .friends-referral-cta-img {
        height: 170px !important;
    }
    .friends-referral-cta-inner {
        top: 15px;
        left: 15px;
    }
    .friends-referral-cta-inner h3 {
        font-size: 18px;
        line-height: 1.2;
        width: 70%;
    }
    .friends-referral-cta-inner p {
        margin-bottom: 10px;
        width: 70%;
    }
    button.open-friends-referral {
        font-size: 14px;
    }
}
@media (min-width: 600px) {
    .custom-account-dashboard-wrapper section.friends-referral-cta_checkout {
        display: none !important;
    }
}









dialog#referral-validation-modal.modal {
    border: none !important;
    min-height: 450px;
    max-height: 100%;
    width: 550px;
    padding: 0;
}
@media (max-width: 600px) { 
    dialog#referral-validation-modal.modal {
        min-height: 500px;
    }
}
dialog#referral-validation-modal.modal::backdrop {
    background: rgba(0, 0, 0, 0.4);
}
dialog#referral-validation-modal.modal .modal-content, .referral-validation-wrapper {
    height: 100%;
    width: 100%;
}
.validation-loading-screen {
    display: flex;
    align-items: center;
    position: absolute;
    width: 100%;
    height: 100%;
    background: #fff;
    padding: 20px;
    text-align: center;
    line-height: 1.4;
}
.validation-loading-inner {
    margin: auto;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.validation-loading-inner h4 {
    font-size: 18px !important;
    margin-bottom: 10px;
}
.validation-loading-inner p {
    font-size: 16px;
    color: #9b9b9b;
}
.validation-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    font-size: 40px;
}
.validation-icon.is-loading::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 40px;
    height: 40px;
    transform: translate(-50%, -50%);
    animation: 0.6s linear infinite spinLoad;
    border: 5px solid #111;
    border-top-color: transparent;
    border-radius: 50%;
}
.validation-icon.success {
    color: #4ab866;
}
.validation-icon.error {
    color: #b84a4a;
}
.referral-validation-img {
    height: 200px;
    background: linear-gradient(135deg, #ffd194 0%, #ffb347 100%);
}
.referral-validation-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s;
    object-position: 0% 15%;
}
.referral-validation-successful {
    padding: 20px;
    text-align: center;
}
.referral-validation-successful h3 {
    font-weight: 700;
    margin-bottom: 10px;
    color: #111;
}
.referral-validation-successful p {
    line-height: 1.4;
}
.referral-validation-successful button {
    width: 100%;
    color: #fff;
    background: #111;
    text-transform: uppercase;
    border-radius: 3px;
    padding: 10px;
    font-weight: 700;
}
.referral-discount-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
}
.referral-discount {
    font-weight: 600;
    padding: 5px 10px;
    background: #ffb347;
    color: #fff;
    font-size: 16px;
    border-radius: 3px;
    min-width: 200px;
    margin-bottom: 10px;
}
.referral-discount-wrapper p {
    color: #9b9b9b;
}