/* DarFindr account calendar styles: month view. */


.df-host-block-form .df-host-block-close::before {
    content: "x";
    font-size: 18px;
    font-weight: 850;
    line-height: 1;
}

.df-host-block-form .df-host-block-close:hover,
.df-host-block-form .df-host-block-close:focus-visible {
    border-color: rgba(177, 111, 58, .32);
    background: rgba(177, 111, 58, .1);
    color: var(--color-primary-dark);
    outline: none;
}

.df-host-block-form .df-host-block-cancel {
    border: 1px solid rgba(45, 28, 15, .1);
    background: rgba(255, 255, 255, .74);
    color: var(--color-text);
}

.df-host-block-form button:hover {
    background: var(--color-primary-dark);
}

.df-host-block-form .df-host-block-close:hover,
.df-host-block-form .df-host-block-close:focus-visible {
    border-color: rgba(177, 111, 58, .32);
    background: rgba(177, 111, 58, .1);
    color: var(--color-primary-dark);
    outline: none;
}

.df-host-block-form .df-host-block-cancel:hover {
    background: rgba(45, 28, 15, .06);
}

.df-host-block-selection {
    display: flex;
    align-items: center;
    min-height: 42px;
    padding: 0 10px;
    border: 1px dashed rgba(45, 28, 15, .13);
    border-radius: 8px;
    color: var(--color-muted);
    font-size: 12px;
    font-weight: 750;
}

.df-host-calendar {
    overflow: hidden;
}

.df-calendar-agenda-view {
    display: grid;
    gap: 8px;
    padding: 14px;
    min-height: 0;
}

.df-calendar-agenda-head {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 16px;
}

.df-calendar-agenda-head span {
    color: var(--color-muted);
    font-size: 12px;
    font-weight: 850;
}

.df-calendar-agenda-head strong {
    color: var(--color-text);
    font-size: 20px;
    font-weight: 850;
}

.df-calendar-agenda-grid {
    display: grid;
    grid-template-columns: 72px repeat(var(--agenda-days), minmax(170px, 1fr));
    grid-auto-rows: minmax(30px, auto);
    min-width: max(100%, calc(72px + (var(--agenda-days) * 170px)));
    border: 1px solid rgba(45, 28, 15, .08);
    border-radius: 10px;
    background: rgba(255, 255, 255, .5);
}

.df-calendar-agenda-view.is-day .df-calendar-agenda-grid {
    grid-template-columns: 72px minmax(520px, 1fr);
    min-width: 680px;
}

.df-calendar-agenda-scroll {
    position: relative;
    max-height: min(640px, calc(100vh - 260px));
    overflow: auto;
    overflow-x: auto;
    border-radius: 10px;
    box-shadow:
        inset 0 18px 16px -20px rgba(45, 28, 15, .38),
        inset 0 -18px 16px -20px rgba(45, 28, 15, .38);
}

.df-calendar-agenda-corner,
.df-calendar-agenda-day-head {
    position: sticky;
    top: 0;
    z-index: 2;
    display: flex;
    min-height: 38px;
    align-items: center;
    justify-content: center;
    padding: 6px 10px;
    border: 0;
    border-right: 1px solid rgba(45, 28, 15, .07);
    border-bottom: 1px solid rgba(45, 28, 15, .07);
    background: rgba(255, 252, 248, .8);
    color: var(--color-text);
    cursor: pointer;
    font: inherit;
}

.df-calendar-agenda-corner {
    left: 0;
    z-index: 3;
    cursor: default;
}

.df-calendar-agenda-day-head span {
    color: var(--color-muted);
    font-size: 12px;
    font-weight: 850;
}

.df-calendar-agenda-day-head strong {
    font-size: 12px;
    font-weight: 820;
}

.df-calendar-agenda-time {
    position: sticky;
    left: 0;
    z-index: 1;
    display: flex;
    min-height: 30px;
    align-items: center;
    justify-content: center;
    border-right: 1px solid rgba(45, 28, 15, .07);
    border-bottom: 1px solid rgba(45, 28, 15, .045);
    background: rgba(255, 252, 248, .88);
    color: var(--color-muted);
    font-size: 11px;
    font-weight: 780;
}

.df-calendar-agenda-lane-label {
    position: sticky;
    left: 0;
    z-index: 4;
    display: flex;
    min-height: 34px;
    align-items: center;
    justify-content: center;
    border-right: 1px solid rgba(45, 28, 15, .07);
    border-bottom: 1px solid rgba(45, 28, 15, .045);
    background: rgba(255, 252, 248, .9);
    color: var(--color-muted);
    font-size: 12px;
    font-weight: 850;
    transform: translateY(var(--agenda-stick-y, 0px));
}

.df-calendar-agenda-event,
.df-calendar-agenda-empty {
    min-height: 28px;
    margin: 3px 5px;
    padding: 4px 8px;
    border: 1px solid rgba(177, 111, 58, .18);
    border-radius: 8px;
    background: rgba(177, 111, 58, .12);
    color: var(--color-primary-dark);
    font: inherit;
}

.df-calendar-agenda-event {
    position: relative;
    z-index: 4;
    display: flex;
    align-items: center;
    gap: 7px;
    cursor: pointer;
    overflow: hidden;
    text-align: left;
    transform: translateY(var(--agenda-stick-y, 0px));
}

.df-calendar-agenda-event.is-confirmed {
    border-color: rgba(74, 163, 111, .22);
    background: rgba(74, 163, 111, .12);
    color: #23553a;
}

.df-calendar-agenda-event.is-blocked {
    border-color: rgba(107, 114, 128, .2);
    background: rgba(107, 114, 128, .12);
    color: #404650;
}

.df-calendar-agenda-event:hover {
    filter: saturate(1.08);
}

.df-calendar-agenda-event strong,
.df-calendar-agenda-event span,
.df-calendar-agenda-event em {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.df-calendar-agenda-event strong {
    flex: 0 1 auto;
    font-size: 12px;
    font-weight: 820;
}

.df-calendar-agenda-event span {
    flex: 0 0 auto;
    color: inherit;
    font-size: 10px;
    font-style: normal;
    font-weight: 860;
    text-transform: uppercase;
}

.df-calendar-agenda-event em {
    flex: 1 1 auto;
    color: rgba(45, 28, 15, .58);
    font-size: 11px;
    font-style: normal;
    font-weight: 720;
}

.df-calendar-agenda-empty {
    font-size: 11px;
    font-weight: 750;
}

.df-calendar-agenda-slot {
    position: relative;
    min-height: 30px;
    padding: 0 10px;
    border: 0;
    border-right: 1px solid rgba(45, 28, 15, .045);
    border-bottom: 1px solid rgba(45, 28, 15, .045);
    background: rgba(255, 255, 255, .28);
    color: var(--color-muted);
    cursor: pointer;
    font: inherit;
    text-align: left;
}

.df-calendar-agenda-slot:hover,
.df-calendar-agenda-day-head:hover {
    background: rgba(177, 111, 58, .08);
}

.df-calendar-agenda-slot:hover::after,
.df-calendar-agenda-slot:focus-visible::after {
    content: "+";
    position: absolute;
    top: 50%;
    left: 50%;
    display: grid;
    width: 22px;
    height: 22px;
    place-items: center;
    border-radius: 50%;
    background: var(--color-primary);
    color: #fff;
    font-size: 15px;
    font-weight: 850;
    transform: translate(-50%, -50%);
}

.df-calendar-agenda-items {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.df-calendar-agenda-items button {
    display: inline-grid;
    grid-template-columns: auto auto;
    gap: 3px 8px;
    align-items: center;
    min-height: 34px;
    padding: 6px 9px;
    border: 1px solid rgba(45, 28, 15, .08);
    border-radius: 8px;
    background: rgba(255, 255, 255, .7);
    color: var(--color-text);
    cursor: pointer;
    font: inherit;
    text-align: left;
}

.df-calendar-agenda-items button:hover {
    border-color: rgba(177, 111, 58, .2);
    background: rgba(177, 111, 58, .08);
}

.df-calendar-agenda-items button strong,
.df-calendar-agenda-items button small {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.df-calendar-agenda-items button strong {
    font-size: 12px;
    font-weight: 820;
}

.df-calendar-agenda-items button small {
    grid-column: 2;
    color: rgba(45, 28, 15, .58);
    font-size: 11px;
    font-weight: 720;
}

.df-host-calendar-months {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
}

.df-host-calendar-months .df-host-calendar + .df-host-calendar {
    border-left: 1px solid rgba(45, 28, 15, .055);
}

.df-host-calendar-head {
    display: grid;
    grid-template-columns: 32px minmax(0, 1fr) 32px;
    align-items: center;
    gap: 8px;
    padding: 14px 16px;
    border-bottom: 1px solid rgba(45, 28, 15, .055);
}

.df-host-calendar-head h3 {
    margin: 0;
    text-align: center;
    color: var(--color-text);
    font-size: 16px;
    font-weight: 850;
}

.df-host-calendar-head a {
    display: grid;
    place-items: center;
    width: 32px;
    height: 32px;
    border: 1px solid rgba(45, 28, 15, .07);
    border-radius: 8px;
    color: var(--color-text);
    text-decoration: none;
    font-size: 20px;
    font-weight: 800;
}

.df-host-calendar-head a:hover {
    background: rgba(45, 28, 15, .06);
}

.df-host-calendar-head > span {
    width: 32px;
    height: 32px;
}

.df-host-calendar-weekdays,
.df-host-calendar-days {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
}

.df-host-calendar-weekdays {
    border-bottom: 1px solid rgba(45, 28, 15, .05);
}

.df-host-calendar-weekdays span {
    padding: 11px 12px;
    color: rgba(45, 28, 15, .72);
    font-size: 12px;
    font-weight: 850;
    text-transform: uppercase;
}

.df-host-calendar-weekdays span.is-weekend {
    color: rgba(45, 28, 15, .46);
}

.df-host-calendar-weeks {
    display: grid;
}

.df-host-calendar-week {
    position: relative;
    min-height: calc(70px + (var(--calendar-lanes) * 32px));
    border-bottom: 1px solid rgba(45, 28, 15, .045);
}

.df-host-calendar-week:last-child {
    border-bottom: 0;
}

.df-host-calendar-days {
    position: absolute;
    inset: 0;
}

.df-host-calendar-day {
    appearance: none;
    position: relative;
    display: block;
    min-width: 0;
    min-height: 100%;
    padding: 12px;
    border: 0;
    border-right: 1px solid rgba(45, 28, 15, .045);
    background: rgba(255, 255, 255, .24);
    color: var(--color-text);
    cursor: default;
    font: inherit;
    line-height: 1;
    text-align: left;
}
