.sb-popup-overlay *{
    box-sizing: border-box;
}
.sb-popup{
    display: flex;
    flex-direction: column;
    max-width: 500px;
    background: white;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    text-align: center;
    width: 100%;
}
.sb-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: none;
    background: rgba(0,0,0,0.6);
    z-index: 9999;
    justify-content: center;
    align-items: center;
    padding: 1rem;
    transition: all 0.3s ease-in-out;
}
.sb-popup-overlay.active {
    display: flex;
}
.sb-popup__image,
.sb-popup__img{
    max-width: 100%;
    width: 100%;
}

.sb-popup__content {
    color: #06231E;
    padding: 20px;
    width: 100%;
}
.sb-popup__close {
    position: absolute;
    top: 5px;
    right: 10px;
    border: none;
    background: none;
    font-size: 24px;
    cursor: pointer;
    color: #fff;
    font-weight: 200;
}

.sb-popup__title{
    font-size: clamp(1rem, 0.8808rem + 0.5961vw, 1.25rem);;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 8px;
}
.sb-popup__desc{
    font-size: clamp(0.875rem, 0.8154rem + 0.2981vw, 1rem);
    margin-bottom: 20px;
}
.sb-popup__btn{
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #063730;
    border-radius: 8px;
    height: 50px;
    padding: 10px 20px;
    color: white;
    transition: .3s;
    text-decoration: none;
    text-transform: uppercase;
    width: 100%;
}
.sb-popup__btn:hover{
    background-color: #094C42;
}
.sb-popup__btn:active{
    background-color: #042F29;
}
.sb-popup__btn[disabled]{
    cursor: default;
    color: #9E9DAA;
    background-color: #C8CED9;
    pointer-events: none;
}

.sb-popup-promocode-wrapper {
    margin-top: 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: wrap;
    height: 44px;
    border-radius: 8px;
    border: 1px solid #063730;
    padding: 0 10px;
    margin-bottom: 12px;
    position: relative;
    cursor: pointer;
}
.sb-popup-promocode {
    font-weight: bold;
    font-size: 1.2rem;
    background: #fff;
    border-radius: 6px;
}
.sb-popup-copy-btn {
    background: #fff;
    color: white;
    border: none;
    cursor: pointer;
}
.sb-popup-promocode__tooltip{
    background-color: #063730;
    color: #fff;
    padding: 2px 4px;
    border-radius: 4px;
    font-size: 12px;
    position: absolute;
    top: 50%;
    right: 44px;
    transform: translate(0%, -50%) scale(.1);
    transform-origin: right;
    display: none;
    transition: .3s;
}
.sb-popup-promocode__tooltip.active{
    transform: translate(0%, -50%) scale(1);
}
body.sb-popup-open {
    overflow: hidden;
    position: relative;
    height: 100vh;
}

@media (max-width: 500px) {
    .sb-popup__close{
        display: none;
    }
    .sb-popup::before {
        content: '';
        display: block;
        width: 40px;
        height: 4px;
        background: #ccc;
        border-radius: 2px;
        margin: 10px auto 0;
        position: absolute;
        top: 0;
        left: 50%;
        transform: translateX(-50%);
    }
    .sb-popup{
        position: absolute;
        width: 100%;
        left: 0;
        bottom: 0;
        transform: translateY(100%);
        transition: 0.3s ease;
        border-radius: 12px 12px 0 0;
    }
    .sb-popup.active{
        transform: translateY(0%);
    }
    .sb-popup-overlay{
        padding: 0;
    }
    .sb-popup__content {
        margin-top: auto;
        border-radius: 16px 16px 0 0;
        max-width: 100%;
        width: 100%;
        animation: slideUp 0.3s ease-out;
    }

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


