/* ─── DCR Frontend Styles ───────────────────────────────────────────────── */

.dcr-inline-row {
    display: flex !important;
    flex-direction: row !important;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 12px;
}

.dcr-inline-row .dcr-select {
    width: 100%;
}
    margin-top: 16px;
    border-top: 1px solid #e0e0e0;
    padding-top: 16px;
}

.dcr-form-row select.dcr-select,
.dcr-select {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid #d4d9de;
    border-radius: 4px;
    font-size: 14px;
    background: #fff;
    box-sizing: border-box;
}

.dcr-form-row.woocommerce-invalid select,
.dcr-form-row.woocommerce-invalid .dcr-radio-group {
    border-color: #e2401c;
    box-shadow: 0 0 0 2px rgba(226,64,28,.15);
}

.dcr-helper {
    display: block;
    font-size: 12px;
    color: #777;
    margin: 3px 0 6px;
}

.dcr-checkbox-group {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 4px;
}

.dcr-checkbox-label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    cursor: pointer;
    padding: 8px 14px;
    border: 1px solid #d4d9de;
    border-radius: 4px;
    background: #fff;
    transition: border-color .15s, background .15s;
}

.dcr-checkbox-label:has(input:checked) {
    border-color: #2271b1;
    background: #f0f6fd;
}

.dcr-checkbox-label input[type="checkbox"] {
    margin: 0;
    accent-color: #2271b1;
}

/* Checkout section */
.dcr-checkout-section {
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid #e0e0e0;
}

.dcr-checkout-heading {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 18px;
    color: #1a1a2e;
}

.dcr-checkout-block {
    margin-bottom: 20px;
}

.dcr-checkout-label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 6px;
    color: #333;
}

/* Hours grid — frontend */
.dcr-hours-grid {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    margin-top: 8px;
}

.dcr-hours-day {
    flex: 1 1 0;
    min-width: 70px;
    border: 1px solid #ddd;
    border-radius: 5px;
    overflow: hidden;
    opacity: .55;
    transition: opacity .15s;
}

.dcr-hours-day.dcr-day-active {
    opacity: 1;
}

.dcr-hours-day-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    padding: 5px 4px;
    border-bottom: 1px solid #ddd;
    font-size: 12px;
}

.dcr-hours-day-name {
    font-weight: 700;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: .4px;
    color: #333;
}

.dcr-hours-day-header input[type="checkbox"] {
    width: 13px;
    height: 13px;
    margin: 0;
    accent-color: #2271b1;
    flex-shrink: 0;
}

.dcr-hours-day-body {
    padding: 6px 5px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.dcr-hours-sublabel {
    font-size: 9px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .4px;
    color: #888;
    margin: 0;
    line-height: 1;
}

.dcr-hours-day .dcr-time-select {
    font-size: 11px;
    padding: 3px 2px;
    border: 1px solid #ccc;
    border-radius: 3px;
    width: 100%;
    max-width: 100%;
    background: #fff;
    box-sizing: border-box;
}

.dcr-hours-day .dcr-time-select:disabled {
    opacity: .4;
    cursor: not-allowed;
    background: #f5f5f5;
}

@media ( max-width: 600px ) {
    .dcr-hours-grid {
        gap: 4px;
    }
    .dcr-hours-day {
        min-width: 60px;
    }
}

.dcr-update-label {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: 13px;
    color: #555;
    margin-top: 10px;
    cursor: pointer;
}

.dcr-update-label input {
    accent-color: #2271b1;
}

/* ─── Address Fields ────────────────────────────────────────────────────── */

.dcr-addresses-row {
    display: flex !important;
    flex-direction: row !important;
    gap: 20px;
    align-items: flex-start;
    margin-top: 20px;
    width: 100%;
    box-sizing: border-box;
}

.dcr-addresses-row .dcr-address-section {
    flex: 1 1 0 !important;
    min-width: 0 !important;
    width: auto !important;
    float: none !important;
    padding: 18px;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    background: #fafafa;
    box-sizing: border-box;
}

.dcr-address-heading {
    font-size: 15px;
    font-weight: 700;
    color: #1a1a2e;
    margin: 0 0 14px;
    padding-bottom: 10px;
    border-bottom: 1px solid #e0e0e0;
}

.dcr-address-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 16px;
}

.dcr-addr-field {
    margin: 0 0 12px !important;
    float: none !important;
    clear: none !important;
    width: auto !important;
}

.dcr-addr-field.dcr-full-width {
    grid-column: 1 / -1;
}

.dcr-addr-field label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 4px;
    color: #444;
}

.dcr-addr-field input,
.dcr-addr-field select {
    width: 100%;
    box-sizing: border-box;
}

/* Copy checkbox */
.dcr-copy-wrap {
    margin: 14px 0 0;
    padding: 12px 16px;
    background: #f0f6fd;
    border: 1px solid #c5d9f0;
    border-radius: 5px;
}

.dcr-copy-label {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    font-weight: 500;
    color: #1a1a2e;
    cursor: pointer;
}

.dcr-copy-label input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: #2271b1;
    flex-shrink: 0;
}

/* Shipping locked state when copy is checked */
.dcr-shipping-locked {
    opacity: .65;
    pointer-events: none;
}

@media ( max-width: 768px ) {
    .dcr-addresses-row {
        flex-direction: column !important;
    }
    .dcr-addresses-row .dcr-address-section {
        width: 100% !important;
    }
    .dcr-address-grid {
        grid-template-columns: 1fr;
    }
    .dcr-addr-field.dcr-full-width {
        grid-column: 1;
    }
}

/* ─── My Account fieldset ───────────────────────────────────────────────── */
.dcr-account-fieldset {
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    padding: 20px;
    margin-top: 24px;
}

.dcr-account-fieldset legend {
    font-size: 15px;
    font-weight: 700;
    padding: 0 8px;
    color: #1a1a2e;
}

.dcr-account-hours {
    flex-direction: column;
}

.dcr-account-hours label {
    font-weight: 600;
    margin-bottom: 6px;
}
