/* ── Event Calendar ── */

.sf-event-calendar.sf-cal-fixed-width {
    width: 322px;
    max-width: 100%;
    margin: 0 auto;
}

.sf-cal-wrap {
    background: #fff;
    padding: 12px;
}

/* Month nav */
.sf-cal-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 24px;
}
.sf-cal-nav button {
    padding: 4px;
    border: none;
    background: none;
    cursor: pointer;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.sf-cal-nav button:hover {
    background: #f3f4f6;
}
.sf-cal-month-label {
    font-family: 'Lato', sans-serif;
    font-weight: 600;
    font-size: 15px;
    color: #6b7280;
}

/* Separator */
.sf-cal-sep {
    border-bottom: 1px solid #d1d5db;
    margin: 0 24px;
}

/* Day headers */
.sf-cal-days {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 4px;
    padding: 8px 24px;
    text-align: center;
}
.sf-cal-day-hdr {
    font-family: 'Lato', sans-serif;
    font-weight: 500;
    font-size: 9px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #000;
}

/* Date grid */
.sf-cal-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 4px;
    padding: 0 24px 12px;
}

/* Individual date cell */
.sf-cal-cell {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 32px;
    font-family: 'Lato', sans-serif;
    font-weight: 500;
    font-size: 14px;
    color: #000;
    cursor: default;
}
.sf-cal-cell.sf-cal-empty {
    color: transparent;
    pointer-events: none;
}
.sf-cal-cell.sf-cal-outside {
    color: #d1d5db;
}

/* ── Event marker — "other" event (red circle) ── */
.sf-cal-cell.sf-cal-other .sf-cal-num {
    position: relative;
    z-index: 2;
    color: #fff;
}
.sf-cal-cell.sf-cal-other::before {
    content: '';
    position: absolute;
    width: 23px;
    height: 23px;
    border-radius: 50%;
    background: var(--sf-cal-accent, #C31920);
}
.sf-cal-cell.sf-cal-other {
    cursor: pointer;
}

/* ── Event marker — DDK (blood drop) ── */
.sf-cal-cell.sf-cal-event .sf-cal-num {
    position: relative;
    z-index: 2;
    color: #fff;
    margin-top: 4px; /* was 6px — shifted up 2px */
}
.sf-cal-cell.sf-cal-event::before {
    content: '';
    position: absolute;
    width: 22px;
    height: 30px;
    transform: translateY(-2px);
    border-radius: 0;
    background: var(--sf-cal-accent, #C31920);
    -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 27' preserveAspectRatio='none'><path d='M18 18.1286C18 23.0281 13.9706 27 9 27C4.02944 27 0 23.0281 0 18.1286C0 13.229 0 13.1143 8.6087 0C18 13.1143 18 13.229 18 18.1286Z'/></svg>") no-repeat center / contain;
            mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 27' preserveAspectRatio='none'><path d='M18 18.1286C18 23.0281 13.9706 27 9 27C4.02944 27 0 23.0281 0 18.1286C0 13.229 0 13.1143 8.6087 0C18 13.1143 18 13.229 18 18.1286Z'/></svg>") no-repeat center / contain;
}
.sf-cal-cell.sf-cal-event {
    cursor: pointer;
}

/* ── Tooltip ── */
.sf-cal-tooltip {
    display: none;
    position: absolute;
    bottom: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%);
    background: #1f2937;
    color: #fff;
    font-family: 'Lato', sans-serif;
    font-size: 12px;
    line-height: 1.4;
    padding: 8px 12px;
    border-radius: 6px;
    z-index: 50;
    pointer-events: none;
    width: 254px;
    white-space: normal;
    text-align: center;
}
.sf-cal-tooltip::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 5px solid transparent;
    border-top-color: #1f2937;
}
.sf-cal-cell:hover .sf-cal-tooltip {
    display: block;
}

/* ── Gutenberg editor canvas width ── */
.wp-block[data-type="swiftframe/event-calendar"],
.wp-block-swiftframe-event-calendar {
    max-width: 95% !important;
    width: 95% !important;
    box-sizing: border-box;
}
