/* Shared customer feedback stays above navigation, maps and payment pickers. */
/* The head script sets this before body parsing; no inline error is painted
   while the shared dialog is being initialised. No-JS keeps the fallback. */
.store-feedback-pending .alert--error,
.store-feedback-pending [data-store-error],
.store-feedback-pending [role="alert"][data-error],
.store-feedback-pending [role="alert"].error,
.store-feedback-pending [role="alert"].error-message {
    display: none !important;
}

.store-feedback-dialog {
    width: min(420px, calc(100vw - 28px));
    max-width: none;
    max-height: calc(100vh - 32px);
    max-height: calc(100dvh - 32px);
    margin: auto;
    padding: 0;
    overflow: auto;
    color: #223d2e;
    background: #fff;
    border: 1px solid #e1e9e3;
    border-radius: 23px;
    box-shadow: 0 28px 90px rgba(5, 26, 15, .28);
    font-family: inherit;
}

.store-feedback-dialog:not([open]) {
    display: none;
}

.store-feedback-dialog::backdrop {
    background: rgba(8, 27, 17, .59);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

.store-feedback-dialog__surface {
    position: relative;
    display: grid;
    justify-items: center;
    gap: 17px;
    padding: 28px 25px 24px;
    background: radial-gradient(ellipse at 50% 0, #f7fbf8 0, #fff 62%);
}

.store-feedback-dialog__dismiss {
    position: absolute;
    top: 9px;
    right: 9px;
    display: grid;
    width: 44px;
    height: 44px;
    place-items: center;
    padding: 0;
    color: #6c7b71;
    background: transparent;
    border: 0;
    border-radius: 50%;
    cursor: pointer;
}

.store-feedback-dialog__dismiss svg {
    width: 19px;
    height: 19px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-width: 1.8;
}

.store-feedback-dialog__dismiss:hover {
    color: #284332;
    background: #edf3ef;
}

.store-feedback-dialog__icon {
    display: grid;
    width: 59px;
    height: 59px;
    place-items: center;
    color: #b95443;
    background: #fff2ee;
    border: 1px solid #f4dbd3;
    border-radius: 20px;
    box-shadow: 0 5px 14px rgba(159, 69, 51, .05);
}

.store-feedback-dialog__icon svg {
    width: 28px;
    height: 28px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.7;
}

.store-feedback-dialog__header {
    min-width: 0;
    text-align: center;
}

.store-feedback-dialog__eyebrow {
    margin: 0 0 6px;
    color: #7b8c81;
    font-size: 10px;
    font-weight: 750;
    letter-spacing: .15em;
}

.store-feedback-dialog__header h2 {
    margin: 0;
    color: #183a27;
    font-size: clamp(22px, 5.8vw, 26px);
    font-weight: 750;
    line-height: 1.35;
    overflow-wrap: anywhere;
}

.store-feedback-dialog__content {
    width: 100%;
    max-height: min(320px, 42vh);
    max-height: min(320px, 42dvh);
    overflow: auto;
    overscroll-behavior: contain;
    color: #647269;
    font-size: 14px;
    line-height: 1.65;
    overflow-wrap: anywhere;
    scrollbar-width: thin;
    scrollbar-color: #d1ddd5 transparent;
}

.store-feedback-dialog__content p {
    margin: 0;
    text-align: center;
}

.store-feedback-dialog__content ul {
    display: grid;
    gap: 10px;
    margin: 0;
    padding: 14px 15px 14px 32px;
    background: #f7faf8;
    border: 1px solid #e8eee9;
    border-radius: 13px;
}

.store-feedback-dialog__content li::marker {
    color: #af6958;
}

.store-feedback-dialog__okay {
    width: 100%;
    min-height: 46px;
    margin-top: 2px;
    padding: 11px 18px;
    color: #fff;
    background: linear-gradient(120deg, #176b3a, #137a40);
    border: 1px solid #176d3c;
    border-radius: 12px;
    box-shadow: 0 5px 13px rgba(19, 101, 52, .1);
    font: inherit;
    font-size: 15px;
    font-weight: 750;
    line-height: 1.35;
    cursor: pointer;
}

.store-feedback-dialog__okay:hover {
    background: #12582f;
}

.store-feedback-dialog__dismiss:focus-visible,
.store-feedback-dialog__okay:focus-visible {
    outline: 3px solid rgba(23, 107, 58, .3);
    outline-offset: 3px;
}

body.store-feedback-open {
    overflow: hidden;
}

.store-body .alert--error[hidden],
.store-feedback-error-page .alert--error[hidden] {
    display: none;
}

/* Only errors already shown successfully in the modal are suppressed. */
[data-store-feedback-presented] {
    display: none !important;
}

/* A DB-independent safety page also uses the same feedback component. */
.store-feedback-error-page {
    display: grid;
    min-height: 100vh;
    min-height: 100dvh;
    margin: 0;
    padding: 24px 16px;
    place-items: center;
    color: #234432;
    background: radial-gradient(ellipse at 15% 0, #e9f5ed, #f7faf8 58%);
    font-family: "Noto Sans Bengali", "Hind Siliguri", system-ui, sans-serif;
    line-height: 1.6;
}

.store-feedback-error-page *,
.store-feedback-error-page *::before,
.store-feedback-error-page *::after {
    box-sizing: border-box;
}

.store-feedback-error-page__card {
    width: min(100%, 480px);
    padding: 30px 28px;
    background: #fff;
    border: 1px solid #dfe9e2;
    border-radius: 24px;
    box-shadow: 0 15px 55px rgba(21, 66, 39, .06);
}

.store-feedback-error-page__eyebrow {
    margin: 0 0 8px;
    color: #6b8574;
    font-size: 12px;
    font-weight: 750;
    letter-spacing: .08em;
}

.store-feedback-error-page__card h1 {
    margin: 0 0 16px;
    color: #173b26;
    font-size: 27px;
    line-height: 1.4;
}

.store-feedback-error-page .alert--error {
    margin: 0 0 20px;
    padding: 15px 16px;
    color: #835041;
    background: #fff6f2;
    border: 1px solid #f3e0d7;
    border-radius: 13px;
    overflow-wrap: anywhere;
}

.store-feedback-error-page__return {
    display: inline-flex;
    min-height: 46px;
    align-items: center;
    justify-content: center;
    padding: 11px 20px;
    color: #fff;
    background: #176b3a;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
}

.store-feedback-error-page__return:focus-visible {
    outline: 3px solid #aacdb7;
    outline-offset: 3px;
}

@media (max-width: 350px) {
    .store-feedback-dialog__surface {
        gap: 15px;
        padding: 26px 19px 20px;
    }
}

@media (prefers-reduced-motion: no-preference) {
    .store-feedback-dialog[open] {
        animation: store-feedback-enter .17s ease-out;
    }

    @keyframes store-feedback-enter {
        from { opacity: 0; transform: translateY(7px) scale(.98); }
        to { opacity: 1; transform: translateY(0) scale(1); }
    }
}
