/*
 * Fulfillment Method - Product Page Styles v1.7
 * Full-width row below location selector.
 * No header -- shows only the radio options.
 */

/* Container */
.wc-api-sync-fulfillment-selector {
    width: 100%;
    margin: 15px 0;
    padding: 0;
}

/* Options row */
.wc-api-sync-fulfillment-options {
    display: flex;
    flex-direction: column;
    gap: 0;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
}

/* Each option */
.wc-api-sync-fulfillment-option {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    cursor: pointer;
    border-bottom: 1px solid #f0f0f0;
    transition: background 0.15s;
    margin: 0;
}
.wc-api-sync-fulfillment-option:last-of-type {
    border-bottom: none;
}
.wc-api-sync-fulfillment-option:hover {
    background: #f9f9f9;
}

/* Hide native radio */
.wc-api-sync-fulfillment-option__input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

/* Custom radio circle */
.wc-api-sync-fulfillment-option__radio {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    border: 2px solid #ccc;
    border-radius: 50%;
    position: relative;
    transition: border-color 0.15s;
}
.wc-api-sync-fulfillment-option__input:checked ~ .wc-api-sync-fulfillment-option__radio {
    border-color: #0073aa;
}
.wc-api-sync-fulfillment-option__input:checked ~ .wc-api-sync-fulfillment-option__radio::after {
    content: '';
    position: absolute;
    top: 3px;
    left: 3px;
    width: 10px;
    height: 10px;
    background: #0073aa;
    border-radius: 50%;
}

/* Highlight selected row */
.wc-api-sync-fulfillment-option:has(.wc-api-sync-fulfillment-option__input:checked) {
    background: #f0f7ff;
}

/* Label text */
.wc-api-sync-fulfillment-option__label {
    font-weight: 600;
    font-size: 14px;
    color: #333;
}

/* Method notes (shipping/delivery) -- shown below the radio row */
.wc-api-sync-fulfillment-method-note {
    padding: 10px 16px 10px 48px;
    background: #fafafa;
    border-bottom: 1px solid #f0f0f0;
    font-size: 13px;
    color: #666;
    line-height: 1.5;
}
.wc-api-sync-fulfillment-method-note p {
    margin: 0;
}
.wc-api-sync-fulfillment-delivery-note {
    background: #fff8e5;
    color: #856404;
}

/* Pickup date/time fields */
.wc-api-sync-fulfillment-pickup-fields {
    padding: 12px 16px 12px 48px;
    background: #f8fbff;
    border-bottom: 1px solid #f0f0f0;
}
.wc-api-sync-fulfillment-pickup-row {
    display: flex;
    gap: 16px;
}
.wc-api-sync-fulfillment-field {
    flex: 1;
}
.wc-api-sync-fulfillment-field label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: #555;
    margin-bottom: 4px;
}
.wc-api-sync-fulfillment-field input[type="date"],
.wc-api-sync-fulfillment-field select {
    width: 100%;
    padding: 8px 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

/* Responsive */
@media (max-width: 520px) {
    .wc-api-sync-fulfillment-pickup-row {
        flex-direction: column;
        gap: 10px;
    }
    .wc-api-sync-fulfillment-pickup-fields,
    .wc-api-sync-fulfillment-method-note {
        padding-left: 16px;
    }
}
