.ddc-calendar-wrapper {
    font-family: Outfit, sans-serif;
    margin: 0 0 30px 0;
    padding: 0;
    background: white;
    clear: both;
}

.ddc-loading {
    text-align: center;
    padding: 40px 20px;
    color: #666;
}

.ddc-calendar-container {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    background: #fff;
    padding: 30px 0;
}

.ddc-calendar {
    flex: 1 0 calc(70% - 10px);
    min-width: 240px;
    max-width: 610px;
}

.ddc-calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    font-weight: 600;
    font-size: 18px;
    line-height: 22px;
    color: #000;
}

.ddc-calendar-header h3 {
    margin: 0 !important;
    font-size: 18px !important;
    font-weight: 600 !important;
    color: #000 !important;
}

.ddc-calendar-nav {
    display: flex;
    gap: 10px;
    align-items: center;
}

.ddc-current-month {
    min-width: 150px;
    text-align: center;
    font-weight: 500;
}

.ddc-nav-btn {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    padding: 5px 10px;
    color: #333;
    line-height: 1;
    transition: color 0.2s;
}

.ddc-nav-btn:hover {
    color: #000;
}

.ddc-nav-btn:focus-visible,
.ddc-day.available:focus-visible {
    outline: 2px solid #1f6feb;
    outline-offset: 3px;
}

.ddc-calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 8px;
    border: 1px solid #e0e2e6;
    padding: 25px;
}

.ddc-day-header {
    text-align: center;
    padding: 10px 5px;
    color: #000;
    width: 43px;
    font-weight: 600;
    font-size: 14px;
    line-height: 22px;
}

.ddc-day {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s;
    background: #f5f5f5;
    color: #999;
    width: 43px;
    height: 43px;
}

.ddc-day.available {
    background: #a8c9a0;
    color: #fff;
    cursor: pointer;
}

.ddc-day.available:hover {
    background: #96bb8e;
    transform: scale(1.05);
}

.ddc-day.limited {
    background: rgba(150, 187, 142, 0.35);
    color: #fff;
    cursor: pointer;
}

.ddc-day.limited:hover {
    background: #e5b832;
    transform: scale(1.05);
}

.ddc-day.selected {
    background: #f5c842 !important;
    color: #fff;
    transform: scale(1.1);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.ddc-day.disabled {
    cursor: not-allowed;
    opacity: 0.5;
}

.ddc-info-panel {
    flex: 0 0 calc(30% - 10px);
    padding: 80px 0 0 0;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    color: #000;
}

.ddc-info-panel-content {
    flex: 1;
}

.ddc-info-panel h4 {
    margin: 0 0 15px 0;
    font-size: 18px;
    font-weight: 600;
}

.ddc-selected-date {
    font-size: 16px;
    font-weight: 600;
    color: #f5c842;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #e0e2e6;
}

.ddc-delivery-type-label {
    font-size: 15px;
    margin-bottom: 5px;
    font-weight: 600;
}

.ddc-delivery-method {
    margin-bottom: 25px;
}

.ddc-delivery-method-name {
    font-weight: 600;
    margin: 0 0 10px 0;
    font-size: 15px;
}

.ddc-address {
    font-size: 14px;
    line-height: 1.8;
}

.ddc-legend {
    margin-top: 30px;
}

.ddc-legend-item {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
    font-size: 14px;
}

.ddc-legend-color {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    flex-shrink: 0;
}

.ddc-legend-color.limited {
    background: rgba(150, 187, 142, 0.35);
}

.ddc-legend-color.available {
    background: #97be87;
}

.ddc-calendar-wrapper--quote {
    margin: 0;
    overflow: visible;
    background: transparent;
}

.tmf-delivery-date-picker {
    position: relative;
    z-index: 30;
    width: 100%;
    max-width: 420px;
}

.tmf-quote-modal .tmf-delivery-date-picker {
    max-width: 100%;
}

.ddc-date-picker--quote {
    position: relative;
    width: 100%;
}

.ddc-date-picker__control {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
}

.ddc-date-picker__input {
    width: 100%;
    min-height: 46px;
    padding: 11px 48px 11px 14px;
    border: 1px solid #d9dde5;
    border-radius: 4px;
    background: #fff;
    color: #211f1c;
    font: inherit;
    line-height: 1.35;
    cursor: pointer;
    box-sizing: border-box;
}

.ddc-date-picker__input:focus,
.ddc-date-picker__input:focus-visible {
    border-color: #e9b816;
    outline: 2px solid rgba(233, 184, 22, 0.22);
    outline-offset: 0;
}

.ddc-date-picker__toggle {
    position: absolute;
    top: 50%;
    right: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    padding: 0;
    border: 0;
    border-radius: 4px;
    background: transparent;
    color: #211f1c;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
    transform: translateY(-50%);
    transition: color 0.2s, transform 0.2s;
}

.ddc-date-picker__toggle::before {
    content: "";
    display: block;
    width: 0;
    height: 0;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-top: 8px solid currentColor;
}

.ddc-date-picker__toggle:hover,
.ddc-date-picker__toggle:focus-visible {
    color: #e9b816;
    outline: none;
}

.ddc-date-picker--quote.is-open .ddc-date-picker__toggle {
    transform: translateY(-50%) rotate(180deg);
}

.ddc-date-picker__popover {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    z-index: 100000;
    width: min(420px, calc(100vw - 32px));
    max-width: calc(100vw - 32px);
    padding: 14px;
    border: 1px solid #e0e2e6;
    border-radius: 6px;
    background: #fff;
    box-shadow: 0 18px 42px rgba(33, 31, 28, 0.18);
    box-sizing: border-box;
}

.ddc-date-picker__popover--floating {
    position: fixed !important;
    top: auto;
    left: auto;
    z-index: 1000000;
    margin-top: 0 !important;
    transform: none !important;
    overflow: visible;
}

.ddc-calendar-container--quote {
    display: block;
    padding: 0;
    background: transparent;
}

.ddc-calendar-container--quote .ddc-calendar {
    width: 100%;
    min-width: 0;
    max-width: none;
    flex: none;
}

.ddc-calendar-container--quote .ddc-info-panel {
    display: none;
}

.ddc-calendar-container--quote .screen-reader-text {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.ddc-calendar-container--quote .ddc-calendar-header {
    display: block;
    margin-bottom: 12px;
}

.ddc-calendar-container--quote .ddc-calendar-nav {
    display: grid;
    grid-template-columns: 36px minmax(0, 1fr) 36px;
    align-items: center;
    gap: 6px;
    width: 100%;
}

.ddc-calendar-container--quote .ddc-current-month {
    min-width: 0;
    font-size: 16px;
    line-height: 1.3;
}

.ddc-calendar-container--quote .ddc-nav-btn {
    width: 36px;
    height: 36px;
    padding: 0;
}

.ddc-calendar-container--quote .ddc-calendar-grid {
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 6px;
    padding: 12px;
}

.ddc-calendar-container--quote .ddc-day,
.ddc-calendar-container--quote .ddc-day-header {
    justify-self: center;
    width: clamp(32px, 7.5vw, 38px);
    height: clamp(32px, 7.5vw, 38px);
    padding: 0;
    font-size: 13px;
}

.ddc-calendar-container--quote .ddc-day-header {
    height: auto;
    min-height: 28px;
    align-items: center;
    padding-top: 4px;
    padding-bottom: 4px;
}

@media (max-width: 768px) {
    .ddc-calendar-container {
        flex-direction: column;
        padding: 20px;
    }

    .ddc-info-panel {
        flex: 1;
        padding: 0;
    }

    .ddc-calendar-header {
        flex-direction: column;
        gap: 15px;
    }

    .ddc-calendar-header h3 {
        font-size: 16px;
    }

    .ddc-legend {
        margin-top: 0;
    }

    .tmf-delivery-date-picker {
        max-width: 100%;
    }

    .ddc-date-picker__popover {
        position: static;
        width: 100%;
        max-width: 100%;
        margin-top: 8px;
        padding: 10px;
        transform: none;
    }

    .ddc-calendar-container--quote {
        padding: 0;
    }

    .ddc-calendar-container--quote .ddc-calendar-header {
        margin-bottom: 10px;
        flex-direction: row;
        gap: 0;
    }

    .ddc-calendar-container--quote .ddc-calendar-grid {
        gap: 4px;
        padding: 10px;
    }

    .ddc-calendar-container--quote .ddc-day,
    .ddc-calendar-container--quote .ddc-day-header {
        width: clamp(29px, 9.4vw, 36px);
        height: clamp(29px, 9.4vw, 36px);
    }
}
