/* Rezervasyon asistanı widget'ı */

/* ── Açma butonu (sol alt) ───────────────────────────────── */
.aw-launcher{position:fixed;left:var(--sp-6,1.5rem);bottom:var(--sp-6,1.5rem);z-index:1150;display:flex;align-items:center;gap:12px;padding:7px 22px 7px 7px;border:0;border-radius:999px;cursor:pointer;color:#fff;background:linear-gradient(135deg,#0B1F2A 0%,#124970 100%);box-shadow:0 8px 28px rgba(11,31,42,.38),inset 0 0 0 1px rgba(255,255,255,.1);font-family:'DM Sans',var(--font,system-ui),sans-serif;transition:transform .2s,box-shadow .2s}
.aw-launcher:hover{transform:translateY(-2px);box-shadow:0 12px 32px rgba(11,31,42,.45),inset 0 0 0 1px rgba(255,255,255,.16)}
.aw-launcher:focus-visible{outline:3px solid #00B4D8;outline-offset:3px}
.aw-launcher__ico{position:relative;flex:none;width:46px;height:46px;border-radius:50%;background:#00B4D8;display:grid;place-items:center}
.aw-launcher__ico svg,.aw-head__ico svg{width:27px;height:27px;display:block}
.aw-launcher__ico::after{content:"";position:absolute;right:1px;bottom:1px;width:12px;height:12px;border-radius:50%;background:#34d27b;border:2.5px solid #0B1F2A}
.aw-launcher__label{display:flex;flex-direction:column;line-height:1.15;text-align:left}
.aw-launcher__label b{font-size:15.5px;font-weight:700;letter-spacing:-.1px}
.aw-launcher__label small{margin-top:2px;font-size:11.5px;font-weight:400;opacity:.78}

/* ── Panel ───────────────────────────────────────────────── */
.aw-panel{position:fixed;left:var(--sp-6,1.5rem);bottom:var(--sp-6,1.5rem);z-index:1200;width:392px;max-width:calc(100vw - 24px);height:min(620px,calc(100vh - 40px));display:flex;flex-direction:column;background:#fff;border-radius:16px;overflow:hidden;box-shadow:0 12px 48px rgba(11,31,42,.35);font-family:var(--font,system-ui)}
.aw-panel[hidden]{display:none}
.aw-head{display:flex;align-items:center;justify-content:space-between;padding:14px 16px;color:#fff;background:linear-gradient(135deg,#0B1F2A,#1E6FA8)}
.aw-head__title{font-weight:700;font-size:15px;display:flex;gap:10px;align-items:center}
.aw-head__title small{display:block;font-weight:400;font-size:11.5px;opacity:.85}
.aw-head__ico{flex:none;width:38px;height:38px;border-radius:50%;background:#00B4D8;display:grid;place-items:center}
.aw-head__close{background:transparent;border:0;color:#fff;font-size:18px;cursor:pointer;padding:4px 8px}
.aw-body{position:relative;flex:1;overflow-y:auto;padding:14px;background:#f4f8fb;display:flex;flex-direction:column;gap:10px}

/* ── Mesajlar ────────────────────────────────────────────── */
.aw-group{align-self:stretch;display:flex;flex-direction:column;gap:8px}
.aw-msg{max-width:88%;padding:9px 12px;border-radius:14px;font-size:14px;line-height:1.45;white-space:pre-wrap;word-wrap:break-word;overflow-wrap:anywhere}
.aw-msg--bot{align-self:flex-start;background:#fff;color:#0B1F2A;border:1px solid #e3edf4;border-bottom-left-radius:4px}
.aw-msg--user{align-self:flex-end;background:#1E6FA8;color:#fff;border-bottom-right-radius:4px}

/* ── Müsaitlik kartları ──────────────────────────────────── */
.aw-card{background:#fff;border:1px solid #e3edf4;border-radius:14px;overflow:hidden}
.aw-card__head{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:10px 12px;background:#0B1F2A;color:#fff}
.aw-card__boat{font-weight:700;font-size:14.5px}
.aw-card__state{font-size:11.5px;font-weight:600;padding:2px 9px;border-radius:999px;background:rgba(52,210,123,.18);color:#7ff0b0}
.aw-card__state--off{background:rgba(255,255,255,.12);color:#c5d3dc}
.aw-day{padding:9px 12px 4px}
.aw-day + .aw-day{border-top:1px solid #e9f0f5}
.aw-day__title{font-size:12.5px;font-weight:700;color:#1E6FA8;margin-bottom:6px}
.aw-slot{display:flex;justify-content:space-between;align-items:flex-start;gap:10px;padding:7px 0;border-top:1px dashed #e3edf4}
.aw-day__title + .aw-slot{border-top:0;padding-top:0}
.aw-slot--off{opacity:.55}
.aw-slot__when{min-width:0}
.aw-slot__time{font-weight:700;font-size:13.5px;color:#0B1F2A;font-variant-numeric:tabular-nums}
.aw-slot__name{font-size:12px;color:#64748b}
.aw-slot__night{display:block;font-size:11px;color:#1e3a8a;margin-top:1px}
.aw-slot__tags{display:flex;flex-direction:column;align-items:flex-end;gap:4px;text-align:right}
.aw-tag{display:inline-block;font-size:12px;font-weight:600;line-height:1.3;padding:3px 9px;border-radius:8px;white-space:nowrap}
.aw-tag--ind{background:#e6f7ef;color:#116b43}
.aw-tag--full{background:#e6f1fa;color:#175b8c}
.aw-tag--off{background:#eef2f5;color:#64748b;font-weight:500}
.aw-others{font-size:12px;color:#64748b;padding:0 4px}

/* ── Fiyat kartı ─────────────────────────────────────────── */
.aw-price{background:#fff;border:1px solid #e3edf4;border-radius:14px;padding:11px 13px}
.aw-price__title{font-weight:700;font-size:13.5px;color:#0B1F2A}
.aw-price__sub{font-size:12px;color:#64748b;margin-bottom:8px}
.aw-price__row{display:flex;justify-content:space-between;font-size:13.5px;padding:4px 0;color:#0B1F2A}
.aw-price__row--total{border-top:1px solid #e3edf4;margin-top:4px;padding-top:8px;font-weight:700;font-size:15px}

/* ── Alt eylem düğmeleri (her zaman mesajın en altında) ─── */
.aw-cta{display:flex;flex-direction:column;gap:6px;margin-top:2px}
.aw-btn{display:flex;align-items:center;justify-content:center;gap:8px;padding:11px 14px;border-radius:12px;background:#00B4D8;color:#fff!important;font-size:14px;font-weight:700;text-decoration:none;text-align:center;transition:background .15s}
.aw-btn:hover{background:#0096b7}
.aw-btn:focus-visible{outline:3px solid #0B1F2A;outline-offset:2px}
.aw-btn--wa{background:#fff;color:#128c7e!important;border:1.5px solid #25d366}
.aw-btn--wa:hover{background:#effcf4}

/* ── Yazıyor göstergesi, seçenekler, form ────────────────── */
.aw-typing{align-self:flex-start;display:flex;gap:4px;padding:12px 14px;background:#fff;border:1px solid #e3edf4;border-radius:14px}
.aw-typing span{width:7px;height:7px;border-radius:50%;background:#94a3b8;animation:aw-b 1s infinite}
.aw-typing span:nth-child(2){animation-delay:.15s}.aw-typing span:nth-child(3){animation-delay:.3s}
@keyframes aw-b{0%,60%,100%{transform:translateY(0);opacity:.5}30%{transform:translateY(-5px);opacity:1}}
.aw-chips{display:flex;flex-wrap:wrap;gap:6px;padding:8px 12px 0;background:#f4f8fb}
.aw-chips:empty{display:none}
.aw-chip{border:1px solid #bcd7e8;background:#fff;color:#1E6FA8;border-radius:999px;padding:7px 13px;font-size:13px;font-weight:600;cursor:pointer}
.aw-chip:hover{background:#e8f3fa}
.aw-chip:focus-visible{outline:2px solid #1E6FA8;outline-offset:2px}
.aw-form{display:flex;gap:8px;padding:10px 12px;background:#f4f8fb;border-top:1px solid #e3edf4}
.aw-form input{flex:1;min-width:0;padding:11px 14px;border:1px solid #cbd9e3;border-radius:999px;font-size:16px;outline:none;background:#fff}
.aw-form input:focus{border-color:#1E6FA8}
.aw-form button{width:44px;height:44px;border:0;border-radius:50%;background:#1E6FA8;color:#fff;cursor:pointer;font-size:15px}
.aw-form button:disabled{opacity:.5;cursor:default}
.aw-foot{padding:6px 12px 10px;font-size:10.5px;line-height:1.35;color:#64748b;background:#f4f8fb}
.aw-foot a{color:#128c7e;font-weight:600}

@media (max-width:768px){.aw-launcher{left:var(--sp-5,1.25rem);bottom:var(--sp-5,1.25rem)}}
@media (max-width:600px){
  .aw-launcher{left:14px;bottom:16px;padding:6px 18px 6px 6px;gap:10px}
  .aw-launcher__ico{width:44px;height:44px}
  .aw-launcher__label b{font-size:14.5px}
  .aw-launcher__label small{display:none}
  .aw-panel{left:0;right:0;bottom:0;width:100vw;max-width:100vw;height:min(90vh,680px);border-radius:16px 16px 0 0}
}
@media (prefers-reduced-motion:reduce){.aw-launcher,.aw-btn{transition:none}.aw-typing span{animation:none}}
