/**
 * WC Recipient Fields - Frontend Styles
 *
 * Minimal CSS with broad class paths for easy overriding.
 * Override examples:
 *   body .wc-recipient-fields { ... }
 *   body .wc-recipient-fields .wc-recipient-fields__option { ... }
 *
 * @package WC_Recipient_Fields
 */

/* ==========================================================================
   Container
   ========================================================================== */

.wc-recipient-fields {
    margin: 1em 0;
    padding: 0;
}

.wc-recipient-fields__title {
    margin: 0 0 0.75em 0;
    padding: 0;
    font-weight: 600;
}

/* ==========================================================================
   Radio Options
   ========================================================================== */

.wc-recipient-fields__options {
    margin: 0;
    padding: 0;
    list-style: none;
}

.wc-recipient-fields__option {
    margin: 0 0 0.5em 0;
    padding: 0;
}

.wc-recipient-fields__option label {
    display: flex;
    align-items: center;
    gap: 0.5em;
    cursor: pointer;
}

.wc-recipient-fields__option input[type="radio"] {
    margin: 0;
}

.wc-recipient-fields__option-label {
    /* Label text styling */
}

.wc-recipient-fields__option--myself {
    /* Specific styling for "myself" option */
}

.wc-recipient-fields__option--someone {
    /* Specific styling for "someone else" option */
}

/* ==========================================================================
   Details Section (Name & Email Fields)
   ========================================================================== */

.wc-recipient-fields__details {
    display: none;
    margin: 1em 0 0 0;
    padding: 1em;
    border: 1px solid #ddd;
    border-radius: 4px;
    background-color: #f9f9f9;
}

.wc-recipient-fields__details[aria-hidden="false"] {
    display: block;
}

.wc-recipient-fields__field {
    margin: 0 0 1em 0;
}

.wc-recipient-fields__field:last-child {
    margin-bottom: 0;
}

.wc-recipient-fields__label {
    display: block;
    margin: 0 0 0.25em 0;
    font-weight: 500;
}

.wc-recipient-fields__label .required {
    color: #e00;
}

.wc-recipient-fields__input {
    display: block;
    width: 100%;
    padding: 0.5em;
    border: 1px solid #ccc;
    border-radius: 3px;
    box-sizing: border-box;
}

.wc-recipient-fields__input:focus {
    outline: none;
    border-color: #0073aa;
    box-shadow: 0 0 0 1px #0073aa;
}

.wc-recipient-fields__input--name {
    /* Name input specific styling */
}

.wc-recipient-fields__input--email {
    /* Email input specific styling */
}

/* ==========================================================================
   Cart Display
   ========================================================================== */

.wc-recipient-fields-cart {
    /* Cart item recipient info styling */
}

.wc-recipient-fields-cart__label {
    font-weight: 500;
}

.wc-recipient-fields-cart__value {
    /* Value styling */
}

/* ==========================================================================
   Order Display (Frontend)
   ========================================================================== */

.wc-recipient-fields-info {
    margin: 0.5em 0;
    padding: 0.5em 0;
    font-size: 0.9em;
}

.wc-recipient-fields-info__value {
    /* Value styling */
}

.wc-recipient-fields-info__value--myself {
    font-style: italic;
}

.wc-recipient-fields-info__value--someone {
    /* Someone else value styling */
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 480px) {
    .wc-recipient-fields__details {
        padding: 0.75em;
    }

    .wc-recipient-fields__input {
        padding: 0.75em;
    }
}
