/* Account Fields CSS */

.af-field-item {
    background: #f9f9f9;
    border: 1px solid #ddd;
    margin-bottom: 15px;
    border-radius: 4px;
}

.af-field-header {
    background: #f1f1f1;
    padding: 10px 15px;
    border-bottom: 1px solid #ddd;
    display: flex;
    align-items: center;
    cursor: default;
    border-radius: 4px 4px 0 0;
}

.af-field-drag-handle {
    cursor: move;
    margin-right: 10px;
    color: #999;
    font-size: 18px;
}

.af-field-title {
    flex: 1;
    font-weight: 600;
}

.af-remove-field {
    background: #dc3545 !important;
    color: white !important;
    border: none !important;
    padding: 0 10px !important;
    font-size: 18px !important;
    line-height: 1.5 !important;
    border-radius: 3px !important;
    cursor: pointer !important;
}

.af-remove-field:hover {
    background: #c82333 !important;
}

.af-field-body {
    padding: 15px;
}

.af-field-row {
    display: flex;
    gap: 15px;
    margin-bottom: 10px;
}

.af-field-col {
    flex: 1;
}

.af-field-col-full {
    flex: 1 1 100%;
}

.af-field-row label {
    display: block;
    font-weight: 600;
    margin-bottom: 4px;
    font-size: 13px;
}

.af-field-row input,
.af-field-row select {
    width: 100%;
    padding: 6px 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.af-field-hint {
    margin: 3px 0 0;
    font-size: 12px;
    color: #666;
    font-style: italic;
}

#af-add-field-btn {
    margin-top: 10px;
}

.af-no-fields-message {
    padding: 20px;
    text-align: center;
    color: #666;
    background: #f9f9f9;
    border: 1px dashed #ddd;
    border-radius: 4px;
}

/* Frontend styles */
.af-field-group {
    margin-bottom: 15px;
}

.af-field-label {
    display: block;
    font-weight: 600;
    margin-bottom: 5px;
    color: #fff;
}

.af-required {
    color: #ff4444;
}

.af-field-input {
    width: 100%;
    padding: 10px 15px;
    border: 1px solid #2F3448 !important;
    border-radius: 8px;
    background: #0C1326 !important;
    color: #fff;
    font-size: 14px;
    transition: border-color 0.3s;
}

.af-field-input:focus {
    border-color: #ffd700 !important;
    outline: none;
}

.af-field-input.af-error {
    border-color: #ff4444;
}

.af-help-text {
    margin: 5px 0 0;
    font-size: 12px;
    color: #888;
}

/* Order display styles */
.af-order-account-info,
.af-admin-order-account-info {
    margin: 20px 0;
    padding: 15px;
    background: #f9f9f9;
    border-radius: 4px;
}

.af-account-info-table {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
}

.af-info-row {
    display: flex;
    padding: 5px 0;
    border-bottom: 1px solid #eee;
}

.af-info-label {
    font-weight: 600;
    min-width: 150px;
}

.af-info-value {
    flex: 1;
}

.af-admin-info-table {
    margin-top: 10px;
}

/* Checkout styles */
.af-checkout-fields {
    margin: 20px 0;
    padding: 20px;
    background: #161f35;
    border-radius: 8px;
}

.af-checkout-fields h3 {
    color: #fff;
    margin-bottom: 15px;
}

/* Responsive */
@media (max-width: 768px) {
    .af-field-row {
        flex-direction: column;
        gap: 10px;
    }
    
    .af-info-row {
        flex-direction: column;
        gap: 2px;
    }
    
    .af-info-label {
        min-width: auto;
    }
}