/* ─── SpaceArcade – Discontinued Status | Frontend Styles ───────────────────
   Theme: spacearcade.in — white #ffffff, navy #0d2b5e, gold #f5a623
   ──────────────────────────────────────────────────────────────────────────── */

/* ─── Badge + wrap ───────────────────────────────────────────────────────── */
.sa-disc-wrap {
    margin: 14px 0 18px;
    max-width: 480px;
}

.sa-disc-badge {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background-color: #0d2b5e;
    color: #ffffff;
    border-radius: 4px;
    padding: 8px 14px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    line-height: 1.4;
    font-family: inherit;
}

.sa-disc-badge svg {
    flex-shrink: 0;
    color: #f5a623;
}

.sa-disc-note {
    margin: 8px 0 0;
    font-size: 13px;
    color: #666666;
    line-height: 1.55;
}

/* ─── Contact For Alternatives button ────────────────────────────────────── */
.sa-disc-contact-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 14px;
    width: 100%;
    max-width: 480px;
    box-sizing: border-box;
    background: linear-gradient(180deg, #ffb84d 0%, #f5a623 55%, #e8941a 100%);
    color: #1a1a1a;
    border: 1.5px solid #e2941a;
    border-radius: 4px;
    padding: 13px 16px;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    cursor: pointer;
    transition: background 0.25s ease, border-color 0.25s ease, transform 0.15s ease, box-shadow 0.25s ease;
    box-shadow: 0 2px 6px rgba(245, 166, 35, 0.35), inset 0 1px 0 rgba(255,255,255,0.35);
    font-family: inherit;
    appearance: none;
    -webkit-appearance: none;
}

.sa-disc-contact-btn:hover {
    background: linear-gradient(180deg, #ffc266 0%, #f7ad32 55%, #ed9c1f 100%);
    border-color: #d9890f;
    color: #1a1a1a;
    transform: translateY(-1px);
    box-shadow: 0 5px 14px rgba(245, 166, 35, 0.45), inset 0 1px 0 rgba(255,255,255,0.4);
}

.sa-disc-contact-btn:active {
    transform: translateY(0);
}

.sa-disc-contact-btn svg {
    flex-shrink: 0;
}

/* ─── Overlay ────────────────────────────────────────────────────────────── */
.sa-disc-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.60);
    backdrop-filter: blur(4px);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    animation: sa-disc-fade-in 0.2s ease;
}

.sa-disc-overlay[hidden] {
    display: none !important;
}

@keyframes sa-disc-fade-in {
    from { opacity: 0; }
    to   { opacity: 1; }
}

/* ─── Modal ──────────────────────────────────────────────────────────────── */
.sa-disc-modal {
    position: relative;
    background: #ffffff;
    color: #222222;
    border-radius: 8px;
    width: 100%;
    max-width: 460px;
    padding: 40px 36px 32px;
    box-shadow: 0 12px 48px rgba(0,0,0,0.18), 0 2px 8px rgba(0,0,0,0.08);
    border-top: 5px solid #0d2b5e;
    animation: sa-disc-slide-up 0.22s cubic-bezier(0.34, 1.4, 0.64, 1);
}

@keyframes sa-disc-slide-up {
    from { transform: translateY(24px); opacity: 0; }
    to   { transform: translateY(0);    opacity: 1; }
}

/* Using navy top border (not gold) to visually distinguish this from the
   Notify Me popup which uses a gold top border — keeps the two flows
   clearly separate at a glance. */

.sa-disc-close {
    position: absolute;
    top: 14px;
    right: 14px;
    background: #f5f5f5;
    border: 1px solid #e0e0e0;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #666;
    transition: color 0.15s, background 0.15s;
    padding: 0;
}

.sa-disc-close:hover {
    color: #111;
    background: #ebebeb;
}

/* ─── Modal header ───────────────────────────────────────────────────────── */
.sa-disc-modal-header {
    text-align: center;
    margin-bottom: 20px;
}

.sa-disc-modal-header h2 {
    font-size: 20px;
    font-weight: 800;
    color: #0d2b5e;
    margin: 0 0 8px;
    line-height: 1.3;
    font-family: inherit;
    letter-spacing: -0.01em;
}

.sa-disc-modal-header p {
    font-size: 13.5px;
    color: #666666;
    margin: 0;
    line-height: 1.6;
}

/* ─── Product context card ───────────────────────────────────────────────── */
.sa-disc-product-card {
    display: flex;
    align-items: center;
    gap: 12px;
    background: #f9f9f9;
    border: 1px solid #ececec;
    border-radius: 6px;
    padding: 12px 14px;
    margin-bottom: 22px;
}

.sa-disc-product-thumb {
    width: 56px;
    height: 56px;
    object-fit: cover;
    border-radius: 4px;
    border: 1px solid #e5e5e5;
    flex-shrink: 0;
    background: #fff;
}

.sa-disc-product-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}

.sa-disc-product-name {
    font-size: 13.5px;
    font-weight: 700;
    color: #222222;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.sa-disc-product-status {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: #0d2b5e;
}

/* ─── Form ───────────────────────────────────────────────────────────────── */
.sa-disc-form-group {
    margin-bottom: 16px;
}

.sa-disc-form-group label {
    display: block;
    font-size: 12px;
    font-weight: 700;
    color: #333;
    margin-bottom: 5px;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    font-family: inherit;
}

.sa-disc-form-group label span {
    color: #0d2b5e;
}

.sa-disc-form-group input {
    width: 100%;
    background: #fff;
    border: 1.5px solid #ddd;
    border-radius: 6px;
    padding: 11px 14px;
    font-size: 15px;
    color: #222;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
    box-sizing: border-box;
    font-family: inherit;
}

.sa-disc-form-group input::placeholder {
    color: #aaa;
}

.sa-disc-form-group input:focus {
    border-color: #0d2b5e;
    box-shadow: 0 0 0 3px rgba(13, 43, 94, 0.12);
    background: #fafbff;
}

.sa-disc-form-group input.sa-disc-input-error {
    border-color: #f87171;
    box-shadow: 0 0 0 3px rgba(248, 113, 113, 0.15);
}

.sa-disc-phone-wrap {
    display: flex;
    align-items: stretch;
}

.sa-disc-phone-prefix {
    background: rgba(13, 43, 94, 0.08);
    border: 1.5px solid rgba(13, 43, 94, 0.25);
    border-right: none;
    border-radius: 6px 0 0 6px;
    padding: 11px 12px;
    font-size: 15px;
    color: #0d2b5e;
    font-weight: 600;
    display: flex;
    align-items: center;
    white-space: nowrap;
}

.sa-disc-phone-wrap input {
    border-radius: 0 6px 6px 0;
    flex: 1;
}

.sa-disc-field-error {
    display: block;
    font-size: 12px;
    color: #f87171;
    margin-top: 5px;
    min-height: 16px;
}

/* ─── Privacy note ───────────────────────────────────────────────────────── */
.sa-disc-privacy-note {
    display: flex;
    align-items: flex-start;
    gap: 6px;
    font-size: 12px;
    color: #888;
    margin-bottom: 18px;
    line-height: 1.5;
}

.sa-disc-privacy-note svg {
    flex-shrink: 0;
    margin-top: 2px;
    color: #0d2b5e;
}

/* ─── Message ────────────────────────────────────────────────────────────── */
.sa-disc-message {
    display: none;
    padding: 12px 16px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 14px;
    text-align: center;
    line-height: 1.5;
}

.sa-disc-msg-success {
    display: block;
    background: rgba(52, 211, 153, 0.1);
    border: 1px solid rgba(52, 211, 153, 0.4);
    color: #059669;
}

.sa-disc-msg-error {
    display: block;
    background: rgba(248, 113, 113, 0.1);
    border: 1px solid rgba(248, 113, 113, 0.35);
    color: #dc2626;
}

/* ─── Submit button ──────────────────────────────────────────────────────── */
.sa-disc-submit-btn {
    width: 100%;
    background: linear-gradient(180deg, #ffb84d 0%, #f5a623 55%, #e8941a 100%);
    color: #1a1a1a;
    border: 1.5px solid #e2941a;
    border-radius: 4px;
    padding: 13px 16px;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    cursor: pointer;
    transition: background 0.25s ease, border-color 0.25s ease, transform 0.15s ease, box-shadow 0.25s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: inherit;
    box-shadow: 0 2px 6px rgba(245, 166, 35, 0.35), inset 0 1px 0 rgba(255,255,255,0.35);
    margin-top: 4px;
}

.sa-disc-submit-btn:hover:not(:disabled) {
    background: linear-gradient(180deg, #ffc266 0%, #f7ad32 55%, #ed9c1f 100%);
    border-color: #d9890f;
    transform: translateY(-1px);
    box-shadow: 0 5px 14px rgba(245, 166, 35, 0.45);
}

.sa-disc-submit-btn:disabled {
    opacity: 0.65;
    cursor: not-allowed;
}

.sa-disc-btn-loader {
    display: none;
    align-items: center;
}

/* ─── Responsive ─────────────────────────────────────────────────────────── */
@media ( max-width: 480px ) {
    .sa-disc-modal {
        padding: 28px 20px 24px;
        border-radius: 14px;
    }
    .sa-disc-modal-header h2 {
        font-size: 18px;
    }
}
