/* CafeSanal V1.7.8.2 — QR Fix Menü seçim UI
   Normal QR ürün/kategori CSS'ine müdahale etmez. */
#qrFixBox{box-sizing:border-box!important;width:100%!important;max-width:100%!important;margin:10px 0 0!important;padding:0 12px 14px!important;border:1px solid rgba(16,185,129,.35)!important;border-radius:18px!important;background:linear-gradient(180deg,rgba(6,78,59,.18),rgba(15,23,42,.96))!important;overflow:visible!important;color:#f8fafc!important}
#qrFixBox *{box-sizing:border-box}
.qr-modal-box.qr-fix-mode .qr-modal-img-wrap{height:155px!important;min-height:140px!important;max-height:155px!important}
.qr-modal-box.qr-fix-mode .qr-modal-img-wrap img{object-fit:cover!important}
.qr-modal-box.qr-fix-mode .qr-start-order-btn{display:none!important}

.qr-fix-sticky{position:sticky;top:0;z-index:12;margin:0 -12px 12px;padding:11px 12px 10px;border-radius:17px 17px 13px 13px;background:rgba(10,24,38,.97);border-bottom:1px solid rgba(52,211,153,.25);box-shadow:0 10px 24px rgba(2,6,23,.28);backdrop-filter:blur(12px)}
.qr-fix-head{display:flex!important;justify-content:space-between!important;align-items:flex-start!important;gap:10px!important;min-width:0}
.qr-fix-head>div:first-child{display:flex;flex-direction:column;gap:2px;min-width:0}
.qr-fix-head>div:first-child>strong{font-size:16px!important;line-height:1.2;color:#f8fafc!important}
.qr-fix-head small{font-size:11px!important;line-height:1.35;color:#a7b4c7!important}
.qr-fix-running-total{flex:0 0 auto;text-align:right;white-space:nowrap}
.qr-fix-running-total span{display:block;font-size:10px;color:#94a3b8}
.qr-fix-running-total strong{display:block;font-size:19px;line-height:1.15;color:#86efac}

.qr-fix-breakdown{display:flex!important;gap:5px!important;flex-wrap:nowrap!important;overflow-x:auto!important;overflow-y:hidden!important;margin:8px 0!important;padding:0 0 2px!important;scrollbar-width:none}
.qr-fix-breakdown::-webkit-scrollbar{display:none}
.qr-fix-breakdown span{flex:0 0 auto;padding:5px 7px!important;border-radius:9px!important;background:#111c2d!important;border:1px solid rgba(148,163,184,.14)!important;color:#cbd5e1!important;font-size:10.5px!important;white-space:nowrap}
.qr-fix-breakdown strong{color:#f8fafc}

.qr-fix-steps{display:flex;gap:6px;overflow-x:auto;overflow-y:hidden;padding:1px 0 2px;scroll-snap-type:x proximity;scrollbar-width:none}
.qr-fix-steps::-webkit-scrollbar{display:none}
.qr-fix-step{flex:0 0 auto;min-width:112px;max-width:165px;display:grid;grid-template-columns:22px minmax(0,1fr) auto;align-items:center;gap:5px;padding:7px 8px;border:1px solid #334155;border-radius:11px;background:#172235;color:#cbd5e1;cursor:pointer;text-align:left;scroll-snap-align:start}
.qr-fix-step>span{width:22px;height:22px;border-radius:999px;display:grid;place-items:center;background:#334155;color:#fff;font-size:10px;font-weight:900}
.qr-fix-step>strong{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:11px;color:#e5e7eb}
.qr-fix-step>em{font-style:normal;font-size:10px;font-weight:900;color:#94a3b8}
.qr-fix-step.active{border-color:#38bdf8;background:rgba(14,116,144,.2)}
.qr-fix-step.active>span{background:#0369a1}
.qr-fix-step.done{border-color:rgba(52,211,153,.55);background:rgba(6,95,70,.38)}
.qr-fix-step.done>span{background:#047857}.qr-fix-step.done>em{color:#86efac}

.qr-fix-groups{display:block;width:100%;max-width:100%;padding-bottom:10px}
.qr-fix-group{width:100%!important;max-width:100%!important;margin:10px 0!important;padding:10px!important;border:1px solid #334155!important;border-radius:15px!important;background:#101a2b!important;scroll-margin-top:146px;transition:border-color .2s,box-shadow .2s}
.qr-fix-group.is-done{border-color:rgba(52,211,153,.4)!important}
.qr-fix-group-focus{border-color:#38bdf8!important;box-shadow:0 0 0 3px rgba(56,189,248,.14)!important}
.qr-fix-group-head{display:flex!important;justify-content:space-between!important;align-items:center!important;gap:9px!important;margin:0!important}
.qr-fix-group-head>div{display:flex;flex-direction:column;min-width:0}
.qr-fix-group-head small{font-size:9px!important;text-transform:uppercase;letter-spacing:.08em;color:#64748b!important;font-weight:900}
.qr-fix-group-head strong{font-size:15px!important;line-height:1.2!important;color:#f8fafc!important}
.qr-fix-group-head>span{flex:0 0 auto;min-width:42px;text-align:center;background:#334155!important;color:#fff!important;padding:5px 8px!important;border-radius:999px!important;font-size:11px!important;font-weight:900!important}
.qr-fix-group-head>span.done{background:#065f46!important;color:#a7f3d0!important}
.qr-fix-rule-note{margin:5px 0 8px;color:#a7b4c7;font-size:10.5px;font-weight:700}

.qr-fix-options,.qr-fix-alt-list{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:7px!important;width:100%!important;max-width:100%!important}
.qr-fix-option{position:relative;min-width:0!important;max-width:100%!important;min-height:66px!important;display:flex!important;gap:7px!important;align-items:center!important;text-align:left!important;border:1px solid #334155!important;background:#1a2639!important;color:#fff!important;border-radius:12px!important;padding:6px!important;cursor:pointer!important;overflow:hidden!important;box-shadow:none!important}
.qr-fix-option:hover{border-color:#64748b!important}
.qr-fix-option.selected{border-color:#34d399!important;background:#064e3b!important;box-shadow:0 0 0 2px rgba(52,211,153,.13)!important}
.qr-fix-option.selected:after{content:'✓';position:absolute;right:5px;top:5px;width:18px;height:18px;border-radius:999px;display:grid;place-items:center;background:#10b981;color:#052e16;font-size:11px;font-weight:1000;box-shadow:0 2px 8px rgba(0,0,0,.25)}
/* !important gerekli: ana ürün modalındaki genel img kuralları Fix kart görselini büyütmemeli. */
#qrFixBox .qr-fix-option>img,#qrFixBox .qr-fix-noimg{display:grid!important;place-items:center!important;flex:0 0 54px!important;width:54px!important;min-width:54px!important;max-width:54px!important;height:54px!important;min-height:54px!important;max-height:54px!important;margin:0!important;padding:0!important;border-radius:9px!important;object-fit:cover!important;object-position:center!important;background:#0b1220!important}
.qr-fix-option>span:last-child{display:flex!important;flex-direction:column!important;justify-content:center!important;min-width:0!important;max-width:100%!important;overflow:hidden!important;padding-right:2px}
.qr-fix-option strong{display:-webkit-box!important;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden!important;white-space:normal!important;text-overflow:ellipsis;font-size:12px!important;line-height:1.2!important;color:#f8fafc!important}
.qr-fix-option small{display:block!important;margin-top:3px!important;font-size:9.5px!important;line-height:1.2!important;color:#b8c4d6!important;white-space:normal!important}
.qr-fix-option.selected small{color:#bbf7d0!important}

.qr-fix-alt-toggle{width:100%!important;margin-top:8px!important;padding:8px 9px!important;display:flex;justify-content:space-between;align-items:center;gap:8px;border:1px dashed #b45309!important;border-radius:11px!important;background:rgba(120,53,15,.15)!important;color:#fde68a!important;font-size:11px!important;font-weight:900!important;cursor:pointer}
.qr-fix-alt-toggle>span{transition:transform .18s}.qr-fix-alt-toggle.open>span{transform:rotate(180deg)}
.qr-fix-alt-list{display:none!important;margin-top:7px!important}.qr-fix-alt-list.open{display:grid!important}

.qr-fix-extra{margin:10px 0;padding:9px;border-radius:12px;background:rgba(124,45,18,.16);border:1px solid rgba(251,146,60,.35);font-size:11px}
.qr-fix-extra>div{display:flex;justify-content:space-between;gap:8px;align-items:center;margin-top:6px}.qr-fix-extra button{border:0;border-radius:8px;padding:6px 8px;background:rgba(255,255,255,.1);color:inherit}
#qrFixBox textarea{width:100%!important;min-height:58px!important;max-height:110px!important;resize:vertical!important;background:#0b1220!important;color:#fff!important;border:1px solid #334155!important;border-radius:11px!important;padding:9px!important;margin:2px 0 8px!important;font-size:12px!important}
.qr-fix-submit{position:sticky;bottom:-1px;z-index:10;margin:0 -4px;padding:7px 4px 3px;background:linear-gradient(180deg,rgba(15,23,42,0),rgba(15,23,42,.96) 26%,rgba(15,23,42,.99));border-radius:0 0 12px 12px}
#qrFixAddBtn{width:100%!important;min-height:44px!important;margin:0!important;border-radius:12px!important;font-size:13px!important}
#qrFixAddBtn:disabled{cursor:not-allowed!important;background:#334155!important;color:#94a3b8!important;opacity:1!important;box-shadow:none!important}

@media(max-width:520px){
  #qrFixBox{margin-top:8px!important;padding-left:8px!important;padding-right:8px!important}
  .qr-fix-sticky{margin-left:-8px;margin-right:-8px;padding-left:8px;padding-right:8px}
  .qr-modal-box.qr-fix-mode .qr-modal-img-wrap{height:125px!important;min-height:115px!important;max-height:125px!important}
  .qr-fix-step{min-width:104px;max-width:142px;padding:6px}
  .qr-fix-options,.qr-fix-alt-list{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:6px!important}
  .qr-fix-option{min-height:62px!important;padding:5px!important;gap:5px!important}
  #qrFixBox .qr-fix-option>img,#qrFixBox .qr-fix-noimg{flex-basis:48px!important;width:48px!important;min-width:48px!important;max-width:48px!important;height:48px!important;min-height:48px!important;max-height:48px!important}
  .qr-fix-option strong{font-size:11px!important}.qr-fix-option small{font-size:9px!important}
  .qr-fix-group{padding:8px!important;scroll-margin-top:138px}
}
@media(max-width:350px){.qr-fix-options,.qr-fix-alt-list{grid-template-columns:1fr!important}.qr-fix-step{min-width:118px}}


/* V1.7.8.3 — Sepet onayında Fix seçim özeti */
.qr-fix-cart-detail{margin:10px 0 4px;border:1px solid rgba(45,212,191,.28);background:rgba(15,118,110,.08);border-radius:13px;padding:9px;display:grid;gap:6px}
.qr-fix-cart-detail-head{font-size:12px;font-weight:900;color:#ccfbf1;padding-bottom:3px}
.qr-fix-cart-detail-row{display:flex;align-items:center;justify-content:space-between;gap:10px;border-top:1px dashed rgba(148,163,184,.20);padding-top:6px}
.qr-fix-cart-detail-row:first-of-type{border-top:0;padding-top:0}
.qr-fix-cart-detail-row span{min-width:0;display:grid;gap:1px}.qr-fix-cart-detail-row small{font-size:10px;color:#94a3b8}.qr-fix-cart-detail-row strong{font-size:12px;color:#f8fafc;white-space:normal;line-height:1.3}
.qr-fix-cart-detail-row em{font-style:normal;font-size:11px;font-weight:900;white-space:nowrap}.qr-fix-cart-detail-row em.included{color:#86efac}.qr-fix-cart-detail-row em.charge{color:#fde68a}
.qr-fix-cart-detail-row.extra{border-color:rgba(245,158,11,.28)}.qr-fix-cart-detail-row.fee{border-color:rgba(56,189,248,.25)}
.qr-fix-cart-detail-empty{font-size:11px;color:#94a3b8}
