/* Phase 3 — Checkout datepicker styles */

/* Wrapper voor bezorg- en ophaaldatum secties */
#show-if-shipping {
    margin-bottom: 1.5rem;
}

#show-if-shipping h3 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

/* Datepicker input — kalender-icoon rechts */
#datepicker,
#cbv-pickup-datepicker {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%23555' viewBox='0 0 16 16'%3E%3Cpath d='M3.5 0a.5.5 0 0 1 .5.5V1h8V.5a.5.5 0 0 1 1 0V1h1a2 2 0 0 1 2 2v11a2 2 0 0 1-2 2H2a2 2 0 0 1-2-2V3a2 2 0 0 1 2-2h1V.5a.5.5 0 0 1 .5-.5zM1 4v10a1 1 0 0 0 1 1h12a1 1 0 0 0 1-1V4H1z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    background-size: 1rem;
    padding-right: 2.5rem;
    cursor: pointer;
}

/* Hint-tekst onder ophaaldatum veld */
.cbv-huurperiode-hint {
    font-size: 0.875rem;
    color: #666;
    margin-top: 0.25rem;
    margin-bottom: 0;
}

/* Fee-regel in WC order review table */
.woocommerce-checkout-review-order-table .fee .product-name,
.cart_totals .fee td {
    font-style: normal;
}

tr.fee td,
tr.fee th {
    color: #333;
}

/* jQuery UI datepicker stijl — past bij het theme */
.ui-datepicker {
    font-size: 0.875rem;
    z-index: 99999 !important;
    border-radius: 4px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.ui-datepicker .ui-datepicker-header {
    background: #2c2c2c;
    color: #fff;
    border: none;
    border-radius: 4px 4px 0 0;
}

.ui-datepicker .ui-datepicker-title {
    color: #fff;
}

.ui-datepicker .ui-datepicker-prev,
.ui-datepicker .ui-datepicker-next {
    cursor: pointer;
    top: 4px;
}

.ui-datepicker .ui-datepicker-prev span,
.ui-datepicker .ui-datepicker-next span {
    color: #fff;
}

/* Gesloten dag styling */
.ui-datepicker td.cbv-closed a,
.ui-datepicker td.cbv-closed span {
    color: #ccc;
    text-decoration: line-through;
    cursor: not-allowed;
}

/* Weekend: jQuery UI markeert al als ui-state-disabled */
.ui-datepicker td.ui-state-disabled span {
    opacity: 0.4;
}

/* -------------------------------------------------------------------------
   Ophaaldatum — optioneel voorkeursveld achter een uitklap (stap 1)
   ------------------------------------------------------------------------- */
.cbv-pickup-optional {
    margin-top: 12px;
}

.cbv-pickup-intro {
    margin-bottom: 6px;
}

.cbv-pickup-toggle {
    background: none;
    border: 0;
    padding: 0;
    margin: 0;
    font: inherit;
    font-weight: 600;
    color: inherit;
    text-decoration: underline;
    cursor: pointer;
}

.cbv-pickup-toggle::before {
    content: "\25B8\00a0"; /* ▸ */
    text-decoration: none;
    display: inline-block;
}

.cbv-pickup-toggle[aria-expanded="true"]::before {
    content: "\25BE\00a0"; /* ▾ */
}

.cbv-pickup-reveal {
    margin-top: 10px;
    animation: cbv-fade-in 0.2s ease;
}

.cbv-pickup-reveal[hidden] {
    display: none;
}
