/* GigaStockNotify storefront styles. Everything is scoped to .gsn-* classes. */

.gsn-hidden {
    display: none !important;
}

.gsn-wrap {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px 10px;
    max-width: 100%;
}

/* Next to a visible inline order button ("Beside order button" placement). */
.gsn-wrap-beside {
    vertical-align: middle;
    margin-left: 0.4em;
}

.gsn-wrap-block {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    text-align: center;
}

.gsn-btn {
    cursor: pointer;
    font-family: inherit;
    line-height: inherit;
    white-space: normal;
}

/* Copied from a non-Bootstrap order button (e.g. universal_slider's .order-button). */
.gsn-btn-plain {
    text-align: center;
    -webkit-appearance: none;
    appearance: none;
}

.gsn-btn .fa-bell {
    margin-right: 2px;
}

.gsn-btn-default {
    display: inline-block;
    padding: 8px 16px;
    border: 1px solid transparent;
    border-radius: 4px;
    background: #1a73e8;
    color: #fff;
    font: inherit;
    font-weight: 600;
    line-height: 1.4;
    text-decoration: none;
}

.gsn-btn-default:hover,
.gsn-btn-default:focus {
    background: #1558b0;
    color: #fff;
}

.gsn-btn.gsn-is-subscribed {
    cursor: default;
    opacity: 0.85;
}

.gsn-btn:disabled {
    opacity: 0.6;
    cursor: progress;
}

.gsn-cancel {
    font-size: 0.85em;
    text-decoration: underline;
}

.gsn-msg {
    display: block;
    flex-basis: 100%;
    font-size: 0.85em;
}

.gsn-msg:empty {
    display: none;
}

.gsn-msg-error {
    color: #c0392b;
}

/* Notice box on a single out-of-stock product page */
.gsn-box {
    display: block;
    margin: 16px 0;
    padding: 16px 18px;
    border: 1px solid #d6e2f5;
    border-left: 4px solid #1a73e8;
    border-radius: 4px;
    background: #f5f9ff;
    color: #1f2937;
}

.gsn-box-title {
    display: block;
    margin-bottom: 4px;
    font-size: 1.05em;
}

.gsn-box-text {
    margin: 0 0 12px;
}

/* Guest modal */
.gsn-modal-open {
    overflow: hidden;
}

.gsn-overlay {
    position: fixed;
    inset: 0;
    z-index: 100000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    background: rgba(17, 24, 39, 0.55);
}

.gsn-overlay[hidden] {
    display: none;
}

.gsn-dialog {
    position: relative;
    width: 100%;
    max-width: 420px;
    max-height: calc(100vh - 32px);
    overflow: auto;
    padding: 24px;
    border-radius: 8px;
    background: #fff;
    color: #1f2937;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25);
    text-align: left;
    font-size: 15px;
    line-height: 1.5;
}

.gsn-close {
    position: absolute;
    top: 8px;
    right: 10px;
    border: 0;
    background: none;
    color: #6b7280;
    font-size: 26px;
    line-height: 1;
    cursor: pointer;
}

.gsn-dialog-title {
    margin: 0 24px 8px 0;
    font-size: 1.25em;
}

.gsn-dialog-intro {
    margin: 0 0 16px;
    color: #4b5563;
}

.gsn-form[hidden],
.gsn-login[hidden] {
    display: none;
}

.gsn-label {
    display: block;
    margin-bottom: 4px;
    font-weight: 600;
}

.gsn-input {
    display: block;
    box-sizing: border-box;
    width: 100%;
    padding: 9px 11px;
    border: 1px solid #cbd5e1;
    border-radius: 4px;
    background: #fff;
    color: #111827;
    font: inherit;
}

.gsn-trap {
    position: absolute !important;
    left: -10000px !important;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.gsn-captcha:not(:empty) {
    margin-top: 12px;
}

.gsn-submit {
    width: 100%;
    margin-top: 14px;
}

.gsn-note,
.gsn-login {
    margin: 10px 0 0;
    color: #6b7280;
    font-size: 0.85em;
}

.gsn-form-msg:not(:empty) {
    margin-top: 12px;
    padding: 10px 12px;
    border-radius: 4px;
    background: #ecfdf5;
    color: #065f46;
}

.gsn-form-msg.gsn-form-msg-error {
    background: #fef2f2;
    color: #991b1b;
}

/* Client area pages */
.gsn-ca .gsn-status {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 10px;
    background: #e5e7eb;
    color: #374151;
    font-size: 0.85em;
    white-space: nowrap;
}

.gsn-ca .gsn-status-active { background: #dbeafe; color: #1e40af; }
.gsn-ca .gsn-status-pending { background: #fef3c7; color: #92400e; }
.gsn-ca .gsn-status-notified { background: #d1fae5; color: #065f46; }
.gsn-ca .gsn-status-converted { background: #d1fae5; color: #065f46; }
.gsn-ca .gsn-status-failed { background: #fee2e2; color: #991b1b; }

.gsn-ca .gsn-actions {
    text-align: right;
    white-space: nowrap;
}

.gsn-inline-form {
    display: inline;
    margin: 0;
}

.gsn-action-card {
    max-width: 560px;
    margin: 20px auto;
    padding: 28px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    background: #fff;
    text-align: center;
}

.gsn-action-title {
    margin-top: 0;
}

/* Confirmation page: "Not active yet" notice and the two choices */
.gsn-action-notice {
    margin: 0 0 20px;
    padding: 12px 14px;
    border: 1px solid #f5c26b;
    border-left: 4px solid #f59e0b;
    border-radius: 4px;
    background: #fff8e6;
    color: #7a4b00;
    text-align: left;
}

.gsn-action-buttons {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.gsn-action .gsn-btn-confirm {
    display: inline-block;
    min-width: 280px;
    padding: 14px 30px;
    border: 2px solid #15803d !important;
    border-radius: 6px;
    background: #16a34a !important;
    color: #ffffff !important;
    font-size: 1.2em;
    font-weight: 700;
    line-height: 1.3;
    box-shadow: 0 4px 14px rgba(22, 163, 74, 0.35);
    animation: gsn-confirm-pulse 1.8s ease-in-out 0.6s 3;
}

.gsn-action .gsn-btn-confirm:hover,
.gsn-action .gsn-btn-confirm:focus {
    background: #15803d !important;
    color: #ffffff !important;
}

.gsn-action .gsn-btn-confirm:focus-visible {
    outline: 3px solid #86efac;
    outline-offset: 2px;
}

.gsn-btn-confirm-tick {
    margin-right: 4px;
}

@keyframes gsn-confirm-pulse {
    0%, 100% { box-shadow: 0 4px 14px rgba(22, 163, 74, 0.35); }
    50% { box-shadow: 0 0 0 10px rgba(22, 163, 74, 0.18), 0 4px 14px rgba(22, 163, 74, 0.35); }
}

@media (prefers-reduced-motion: reduce) {
    .gsn-action .gsn-btn-confirm {
        animation: none;
    }
}

@media (max-width: 480px) {
    .gsn-action .gsn-btn-confirm {
        width: 100%;
        min-width: 0;
    }
}

.gsn-action .gsn-btn-decline {
    padding: 4px 8px;
    border: 0;
    background: none;
    color: #6b7280;
    font-size: 0.9em;
    text-decoration: underline;
}

.gsn-action .gsn-btn-decline:hover,
.gsn-action .gsn-btn-decline:focus {
    color: #374151;
}

.gsn-powered {
    margin-top: 16px;
    color: #9ca3af;
    font-size: 0.8em;
    text-align: center;
}
