/* GR Back in Stock — storefront popup */
.gr-bis {
    margin: 16px 0;
    font-family: inherit;
}

.gr-bis__trigger {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 13px;
    width: 100%;
    min-height: 70px;
    padding: 12px 15px;
    color: #303233;
    text-align: left;
    background: #fff3e5;
    border: 1px solid #e7b477;
    border-radius: 12px;
    box-shadow: 0 5px 16px rgba(184, 93, 0, 0.1);
    transition: background-color 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.gr-bis__trigger:hover {
    background: #ffead6;
    border-color: #e37b12;
    box-shadow: 0 7px 22px rgba(184, 93, 0, 0.16);
}

.gr-bis__trigger:focus-visible,
.gr-bis__close:focus-visible,
.gr-bis__primary:focus-visible,
.gr-bis__secondary:focus-visible,
.gr-bis__cancel:focus-visible,
.gr-bis__text-button:focus-visible,
.gr-bis__consent a:focus-visible {
    outline: 3px solid rgba(227, 123, 18, 0.35);
    outline-offset: 3px;
}

.gr-bis__trigger:focus-visible {
    outline-color: #b85d00;
}

.gr-bis__trigger-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    color: #b85d00;
    background: #fff;
    border: 1px solid #f0d6b8;
    border-radius: 10px;
}

.gr-bis[data-state="confirmed"] .gr-bis__trigger-icon {
    color: #18733c;
    background: #e9f7ef;
}

.gr-bis[data-state="pending"] .gr-bis__trigger-icon {
    color: #8c5600;
    background: #fff6d8;
}

.gr-bis__trigger-copy {
    display: block;
    min-width: 0;
}

.gr-bis__trigger-copy strong,
.gr-bis__trigger-copy span {
    display: block;
}

.gr-bis__trigger-copy strong {
    margin-bottom: 2px;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.35;
}

.gr-bis__trigger-copy span {
    color: #6e5642;
    font-size: 12px;
    line-height: 1.4;
}

.gr-bis__trigger-arrow {
    color: #9a571a;
    transition: transform 160ms ease;
}

.gr-bis__trigger:hover .gr-bis__trigger-arrow {
    transform: translateX(2px);
}

.gr-bis__modal[hidden],
.gr-bis__view[hidden],
.gr-bis__message[hidden],
.gr-bis [hidden] {
    display: none !important;
}

.gr-bis__modal {
    position: fixed;
    z-index: 100000;
    inset: 0;
    display: grid;
    place-items: center;
    padding: 24px;
}

.gr-bis__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(22, 24, 27, 0.58);
    opacity: 0;
    transition: opacity 180ms ease-out;
}

.gr-bis__dialog {
    position: relative;
    z-index: 1;
    width: min(100%, 500px);
    max-height: calc(100dvh - 48px);
    overflow-y: auto;
    padding: 32px;
    color: #303233;
    background: #fff;
    border: 1px solid rgba(255, 255, 255, 0.8);
    border-radius: 18px;
    box-shadow: 0 24px 70px rgba(16, 20, 24, 0.28);
    opacity: 0;
    transform: translateY(16px) scale(0.985);
    transition: opacity 180ms ease-out, transform 220ms cubic-bezier(0.22, 1, 0.36, 1);
    scrollbar-color: #b9bec5 transparent;
    scrollbar-width: thin;
    outline: none;
}

.gr-bis__modal.is-open .gr-bis__backdrop,
.gr-bis__modal.is-open .gr-bis__dialog {
    opacity: 1;
}

.gr-bis__modal.is-open .gr-bis__dialog {
    transform: translateY(0) scale(1);
}

.gr-bis-modal-open {
    overflow: hidden;
}

/* Keep support widgets from covering the protected modal task on small screens. */
html.gr-bis-modal-open #chat-application-iframe,
html.gr-bis-modal-open #widgetButtonFrame {
    visibility: hidden !important;
}

.gr-bis__close {
    position: absolute;
    top: 14px;
    right: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    color: #4e555e;
    background: #f1f3f5;
    border-radius: 10px;
    transition: color 150ms ease, background-color 150ms ease;
}

.gr-bis__close:hover {
    color: #232629;
    background: #e6e9ed;
}

.gr-bis__intro {
    padding-right: 34px;
    margin-bottom: 24px;
}

.gr-bis__dialog-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    margin-bottom: 16px;
    color: #b85d00;
    background: #fff3e5;
    border-radius: 13px;
}

.gr-bis__title {
    margin: 0 0 8px;
    color: #24272a;
    font-size: clamp(21px, 4vw, 25px);
    font-weight: 750;
    line-height: 1.2;
    letter-spacing: -0.025em;
    text-wrap: balance;
}

.gr-bis__desc {
    max-width: 44ch;
    margin: 0;
    color: #5f6670;
    font-size: 14px;
    line-height: 1.55;
}

.gr-bis__desc strong {
    color: #303233;
    font-weight: 650;
}

.gr-bis__label {
    display: block;
    margin-bottom: 7px;
    color: #303233;
    font-size: 13px;
    font-weight: 650;
}

.gr-bis__input {
    display: block;
    width: 100%;
    min-height: 48px;
    padding: 11px 13px;
    color: #303233;
    caret-color: #b85d00;
    background: #fff;
    border: 1px solid #c9ced5;
    border-radius: 10px;
    outline: none;
    transition: border-color 150ms ease, box-shadow 150ms ease;
}

.gr-bis__input::placeholder {
    color: #737b85;
}

.gr-bis__input:focus {
    border-color: #b85d00;
    box-shadow: 0 0 0 3px rgba(227, 123, 18, 0.17);
}

.gr-bis__input:disabled {
    color: #747b84;
    background: #f5f6f7;
}

.gr-bis__hp {
    position: absolute !important;
    left: -10000px !important;
    width: 1px !important;
    height: 1px !important;
    opacity: 0 !important;
}

.gr-bis__consent {
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: start;
    gap: 9px;
    margin: 14px 0 18px;
    color: #5f6670;
    font-size: 12px;
    line-height: 1.5;
    cursor: pointer;
}

.gr-bis__consent input {
    width: 17px;
    height: 17px;
    margin-top: 1px;
    accent-color: #b85d00;
}

.gr-bis__consent a {
    color: #3d454f;
    font-weight: 600;
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 2px;
}

.gr-bis__primary,
.gr-bis__secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    min-height: 48px;
    padding: 11px 18px;
    font-size: 14px;
    font-weight: 700;
    border-radius: 10px;
    transition: background-color 150ms ease, transform 150ms ease, opacity 150ms ease;
}

.gr-bis__primary {
    width: 100%;
    color: #fff;
    background: #303233;
}

.gr-bis__primary:hover {
    background: #181a1c;
    transform: translateY(-1px);
}

.gr-bis__primary:disabled {
    opacity: 0.62;
    cursor: wait;
    transform: none;
}

.gr-bis__primary.is-loading svg {
    animation: gr-bis-pulse 800ms ease-in-out infinite alternate;
}

.gr-bis__fine-print {
    margin: 10px 0 0;
    color: #737b85;
    font-size: 11px;
    line-height: 1.45;
    text-align: center;
}

.gr-bis__state {
    padding: 5px 0 2px;
    text-align: center;
}

.gr-bis__state-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    margin-bottom: 18px;
    border-radius: 16px;
}

.gr-bis__state-icon--mail {
    color: #8c5600;
    background: #fff6d8;
}

.gr-bis__state-icon--success {
    color: #18733c;
    background: #e9f7ef;
}

.gr-bis__state h3 {
    margin: 0 0 9px;
    color: #24272a;
    font-size: 22px;
    font-weight: 750;
    line-height: 1.25;
    letter-spacing: -0.02em;
}

.gr-bis__state > p {
    max-width: 42ch;
    margin: 0 auto;
    color: #5f6670;
    font-size: 14px;
    line-height: 1.55;
}

.gr-bis__state > p strong {
    color: #303233;
    overflow-wrap: anywhere;
}

.gr-bis__state .gr-bis__state-note {
    margin-top: 12px;
    color: #737b85;
    font-size: 12px;
}

.gr-bis__state-actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    margin-top: 22px;
}

.gr-bis__secondary {
    margin-top: 22px;
    color: #303233;
    background: #eceff2;
}

.gr-bis__state-actions .gr-bis__secondary {
    margin-top: 0;
}

.gr-bis__secondary:hover {
    background: #dfe3e7;
}

.gr-bis__text-button,
.gr-bis__cancel {
    padding: 4px;
    color: #5f6670;
    font-size: 12px;
    font-weight: 600;
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
}

.gr-bis__text-button:hover,
.gr-bis__cancel:hover {
    color: #303233;
}

.gr-bis__cancel {
    display: block;
    margin: 10px auto 0;
}

.gr-bis__cancel:disabled {
    opacity: 0.55;
    cursor: wait;
}

.gr-bis__message {
    margin-top: 14px;
    padding: 10px 12px;
    font-size: 12px;
    line-height: 1.5;
    text-align: left;
    border-radius: 9px;
}

.gr-bis__message--ok {
    color: #155d34;
    background: #e9f7ef;
}

.gr-bis__message--error {
    color: #8a2525;
    background: #fff0f0;
}

.gr-bis__noscript {
    margin-top: 8px;
    color: #8a2525;
    font-size: 12px;
}

@keyframes gr-bis-pulse {
    from { transform: translateX(0); opacity: 0.55; }
    to { transform: translateX(3px); opacity: 1; }
}

@media (max-width: 560px) {
    .gr-bis__modal {
        place-items: end center;
        padding: 12px;
        padding-bottom: max(12px, env(safe-area-inset-bottom));
    }

    .gr-bis__dialog {
        width: 100%;
        max-height: calc(100dvh - 24px - env(safe-area-inset-bottom));
        padding: 27px 20px 22px;
        border-radius: 18px;
        transform: translateY(28px);
    }

    .gr-bis__intro {
        padding-right: 28px;
        margin-bottom: 20px;
    }

    .gr-bis__dialog-icon {
        width: 46px;
        height: 46px;
        margin-bottom: 13px;
    }

    .gr-bis__close {
        top: 12px;
        right: 12px;
    }
}

@media (max-width: 390px) {
    .gr-bis__trigger {
        grid-template-columns: auto minmax(0, 1fr);
    }

    .gr-bis__trigger-arrow {
        display: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    .gr-bis__trigger,
    .gr-bis__trigger-arrow,
    .gr-bis__backdrop,
    .gr-bis__dialog,
    .gr-bis__primary,
    .gr-bis__secondary {
        transition-duration: 0.01ms !important;
    }

    .gr-bis__primary.is-loading svg {
        animation: none;
    }
}
