.apbe-widget-container {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 24px;
    max-width: 650px;
    margin: 20px auto;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    box-sizing: border-box;
}

.apbe-widget-container * {
    box-sizing: border-box;
}

.apbe-widget-tabs {
    display: flex;
    border-bottom: 2px solid #e2e8f0;
    margin-bottom: 20px;
}

.apbe-tab-btn {
    flex: 1;
    padding: 12px;
    background: none;
    border: none;
    border-bottom: 2px solid transparent;
    font-size: 15px;
    font-weight: 600;
    color: #64748b;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-bottom: -2px;
}

.apbe-tab-btn.active {
    color: #2563eb;
    border-bottom-color: #2563eb;
}

.apbe-form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 16px;
    margin-bottom: 16px;
}

.apbe-field {
    display: flex;
    flex-direction: column;
}

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

.apbe-field label {
    font-size: 13px;
    font-weight: 600;
    color: #334155;
    margin-bottom: 6px;
}

.apbe-field input,
.apbe-field textarea {
    padding: 10px 12px;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    font-size: 14px;
    color: #1e293b;
    outline: none;
    transition: border-color 0.2s;
}

.apbe-field input:focus,
.apbe-field textarea:focus {
    border-color: #2563eb;
}

.apbe-submit-btn {
    width: 100%;
    padding: 12px 20px;
    background-color: #2563eb;
    color: #ffffff;
    border: none;
    border-radius: 6px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    transition: background-color 0.2s;
    margin-top: 10px;
}

.apbe-submit-btn:hover {
    background-color: #1d4ed8;
}

.apbe-btn-success {
    background-color: #16a34a;
}

.apbe-btn-success:hover {
    background-color: #15803d;
}

.apbe-alert {
    padding: 12px 16px;
    border-radius: 6px;
    margin: 15px 0;
    font-size: 14px;
}

.apbe-alert-error {
    background-color: #fef2f2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

.apbe-alert-success {
    background-color: #f0fdf4;
    color: #166534;
    border: 1px solid #bbf7d0;
}

.apbe-divider {
    border: 0;
    border-top: 1px solid #e2e8f0;
    margin: 24px 0;
}

.apbe-summary-box {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    padding: 16px;
    margin-bottom: 20px;
}

.apbe-price-row {
    display: flex;
    justify-content: space-between;
    padding: 6px 0;
    font-size: 14px;
    color: #475569;
}

.apbe-price-row.total {
    border-top: 1px dashed #cbd5e1;
    margin-top: 8px;
    padding-top: 12px;
    font-weight: 700;
    font-size: 16px;
    color: #0f172a;
}

.apbe-spinner {
    border: 3px solid rgba(255,255,255,0.3);
    border-radius: 50%;
    border-top: 3px solid #ffffff;
    width: 18px;
    height: 18px;
    animation: apbe-spin 0.8s linear infinite;
    margin-left: 10px;
}

@keyframes apbe-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
