.bristol-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.55);
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    box-sizing: border-box;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.bristol-popup-overlay.popup-visible {
    opacity: 1;
    visibility: visible;
}

.bristol-popup-overlay .popup-modal {
    position: relative;
    width: 100%;
    max-width: 444px;
    background-color: #ffffff;
    border: 4px solid #ffffff;
    border-radius: 16px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.25);
    overflow: hidden;
    box-sizing: border-box;
    transform: scale(0.92) translateY(10px);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.bristol-popup-overlay.popup-visible .popup-modal {
    transform: scale(1) translateY(0);
}

.bristol-popup-overlay .popup-header-image {
    width: 100%;
    height: 162px;
    overflow: hidden;
    border-top-left-radius: 12px;
    border-top-right-radius: 12px;
    position: relative;
}

.bristol-popup-overlay .popup-header-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-top-left-radius: 12px;
    border-top-right-radius: 12px;
}

.bristol-popup-overlay .popup-content {
    background-color: #ffffff;
    padding: 24px;
    border-top-left-radius: 16px;
    border-top-right-radius: 16px;
    margin-top: -16px;
    position: relative;
    z-index: 2;
    box-sizing: border-box;
}

.bristol-popup-overlay .popup-title {
    font-size: 24px;
    font-weight: 700;
    color: #000000;
    text-align: center;
    line-height: 1.3;
    margin-bottom: 16px;
}

.bristol-popup-overlay .popup-subtitle {
    font-size: 12px;
    font-weight: 500;
    text-transform: uppercase;
    color: #222222;
    line-height: 1.35;
    margin-bottom: 16px;
}

.bristol-popup-overlay .popup-description {
    font-size: 14px;
    font-weight: 400;
    color: #1d1d1d;
    line-height: 1.55;
    margin-bottom: 32px;
}

.bristol-popup-overlay .popup-description strong,
.bristol-popup-overlay .popup-description b {
    font-weight: 700;
}

.bristol-popup-overlay .popup-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    width: 100%;
}

.bristol-popup-overlay .popup-btn-close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: #9E5520;
    color: #FBF8F8;
    font-size: 14px;
    font-weight: 500;
    height: 48px;
    min-width: 144px;
    padding: 0 24px;
    border-radius: 4px;
    border: none;
    cursor: pointer;
    text-decoration: none;
    transition: background-color 0.25s ease, transform 0.15s ease;
    box-sizing: border-box;
}

.bristol-popup-overlay .popup-btn-close:hover {
    background-color: #834416;
}

.bristol-popup-overlay .popup-btn-close:active {
    transform: scale(0.98);
}

@media (max-width: 480px) {
    .bristol-popup-overlay {
        padding: 16px;
    }
    .bristol-popup-overlay .popup-modal {
        max-width: 100%;
    }
    .bristol-popup-overlay .popup-header-image {
        height: 140px;
    }
    .bristol-popup-overlay .popup-content {
        padding: 20px 16px;
    }
    .bristol-popup-overlay .popup-title {
        font-size: 20px;
    }
    .bristol-popup-overlay .popup-actions {
        justify-content: stretch;
    }
    .bristol-popup-overlay .popup-btn-close {
        width: 100%;
    }
}
