/* Storebird Admin - shadcn/Tailwind v4 Styling */

/* CSS Variables matching Laravel app (OKLCH converted to hex) */
.storebird-admin {
    --background: #ffffff;
    --foreground: #0a0a0a;
    --card: #ffffff;
    --card-foreground: #0a0a0a;
    --popover: #ffffff;
    --popover-foreground: #0a0a0a;
    --primary: #171717;
    --primary-foreground: #fafafa;
    --secondary: #f5f5f5;
    --secondary-foreground: #171717;
    --muted: #f5f5f5;
    --muted-foreground: #737373;
    --accent: #f5f5f5;
    --accent-foreground: #171717;
    --destructive: #ef4444;
    --destructive-foreground: #fafafa;
    --border: #e5e5e5;
    --input: #e5e5e5;
    --ring: #171717;
    --radius: 0.625rem;
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);

    max-width: 680px;
    margin: 20px auto;
    padding: 0 16px;
    font-family: 'Inter', ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    font-size: 14px;
    line-height: 1.5;
    color: var(--foreground);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.storebird-admin *,
.storebird-admin *::before,
.storebird-admin *::after {
    box-sizing: border-box;
}

/* ============================================
   HEADER
   ============================================ */
.storebird-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
}

.storebird-header-content {
    display: flex;
    align-items: center;
    gap: 12px;
}

.storebird-header-text h1 {
    font-size: 24px;
    font-weight: 600;
    letter-spacing: -0.025em;
    color: var(--foreground);
    margin: 0;
    line-height: 1.2;
}

.storebird-header-text p {
    font-size: 14px;
    color: var(--muted-foreground);
    margin: 2px 0 0;
}

/* Logo */
.storebird-logo {
    width: 40px;
    height: 40px;
    flex-shrink: 0;
}

.storebird-logo img {
    width: 40px;
    height: 40px;
    object-fit: contain;
}

.storebird-logo svg {
    width: 22px;
    height: 22px;
    color: var(--primary-foreground);
    fill: var(--primary-foreground);
}

/* ============================================
   BADGE (header connection status)
   ============================================ */
.storebird-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    border-radius: 9999px;
    font-size: 13px;
    font-weight: 500;
    white-space: nowrap;
}

.storebird-badge .status-dot {
    width: 8px;
    height: 8px;
    border-radius: 9999px;
}

.storebird-badge.connected {
    background-color: #dcfce7;
    color: #166534;
}

.storebird-badge.connected .status-dot {
    background-color: #22c55e;
}

.storebird-badge.disconnected {
    background-color: #fef2f2;
    color: #dc2626;
}

.storebird-badge.disconnected .status-dot {
    background-color: #ef4444;
}

.storebird-badge.pending {
    background-color: var(--muted);
    color: var(--muted-foreground);
}

.storebird-badge.pending .status-dot {
    background-color: var(--muted-foreground);
}

.storebird-badge.verifying {
    background-color: #eff6ff;
    color: #1e40af;
}

/* ============================================
   CONTENT AREA
   ============================================ */
.storebird-content {
    display: flex;
    flex-direction: column;
}

/* ============================================
   CARD COMPONENT - matches shadcn Card
   ============================================ */
.storebird-card {
    background-color: var(--card);
    border: 1px solid var(--border);
    border-radius: 12px;
    margin-bottom: 16px;
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}

.storebird-card-header {
    padding: 20px 24px 0;
}

.storebird-card-title {
    font-size: 16px;
    font-weight: 600;
    letter-spacing: -0.025em;
    color: var(--card-foreground);
    margin: 0 0 4px;
}

.storebird-card-description {
    color: var(--muted-foreground);
    font-size: 14px;
    margin: 0;
    line-height: 1.5;
}

.storebird-card-content {
    padding: 16px 24px 24px;
}

.storebird-card-header + .storebird-card-content {
    padding-top: 16px;
}

.storebird-card-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 12px;
}

.storebird-card h2 {
    margin: 0 0 6px 0;
    font-size: 18px;
    font-weight: 600;
    letter-spacing: -0.025em;
    color: var(--card-foreground);
}

.storebird-card p.description {
    color: var(--muted-foreground);
    font-size: 14px;
    margin: 0 0 20px 0;
    line-height: 1.5;
}

/* ============================================
   BUTTON COMPONENT - .storebird-button
   ============================================ */
.storebird-button {
    height: 36px;
    padding: 0 16px;
    border-radius: calc(var(--radius) - 2px);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: background-color 150ms, border-color 150ms, color 150ms, opacity 150ms;
    text-decoration: none;
    border: 1px solid transparent;
    font-family: inherit;
    line-height: 1;
    white-space: nowrap;
}

.storebird-button:focus {
    outline: none;
    box-shadow: 0 0 0 2px var(--background), 0 0 0 4px var(--ring);
}

.storebird-button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.storebird-button.primary {
    background-color: var(--primary);
    border-color: var(--primary);
    color: var(--primary-foreground);
}

.storebird-button.primary:hover:not(:disabled) {
    opacity: 0.9;
}

.storebird-button.secondary {
    background-color: var(--background);
    border: 1px solid var(--input);
    color: var(--foreground);
}

.storebird-button.secondary:hover:not(:disabled) {
    background-color: var(--accent);
}

.storebird-button.ghost {
    background-color: transparent;
    color: var(--muted-foreground);
    border: none;
    box-shadow: none;
}

.storebird-button.ghost:hover:not(:disabled) {
    background-color: var(--accent);
    color: var(--accent-foreground);
}

/* Small button for inline actions */
.storebird-btn {
    height: 32px;
    padding: 0 12px;
    border-radius: calc(var(--radius) - 2px);
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border: 1px solid var(--input);
    background-color: var(--background);
    color: var(--foreground);
    font-family: inherit;
    transition: background-color 150ms;
}

.storebird-btn:hover {
    background-color: var(--accent);
}

.storebird-btn-small {
    height: 28px;
    padding: 0 10px;
    font-size: 12px;
}

/* Also support old WP .button classes in our context */
.storebird-admin .button {
    height: 36px;
    padding: 0 16px;
    border-radius: calc(var(--radius) - 2px);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: background-color 150ms, border-color 150ms, color 150ms, opacity 150ms;
    text-decoration: none;
    border: 1px solid transparent;
}

.storebird-admin .button:focus {
    outline: none;
    box-shadow: 0 0 0 2px var(--background), 0 0 0 4px var(--ring);
}

.storebird-admin .button-primary {
    background-color: var(--primary);
    border-color: var(--primary);
    color: var(--primary-foreground);
}

.storebird-admin .button-primary:hover,
.storebird-admin .button-primary:focus {
    background-color: var(--primary);
    border-color: var(--primary);
    color: var(--primary-foreground);
    opacity: 0.9;
}

.storebird-admin .button-secondary {
    background-color: var(--background);
    border: 1px solid var(--input);
    color: var(--foreground);
}

.storebird-admin .button-secondary:hover,
.storebird-admin .button-secondary:focus {
    background-color: var(--accent);
    border-color: var(--input);
    color: var(--accent-foreground);
}

.storebird-admin .button:active {
    transform: none;
}

/* ============================================
   FORM ELEMENTS
   ============================================ */
.storebird-label {
    font-size: 14px;
    font-weight: 500;
    color: var(--foreground);
    display: block;
    margin-bottom: 6px;
}

.storebird-input {
    width: 100%;
    height: 36px;
    padding: 0 12px;
    border: 1px solid var(--input);
    border-radius: calc(var(--radius) - 2px);
    font-size: 14px;
    background-color: transparent;
    color: var(--foreground);
    transition: border-color 150ms, box-shadow 150ms;
    font-family: inherit;
}

.storebird-input:focus {
    outline: none;
    border-color: var(--ring);
    box-shadow: 0 0 0 1px var(--ring);
}

.storebird-input::placeholder {
    color: var(--muted-foreground);
}

.storebird-input-group {
    margin-bottom: 12px;
}

.storebird-input-group:last-child {
    margin-bottom: 0;
}

/* Also support regular inputs in our admin context */
.storebird-admin input[type="text"],
.storebird-admin input[type="password"],
.storebird-admin input[type="url"],
.storebird-admin input[type="email"] {
    width: 100%;
    max-width: 400px;
    height: 36px;
    padding: 0 12px;
    border: 1px solid var(--input);
    border-radius: calc(var(--radius) - 2px);
    font-size: 14px;
    background-color: transparent;
    color: var(--foreground);
    transition: border-color 150ms, box-shadow 150ms;
}

.storebird-admin input[type="text"]:focus,
.storebird-admin input[type="password"]:focus,
.storebird-admin input[type="url"]:focus,
.storebird-admin input[type="email"]:focus {
    outline: none;
    border-color: var(--ring);
    box-shadow: 0 0 0 1px var(--ring);
}

.storebird-admin input::placeholder {
    color: var(--muted-foreground);
}

.storebird-admin label {
    font-size: 14px;
    font-weight: 500;
    color: var(--foreground);
}

/* ============================================
   SWITCH (toggle) COMPONENT
   ============================================ */
.storebird-switch-group {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 0;
}

.storebird-switch-group + .storebird-switch-group {
    border-top: 1px solid var(--border);
}

.storebird-switch-info {
    flex: 1;
    margin-right: 16px;
}

.storebird-switch-info .storebird-label {
    margin-bottom: 2px;
}

.storebird-switch-description {
    font-size: 13px;
    color: var(--muted-foreground);
    margin: 0;
}

.storebird-switch {
    position: relative;
    width: 44px;
    height: 24px;
    background-color: var(--input);
    border-radius: 9999px;
    border: none;
    cursor: pointer;
    flex-shrink: 0;
    transition: background-color 150ms;
    padding: 0;
}

.storebird-switch.checked {
    background-color: var(--primary);
}

.storebird-switch-thumb {
    position: absolute;
    top: 2px;
    left: 2px;
    width: 20px;
    height: 20px;
    background-color: white;
    border-radius: 9999px;
    transition: transform 150ms;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.storebird-switch.checked .storebird-switch-thumb {
    transform: translateX(20px);
}

/* ============================================
   ALERT COMPONENT (JS-rendered)
   ============================================ */
.storebird-alert {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px 16px;
    border-radius: calc(var(--radius) - 2px);
    margin-bottom: 16px;
    font-size: 14px;
    position: relative;
}

.storebird-alert[hidden] {
    display: none;
}

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

.storebird-alert.error {
    background-color: #fef2f2;
    border: 1px solid #fecaca;
    color: #dc2626;
}

.storebird-alert-icon {
    flex-shrink: 0;
    margin-top: 1px;
}

.storebird-alert-icon svg {
    width: 16px;
    height: 16px;
}

.storebird-alert-content {
    flex: 1;
    min-width: 0;
}

.storebird-alert-title {
    font-weight: 600;
    font-size: 14px;
    margin: 0 0 2px;
}

.storebird-alert-description {
    font-size: 14px;
    margin: 0;
    line-height: 1.5;
}

.storebird-alert-dismiss {
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    opacity: 0.6;
    flex-shrink: 0;
    color: inherit;
    display: flex;
    align-items: center;
    justify-content: center;
}

.storebird-alert-dismiss:hover {
    opacity: 1;
}

.storebird-clear-lock-btn {
    margin-top: 8px;
}

/* ============================================
   FOOTER (Save button area)
   ============================================ */
.storebird-footer {
    margin-top: 8px;
    padding-top: 20px;
    border-top: 1px solid var(--border);
}

.storebird-footer .storebird-button {
    height: 40px;
    padding: 0 24px;
}

/* ============================================
   CONNECT TO STOREBIRD CARD
   ============================================ */
.storebird-connect-card {
    border: 2px solid var(--border);
}

.storebird-connect-card .storebird-card-content {
    padding: 24px;
}

.storebird-connect-status {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 20px;
}

.storebird-connect-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.storebird-connect-icon.connected {
    background-color: #f0fdf4;
    color: #22c55e;
}

.storebird-connect-icon.disconnected {
    background-color: #f5f5f5;
    color: var(--muted-foreground);
}

.storebird-connect-text h3 {
    font-size: 16px;
    font-weight: 600;
    margin: 0 0 4px;
    color: var(--foreground);
}

.storebird-connect-text p {
    font-size: 14px;
    color: var(--muted-foreground);
    margin: 0;
}

.storebird-connect-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.storebird-connect-primary-btn {
    font-size: 15px;
    padding: 10px 24px;
    height: 44px;
}

/* Manual toggle */
.storebird-manual-toggle {
    text-align: center;
    margin: 4px 0;
}

.storebird-manual-toggle-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: none;
    border: none;
    color: var(--muted-foreground);
    font-size: 13px;
    cursor: pointer;
    padding: 8px 12px;
    border-radius: var(--radius);
    transition: color 0.15s;
    font-family: inherit;
}

.storebird-manual-toggle-btn:hover {
    color: var(--foreground);
}

/* ============================================
   PRODUCT SYNC STATUS
   ============================================ */
.storebird-sync-status {
    margin-bottom: 4px;
}

.storebird-sync-info {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.storebird-sync-stat {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 14px;
}

.storebird-sync-label {
    color: var(--muted-foreground);
}

.storebird-sync-value {
    font-weight: 500;
    color: var(--foreground);
}

.storebird-sync-empty {
    font-size: 14px;
    color: var(--muted-foreground);
    margin: 0;
}

.storebird-sync-note {
    font-size: 13px;
    color: var(--muted-foreground);
    margin: 0;
}

.storebird-sync-note[hidden] {
    display: none;
}

/* ============================================
   HELP CARD
   ============================================ */
.storebird-help-card {
    background: var(--muted);
}

.storebird-help-text {
    font-size: 14px;
    color: var(--muted-foreground);
    margin: 0 0 16px;
    line-height: 1.6;
}

/* ============================================
   WOOCOMMERCE DISABLED STATE
   ============================================ */
.storebird-card-disabled {
    opacity: 0.7;
}

.storebird-card-title-row {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.storebird-woo-badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 500;
    background-color: #fef3c7;
    color: #92400e;
    border: 1px solid #fde68a;
}

.storebird-woo-notice {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 16px;
    background-color: #fefce8;
    border: 1px solid #fde68a;
    border-radius: 8px;
    color: #713f12;
}

.storebird-woo-notice svg {
    flex-shrink: 0;
    margin-top: 2px;
    stroke: #ca8a04;
}

.storebird-woo-notice p {
    margin: 0;
    font-size: 13px;
    line-height: 1.5;
}

/* ============================================
   LOADING SPINNER
   ============================================ */
/* SVG-based spinner used in buttons and modal steps */
svg.storebird-spinner {
    animation: spin 0.8s linear infinite;
    vertical-align: middle;
}

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

/* ============================================
   SYNC PROGRESS MODAL
   ============================================ */
/* Modal is appended to document.body (outside .storebird-admin),
   so we must define CSS variables here too */
.storebird-modal-overlay {
    --background: #ffffff;
    --foreground: #0a0a0a;
    --card: #ffffff;
    --card-foreground: #0a0a0a;
    --primary: #171717;
    --primary-foreground: #fafafa;
    --muted: #f5f5f5;
    --muted-foreground: #737373;
    --border: #e5e5e5;
    --input: #e5e5e5;
    --ring: #171717;
    --radius: 0.625rem;
    --destructive: #ef4444;

    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100000;
    backdrop-filter: blur(2px);
    font-family: 'Inter', ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    font-size: 14px;
    line-height: 1.5;
    color: var(--foreground);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.storebird-modal {
    background-color: var(--card);
    border-radius: 16px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    width: 90%;
    max-width: 420px;
    overflow: hidden;
    animation: modalSlideIn 0.2s ease-out;
}

.storebird-modal-overlay *,
.storebird-modal-overlay *::before,
.storebird-modal-overlay *::after {
    box-sizing: border-box;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: scale(0.95) translateY(-10px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.storebird-modal-header {
    padding: 24px 24px 16px;
    text-align: center;
}

.storebird-modal-icon {
    width: 48px;
    height: 48px;
    background-color: var(--primary);
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
}

.storebird-modal-icon svg {
    width: 24px;
    height: 24px;
    color: var(--primary-foreground);
    fill: var(--primary-foreground);
    animation: pulse 2s ease-in-out infinite;
}

.storebird-modal-icon img {
    width: 28px;
    height: 28px;
    object-fit: contain;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.6; }
}

.storebird-modal-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--foreground);
    margin: 0 0 4px;
}

.storebird-modal-subtitle {
    font-size: 14px;
    color: var(--muted-foreground);
    margin: 0;
}

.storebird-modal-body {
    padding: 0 24px 24px;
}

.storebird-modal-footer {
    padding: 0 24px 24px;
}

.storebird-modal-footer .button {
    width: 100%;
    height: 40px;
}

/* Progress Bar */
.storebird-progress-container {
    margin-bottom: 20px;
}

.storebird-progress-bar {
    height: 8px;
    background-color: var(--muted);
    border-radius: 9999px;
    overflow: hidden;
    margin-bottom: 8px;
}

.storebird-progress-fill {
    height: 100%;
    background-color: var(--primary);
    border-radius: 9999px;
    transition: width 0.3s ease;
    position: relative;
}

.storebird-progress-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.storebird-progress-text {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    color: var(--muted-foreground);
}

/* Sync Steps */
.storebird-sync-steps {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 16px;
}

.storebird-sync-step {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    background-color: var(--muted);
    border-radius: 8px;
    font-size: 14px;
    color: var(--muted-foreground);
    transition: all 0.2s ease;
}

.storebird-sync-step .step-icon,
.storebird-sync-step .storebird-step-icon {
    width: 24px;
    height: 24px;
    border-radius: 9999px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    background-color: var(--border);
    transition: all 0.2s ease;
}

.storebird-sync-step .step-icon svg,
.storebird-sync-step .storebird-step-icon svg {
    width: 14px;
    height: 14px;
    color: var(--muted-foreground);
}

.storebird-sync-step.active {
    background-color: #eff6ff;
    color: #1e40af;
}

.storebird-sync-step.active .step-icon,
.storebird-sync-step.active .storebird-step-icon {
    background-color: #3b82f6;
}

.storebird-sync-step.active .step-icon svg,
.storebird-sync-step.active .storebird-step-icon svg {
    color: white;
    animation: spin 1s linear infinite;
}

.storebird-sync-step.complete {
    background-color: #f0fdf4;
    color: #166534;
}

.storebird-sync-step.complete .step-icon,
.storebird-sync-step.complete .storebird-step-icon {
    background-color: #22c55e;
}

.storebird-sync-step.complete .step-icon svg,
.storebird-sync-step.complete .storebird-step-icon svg {
    color: white;
}

/* Current Item Display */
.storebird-sync-current {
    padding: 12px;
    background-color: var(--muted);
    border-radius: 8px;
    text-align: center;
    font-size: 14px;
    color: var(--muted-foreground);
}

.storebird-sync-current:empty {
    display: none;
}

.storebird-sync-current-label {
    font-size: 12px;
    color: var(--muted-foreground);
    margin-bottom: 4px;
}

.storebird-sync-current-value {
    font-size: 14px;
    font-weight: 500;
    color: var(--foreground);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Modal Complete State */
.storebird-modal.complete .storebird-modal-icon {
    background-color: #22c55e;
}

.storebird-modal.complete .storebird-modal-icon svg {
    animation: none;
}

/* Modal Error State */
.storebird-modal.error .storebird-modal-icon {
    background-color: var(--destructive);
}

.storebird-sync-error {
    padding: 12px;
    background-color: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: 8px;
    color: #dc2626;
    font-size: 13px;
    text-align: center;
    margin-top: 16px;
}

/* ============================================
   OLD NOTICE STYLES (legacy)
   ============================================ */
.storebird-notice {
    padding: 12px 16px;
    border-radius: calc(var(--radius) - 2px);
    margin-bottom: 16px;
    font-size: 14px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.storebird-notice.success {
    background-color: #dcfce7;
    border: 1px solid #bbf7d0;
    color: #166534;
}

.storebird-notice.error {
    background-color: #fef2f2;
    border: 1px solid #fecaca;
    color: #dc2626;
}

.storebird-notice.warning {
    background-color: #fef3c7;
    border: 1px solid #fde68a;
    color: #92400e;
}

.storebird-notice.info {
    background-color: #eff6ff;
    border: 1px solid #bfdbfe;
    color: #1e40af;
}

/* ============================================
   WORDPRESS ADMIN OVERRIDES
   ============================================ */
.storebird-admin .form-table {
    margin: 0;
    border-collapse: collapse;
    width: 100%;
}

.storebird-admin .form-table th {
    padding: 12px 0;
    font-weight: 500;
    color: var(--foreground);
    font-size: 14px;
    text-align: left;
    vertical-align: top;
    width: 140px;
}

.storebird-admin .form-table td {
    padding: 12px 0;
}

.storebird-admin .form-table tr {
    border-bottom: none;
}

.storebird-admin .form-table td fieldset label {
    margin-bottom: 0;
}

.storebird-admin input[type="checkbox"] {
    width: 16px;
    height: 16px;
    border-radius: 4px;
    margin-right: 8px;
    accent-color: var(--primary);
    cursor: pointer;
}

.storebird-admin input[type="checkbox"] + label {
    cursor: pointer;
}

.storebird-admin #submit {
    background-color: var(--primary) !important;
    border-color: var(--primary) !important;
    color: var(--primary-foreground) !important;
    height: 40px !important;
    padding: 0 20px !important;
    border-radius: calc(var(--radius) - 2px) !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    text-shadow: none !important;
    box-shadow: none !important;
}

.storebird-admin #submit:hover {
    opacity: 0.9;
    background-color: var(--primary) !important;
    border-color: var(--primary) !important;
}

/* Old status badges */
.storebird-status {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    border-radius: 9999px;
    font-size: 13px;
    font-weight: 500;
    margin-bottom: 16px;
}

.storebird-status.connected {
    background-color: #dcfce7;
    color: #166534;
}

.storebird-status.disconnected {
    background-color: #fef2f2;
    color: #dc2626;
}

.storebird-status .status-indicator {
    width: 8px;
    height: 8px;
    border-radius: 9999px;
}

.storebird-status.connected .status-indicator {
    background-color: #22c55e;
}

.storebird-status.disconnected .status-indicator {
    background-color: #ef4444;
}

/* Old verify button/result */
#storebird-verify {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

#storebird-verify-result {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    margin-left: 12px;
    font-weight: 500;
}

#storebird-verify-result.success {
    color: #16a34a;
}

#storebird-verify-result.error {
    color: var(--destructive);
}

#storebird-verify-result svg {
    flex-shrink: 0;
}

/* Old help card */
.storebird-help {
    background: var(--muted);
    border: 1px solid var(--border);
}

.storebird-help h2 {
    margin-bottom: 8px;
}

.storebird-help p {
    color: var(--muted-foreground);
    margin-bottom: 16px;
    line-height: 1.6;
}

/* Old submit area */
.storebird-admin .submit {
    margin-top: 8px;
    padding-top: 20px;
    border-top: 1px solid var(--border);
}

.storebird-admin .submit .button-primary {
    height: 40px;
    padding: 0 20px;
    font-size: 14px;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 782px) {
    .storebird-admin {
        padding: 0 12px;
    }

    .storebird-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .storebird-admin .form-table th,
    .storebird-admin .form-table td {
        display: block;
        padding: 8px 0;
        width: 100%;
    }

    .storebird-admin .form-table th {
        padding-bottom: 4px;
    }

    .storebird-admin input[type="text"],
    .storebird-admin input[type="password"],
    .storebird-admin input[type="url"],
    .storebird-admin input[type="email"] {
        max-width: 100%;
    }

    .storebird-card {
        margin-bottom: 12px;
    }

    .storebird-card-header {
        padding: 16px 16px 0;
    }

    .storebird-card-content {
        padding: 12px 16px 16px;
    }

    .storebird-connect-status {
        flex-direction: column;
        align-items: flex-start;
    }

    .storebird-connect-actions {
        flex-wrap: wrap;
    }
}
