/**
 * Amelia Events Date Formatter Addon - Styles
 */

/* Hide original day and month spans when our custom formatter is active */
.am-ec__period-date .am-edf-hidden,
.am-ec__period-date:has(.am-edf-date-container) .am-ec__period-date__day,
.am-ec__period-date:has(.am-edf-date-container) .am-ec__period-date__month {
    display: none !important;
}

/* Custom Period Date Container */
.am-edf-date-container {
    display: inline-flex;
    flex-direction: column;
    justify-content: center;
    line-height: 1.25;
    word-break: normal;
}

/* Desktop layout minimum width for neat column alignment */
@media screen and (min-width: 501px) {
    .am-ec .am-ec__period {
        min-width: 125px;
    }
}

/* --- STACKED MODE (Default) --- */
.am-edf-stacked .am-edf-row-day {
    margin-bottom: 2px;
}

.am-edf-stacked .am-edf-day {
    font-size: 16px;
    font-weight: 700;
    line-height: 1.2;
    color: var(--am-c-ec-text, #1A2C37);
    letter-spacing: -0.2px;
}

.am-edf-stacked .am-edf-row-date {
    font-size: 13px;
    font-weight: 500;
    line-height: 1.3;
    color: var(--am-c-ec-text, #1A2C37);
    white-space: nowrap;
}

.am-edf-stacked .am-edf-month {
    font-weight: 600;
    color: var(--am-c-ec-text, #1A2C37);
}

.am-edf-stacked .am-edf-number {
    font-weight: 600;
    color: var(--am-c-ec-text, #1A2C37);
}

/* --- INLINE MODE --- */
.am-edf-inline .am-edf-full-date {
    font-size: 14px;
    font-weight: 600;
    line-height: 1.3;
    color: var(--am-c-ec-text, #1A2C37);
    white-space: nowrap;
}

.am-edf-inline .am-edf-day {
    font-weight: 700;
}

/* Time styling beneath the date */
.am-ec .am-ec__period-time {
    margin-top: 3px !important;
    font-size: 12px !important;
    font-weight: 500 !important;
    color: var(--am-c-ec-text-op80, #546571) !important;
}

/* --- MOBILE RESPONSIVE --- */
@media screen and (max-width: 500px) {
    .am-ec .am-ec__period {
        min-width: auto;
        margin-bottom: 6px;
    }

    .am-edf-stacked .am-edf-day {
        font-size: 15px;
    }

    .am-edf-stacked .am-edf-row-date {
        font-size: 13px;
    }

    .am-edf-inline .am-edf-full-date {
        font-size: 13px;
    }
}

