/**
 * Back-in-Stock Notifier styles for AI Plans BD
 * Seamlessly matches the dark/neon aesthetic of the aiplans-native theme.
 */

.aiplans-stock-notifier-wrap {
    margin: 20px 0 24px;
    width: 100%;
}

.aiplans-stock-alert {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    border-radius: 10px;
    margin-bottom: 16px;
    font-size: 13px;
    font-weight: 600;
}

.aiplans-stock-alert-info {
    background: rgba(45, 212, 191, 0.12);
    border: 1px solid rgba(45, 212, 191, 0.3);
    color: var(--teal, #2dd4bf);
}

.aiplans-alert-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: currentColor;
    color: #061b18;
    font-size: 11px;
    font-weight: 800;
    flex-shrink: 0;
}

.aiplans-stock-card {
    background: var(--card, #111827);
    border: 1px solid var(--border, #1f2937);
    border-radius: 16px;
    padding: 22px 24px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    transition: border-color 0.2s ease;
}

.aiplans-stock-card:hover {
    border-color: rgba(45, 212, 191, 0.3);
}

.aiplans-stock-header {
    margin-bottom: 18px;
}

.aiplans-stock-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius: 9999px;
    background: rgba(239, 68, 68, 0.12);
    color: #f87171;
    border: 1px solid rgba(239, 68, 68, 0.3);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}

.aiplans-stock-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--text, #f8fafc);
    margin: 4px 0 6px;
    line-height: 1.3;
}

.aiplans-stock-desc {
    font-size: 13px;
    color: var(--muted, #94a3b8);
    margin: 0;
    line-height: 1.5;
}

/* User Account Pill for Registered Customers */
.aiplans-stock-user-bar {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    border-radius: 10px;
    background: var(--soft, rgba(45, 212, 191, 0.08));
    border: 1px solid var(--border, rgba(45, 212, 191, 0.2));
    font-size: 13px;
    color: var(--text, #f8fafc);
    margin-bottom: 14px;
}

.aiplans-user-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #10b981;
    box-shadow: 0 0 8px #10b981;
    flex-shrink: 0;
}

/* Form Inputs and Actions */
.aiplans-stock-input-row {
    display: flex;
    gap: 10px;
    align-items: stretch;
}

.aiplans-stock-input {
    flex: 1;
    min-height: 46px;
    background: var(--input, #1e293b);
    border: 1px solid var(--border, #334155);
    border-radius: 10px;
    color: var(--text, #ffffff);
    padding: 10px 14px;
    font-size: 14px;
    box-sizing: border-box;
    transition: all 0.15s ease;
}

.aiplans-stock-input:focus {
    outline: none;
    border-color: var(--teal, #2dd4bf);
    box-shadow: 0 0 0 2px rgba(45, 212, 191, 0.2);
}

.aiplans-stock-btn {
    min-height: 46px;
    padding: 12px 22px;
    border-radius: 10px;
    background: var(--teal, #2dd4bf);
    color: #061b18;
    font-size: 14px;
    font-weight: 700;
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    white-space: nowrap;
    transition: all 0.15s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.aiplans-stock-btn.full {
    width: 100%;
}

.aiplans-stock-btn:hover {
    filter: brightness(1.1);
    transform: translateY(-1px);
}

.aiplans-stock-btn:active {
    transform: translateY(0);
}

.aiplans-stock-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
    filter: none;
}

.aiplans-stock-alt-toggle {
    margin-top: 10px;
}

.aiplans-link-btn {
    background: none;
    border: none;
    color: var(--teal, #2dd4bf);
    font-size: 12px;
    text-decoration: underline;
    text-underline-offset: 3px;
    cursor: pointer;
    padding: 2px 0;
    transition: opacity 0.15s ease;
}

.aiplans-link-btn:hover {
    opacity: 0.8;
}

.aiplans-stock-alt-input-wrap {
    margin-top: 10px;
}

.aiplans-stock-alt-input-wrap input {
    width: 100%;
}

/* Feedback Notifications */
.aiplans-stock-feedback {
    margin-top: 14px;
    padding: 12px 16px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.5;
    animation: aiplansFadeIn 0.2s ease-in-out;
}

.aiplans-stock-feedback.success {
    background: rgba(16, 185, 129, 0.12);
    border: 1px solid rgba(16, 185, 129, 0.3);
    color: #34d399;
}

.aiplans-stock-feedback.info {
    background: rgba(45, 212, 191, 0.12);
    border: 1px solid rgba(45, 212, 191, 0.3);
    color: var(--teal, #2dd4bf);
}

.aiplans-stock-feedback.error {
    background: rgba(239, 68, 68, 0.12);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #f87171;
}

/* Spinner */
.aiplans-spinner {
    width: 16px;
    height: 16px;
    border: 2px solid rgba(6, 27, 24, 0.3);
    border-top-color: #061b18;
    border-radius: 50%;
    animation: aiplansSpin 0.7s linear infinite;
    display: inline-block;
}

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

@keyframes aiplansFadeIn {
    from { opacity: 0; transform: translateY(-4px); }
    to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 540px) {
    .aiplans-stock-input-row {
        flex-direction: column;
    }
    .aiplans-stock-btn {
        width: 100%;
    }
}
