/**
 * AlloDentiste Post-Op Instructions Widget – Stylesheet
 */

/* ============================================================
   Outer wrapper
   ============================================================ */
.allo-post-op-widget {
    box-sizing: border-box;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 60px var(--allo-gutter);
}

/* ============================================================
   Section heading block (eyebrow + heading)
   ============================================================ */
.pop-header {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 16px;
}

.pop-eyebrow {
    display: block;
    font-size: 13px;
    font-weight: 600;
    font-style: italic;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #00A1AD;
}

/* ============================================================
   Section heading
   ============================================================ */
.pop-heading {
    margin: 0 0 16px;
    font-size: 2.25rem;
    font-weight: 700;
    color: #1A1A1A;
    line-height: 1.2;
}

/* ============================================================
   Intro text
   ============================================================ */
.pop-intro {
    margin: 0 0 40px;
    font-size: 1rem;
    color: #666666;
    line-height: 1.7;
}

.pop-intro p {
    margin: 0 0 1em;
    font-size: 1rem;
    color: #666666;
    line-height: 1.7;
}

.pop-intro p:last-child {
    margin-bottom: 0;
}

/* ============================================================
   Tab strip wrapper — allows horizontal scroll on narrow screens
   ============================================================ */
.pop-tabs-wrap {
    margin-bottom: 32px;
    /* Fade-out hint at the right edge when content overflows */
    -webkit-mask-image: linear-gradient(to right, black 90%, transparent 100%);
    mask-image: linear-gradient(to right, black 90%, transparent 100%);
    overflow-x: auto;
    /* Remove mask once items fit */
}

/* When tabs do NOT overflow, the mask looks odd; remove it */
.pop-tabs-wrap:not(.is-overflowing) {
    -webkit-mask-image: none;
    mask-image: none;
}

/* ============================================================
   Tab list
   ============================================================ */
.pop-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    /* Keep tabs on a single row on desktop so they don't wrap
       to multiple rows until the viewport is genuinely small */
}

@media (max-width: 600px) {
    .pop-tabs {
        flex-wrap: nowrap;
        /* Allow horizontal scroll on very small screens */
        padding-bottom: 4px;
    }
}

/* ============================================================
   Individual tab button
   ============================================================ */
.pop-tab {
    display: inline-flex;
    align-items: center;
    padding: 10px 22px;
    border: none;
    border-radius: 100px;
    background-color: #F5F5F5;
    color: #555555;
    font-family: 'Poppins', sans-serif;
    font-size: 0.9375rem;
    font-weight: 500;
    line-height: 1;
    cursor: pointer;
    white-space: nowrap;
    transition: background-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
    outline-offset: 3px;
}

.pop-tab:hover:not(.is-active) {
    background-color: #E8E8E8;
    color: #1A1A1A;
}

.pop-tab:focus-visible {
    outline: 2px solid #00A1AD;
}

/* Active state */
.pop-tab.is-active {
    background-color: #00A1AD;
    color: #FFFFFF;
    box-shadow: 0 2px 10px rgba(0, 161, 173, 0.35);
}

/* ============================================================
   Content panels
   ============================================================ */
.pop-panel {
    background-color: #FFFFFF;
    border: 1px solid #E8E8E8;
    border-radius: 12px;
    padding: 36px 40px;
    color: #333333;
    /* Hidden panels are removed from layout via [hidden] attr */
}

.pop-panel[hidden] {
    display: none;
}

/* Panel typography */
.pop-panel h2,
.pop-panel h3,
.pop-panel h4,
.pop-panel h5 {
    font-family: 'Source Sans 3', sans-serif;
    font-weight: 700;
    color: #1A1A1A;
    margin: 0 0 12px;
    line-height: 1.25;
}

.pop-panel h3 {
    font-size: 1.5rem;
    margin-bottom: 16px;
}

.pop-panel h4 {
    font-size: 1.125rem;
    margin-top: 28px;
    margin-bottom: 10px;
    color: #00A1AD;
}

.pop-panel p {
    font-size: 0.9375rem;
    line-height: 1.75;
    color: #444444;
    margin: 0 0 1em;
}

.pop-panel p:last-child {
    margin-bottom: 0;
}

.pop-panel ul,
.pop-panel ol {
    padding-left: 1.4em;
    margin: 0 0 1.25em;
}

.pop-panel li {
    font-size: 0.9375rem;
    line-height: 1.75;
    color: #444444;
    margin-bottom: 6px;
}

.pop-panel a {
    color: #00A1AD;
    text-decoration: underline;
}

.pop-panel a:hover {
    color: #007d87;
}

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 768px) {
    .pop-heading {
        font-size: 1.75rem;
    }

    .pop-panel {
        padding: 24px 20px;
    }
}

@media (max-width: 480px) {
    .pop-heading {
        font-size: 1.5rem;
    }

    .pop-tab {
        font-size: 0.875rem;
        padding: 9px 18px;
    }
}
