/* Posh Popup Frontend Styles */

.posh-popup-overlay {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 800px;
    height: 550px;
    background-color: #0f2b3a;
    /* textured / denim-like feel (no image assets needed) */
    background-image: var(--posh-popup-bg-image,
        radial-gradient(circle at 20% 15%, rgba(255,255,255,0.08) 0%, rgba(255,255,255,0) 45%),
        radial-gradient(circle at 80% 70%, rgba(255,255,255,0.06) 0%, rgba(255,255,255,0) 50%),
        repeating-linear-gradient(0deg, rgba(255,255,255,0.03) 0px, rgba(255,255,255,0.03) 1px, rgba(0,0,0,0) 3px, rgba(0,0,0,0) 6px),
        repeating-linear-gradient(90deg, rgba(0,0,0,0.04) 0px, rgba(0,0,0,0.04) 1px, rgba(0,0,0,0) 4px, rgba(0,0,0,0) 8px)
    );
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 999999;
    align-items: center;
    justify-content: center;
    padding: 0;
    box-sizing: border-box;
    animation: fadeIn 0.3s ease-in-out;
    border-radius: 18px;
}

.posh-popup-overlay.active {
    display: flex;
    transform: translate(-50%, -50%);
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.posh-popup-container {
    position: relative;
    background: transparent;
    border-radius: 0;
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
    overflow-y: auto;
    box-shadow: none;
    animation: slideUp 0.4s ease-out;
    margin: 0;
    display: flex;
    flex-direction: column;
}

@keyframes slideUp {
    from {
        transform: translateY(30px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.posh-popup-header {
    padding: 12px 15px 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    flex-shrink: 0;
    min-height: 50px;
}

.posh-popup-title {
    margin: 15px 0 0 0;
    color: #ffffff;
    font-size: 24px;
    font-weight: 700;
    letter-spacing: 0.5px;
    flex: 1;
    text-align: center;
    line-height: 1.2;
}

.posh-popup-close {
    position: absolute;
    top: 15px;
    right: 20px;
    background: transparent;
    border: none;
    height: auto;
    width: auto;
    border-radius: 0;
    font-size: 18px;
    cursor: pointer;
    z-index: 10;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: none;
    padding: 0;
    margin: 0;
    gap: 10px;
}

.posh-popup-close:hover,
.posh-popup-close:active,
.posh-popup-close:focus {
    background: transparent !important;
    color: #ffffff !important;
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
    outline: none !important;
    box-shadow: none !important;
}

.posh-popup-close-text {
    font-size: 20px;
    font-weight: 500;
    opacity: 0.95;
}

.posh-popup-close-x {
    font-size: 30px;
    line-height: 1;
    margin-top: -2px;
    opacity: 0.95;
}

.posh-popup-close:hover .posh-popup-close-text,
.posh-popup-close:hover .posh-popup-close-x,
.posh-popup-close:active .posh-popup-close-text,
.posh-popup-close:active .posh-popup-close-x,
.posh-popup-close:focus .posh-popup-close-text,
.posh-popup-close:focus .posh-popup-close-x {
    color: #ffffff !important;
    opacity: 0.95 !important;
    background: transparent !important;
}


.posh-popup-content-wrapper {
    padding: 0 15px 12px;
    max-width: 100%;
    margin: 0 auto;
    flex: 1;
    overflow-y: auto;
    min-height: 0;
}

.posh-popup-content-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin-bottom: 0;
    height: 100%;
    min-height: 0;
    align-items: center;
}

.posh-popup-content-card {
    display: flex;
    flex-direction: column;
    background: transparent;
    border: 0;
    border-radius: 0;
    overflow: visible;
    box-shadow: none;
    height: 100%;
    justify-content: center;
    align-items: center;
}

.posh-popup-content-single {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 0;
    height: 100%;
}

.posh-popup-content-single .posh-popup-content-card {
    max-width: 800px;
    width: 100%;
}

.posh-popup-media-container {
    width: 100%;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    min-height: 0;
    margin-bottom: 8px;
    padding-bottom: 0;
}

.posh-popup-media-box {
    width: 100%;
    max-width: 100%;
    position: relative;
    overflow: hidden;
    background: transparent;
    margin: 0 auto;
}

.posh-popup-image-box {
    width: 100%;
    height: 350px;
    min-height: 350px;
    max-height: 350px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    background: transparent;
    flex-shrink: 0;
    margin: 0 auto 0 auto;
    box-sizing: border-box;
}

.posh-popup-image-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 0;
}

.posh-popup-video-box {
    width: 100%;
    height: 350px;
    min-height: 350px;
    max-height: 350px;
    position: relative;
    background: #ffffff;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 15px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    flex-shrink: 0;
    margin: 0 auto 0 auto;
    box-sizing: border-box;
}

.posh-popup-video-box iframe,
.posh-popup-video-box video {
    position: relative;
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
    border: none;
    border-radius: 4px;
    object-fit: contain;
}

.posh-popup-card-button {
    padding: 8px 10px 8px;
    text-align: center;
    background: transparent;
    border-top: 0;
    flex-shrink: 0;
    margin-top: 0;
}

.posh-popup-button {
    display: inline-block;
    background: #FFC65C;
    color: #1a1a1a;
    padding: 10px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-size: 16px;
    font-weight: 700;
    transition: all 0.3s ease;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.18);
    border: none;
    cursor: pointer;
    letter-spacing: 0.2px;
    width: 100%;
    box-sizing: border-box;
}

.posh-popup-button:hover {
    background: #E8B54A;
    transform: translateY(-2px);
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.22);
    color: #1a1a1a;
}

/* Fixed size for all screens - no responsive changes */
