/* ==========================================================================
   Expired Post Tagger v3 – Front-end Styles
   ========================================================================== */

/* ---- Main banner ---- */
.ept-expired-banner {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    /* background-color & color set via inline styles from settings */
    padding: 14px 20px;
    border-radius: 6px 6px 0 0;  /* flat bottom when sub-message follows */
    font-family: inherit;
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.20);
    margin-bottom: 0;             /* sub-message sits flush below */
}

/* When no sub-message exists the banner stands alone — restore radius + margin */
.ept-expired-banner:not( + .ept-sub-message ) {
    border-radius: 6px;
    margin-bottom: 24px;
}

/* ---- Icon / emoji ---- */
.ept-expired-icon {
    font-size: 1.3rem;
    line-height: 1;
    flex-shrink: 0;
}

/* ---- Main label ---- */
.ept-expired-text {
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
}

/* ---- "Expired: [date & time]" ---- */
.ept-expired-date {
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.04em;
    opacity: 0.90;
    margin-left: auto;
}

/* ---- Sub-message block ---- */
.ept-sub-message {
    /* background-color & color set via inline styles from settings */
    padding: 10px 20px;
    border-radius: 0 0 6px 6px;
    font-size: 0.92rem;
    line-height: 1.5;
    margin-bottom: 24px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

.ept-sub-message a {
    color: inherit;
    text-decoration: underline;
}

/* ---- Responsive ---- */
@media ( max-width: 480px ) {
    .ept-expired-banner {
        padding: 12px 14px;
        font-size: 0.9rem;
    }
    .ept-expired-date {
        margin-left: 0;
        width: 100%;
    }
    .ept-sub-message {
        padding: 10px 14px;
    }
}
