/* Fonts */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,600;1,400&family=Lato:wght@300;400;700&display=swap');

:root {
    --sb-primary: #2C3E50;
    /* Dark Slate */
    --sb-secondary: #D4AF37;
    /* Gold */
    --sb-accent: #E8F6EF;
    /* Soft Mint/White */
    --sb-text: #333333;
    --sb-bg-overlay: rgba(0, 0, 0, 0.6);
}

/* Main Overlay - Acts as the Scroll Container */
.sunnybank-pause-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 99999;
    background: var(--sb-bg-overlay);
    backdrop-filter: blur(5px);

    /* Important: The overlay is the scroll view */
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;

    /* Hidden inline by PHP, but ensure CSS knows strictly */
    display: none;
}

/* Flex Wrapper - Handles alignment inside the scrollable overlay */
.sunnybank-modal-wrapper {
    min-height: 100%;
    width: 100%;
    display: flex;
    align-items: center;
    /* Vertically center if possible */
    justify-content: center;
    /* Horizontally center */
    padding: 20px;
    box-sizing: border-box;
}

/* The Card Content */
.sunnybank-pause-card {
    background: #ffffff;
    width: 100%;
    max-width: 600px;

    /* No Fixed Heights - let content dictate size */
    margin: 20px 0;
    /* Add margin to top/bottom for scrolling space */
    position: relative;

    display: flex;
    flex-direction: column;

    border-radius: 12px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    font-family: 'Lato', sans-serif;
    animation: sbFadeIn 0.5s ease-out;
}

@keyframes sbFadeIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

.sunnybank-pause-header {
    background: var(--sb-primary);
    color: #fff;
    padding: 30px;
    text-align: center;
    background-image: linear-gradient(135deg, #2C3E50 0%, #3a5064 100%);
    flex-shrink: 0;
    /* Header shouldn't shrink */
}

.sunnybank-pause-header h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    margin: 0 0 10px;
    font-weight: 600;
    color: #fff;
}

.sunnybank-subtitle {
    font-family: 'Playfair Display', serif;
    font-style: italic;
    font-size: 1.1rem;
    opacity: 0.9;
    margin: 0;
}

.sunnybank-pause-content {
    padding: 30px;
    /* Ensure content is scrollable if needed */
    flex-grow: 1;
}

.sunnybank-message {
    text-align: center;
    font-size: 1.05rem;
    line-height: 1.6;
    color: #555;
    margin-bottom: 30px;
}

.sunnybank-contact-details {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 30px;
}

.contact-item {
    display: flex;
    align-items: center;
    background: var(--sb-accent);
    padding: 15px;
    border-radius: 8px;
    transition: transform 0.2s ease;
}

.contact-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.contact-item .icon {
    font-size: 1.5rem;
    margin-right: 15px;
    background: #fff;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    flex-shrink: 0;
}

.contact-item .details {
    display: flex;
    flex-direction: column;
}

.contact-item .label {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #888;
    margin-bottom: 2px;
}

.contact-item .value {
    font-weight: 700;
    color: var(--sb-primary);
    text-decoration: none;
    font-size: 1.1rem;
    word-break: break-word;
    /* Prevent long text overflow */
}

.sunnybank-map-container {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border: 1px solid #eee;
}

.sunnybank-pause-footer {
    text-align: center;
    padding: 15px 30px 20px;
    font-size: 0.9rem;
    color: #999;
    border-top: 1px solid #f0f0f0;
    flex-shrink: 0;
}

/* Close Button Styling */
.sunnybank-close-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: #fff;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    transition: background 0.2s;
    z-index: 10;
}

.sunnybank-close-btn:hover {
    background: rgba(255, 255, 255, 0.4);
}

/* Mobile Responsive Tweaks */
@media (max-width: 480px) {
    .sunnybank-pause-overlay {
        padding: 10px;
        align-items: flex-end;
        /* Sheet-like behavior on mobile? Or centered? Centered is safer for this */
        align-items: center;
    }

    .sunnybank-pause-header {
        padding: 20px;
    }

    .sunnybank-pause-header h2 {
        font-size: 1.5rem;
    }

    .sunnybank-subtitle {
        font-size: 1rem;
    }

    .sunnybank-pause-content {
        padding: 20px;
    }

    .sunnybank-message {
        font-size: 0.95rem;
        margin-bottom: 20px;
    }

    .contact-item {
        padding: 12px;
    }

    .contact-item .value {
        font-size: 1rem;
    }

    /* Adjust map height on very small screens */
    .sunnybank-map-container iframe {
        height: 200px;
    }
}