/* Editorial Delivery Form */

.co-section-title {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin: 0 0 1.4rem;
    padding: 0;
    border: 0;
    color: var(--co-text);
    font-family: var(--font-heading);
    font-size: 1.85rem;
    font-weight: 700;
    letter-spacing: -0.015em;
}

.co-section-icon {
    width: 22px;
    height: 22px;
    color: var(--co-primary);
}

.co-field {
    margin-bottom: 1rem;
}

.co-row {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}

.co-label {
    display: block;
    margin-bottom: 0.4rem;
    color: var(--co-text-muted);
    font-size: 0.78rem;
    font-weight: 500;
    letter-spacing: 0.04em;
    text-transform: none;
}

.co-optional {
    color: var(--co-text-muted);
    font-weight: 400;
    font-size: 0.75rem;
}

.co-input {
    width: 100%;
    height: 56px;
    padding: 0 1rem;
    border: 1px solid var(--co-field-border);
    border-radius: var(--co-radius-sm);
    background: #fff;
    color: var(--co-text);
    font-family: var(--font-body);
    font-size: 0.95rem;
    box-sizing: border-box;
    transition:
        border-color 0.2s,
        box-shadow 0.2s;
}

.co-input::placeholder {
    color: var(--co-text-muted);
    opacity: 0.7;
}

.co-input:focus {
    outline: none;
    border-color: var(--co-primary);
    box-shadow: 0 0 0 3px var(--primary-20, rgba(107, 45, 91, 0.18));
}

.co-input.co-input--error {
    border-color: var(--co-error);
}

select.co-input {
    appearance: none;
    background-color: #fff;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' fill='%236b2d5b' viewBox='0 0 16 16'%3E%3Cpath d='M7.247 11.14 2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 12px;
    padding-right: 2.5rem;
}

.co-textarea {
    height: 86px;
    padding: 0.85rem 1rem;
    resize: none;
    line-height: 1.5;
}

.co-textarea--sm {
    height: 60px;
}

.co-check-label {
    display: inline-flex;
    align-items: center;
    gap: 0.7rem;
    color: var(--co-text);
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
}

.co-check-label input[type='checkbox'] {
    width: 18px;
    height: 18px;
    margin: 0;
    accent-color: var(--co-primary);
    flex-shrink: 0;
}

.co-check-label small {
    color: var(--co-text-muted);
    font-size: 0.82rem;
    font-weight: 400;
}

.co-billing-toggle-wrap {
    margin: 0.5rem 0 1.25rem;
    padding: 0.75rem 1rem;
    background: var(--primary-soft, #efeae7);
    border-radius: var(--co-radius-sm);
}

.co-billing-section,
#co-create-account-wrap {
    margin-bottom: 1rem;
    padding: 1.1rem;
    border: 1px solid var(--co-field-border);
    border-radius: var(--co-radius-sm);
    background: #fff;
}

.co-billing-title {
    margin-bottom: 0.9rem;
    color: var(--co-text);
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 700;
}

/* ── Save address checkboxes ── */
.co-save-address-wrap {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    margin-bottom: 1rem;
    padding: 0.85rem 1rem;
    border: 1px solid var(--co-field-border);
    border-radius: var(--co-radius-sm);
    background: #fafafa;
}

.co-check-label--indent {
    font-size: 0.85rem;
    color: var(--co-text-muted);
}

.co-spinner {
    width: 14px;
    height: 14px;
    border: 2px solid var(--primary-20, rgba(107, 45, 91, 0.2));
    border-top-color: var(--co-primary);
    border-radius: 50%;
    animation: co-spin 0.7s linear infinite;
    display: inline-block;
}

@keyframes co-spin {
    to {
        transform: rotate(360deg);
    }
}

@media (max-width: 640px) {
    .co-row {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .co-row .co-field {
        margin-bottom: 1rem;
    }

    .co-section-title {
        font-size: 1.55rem;
    }
}
