/*
 * Zevo QR Menü — temalar arası ortak ön yüz bileşenleri:
 * altbilgideki yasal bağlantılar, çerez tercihleri paneli, zorunlu çerez bildirimi,
 * yasal sayfa metni ve KVKK başvuru formu.
 * Renkler etkin temanın değişkenlerinden gelir (Aurora: --au-*, Noir: --na-*, Citrus Pop: --cp-*).
 */
:root {
    --qrm-bg: var(--au-bg, var(--na-bg, var(--cp-bg, #ffffff)));
    --qrm-surface: var(--au-surface, var(--na-surface, var(--cp-surface, #ffffff)));
    --qrm-text: var(--au-text, var(--na-text, var(--cp-text, #1d1d1d)));
    --qrm-muted: var(--au-muted, var(--na-muted, var(--cp-muted, #666666)));
    --qrm-line: var(--au-line, var(--na-line, var(--cp-line, #dddddd)));
    --qrm-accent: var(--au-primary, var(--na-copper, var(--cp-primary, #0f6b4f)));
    --qrm-on-accent: var(--au-on-primary, var(--na-bg, var(--cp-on-primary, #ffffff)));
    --qrm-font: var(--au-sans, var(--na-sans, var(--cp-sans, system-ui, sans-serif)));
    --qrm-heading: var(--au-display, var(--na-serif, var(--cp-display, inherit)));
}

.qrm-sr {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}

/* ---- Altbilgi bağlantıları ------------------------------------------------------------ */
.qrm-legal-links ul {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px 16px;
    list-style: none;
    margin: 12px 0;
    padding: 0;
}

.qrm-legal-links a,
.qrm-linkish {
    color: inherit;
    font: inherit;
    text-decoration: underline;
    text-underline-offset: 3px;
    text-decoration-color: color-mix(in srgb, currentColor 40%, transparent);
}

.qrm-linkish {
    background: none;
    border: 0;
    padding: 0;
    cursor: pointer;
}

.qrm-legal-links a:hover,
.qrm-linkish:hover {
    color: var(--qrm-accent);
}

/* ---- Çerez tercihleri paneli ------------------------------------------------------------ */
.qrm-consent {
    position: fixed;
    inset: 0;
    z-index: 70;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    background: rgba(0, 0, 0, 0);
    transition: background-color 0.25s ease;
    text-align: start;
}

.qrm-consent.is-open {
    background: rgba(0, 0, 0, 0.5);
}

.qrm-consent-dialog {
    width: 100%;
    max-width: 620px;
    max-height: 88vh;
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: 20px 18px calc(18px + env(safe-area-inset-bottom));
    border-radius: 22px 22px 0 0;
    background: var(--qrm-bg);
    color: var(--qrm-text);
    font-family: var(--qrm-font);
    font-size: 0.92rem;
    line-height: 1.55;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.qrm-consent.is-open .qrm-consent-dialog {
    transform: none;
}

@media (min-width: 700px) {
    .qrm-consent {
        align-items: center;
    }

    .qrm-consent-dialog {
        border-radius: 22px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .qrm-consent,
    .qrm-consent-dialog {
        transition: none;
    }
}

.qrm-consent-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.qrm-consent-head h2 {
    margin: 0;
    font-family: var(--qrm-heading);
    font-size: 1.35rem;
}

.qrm-consent-x {
    width: 40px;
    height: 40px;
    flex: none;
    border: 1px solid var(--qrm-line);
    border-radius: 50%;
    background: var(--qrm-surface);
    color: inherit;
    cursor: pointer;
}

.qrm-consent-cat {
    margin: 14px 0;
    padding: 14px;
    border: 1px solid var(--qrm-line);
    border-radius: 16px;
    background: var(--qrm-surface);
}

.qrm-consent-cat p {
    margin: 6px 0 10px;
    color: var(--qrm-muted);
}

.qrm-consent-cat-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.qrm-consent-always {
    padding: 2px 10px;
    border-radius: 999px;
    background: color-mix(in srgb, var(--qrm-accent) 14%, transparent);
    color: var(--qrm-accent);
    font-size: 0.78rem;
    font-weight: 600;
    white-space: nowrap;
}

.qrm-consent-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.82rem;
}

.qrm-consent-table th,
.qrm-consent-table td {
    padding: 7px 6px;
    border-top: 1px solid var(--qrm-line);
    text-align: start;
    vertical-align: top;
}

.qrm-consent-table code {
    font-size: 0.78rem;
    overflow-wrap: anywhere;
}

.qrm-consent-table small {
    color: var(--qrm-muted);
}

.qrm-consent-note {
    color: var(--qrm-muted);
    font-size: 0.85rem;
}

.qrm-consent-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 14px;
}

.qrm-consent-actions a {
    color: inherit;
}

.qrm-consent-btn,
.qrm-submit {
    min-height: 44px;
    padding: 10px 22px;
    border: 0;
    border-radius: 999px;
    background: var(--qrm-accent);
    color: var(--qrm-on-accent);
    font: inherit;
    font-weight: 600;
    cursor: pointer;
}

.qrm-consent-btn:focus-visible,
.qrm-submit:focus-visible,
.qrm-linkish:focus-visible,
.qrm-consent-x:focus-visible {
    outline: 3px solid color-mix(in srgb, var(--qrm-accent) 55%, transparent);
    outline-offset: 2px;
}

/* ---- Zorunlu çerez bildirimi (yalnızca çerez yazan sayfalarda) ------------------------- */
.qrm-cookie-note {
    position: fixed;
    inset-inline: 12px;
    bottom: calc(12px + env(safe-area-inset-bottom));
    z-index: 65;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 10px 16px;
    max-width: 720px;
    margin-inline: auto;
    padding: 14px 16px;
    border: 1px solid var(--qrm-line);
    border-radius: 18px;
    background: var(--qrm-surface);
    color: var(--qrm-text);
    box-shadow: 0 18px 50px -20px rgba(0, 0, 0, 0.45);
    font-size: 0.88rem;
    text-align: start;
}

.qrm-cookie-note p {
    flex: 1 1 260px;
    margin: 0;
}

.qrm-cookie-note div {
    display: flex;
    align-items: center;
    gap: 14px;
}

/* Tercih kaydedilmişse (qrm-boot.js, sayfa çizilmeden) bildirim hiç görünmez. */
.qrm-consented .qrm-cookie-note {
    display: none;
}

/* ---- Yasal sayfa ve başvuru formu -------------------------------------------------------- */
.qrm-legal {
    max-width: 760px;
    margin: 24px auto 48px;
    color: var(--qrm-text);
}

.qrm-legal-title {
    margin: 0 0 8px;
    font-family: var(--qrm-heading);
    font-size: clamp(1.8rem, 5vw, 2.6rem);
    line-height: 1.15;
}

.qrm-legal-meta {
    margin: 0 0 20px;
    color: var(--qrm-muted);
    font-size: 0.85rem;
}

.qrm-prose {
    line-height: 1.7;
    overflow-wrap: break-word;
}

.qrm-prose h2 {
    margin: 1.8em 0 0.5em;
    font-family: var(--qrm-heading);
    font-size: 1.35rem;
}

.qrm-prose h3 {
    margin: 1.4em 0 0.4em;
    font-size: 1.08rem;
}

.qrm-prose a {
    color: var(--qrm-accent);
}

.qrm-prose ul,
.qrm-prose ol {
    padding-inline-start: 1.3em;
}

.qrm-alert {
    margin: 16px 0;
    padding: 12px 14px;
    border-radius: 14px;
    border: 1px solid var(--qrm-line);
    background: var(--qrm-surface);
}

.qrm-alert.is-success {
    border-color: color-mix(in srgb, #16a34a 45%, transparent);
    background: color-mix(in srgb, #16a34a 10%, var(--qrm-surface));
}

.qrm-alert.is-error {
    border-color: color-mix(in srgb, #dc2626 45%, transparent);
    background: color-mix(in srgb, #dc2626 10%, var(--qrm-surface));
}

.qrm-form {
    display: grid;
    gap: 14px;
    margin-top: 20px;
    padding: 18px;
    border: 1px solid var(--qrm-line);
    border-radius: 20px;
    background: var(--qrm-surface);
}

.qrm-field {
    display: grid;
    gap: 6px;
    min-width: 0;
}

.qrm-field-row {
    display: grid;
    gap: 14px;
}

@media (min-width: 640px) {
    .qrm-field-row {
        grid-template-columns: 1fr 1fr;
    }
}

.qrm-field label {
    font-weight: 600;
    font-size: 0.9rem;
}

.qrm-field input,
.qrm-field select,
.qrm-field textarea {
    width: 100%;
    min-height: 46px;
    padding: 10px 12px;
    border: 1px solid var(--qrm-line);
    border-radius: 12px;
    background: var(--qrm-bg);
    color: var(--qrm-text);
    font: inherit;
}

.qrm-field textarea {
    resize: vertical;
}

.qrm-field [aria-invalid="true"] {
    border-color: #dc2626;
}

.qrm-form .invalid-feedback {
    color: #dc2626;
    font-size: 0.85rem;
}

.qrm-check {
    display: flex;
    gap: 10px;
    align-items: flex-start;
}

.qrm-check input {
    width: 20px;
    height: 20px;
    margin-top: 2px;
    flex: none;
    accent-color: var(--qrm-accent);
}

.qrm-hint {
    margin: 0;
    color: var(--qrm-muted);
    font-size: 0.82rem;
}

.qrm-submit {
    justify-self: start;
}

/* Bot tuzağı alanı: ekran dışında (görünmez, ekran okuyucudan gizli) */
.qrm-hp {
    position: absolute;
    left: -10000px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

/* ---- Masa rozeti (masa QR kodundan gelindiyse) ---------------------------------------- */
.qrm-table-chip {
    position: fixed;
    inset-inline-start: 12px;
    bottom: calc(86px + env(safe-area-inset-bottom));
    z-index: 44;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    max-width: calc(100vw - 24px);
    padding: 7px 8px 7px 14px;
    border: 1px solid var(--qrm-line);
    border-radius: 999px;
    background: var(--qrm-surface);
    color: var(--qrm-text);
    font: 600 0.88rem/1.2 var(--qrm-font);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.qrm-table-chip[hidden] {
    display: none;
}

.qrm-table-chip > i {
    color: var(--qrm-accent);
}

.qrm-table-chip span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.qrm-table-chip button {
    display: grid;
    place-items: center;
    width: 28px;
    height: 28px;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: var(--qrm-muted);
    cursor: pointer;
}

.qrm-table-chip button:hover,
.qrm-table-chip button:focus-visible {
    background: var(--qrm-line);
    color: var(--qrm-text);
}

@media (min-width: 992px) {
    .qrm-table-chip {
        bottom: calc(20px + env(safe-area-inset-bottom));
    }
}

@media print {
    .qrm-table-chip {
        display: none;
    }
}

/* ======================================================================================
 * Eklenti bileşenleri için ortak parçalar (sepet, Wi-Fi, hesap bölüştürme, geri bildirim).
 * Renkler etkin temanın değişkenlerinden gelir; iki temada da aynı yapı kullanılır.
 * ====================================================================================== */

/* ---- Pencere (alt sayfa / ortalanmış iletişim kutusu) ---------------------------------- */
.qrm-modal {
    position: fixed;
    inset: 0;
    z-index: 72;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    background: rgba(0, 0, 0, 0);
    transition: background-color 0.25s ease;
    text-align: start;
}

.qrm-modal[hidden] {
    display: none;
}

.qrm-modal.is-open {
    background: rgba(0, 0, 0, 0.5);
}

.qrm-modal-dialog {
    position: relative;
    width: 100%;
    max-width: 560px;
    max-height: 92vh;
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: 18px 18px calc(18px + env(safe-area-inset-bottom));
    border-radius: 22px 22px 0 0;
    background: var(--qrm-bg);
    color: var(--qrm-text);
    font-family: var(--qrm-font);
    font-size: 0.94rem;
    line-height: 1.5;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.qrm-modal.is-open .qrm-modal-dialog {
    transform: none;
}

@media (min-width: 700px) {
    .qrm-modal {
        align-items: center;
    }

    .qrm-modal-dialog {
        border-radius: 22px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .qrm-modal,
    .qrm-modal-dialog {
        transition: none;
    }
}

.qrm-modal-head {
    position: sticky;
    top: -18px;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin: -18px -18px 12px;
    padding: 16px 18px 12px;
    background: var(--qrm-bg);
    border-bottom: 1px solid var(--qrm-line);
}

.qrm-modal-head h2 {
    margin: 0;
    font-family: var(--qrm-heading);
    font-size: 1.3rem;
}

/* ---- Düğmeler ve form öğeleri ------------------------------------------------------------- */
.qrm-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 44px;
    padding: 10px 18px;
    border: 1px solid var(--qrm-line);
    border-radius: 999px;
    background: var(--qrm-surface);
    color: var(--qrm-text);
    font: 600 0.95rem/1.2 var(--qrm-font);
    text-decoration: none;
    cursor: pointer;
}

.qrm-btn:hover {
    border-color: var(--qrm-accent);
}

.qrm-btn:focus-visible,
.qrm-icon-btn:focus-visible,
.qrm-input:focus-visible {
    outline: 3px solid color-mix(in srgb, var(--qrm-accent) 45%, transparent);
    outline-offset: 2px;
}

.qrm-btn-primary {
    border-color: var(--qrm-accent);
    background: var(--qrm-accent);
    color: var(--qrm-on-accent);
}

.qrm-btn-primary:hover {
    filter: brightness(1.06);
}

.qrm-btn-wa {
    border-color: #1f9d55;
    background: #1f9d55;
    color: #fff;
}

.qrm-btn[disabled],
.qrm-btn[aria-disabled="true"] {
    opacity: 0.55;
    cursor: not-allowed;
    filter: none;
}

.qrm-btn-block {
    width: 100%;
}

.qrm-icon-btn {
    display: inline-grid;
    place-items: center;
    width: 40px;
    height: 40px;
    flex: none;
    border: 1px solid var(--qrm-line);
    border-radius: 50%;
    background: var(--qrm-surface);
    color: inherit;
    cursor: pointer;
}

.qrm-field {
    display: grid;
    gap: 5px;
    margin: 12px 0;
}

.qrm-field > label,
.qrm-field > .qrm-label {
    font-weight: 600;
    font-size: 0.88rem;
}

.qrm-input {
    width: 100%;
    min-height: 44px;
    padding: 9px 12px;
    border: 1px solid var(--qrm-line);
    border-radius: 12px;
    background: var(--qrm-surface);
    color: var(--qrm-text);
    font: 400 0.95rem/1.4 var(--qrm-font);
}

textarea.qrm-input {
    min-height: 74px;
    resize: vertical;
}

.qrm-hint {
    margin: 4px 0 0;
    color: var(--qrm-muted);
    font-size: 0.82rem;
}

.qrm-error {
    margin: 4px 0 0;
    color: #c0392b;
    font-size: 0.85rem;
}

.qrm-notice {
    display: flex;
    gap: 10px;
    margin: 12px 0;
    padding: 12px 14px;
    border-radius: 14px;
    background: color-mix(in srgb, var(--qrm-accent) 10%, var(--qrm-surface));
    font-size: 0.9rem;
}

.qrm-notice.is-warning {
    background: color-mix(in srgb, #e6a23c 18%, var(--qrm-surface));
}

.qrm-notice.is-danger {
    background: color-mix(in srgb, #c0392b 14%, var(--qrm-surface));
}

.qrm-choice {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border: 1px solid var(--qrm-line);
    border-radius: 12px;
    background: var(--qrm-surface);
    cursor: pointer;
}

.qrm-choice + .qrm-choice {
    margin-top: 6px;
}

.qrm-choice input {
    width: 18px;
    height: 18px;
    accent-color: var(--qrm-accent);
}

.qrm-choice:has(input:checked) {
    border-color: var(--qrm-accent);
    box-shadow: inset 0 0 0 1px var(--qrm-accent);
}

.qrm-choice:has(input:disabled) {
    opacity: 0.55;
    cursor: not-allowed;
}

.qrm-choice-price {
    margin-inline-start: auto;
    color: var(--qrm-muted);
    font-size: 0.88rem;
    white-space: nowrap;
}

.qrm-stepper {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px;
    border: 1px solid var(--qrm-line);
    border-radius: 999px;
    background: var(--qrm-surface);
}

.qrm-stepper button {
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: inherit;
    font-size: 1.1rem;
    cursor: pointer;
}

.qrm-stepper button:hover {
    background: var(--qrm-line);
}

.qrm-stepper output {
    min-width: 26px;
    text-align: center;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}

/* ---- Hizmetler bölümü --------------------------------------------------------------------- */
.qrm-services {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
    gap: 10px;
}

.qrm-service {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px;
    border: 1px solid var(--qrm-line);
    border-radius: 16px;
    background: var(--qrm-surface);
    color: var(--qrm-text);
    font: 600 0.95rem/1.3 var(--qrm-font);
    text-align: start;
    text-decoration: none;
    cursor: pointer;
}

.qrm-service:hover {
    border-color: var(--qrm-accent);
}

.qrm-service i {
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    flex: none;
    border-radius: 12px;
    background: color-mix(in srgb, var(--qrm-accent) 14%, transparent);
    color: var(--qrm-accent);
    font-size: 1.15rem;
}

.qrm-service small {
    display: block;
    color: var(--qrm-muted);
    font-weight: 400;
    font-size: 0.8rem;
}

.qrm-addon-page {
    max-width: 720px;
}

/* ---- İsteğe bağlı çerez kategorisi anahtarı ve ilk ziyaret izin sorusu -------------------- */
.qrm-consent-switch {
    width: 22px;
    height: 22px;
    accent-color: var(--qrm-accent);
}

.qrm-consent-ask {
    position: fixed;
    inset-inline: 12px;
    bottom: calc(12px + env(safe-area-inset-bottom));
    z-index: 60;
    max-width: 560px;
    margin-inline: auto;
    padding: 14px 16px;
    border: 1px solid var(--qrm-line);
    border-radius: 18px;
    background: var(--qrm-surface);
    color: var(--qrm-text);
    font: 400 0.9rem/1.45 var(--qrm-font);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.18);
}

.qrm-consent-ask[hidden] {
    display: none;
}

.qrm-consent-ask p {
    margin: 0 0 10px;
}

.qrm-consent-ask-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
}

.qrm-consent-ask-actions .qrm-linkish {
    margin-inline-end: auto;
}

fieldset.qrm-field {
    min-width: 0;
    margin: 12px 0;
    padding: 0;
    border: 0;
}

fieldset.qrm-field > legend {
    float: left;
    width: 100%;
    margin-bottom: 6px;
    padding: 0;
}

fieldset.qrm-field > legend + * {
    clear: both;
}

/* ---- Yabancı para karşılığı (qrm-fx.js) ------------------------------------------------------ */
.qrm-fx-approx {
    display: block;
    font-size: .74em;
    font-weight: 500;
    opacity: .75;
    white-space: nowrap;
    letter-spacing: 0;
}
/* Esnek fiyat satırlarında (kart altı) yaklaşık tutar kendi satırına iner. */
.qrm-fx-approx { flex-basis: 100%; order: 5; }
/* Dar ekranda döviz düğmesi yalnızca kodu gösterir (marka adına yer kalsın). */
@media (max-width: 420px) {
    [data-qrm-fx-button] > i { display: none; }
}
