/* DarFindr account calendar sidebar styles: responsive rules. */


.df-calendar-detail-close::before {
    content: "\00d7";
    font-size: 20px;
    font-weight: 850;
    line-height: 1;
}

.df-calendar-detail-close:hover,
.df-calendar-detail-close:focus-visible {
    border-color: rgba(177, 111, 58, .28);
    background: rgba(177, 111, 58, .1);
    color: var(--color-primary);
    outline: none;
    transform: translateY(-1px);
}

.df-calendar-details .df-calendar-detail {
    position: relative;
    width: min(900px, calc(100vw - 16px));
    max-height: none;
    height: calc(100vh - 16px);
    overflow: auto;
    padding: 18px 18px 20px;
    border: 1px solid rgba(45, 28, 15, .08);
    border-radius: 18px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, .88), rgba(255, 252, 248, .96)),
        rgba(255, 252, 248, .96);
    box-shadow: -18px 0 70px rgba(17, 12, 8, .22);
    backdrop-filter: blur(18px);
}

.df-calendar-details .df-calendar-detail h3 {
    font-family: var(--font-heading, Georgia, serif);
    font-size: clamp(22px, 2.4vw, 30px);
}

.df-calendar-details .df-calendar-detail > dl {
    padding: 14px 0;
    border-top: 1px solid rgba(45, 28, 15, .08);
    border-bottom: 1px solid rgba(45, 28, 15, .08);
}

.df-host-calendar-aside {
    align-content: start;
}

.df-host-calendar-aside .df-calendar-details {
    grid-column: auto;
}

@media (max-width: 720px) {
    .df-calendar-details {
        padding: 12px;
    }

    .df-calendar-detail-close {
        top: 28px;
        right: 28px;
    }

    .df-calendar-details .df-calendar-detail {
        width: 100%;
        max-height: calc(100vh - 24px);
        padding: 18px;
        border-radius: 16px;
    }

    .df-calendar-detail-grid {
        grid-template-columns: 1fr;
    }

    .df-calendar-detail-hero,
    .df-calendar-detail-subline,
    .df-calendar-management {
        grid-template-columns: 1fr;
    }

    .df-calendar-detail-hero img,
    .df-calendar-detail-thumb-fallback {
        width: 100%;
        aspect-ratio: 16 / 9;
    }

    .df-calendar-detail-subline {
        align-items: flex-start;
    }

    .df-calendar-detail-head {
        padding-right: 82px;
    }

    .df-calendar-date-edit {
        grid-template-columns: 1fr;
        width: calc(100vw - 40px);
    }

    .df-calendar-date-edit button {
        width: 100%;
    }

    .df-calendar-detail-popover-panel,
    .df-calendar-detail-popover-panel.is-compact {
        left: 50%;
        width: calc(100vw - 40px);
        transform: translateX(-50%);
    }

    .df-calendar-detail-popover-panel dl div {
        grid-template-columns: 1fr;
        gap: 4px;
    }
}

@media (min-width: 721px) and (max-width: 1100px) {
    .df-calendar-detail-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

.df-host-mini-calendar,
.df-host-calendar-side-card:nth-of-type(4) {
    display: none;
}

.df-host-calendar-side-card {
    background: rgba(255, 252, 248, .84);
}

#df-host-calendar .df-host-calendar-aside {
    display: grid;
    grid-column: 2;
    grid-row: 1 / span 2;
    gap: 0;
    overflow: hidden;
    border: 1px solid rgba(45, 28, 15, .09);
    border-radius: 8px;
    background: rgba(255, 252, 248, .62);
    box-shadow: 0 18px 48px rgba(45, 28, 15, .045);
}

#df-host-calendar .df-host-calendar-aside > .df-host-calendar-side-card {
    display: grid;
    gap: 16px;
    padding: 24px 26px;
    border: 0;
    border-bottom: 1px solid rgba(45, 28, 15, .08);
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

#df-host-calendar .df-host-calendar-aside > .df-host-calendar-side-card:last-of-type {
    border-bottom: 0;
}

#df-host-calendar .df-host-mini-calendar {
    display: grid;
}

#df-host-calendar .df-host-mini-calendar h3,
#df-host-calendar .df-host-calendar-side-card > h3 {
    margin: 0;
    color: #1f160f;
    font-family: var(--font-heading, Georgia, serif);
    font-size: 20px;
    font-weight: 760;
}

#df-host-calendar .df-host-mini-head {
    display: grid;
    grid-template-columns: 30px minmax(0, 1fr) 30px 32px;
    gap: 8px;
    align-items: center;
}

#df-host-calendar .df-host-mini-head h3 {
    display: inline-flex;
    align-items: baseline;
    justify-content: center;
    gap: 5px;
    text-align: center;
}

#df-host-calendar .df-host-mini-head h3 span {
    font-size: 18px;
    line-height: 1;
}

#df-host-calendar .df-host-mini-head h3 small {
    color: rgba(45, 28, 15, .56);
    font-size: 12px;
    font-weight: 800;
    line-height: 1;
}

#df-host-calendar .df-host-mini-head .df-calendar-month-trigger {
    justify-content: center;
    width: 100%;
    min-height: 30px;
    padding: 0;
}

#df-host-calendar .df-host-mini-head .df-calendar-month-trigger span {
    font-size: 18px;
}

#df-host-calendar .df-host-mini-head .df-calendar-month-trigger small {
    font-size: 12px;
}

#df-host-calendar .df-host-mini-head .df-calendar-month-popover {
    width: min(260px, calc(100vw - 48px));
}

#df-host-calendar .df-host-mini-head a {
    display: grid;
    width: 30px;
    height: 30px;
    place-items: center;
    border: 1px solid rgba(45, 28, 15, .1);
    border-radius: 8px;
    background: rgba(255, 255, 255, .62);
    color: #1f160f;
    font-size: 18px;
    font-weight: 900;
    line-height: 1;
    text-decoration: none;
}

#df-host-calendar .df-host-mini-head a:hover {
    border-color: rgba(189, 105, 60, .3);
    color: #bd693c;
}

#df-host-calendar .df-host-calendar-side-card > h3 {
    font-size: 16px;
}

#df-host-calendar .df-host-mini-grid {
    gap: 10px 8px;
}

#df-host-calendar .df-host-mini-grid.is-weekdays {
    color: rgba(45, 28, 15, .7);
    font-size: 11px;
    font-weight: 760;
}

#df-host-calendar .df-host-mini-grid > span,
#df-host-calendar .df-host-mini-grid > a {
    min-height: 30px;
    color: #1f160f;
    font-size: 12px;
}

#df-host-calendar .df-host-mini-grid > span.is-today,
#df-host-calendar .df-host-mini-grid > a.is-today {
    background: transparent;
    color: #1f160f;
    font-weight: 900;
    text-decoration: underline;
    text-decoration-color: #bd693c;
    text-decoration-thickness: 2px;
    text-underline-offset: 4px;
}

#df-host-calendar .df-host-mini-grid > span b.is-pending,
#df-host-calendar .df-host-mini-grid > a b.is-pending,
#df-host-calendar .df-host-calendar-legend i.is-pending {
    background: #e4ba73;
}

#df-host-calendar .df-host-mini-grid > span b.is-confirmed,
#df-host-calendar .df-host-mini-grid > a b.is-confirmed,
#df-host-calendar .df-host-calendar-side-list i.is-confirmed,
#df-host-calendar .df-host-calendar-legend i.is-confirmed {
    background: #4d9870;
}

#df-host-calendar .df-host-mini-grid > span b.is-blocked,
#df-host-calendar .df-host-mini-grid > a b.is-blocked,
#df-host-calendar .df-host-calendar-legend i.is-blocked {
    background: #bdb7b1;
}

#df-host-calendar .df-host-calendar-side-list span {
    grid-template-columns: auto minmax(0, 1fr) auto;
}

#df-host-calendar .df-host-calendar-side-list span::after {
    content: "Edit";
    grid-row: 1 / span 2;
    grid-column: 3;
    align-self: center;
    padding: 8px 14px;
    border: 1px solid rgba(45, 28, 15, .12);
    border-radius: 7px;
    background: rgba(255, 255, 255, .64);
    color: #1f160f;
    font-size: 12px;
    font-weight: 850;
}

#df-host-calendar .df-host-calendar-aside .df-host-calendar-side-list button {
    display: none;
}

#df-host-calendar .df-host-calendar-side-dl {
    gap: 13px 18px;
}

#df-host-calendar .df-host-calendar-side-dl dt,
#df-host-calendar .df-host-calendar-side-dl dd {
    color: #1f160f;
    font-size: 13px;
}

#df-host-calendar .df-host-calendar-side-dl dd {
    font-weight: 760;
}

#df-host-calendar .df-host-calendar-legend {
    gap: 10px;
}

#df-host-calendar .df-host-calendar-legend span {
    font-size: 13px;
    font-weight: 650;
}

#df-host-calendar .df-host-calendar-aside::after {
    content: none;
}
