.cch-picker {
    --cch-rose: #c45c6a;
    --cch-rose-dark: #9e3d4a;
    --cch-bg: #fff8f7;
    --cch-border: #ecd5d3;
    --cch-text: #2b2424;
    --cch-muted: #7a6a6a;
    --cch-disabled: #c9c0be;
    --cch-gap: 4px;
    /* Tema formu flex satırı yapıyorsa takvim kendi satırına geçer. */
    flex: 1 0 100%;
    width: 100%;
    max-width: 360px;
    margin: 0 0 1.25rem;
    padding: 1rem;
    border: 1px solid var(--cch-border);
    border-radius: 12px;
    background: var(--cch-bg);
    color: var(--cch-text);
    font-size: 15px;
    line-height: 1.4;
    box-sizing: border-box;
}

.cch-picker *,
.cch-picker *::before,
.cch-picker *::after {
    box-sizing: border-box;
}

/* Miktar ve buton ile aynı satıra sıkışmasın. */
form.cart.cch-has-picker {
    flex-wrap: wrap;
}

.cch-picker-head {
    margin: 0 0 0.85rem;
}

.cch-picker-head strong {
    display: block;
    margin: 0 0 0.25rem;
    font-size: 1rem;
    line-height: 1.3;
}

.cch-picker-head p,
.cch-empty,
.cch-error {
    margin: 0;
    font-size: 0.86rem;
    line-height: 1.45;
    color: var(--cch-muted);
}

.cch-empty {
    padding: 0.6rem 0;
}

.cch-field {
    margin: 0 0 0.85rem;
}

.cch-label {
    display: block;
    margin: 0 0 0.4rem;
    font-size: 0.86rem;
    font-weight: 600;
    line-height: 1.3;
    color: var(--cch-text);
    text-transform: none;
    letter-spacing: normal;
}

.cch-calendar {
    padding: 0.7rem;
    border: 1px solid var(--cch-border);
    border-radius: 10px;
    background: #fff;
}

.cch-cal-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin: 0 0 0.55rem;
}

.cch-month-label {
    flex: 1 1 auto;
    text-align: center;
    font-size: 0.92rem;
    font-weight: 600;
    line-height: 1.2;
}

/* Tema button stillerini nötrle: aksi halde ızgara kayar. */
.cch-picker .cch-nav,
.cch-picker .cch-day {
    -webkit-appearance: none;
    appearance: none;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 !important;
    min-width: 0 !important;
    max-width: none;
    font-family: inherit;
    font-weight: 500;
    text-transform: none !important;
    letter-spacing: normal !important;
    text-decoration: none;
    text-shadow: none;
    box-shadow: none !important;
    outline-offset: 2px;
    cursor: pointer;
}

.cch-picker .cch-nav {
    flex: 0 0 auto;
    width: 32px !important;
    height: 32px !important;
    padding: 0 !important;
    border: 1px solid var(--cch-border) !important;
    border-radius: 8px !important;
    background: #fff !important;
    color: var(--cch-text) !important;
    font-size: 18px;
    line-height: 1 !important;
}

.cch-picker .cch-nav:hover:not(:disabled) {
    border-color: var(--cch-rose) !important;
    color: var(--cch-rose-dark) !important;
}

.cch-picker .cch-nav:disabled {
    opacity: 0.35;
    cursor: default;
}

.cch-weekdays,
.cch-days {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: var(--cch-gap);
    margin: 0;
    padding: 0;
    list-style: none;
}

.cch-weekdays {
    margin-bottom: var(--cch-gap);
}

.cch-weekdays span {
    display: block;
    min-width: 0;
    padding: 0;
    font-size: 0.72rem;
    line-height: 1.2;
    text-align: center;
    color: var(--cch-muted);
}

.cch-picker .cch-day {
    width: 100% !important;
    height: auto !important;
    min-height: 34px;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 8px !important;
    background: transparent !important;
    color: var(--cch-text) !important;
    font-size: 0.85rem;
    line-height: 1 !important;
}

.cch-picker .cch-day:hover:not(:disabled) {
    background: #f8e9ea !important;
}

.cch-picker .cch-day.is-today:not(.is-selected) {
    box-shadow: inset 0 0 0 1px var(--cch-rose) !important;
}

.cch-picker .cch-day.is-selected {
    background: var(--cch-rose) !important;
    color: #fff !important;
}

.cch-picker .cch-day:disabled {
    color: var(--cch-disabled) !important;
    background: transparent !important;
    cursor: default;
}

/* Ayın başındaki boş hücreler: button değil, span. */
.cch-picker .cch-empty-cell {
    display: block;
    min-width: 0;
    min-height: 34px;
}

.cch-picker .cch-time-input {
    display: block;
    width: 100%;
    max-width: 100%;
    min-height: 42px;
    margin: 0;
    padding: 0.45rem 0.65rem;
    border: 1px solid var(--cch-border);
    border-radius: 8px;
    background-color: #fff;
    color: var(--cch-text);
    font-family: inherit;
    font-size: 0.9rem;
    line-height: 1.3;
    box-shadow: none;
}

.cch-error {
    margin-top: 0.35rem;
    color: #b42318;
}

@media (max-width: 782px) {
    .cch-picker {
        max-width: 100%;
    }
}

@media (max-width: 480px) {
    .cch-picker {
        max-width: 100%;
        padding: 0.85rem;
    }

    .cch-picker .cch-day,
    .cch-picker .cch-empty-cell {
        min-height: 38px;
    }

    .cch-picker .cch-day {
        font-size: 0.9rem;
    }

    .cch-weekdays span {
        font-size: 0.68rem;
    }
}
