
:root {
    --adp-accent-color: #ef4444;
    --adp-color-current-date: #ef4444;
    --adp-day-name-color: #9ca3af;
    --adp-border-radius: 1.5rem;
    --adp-width: 310px;
    --adp-font-family: 'Poppins', sans-serif;
    --adp-font-size: 14px;
    --adp-background-color: #ffffff;
    --adp-cell-border-radius: 10px;
}

.air-datepicker {
    border: 1px solid #f3f4f6 !important;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04) !important;
    padding: 10px !important;
    z-index: 9999 !important;
}


.air-datepicker-cell.-day- {
    aspect-ratio: 1 / 1;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 1;
    background: transparent !important;
    border-radius: 0 !important;
}

.air-datepicker-cell.-day-:hover,
.air-datepicker-cell.-day-.-focus- {
    background: transparent !important;
    color: #ef4444 !important;
    font-weight: 600;
}

.air-datepicker-cell.-day-:hover::before,
.air-datepicker-cell.-day-.-focus-::before {
    content: "";
    position: absolute;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    background-color: #fee2e2;
    z-index: -1;
}

.air-datepicker-cell.-day-.-current- {
    color: #ef4444 !important;
    font-weight: 800 !important;
    background: transparent !important;
    border: none !important;
}

.air-datepicker-cell.-day-.-current-::after {
    content: "";
    position: absolute;
    bottom: 2px;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background-color: #ef4444;
}

.air-datepicker-cell.-day-.-selected-,
.air-datepicker-cell.-day-.-selected-.-focus-,
.air-datepicker-cell.-day-.-selected-.-current- {
    background: transparent !important;
    color: #fff !important;
    font-weight: 700;
}

.air-datepicker-cell.-day-.-selected-::before,
.air-datepicker-cell.-day-.-selected-.-focus-::before,
.air-datepicker-cell.-day-.-selected-.-current-::before {
    content: "";
    position: absolute;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    background-color: #ef4444;
    z-index: -1;
}

.air-datepicker-nav {
    border-bottom: 1px solid #f3f4f6;
    margin-bottom: 8px;
    padding-bottom: 8px;
}

.air-datepicker-nav--title,
.air-datepicker-nav--title i {
    color: #1f2937 !important;
    font-weight: 700 !important;
    font-size: 16px !important;
    border-radius: 8px !important;
}

.air-datepicker-nav--title:hover {
    background: #f9fafb !important;
    color: #ef4444 !important;
}


.air-datepicker-nav--action {
    border-radius: 50% !important;
    transition: all 0.2s;
}

.air-datepicker-nav--action:hover {
    background: #ef4444 !important;
}

.air-datepicker-nav--action:hover svg path {
    stroke: #ffffff !important;
}


.air-datepicker-body--day-name {
    font-weight: 700 !important;
    text-transform: uppercase;
    font-size: 11px;
    letter-spacing: 0.05em;
}


.air-datepicker-button {
    color: #ef4444 !important;
    font-weight: 700 !important;
    border-radius: 8px !important;
    transition: all 0.2s;
}

.air-datepicker-button:hover {
    background: #ef4444 !important;
    color: #fff !important;
}


.air-datepicker-cell.-day-.-disabled- {
    color: #d1d5db !important;
    
    cursor: not-allowed !important;
    background: transparent !important;
}

.air-datepicker-cell.-day-.-disabled-:hover {
    background: transparent !important;
    color: #d1d5db !important;
}


.air-datepicker--pointer {
    display: none !important;
}


.search-date-picker-custom {
    width: min(340px, calc(100vw - 24px)) !important;
    max-width: calc(100vw - 24px) !important;
    border-radius: 1.5rem !important;
    padding: 0.75rem !important;
    box-shadow: 0 18px 36px rgba(0, 0, 0, 0.12) !important;
    border: 1px solid rgba(0, 0, 0, 0.05) !important;
}

.search-date-picker-custom .air-datepicker-nav {
    margin-bottom: 6px;
    padding-bottom: 6px;
}

.search-date-picker-custom .air-datepicker-body--day-name {
    font-size: 10px;
}

.search-date-picker-custom .air-datepicker-cell.-day- {
    width: auto !important;
    min-height: 2.2rem;
}

.search-date-picker-custom .air-datepicker-cell.-day-:hover::before,
.search-date-picker-custom .air-datepicker-cell.-day-.-focus-::before,
.search-date-picker-custom .air-datepicker-cell.-day-.-selected-::before,
.search-date-picker-custom .air-datepicker-cell.-day-.-selected-.-focus-::before,
.search-date-picker-custom .air-datepicker-cell.-day-.-selected-.-current-::before {
    width: 2rem;
    height: 2rem;
}

/* Keep the popup footprint close to square and screen-safe on mobile */
@media (max-width: 480px) {
    .search-date-picker-custom {
        width: min(312px, calc(100vw - 16px)) !important;
        max-width: calc(100vw - 16px) !important;
        padding: 0.5rem !important;
        border-radius: 1.25rem !important;
    }

    .search-date-picker-custom .air-datepicker-button {
        font-size: 12px;
        min-height: 32px;
    }
}
