/*
 * Epic Fans Media — history notification drawer.
 * Shared, property-neutral styling.
 */

.epic-history-notification-drawer[hidden],
.epic-history-notification-drawer [hidden] {
    display: none !important;
}

.epic-history-notification-drawer {
    position: fixed;
    right: 22px;
    bottom: 0;
    z-index: 10050;
    width: min(390px, calc(100vw - 32px));
    font-family: inherit;
    color: #101820;
}

.epic-history-notification-drawer__tab {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    margin-left: auto;
    padding: 11px 18px;
    border: 0;
    border-radius: 10px 10px 0 0;
    background: #101820;
    color: #fff;
    font: inherit;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 -3px 14px rgba(0, 0, 0, .12);
}

.epic-history-notification-drawer__tab:hover,
.epic-history-notification-drawer__tab:focus-visible {
    background: #273746;
    color: #fff;
}

.epic-history-notification-drawer__panel {
    max-height: min(76vh, 650px);
    overflow-y: auto;
    padding: 22px;
    border: 1px solid #dce2e8;
    border-radius: 12px 12px 0 0;
    background: #fff;
    box-shadow: 0 -7px 28px rgba(0, 0, 0, .15);
}

.epic-history-notification-drawer.is-open
.epic-history-notification-drawer__tab {
    display: none;
}

.epic-history-notification-drawer__header {
    display: flex;
    justify-content: space-between;
    align-items: start;
    gap: 12px;
    margin-bottom: 16px;
}

.epic-history-notification-drawer__header h2 {
    margin: 0;
    color: #101820;
    font-size: 21px;
    line-height: 1.3;
}

.epic-history-notification-drawer__close {
    padding: 0 6px;
    border: 0;
    background: transparent;
    color: #56616b;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
}

.epic-history-notification-drawer__guest p {
    margin: 0 0 13px;
    font-size: 14px;
    line-height: 1.6;
}

.epic-history-notification-drawer__register {
    display: block;
    margin-top: 17px;
    padding: 12px 16px;
    border-radius: 7px;
    background: #101820;
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    text-align: center;
    text-decoration: none;
}

.epic-history-notification-drawer__register:hover {
    background: #273746;
    color: #fff;
}

.epic-history-notification-drawer__login {
    margin-top: 14px !important;
    text-align: center;
}

.epic-history-notification-drawer__member
.epic-history-notifications-inline__description {
    font-size: 14px;
    line-height: 1.5;
}

.epic-history-notification-drawer__member
.epic-history-notifications-inline__group {
    margin-bottom: 20px;
}

.epic-history-notification-drawer__loading,
.epic-history-notification-drawer__error {
    padding: 10px 0;
    color: #56616b;
    font-size: 14px;
}

@media (max-width: 800px) {
    .epic-history-notification-drawer {
        right: 10px;
        left: 10px;
        width: auto;
    }

    .epic-history-notification-drawer__tab {
        display: none;
    }

    .epic-history-notification-drawer__panel {
        max-height: 80vh;
        border-radius: 12px 12px 0 0;
    }
}


/* EPIC NOTIFICATION DRAWER PROPERTY STYLING */

.epic-history-notification-drawer__tab,
.epic-history-notification-drawer__register {
    background: var(--property-accent, #c00);
    color: #fff;
}

.epic-history-notification-drawer__tab:hover,
.epic-history-notification-drawer__tab:focus-visible,
.epic-history-notification-drawer__register:hover,
.epic-history-notification-drawer__register:focus-visible {
    background: var(--property-accent, #c00);
    filter: brightness(.88);
    color: #fff;
}

.epic-history-notification-drawer__arrow {
    margin-left: 5px;
    color: #fff;
    font-size: 11px;
    line-height: 1;
}

.epic-history-notification-drawer__login a,
.epic-history-notification-drawer__login a:visited {
    color: var(--property-accent, #c00);
    text-decoration: underline;
    text-underline-offset: 3px;
    font-weight: 700;
}

.epic-history-notification-drawer__login a:hover,
.epic-history-notification-drawer__login a:focus-visible {
    color: var(--property-accent, #c00);
    text-decoration-thickness: 2px;
}


/* EPIC NOTIFICATION DRAWER SIGN-IN VISIBILITY FIX */

body .epic-history-notification-drawer
.epic-history-notification-drawer__guest
.epic-history-notification-drawer__login {
    display: block;
    visibility: visible;
    color: #101820;
    text-align: center;
}

body .epic-history-notification-drawer
.epic-history-notification-drawer__guest
.epic-history-notification-drawer__login a,
body .epic-history-notification-drawer
.epic-history-notification-drawer__guest
.epic-history-notification-drawer__login a:visited,
body .epic-history-notification-drawer
.epic-history-notification-drawer__guest
.epic-history-notification-drawer__login a:hover,
body .epic-history-notification-drawer
.epic-history-notification-drawer__guest
.epic-history-notification-drawer__login a:focus-visible {
    display: inline;
    visibility: visible;
    opacity: 1;
    color: var(--property-accent, #c00) !important;
    text-decoration: underline !important;
    text-underline-offset: 3px;
    font-weight: 700;
}


/* EPIC NOTIFICATION DRAWER CONTROL REFINEMENTS */

/* Match the property's selected radio colour. */
.epic-history-notification-drawer__member
.epic-history-notifications-inline input[type="radio"] {
    accent-color: var(--property-accent, #c00);
    cursor: pointer;
}

/* Make the entire radio label visibly clickable. */
.epic-history-notification-drawer__member
.epic-history-notifications-inline fieldset label {
    cursor: pointer;
}

/* Disabled controls must not suggest they are clickable. */
.epic-history-notification-drawer__member
.epic-history-notifications-inline fieldset:disabled label,
.epic-history-notification-drawer__member
.epic-history-notifications-inline fieldset:disabled input {
    cursor: not-allowed;
}

/* Improve vertical alignment of the collapsed tab contents. */
.epic-history-notification-drawer__tab > span {
    position: relative;
    top: 2px;
}

.epic-history-notification-drawer__tab {
    line-height: 1.3;
}
