/* Winkelreviews - Vuurwerk Pyro's United */

.store-review-summary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .45rem;
    margin-top: .7rem;
    color: #fff;
    font-size: .86rem;
    font-weight: 700;
}

.store-review-summary__stars,
.store-review-stars {
    display: inline-flex;
    align-items: center;
    gap: .12rem;
    color: #f5a000;
}

.store-review-summary__stars .is-empty,
.store-review-stars .is-empty {
    color: rgba(255, 255, 255, .38);
}

.store-review-summary__count {
    color: rgba(255, 255, 255, .86);
}

.store-review-button {
    width: 100%;
    min-height: 46px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .55rem;
    border: 1px solid rgba(163, 39, 20, .18);
    border-radius: 12px;
    background: #fff7f5;
    color: #a32714;
    font: inherit;
    font-weight: 800;
    cursor: pointer;
    transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}

.store-review-button:hover {
    background: #fff;
    transform: translateY(-1px);
    box-shadow: 0 8px 20px rgba(15, 23, 42, .08);
}

.store-header {
    position: relative;
}

.store-review-actions-menu {
    position: absolute !important;
    top: .65rem !important;
    right: .65rem !important;
    z-index: 260 !important;
}

/* Laat het uitklapmenu buiten de donkere winkelkop doorlopen. */
.store-card.store-menu-open {
    overflow: visible !important;
    z-index: 250 !important;
}

.store-card.store-menu-open .store-header {
    overflow: visible !important;
    z-index: 251 !important;
    border-radius: 18px 18px 0 0 !important;
}

/* De donkere kop heeft een overlay via ::after. Die moet bij een open
   actiemenu dezelfde ronde bovenhoeken houden. */
.store-card.store-menu-open .store-header::after {
    border-radius: 18px 18px 0 0 !important;
}

.store-review-menu-toggle {
    width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, .32);
    border-radius: 50%;
    background: rgba(0, 0, 0, .28);
    color: #fff;
    cursor: pointer;
    transition: transform .2s ease, background .2s ease;
}

.store-review-menu-toggle:hover,
.store-review-actions-menu.is-open .store-review-menu-toggle {
    background: rgba(163, 39, 20, .92);
    transform: translateY(-1px);
}

.store-review-menu-toggle i {
    transition: transform .18s ease;
}

.store-review-actions-menu.is-open .store-review-menu-toggle i {
    transform: rotate(180deg);
}

.store-review-menu {
    position: absolute;
    top: calc(100% + .45rem);
    right: 0;
    width: max-content;
    min-width: 210px;
    display: none;
    padding: .4rem;
    border: 1px solid rgba(15, 23, 42, .12);
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 16px 38px rgba(15, 23, 42, .2);
    color: #20243a;
}

.store-review-actions-menu.is-open .store-review-menu {
    display: block;
}

.store-review-menu__item {
    width: 100%;
    display: flex;
    align-items: center;
    gap: .7rem;
    padding: .7rem .75rem;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: #20243a;
    font: inherit;
    font-size: .88rem;
    font-weight: 700;
    text-align: left;
    white-space: nowrap;
    cursor: pointer;
}

.store-review-menu__item i {
    width: 1.1rem;
    color: #a32714;
    text-align: center;
}

.store-review-menu__item:hover,
.store-review-menu__item:focus-visible {
    background: #fff3f0;
    outline: none;
}

.store-actions--reviews {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .65rem;
}

.store-actions--reviews > * {
    min-width: 0;
}

.store-actions--reviews .route-link,
.store-actions--reviews .store-review-button {
    width: 100% !important;
    max-width: none !important;
    min-height: 50px !important;
    padding: .7rem .55rem !important;
    margin: 0 !important;
    font-size: .88rem !important;
    line-height: 1.2 !important;
    white-space: nowrap;
}

.store-actions--reviews .route-link {
    gap: .45rem;
}

.store-review-modal {
    position: fixed;
    inset: 0;
    z-index: 10050;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 1.25rem;
}

.store-review-modal.is-open {
    display: flex;
}

.store-review-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, .72);
    backdrop-filter: blur(5px);
}

.store-review-modal__dialog {
    position: relative;
    width: min(760px, 100%);
    max-height: min(880px, calc(100vh - 2.5rem));
    overflow: auto;
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 24px 70px rgba(0, 0, 0, .28);
}

.store-review-modal__head {
    position: sticky;
    top: 0;
    z-index: 2;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.35rem 1.5rem;
    color: #fff;
    background: #a32714;
}

.store-review-modal__head h2 {
    margin: 0;
    color: #fff;
    font-size: clamp(1.25rem, 4vw, 1.75rem);
}

.store-review-modal__subtitle {
    margin: .35rem 0 0;
    color: rgba(255, 255, 255, .85);
    font-size: .92rem;
}

.store-review-modal__close {
    flex: 0 0 auto;
    width: 42px;
    height: 42px;
    border: 1px solid rgba(255, 255, 255, .35);
    border-radius: 50%;
    color: #fff;
    background: rgba(255, 255, 255, .12);
    font-size: 1.25rem;
    cursor: pointer;
}

.store-review-modal__body {
    padding: 1.5rem;
}

.store-review-overview {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.15rem;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    background: #f8fafc;
}

.store-review-overview__number {
    font-size: 2rem;
    font-weight: 900;
    color: #2b2d42;
}

.store-review-overview .store-review-stars .is-empty {
    color: #cbd5e1;
}

.store-review-overview__count {
    color: #64748b;
    font-size: .92rem;
}

.store-review-section-title {
    margin: 1.6rem 0 .8rem;
    color: #2b2d42;
    font-size: 1.18rem;
}

.store-review-list {
    display: grid;
    gap: .85rem;
}

.store-review-item {
    padding: 1rem 0;
    border-bottom: 1px solid #e5e7eb;
}

.store-review-item:last-child {
    border-bottom: 0;
}

.store-review-item__meta {
    display: flex;
    align-items: center;
    gap: .6rem;
    flex-wrap: wrap;
    margin-bottom: .45rem;
}

.store-review-item__meta .store-review-stars .is-empty {
    color: #cbd5e1;
}

.store-review-item__name {
    font-weight: 800;
    color: #2b2d42;
}

.store-review-item__verified {
    color: #16743b;
    font-size: .82rem;
    font-weight: 700;
}

.store-review-item__date {
    color: #64748b;
    font-size: .84rem;
}

.store-review-item__title {
    margin: .3rem 0;
    color: #2b2d42;
    font-weight: 800;
}

.store-review-item__text {
    margin: 0;
    color: #374151;
    line-height: 1.55;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
}

.store-review-empty,
.store-review-loading {
    padding: 1.2rem;
    border-radius: 12px;
    text-align: center;
    color: #64748b;
    background: #f8fafc;
}

.store-review-form {
    display: grid;
    gap: 1rem;
    padding: 1.2rem;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    background: #f8fafc;
}

.store-review-form__row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.store-review-field {
    display: grid;
    gap: .4rem;
}

.store-review-field label,
.store-review-rating-label {
    color: #2b2d42;
    font-size: .92rem;
    font-weight: 800;
}

.store-review-field input,
.store-review-field textarea,
.store-review-field select {
    width: 100%;
    border: 1px solid #d5dae3;
    border-radius: 11px;
    padding: .8rem .9rem;
    color: #2b2d42;
    background: #fff;
    font: inherit;
}

.store-review-field textarea {
    min-height: 120px;
    resize: vertical;
}

.store-review-field input:focus,
.store-review-field textarea:focus,
.store-review-field select:focus {
    outline: 3px solid rgba(163, 39, 20, .12);
    border-color: #a32714;
}

.store-review-rating-input {
    display: inline-flex;
    flex-direction: row-reverse;
    justify-content: flex-end;
    gap: .18rem;
}

.store-review-rating-input input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.store-review-rating-input label {
    color: #cbd5e1;
    font-size: 1.7rem;
    cursor: pointer;
}

.store-review-rating-input label:hover,
.store-review-rating-input label:hover ~ label,
.store-review-rating-input input:checked ~ label {
    color: #f5a000;
}

.store-review-form__help {
    margin: 0;
    color: #64748b;
    font-size: .82rem;
    line-height: 1.5;
}

.store-review-submit {
    min-height: 48px;
    border: 0;
    border-radius: 11px;
    color: #fff;
    background: #a32714;
    font: inherit;
    font-weight: 800;
    cursor: pointer;
}

.store-review-submit:disabled {
    opacity: .65;
    cursor: wait;
}

.store-review-message {
    display: none;
    padding: .85rem 1rem;
    border-radius: 11px;
    line-height: 1.5;
}

.store-review-message.is-visible {
    display: block;
}

.store-review-message.is-success {
    color: #176b39;
    background: #e8f7ee;
}

.store-review-message.is-error {
    color: #a32714;
    background: #fff0ee;
}

.store-review-honeypot {
    position: absolute !important;
    left: -10000px !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
}

.store-review-toast {
    position: fixed;
    z-index: 10100;
    right: 1rem;
    bottom: 1rem;
    max-width: min(420px, calc(100vw - 2rem));
    padding: 1rem 1.15rem;
    border-radius: 12px;
    color: #fff;
    background: #176b39;
    box-shadow: 0 14px 35px rgba(0, 0, 0, .22);
    line-height: 1.5;
}

.store-review-toast.is-error {
    background: #a32714;
}

body.store-review-modal-open {
    overflow: hidden;
}

/* Ontbrekende winkel aanmelden */
.store-submission-fab {
    position: fixed !important;
    right: max(1.25rem, env(safe-area-inset-right));
    bottom: max(1.25rem, env(safe-area-inset-bottom));
    z-index: 9990;
    display: grid;
    place-items: center;
    width: 58px;
    height: 58px;
    padding: 0;
    border: 2px solid rgba(255, 255, 255, .9);
    border-radius: 50%;
    background: #198754;
    color: #fff;
    box-shadow: 0 12px 30px rgba(25, 135, 84, .35);
    cursor: pointer;
    transition: transform .18s ease, background .18s ease, box-shadow .18s ease;
}

.store-submission-fab:hover,
.store-submission-fab:focus-visible {
    background: #157347;
    transform: translateY(-2px) scale(1.04);
    box-shadow: 0 15px 34px rgba(25, 135, 84, .42);
}

.store-submission-fab i {
    font-size: 1.35rem;
}

.store-submission-fab span {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.store-submission-modal__dialog {
    width: min(820px, 100%);
}

.store-submission-address-row {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(110px, .7fr);
    gap: 1rem;
}

.store-submission-categories {
    margin: 0;
    padding: 0;
    border: 0;
}

.store-submission-categories legend {
    margin-bottom: .55rem;
    color: #2b2d42;
    font-size: .92rem;
    font-weight: 800;
}

.store-submission-category-grid {
    display: flex;
    flex-wrap: wrap;
    gap: .55rem;
}

.store-submission-category-grid label {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    min-height: 40px;
    padding: .55rem .75rem;
    border: 1px solid #d5dae3;
    border-radius: 10px;
    background: #fff;
    color: #2b2d42;
    font-weight: 700;
    cursor: pointer;
}

.store-submission-category-grid input {
    width: 17px;
    height: 17px;
    accent-color: #198754;
}

.store-submission-form button[type="submit"] {
    background: #198754;
}

.store-submission-form button[type="submit"]:hover,
.store-submission-form button[type="submit"]:focus-visible {
    background: #157347;
}

.store-submission-form button[type="submit"]:disabled {
    opacity: .65;
    cursor: wait;
}

.store-embed-modal {
    position: fixed;
    inset: 0;
    z-index: 10060;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 1.25rem;
}

.store-embed-modal.is-open {
    display: flex;
}

.store-embed-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, .72);
    backdrop-filter: blur(5px);
}

.store-embed-modal__dialog {
    position: relative;
    width: min(760px, 100%);
    max-height: min(760px, calc(100vh - 2.5rem));
    overflow: auto;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 24px 70px rgba(0, 0, 0, .28);
}

.store-embed-modal__head {
    position: sticky;
    top: 0;
    z-index: 2;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.25rem 1.4rem;
    color: #fff;
    background: #a32714;
}

.store-embed-modal__head h2,
.store-embed-modal__head p,
.store-embed-option h3,
.store-embed-option p {
    margin: 0;
}

.store-embed-modal__head p {
    margin-top: .3rem;
    color: rgba(255, 255, 255, .88);
}

.store-embed-modal__close {
    flex: 0 0 auto;
    width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, .45);
    border-radius: 50%;
    background: transparent;
    color: #fff;
    cursor: pointer;
}

.store-embed-modal__body {
    padding: 1.35rem;
}

.store-share-modal__dialog {
    width: min(520px, 100%);
}

.store-report-modal__dialog {
    width: min(650px, 100%);
}

.store-report-form .store-review-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .55rem;
}

.store-embed-language {
    display: grid;
    gap: .45rem;
    margin-bottom: 1rem;
    color: #292c40;
    font-weight: 800;
}

.store-embed-language select {
    width: 100%;
    min-height: 46px;
    padding: .65rem .8rem;
    border: 1px solid #cfd8e3;
    border-radius: 10px;
    background: #fff;
    color: #292c40;
    font: inherit;
    cursor: pointer;
}

.store-share-submit {
    width: 100%;
    min-height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .55rem;
    padding: .75rem 1rem;
    border: 0;
    border-radius: 10px;
    background: #a32714;
    color: #fff;
    font: inherit;
    font-weight: 800;
    cursor: pointer;
}

.store-share-submit:hover,
.store-share-submit:focus-visible {
    background: #861f11;
}

.store-embed-options {
    display: grid;
    gap: 1rem;
}

.store-embed-option {
    padding: 1rem;
    border: 1px solid #dde3ea;
    border-radius: 12px;
    background: #f8fafc;
}

.store-embed-option p {
    margin-top: .25rem;
    color: #667085;
    font-size: .9rem;
}

.store-embed-option textarea {
    width: 100%;
    min-height: 92px;
    margin-top: .75rem;
    padding: .7rem;
    resize: vertical;
    border: 1px solid #cfd8e3;
    border-radius: 8px;
    background: #fff;
    color: #20243a;
    font: 12px/1.45 Consolas, monospace;
}

.store-embed-copy {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .45rem;
    margin-top: .65rem;
    padding: .65rem .85rem;
    border: 0;
    border-radius: 8px;
    background: #a32714;
    color: #fff;
    font: inherit;
    font-weight: 800;
    cursor: pointer;
}

.store-embed-modal__help {
    margin: 1rem 0 0;
    color: #667085;
    font-size: .88rem;
}

@media (min-width: 701px) {
    .store-review-modal,
    .store-embed-modal {
        align-items: flex-start;
        padding-top: 112px;
        padding-bottom: 1.25rem;
    }

    .store-review-modal__dialog,
    .store-embed-modal__dialog {
        max-height: calc(100vh - 132px);
        max-height: calc(100dvh - 132px);
    }
}

@media (max-width: 700px) {
    .store-submission-fab {
        right: max(1rem, env(safe-area-inset-right));
        bottom: max(1rem, env(safe-area-inset-bottom));
        width: 54px;
        height: 54px;
    }

    .store-submission-address-row {
        grid-template-columns: minmax(0, 1fr) minmax(92px, .42fr);
        gap: .7rem;
    }
    .store-review-actions-menu {
        top: .55rem !important;
        right: .55rem !important;
    }

    .store-review-menu-toggle {
        width: 32px;
        height: 32px;
    }

    .store-review-menu {
        min-width: 198px;
    }

    .store-actions--reviews {
        grid-template-columns: 1fr;
    }

    .store-actions--reviews .route-link,
    .store-actions--reviews .store-review-button {
        min-height: 46px !important;
        font-size: .9rem !important;
    }

    .store-review-modal {
        align-items: flex-end;
        padding: 0;
    }

    .store-review-modal__dialog {
        max-height: 94vh;
        border-radius: 20px 20px 0 0;
    }

    .store-embed-modal {
        align-items: flex-end;
        padding: 0;
    }

    .store-embed-modal__dialog {
        max-height: 94vh;
        border-radius: 20px 20px 0 0;
    }

    .store-embed-modal__head,
    .store-embed-modal__body {
        padding: 1.1rem;
    }

    .store-review-modal__head,
    .store-review-modal__body {
        padding: 1.1rem;
    }

    .store-review-form__row {
        grid-template-columns: 1fr;
    }

    .store-review-overview {
        align-items: flex-start;
        flex-wrap: wrap;
    }
}
