/* ═══════════════════════════════════════════
   KuryeUp Widget — widget.css
═══════════════════════════════════════════ */
:root {
    --ank-red:      #5C0070;
    --ank-red-dk:   #8A439A;
    --ank-green:    #16a34a;
    --ank-bg:       #ffffff;
    --ank-soft:     #f9fafb;
    --ank-border:   #e5e7eb;
    --ank-text:     #111827;
    --ank-muted:    #111827;
    --ank-radius:   42px;
    --ank-shadow:   none;
}

/* ── Full Reset — tema bağımsız izolasyon ── */
.ank-widget,
.ank-widget *,
.ank-widget *::before,
.ank-widget *::after {
    margin: 0; padding: 0; box-sizing: border-box; outline: none;
    font-family: inherit; font-size: inherit; line-height: inherit;
    font-weight: inherit; font-style: normal; color: inherit;
    background: transparent; border: none; border-radius: 0;
    text-decoration: none; list-style: none; text-transform: none;
    letter-spacing: normal; word-spacing: normal; text-indent: 0;
    text-shadow: none; box-shadow: none; float: none; vertical-align: baseline;
    max-width: none; min-width: 0; max-height: none; min-height: 0;
}
.ank-widget h1,.ank-widget h2,.ank-widget h3,
.ank-widget h4,.ank-widget h5,.ank-widget h6 {
    font-size: inherit; font-weight: inherit; margin: 0; padding: 0; color: inherit;
}
.ank-widget ul,.ank-widget ol { list-style: none; }
.ank-widget table { border-collapse: collapse; border-spacing: 0; }
.ank-widget a { color: inherit; text-decoration: none; }
.ank-widget button,.ank-widget input,.ank-widget select,.ank-widget textarea {
    -webkit-appearance: none; appearance: none;
    background: none; border: none; font-family: inherit; font-size: inherit;
}

/* ── Widget Shell ──────────────────────── */
.ank-widget {
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    font-size: 14px;
    line-height: 1.5;
    color: var(--ank-text);
    background: var(--ank-bg);
    border: 1px solid #ffffff;
    border-radius: 0;
    box-shadow: var(--ank-shadow);
    max-width: 560px;
    margin: 0 auto;
    overflow: hidden;
    position: relative;
    -webkit-text-size-adjust: 100%;
}

/* ── Base element styles (reset sonrası) ── */
.ank-widget input[type="text"],
.ank-widget input[type="tel"],
.ank-widget input[type="email"],
.ank-widget input[type="date"],
.ank-widget input[type="password"],
.ank-widget select {
    display: block;
    width: 100%;
    height: 44px;
    padding: 0 14px;
    font-size: 16px;
    font-family: inherit;
    line-height: 44px;
    color: var(--ank-text);
    background: #fff;
    border: none;
    border-radius: 0;
    outline: none;
    -webkit-appearance: none;
    box-sizing: border-box;
}
.ank-widget input::placeholder { color: #9ca3af; opacity: 1; }
.ank-widget button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-family: inherit;
    font-size: inherit;
    line-height: 1;
    padding: 0;
    box-sizing: border-box;
}
.ank-widget a { color: inherit; text-decoration: none; cursor: pointer; }
.ank-widget label { display: inline; cursor: pointer; }
.ank-widget img { max-width: 100%; height: auto; display: block; border: none; }
.ank-widget svg { display: inline-block; vertical-align: middle; flex-shrink: 0; }
.ank-widget input[type="checkbox"] {
    width: 18px; height: 18px; cursor: pointer;
    -webkit-appearance: checkbox; appearance: checkbox;
}
.ank-widget p { margin: 0; }
.ank-widget strong { font-weight: 700; }
.ank-widget h1,.ank-widget h2,.ank-widget h3,.ank-widget h4 { font-weight: 700; }

.ank-header {
    background: #ffffff;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.ank-body { padding: 0; padding-top: 0; padding-bottom: 0; }

/* ── Address Rows ───────────────────────── */
.ank-address-row-wrap {
    display: block;
}

.ank-address-field-group {
    width: 100%;
    position: relative;
}

/* Input + map button on one line */
.ank-input-line-wrap {
    position: relative;
}
.ank-input-line {
    display: flex;
    align-items: center;
    gap: 8px;
    position: relative;
}

/* Modal inline icons */
#ank-modal-search-bar .ank-field-icon,
#ank-modal-addr-icon {
    position: static;
    left: auto;
    top: auto;
    transform: none;
    font-size: 15px;
    flex-shrink: 0;
    line-height: 1;
    display: flex;
    align-items: center;
    align-self: center;
}

/* Address row spacing */
.ank-address-row-wrap + .ank-address-row-wrap {
    margin-top: 8px;
}

#ank-phone-wrap {
    margin-top: 8px;
}

#ank-coupon-wrap {
    margin-top: 8px;
}
.ank-input-icon-wrap {
    position: relative;
    flex: 1;
    min-width: 0;
    height: 44px;
    display: flex;
    align-items: center;
    border: 1px solid var(--ank-inp-border, var(--ank-border));
    border-radius: 27px;
    background: var(--ank-inp-bg, var(--ank-soft));
    overflow: hidden;
    transition: border-color .18s;
}

.ank-input-icon-wrap:focus-within {
    border-color: var(--ank-inp-focus, var(--ank-red));
    background: #fff;
}

.ank-field-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 15px;
    line-height: 1;
    pointer-events: none;
    user-select: none;
    z-index: 1;
    color: var(--ank-inp-icon, var(--ank-text));
}

.ank-field-icon--png {
    display: flex;
    align-items: center;
    justify-content: center;
    top: 50%;
    transform: translateY(-50%);
    width: 18px;
    height: 18px;
    overflow: hidden;
}

.ank-field-icon--png img {
    width: 18px;
    height: 18px;
    max-width: 18px;
    max-height: 18px;
    object-fit: contain;
    display: block;
    flex-shrink: 0;
}

.ank-widget .ank-addr-input.has-icon,
.ank-widget .ank-input.has-icon {
    padding-left: 36px !important;
}
.ank-widget .ank-addr-input,
.ank-widget .ank-input {
    height: 100%;
    padding: 0 14px;
    font-size: 14px; /* admin paneli tarafından override edilir */
    line-height: normal;
    color: var(--ank-inp-color, var(--ank-text));
    background: transparent;
    border: none;
    outline: none;
    display: block;
    align-self: stretch;
}
.ank-widget .ank-addr-input::placeholder,
.ank-widget .ank-input::placeholder {
    color: var(--ank-inp-ph, #9ca3af);
    opacity: 1;
    font-size: 14px; /* admin paneli tarafından override edilir */
    line-height: normal;
}

.ank-clear-btn {
    position: absolute;
    right: 10px;
    background: #5C0070;
    border: none;
    cursor: pointer;
    color: #fff;
    font-size: 12px;
    line-height: 1;
    padding: 4px;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background .15s;
    z-index: 2;
}
.ank-clear-btn:hover { color: #fff; background: #8A439A; }


.ank-addr-input {
    flex: 1;
    min-width: 0;
    height: 44px;
    padding: 0 14px;
    border: none;
    border-radius: 0;
    font-size: 16px;
    line-height: 44px;
    color: var(--ank-text);
    background: transparent;
    outline: none;
    font-family: inherit;
    box-sizing: border-box;
    width: 100%;
}
.ank-addr-input:focus { background: transparent; }
.ank-addr-input.is-set { color: var(--ank-text); font-weight: 400; }

/* Map button */
.ank-map-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 0 22px;
    min-width: 160px;
    height: 44px;
    background: #5C0070 !important;
    border: 1.5px solid #5C0070 !important;
    border-radius: 27px !important;
    color: #ffffff !important;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    transition: all .18s;
    font-family: inherit;
    flex-shrink: 0;
    justify-content: center;
}
.ank-map-btn:hover { background: #8A439A !important; border-color: #8A439A !important; color: #ffffff !important; }
.ank-map-btn svg { flex-shrink: 0; stroke: #fff; }
.ank-map-btn:hover svg { stroke: #fff; }

/* Autocomplete dropdown */
.ank-autocomplete-dropdown {
    position: absolute;
    top: calc(100% + 3px);
    left: 0;
    right: 0;
    background: #fff;
    border: 1.5px solid var(--ank-border);
    border-radius: 27px;
    box-shadow: none;
    z-index: 9998;
    overflow: hidden;
    display: none;
}
.ank-autocomplete-dropdown.open { display: block; }
.ank-ac-item {
    padding: 10px 13px;
    font-size: 13px;
    color: var(--ank-text);
    cursor: pointer;
    border-bottom: 1px solid #f3f4f6;
    transition: background .12s;
    display: flex;
    align-items: center;
    gap: 8px;
}
.ank-ac-item:last-child { border-bottom: none; }
.ank-ac-item:hover { background: #F3EAF5; color: var(--ank-red); }
.ank-ac-item svg { flex-shrink: 0; }
.ank-ac-header { padding:8px 13px; font-size:10px; font-weight:700; color:#6b7280; text-transform:uppercase; letter-spacing:.5px; border-bottom:1px solid #f3f4f6; background:#fafbfc; }
.ank-ac-saved { cursor:pointer; }
.ank-ac-saved strong { font-size:12px; }

/* Sender / Receiver Contact Fields */
.ank-contact-row { display:flex; gap:8px; margin-top:8px; }
.ank-contact-row .ank-input-icon-wrap { flex:1; min-width:0; }
.ank-contact-name-wrap { flex:1; min-width:0; position:relative; }
.ank-contact-name-wrap .ank-input-icon-wrap { flex:none; width:100%; }
.ank-contact-name-wrap .ank-autocomplete-dropdown { left:0; right:0; }
@media (max-width: 480px) {
    .ank-contact-row { flex-direction:column; gap:6px; }
}

/* Connector between A and B */


/* ── Options Grid ───────────────────────── */
.ank-options-grid {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 8px;
}

.ank-option-row {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.ank-btn-group {
    display: flex;
    flex-wrap: nowrap;
    gap: 6px;
    flex-shrink: 0;
}

.ank-opt-btn {
    position: relative;
    width: 78px;
    height: 78px;
    min-width: 78px;
    max-width: 78px;
    flex: 0 0 78px;
    padding: 0;
    border: 1.5px solid #d2d2d2 !important;
    border-radius: 16px;
    background: #e5e5e5 !important;
    color: var(--ank-muted);
    font-family: inherit;
    cursor: pointer;
    transition: all .18s;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.ank-opt-icon {
    font-size: 22px;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    overflow: hidden;
    flex-shrink: 0;
}

.ank-opt-png {
    width: 28px;
    height: 28px;
    max-width: 28px;
    max-height: 28px;
    object-fit: contain;
    display: block;
    flex-shrink: 0;
}

.ank-opt-label {
    font-size: 10px;
    font-weight: 600;
    line-height: 1;
    display: block;
    text-align: center;
}

.ank-opt-btn:hover {
    border-color: #E2BDE0 !important;
    color: #5C0070 !important;
    background: #E2BDE0 !important;
}

.ank-opt-btn.active {
    background: #5C0070 !important;
    border-color: #5C0070 !important;
    color: #ffffff !important;
}

/* ── Description Box ────────────────────── */
.ank-desc-box {
    flex: 1;
    min-width: 0;
    height: 78px;
    border: 1.5px solid var(--ank-border);
    border-radius: 16px;
    background: var(--ank-soft);
    padding: 12px 14px;
    display: none;
    align-items: flex-start;
    box-sizing: border-box;
    overflow: hidden;
}

.ank-desc-box--visible {
    display: flex;
}

.ank-desc-text {
    font-size: 12px;
    color: var(--ank-muted);
    line-height: 1.55;
    margin: 0;
    text-align: left;
}

@media (max-width: 500px) {
    .ank-option-row {
        flex-wrap: wrap;
    }
    .ank-desc-box {
        flex: 0 0 100%;
        height: auto;
        min-height: 0;
        padding: 10px 14px;
        align-items: flex-start;
        overflow: visible;
    }
    .ank-btn-group {
        gap: 5px;
        width: 100%;
    }
    .ank-opt-btn {
        flex: 1 1 0;
        min-width: 0;
        max-width: none;
        width: auto;
    }
    /* İkon boyutları admin panelinden yönetiliyor */
    .ank-opt-label { font-size: 9px; }
}

/* ── Randevu Modal ──────────────────────── */
#ank-randevu-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.52);
    z-index: 2147483647;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    box-sizing: border-box;
    animation: ank-fade .2s ease;
}

#ank-randevu-modal {
    background: #fff;
    border-radius: 28px;
    width: 100%;
    max-width: 420px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    animation: ank-up .22s ease;
}

#ank-randevu-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 18px;
    border-bottom: 1px solid var(--ank-border);
    flex-shrink: 0;
}

#ank-randevu-modal-title-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
    font-size: 14px;
    color: var(--ank-text);
}

#ank-randevu-modal-close {
    width: 32px; height: 32px;
    border-radius: 24px;
    border: 1.5px solid var(--ank-border);
    background: var(--ank-soft);
    color: var(--ank-muted);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all .15s;
}
#ank-randevu-modal-close:hover { border-color: var(--ank-red); color: var(--ank-red); background: #F3EAF5; }

#ank-randevu-modal-body {
    padding: 20px 18px;
}

.ank-randevu-field-label {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .5px;
    color: var(--ank-muted);
    margin-bottom: 8px;
}

.ank-randevu-date-wrap {
    width: 100%;
}

#ank-randevu-tarih {
    flex: 1;
    padding: 10px 13px 10px 36px;
    border: none;
    background: transparent;
    font-size: 13px;
    color: var(--ank-text);
    font-family: inherit;
    box-sizing: border-box;
    outline: none;
    width: 100%;
    cursor: pointer;
}

.ank-randevu-slot-group {
    display: flex;
    gap: 8px;
}

.ank-slot-btn {
    flex: 1;
    padding: 12px 10px;
    border: 1.5px solid var(--ank-border);
    border-radius: 16px;
    background: var(--ank-soft);
    color: var(--ank-muted);
    font-family: inherit;
    cursor: pointer;
    transition: all .18s;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.ank-slot-time {
    font-size: 13px;
    font-weight: 700;
    display: block;
}

.ank-slot-sub {
    font-size: 10px;
    font-weight: 500;
    display: block;
    opacity: .75;
}

.ank-slot-btn:hover {
    border-color: var(--ank-red);
    color: var(--ank-red);
    background: #F3EAF5;
}

.ank-slot-btn.active {
    background: var(--ank-red);
    border-color: var(--ank-red);
    color: #fff;
}
.ank-slot-btn.active .ank-slot-sub { opacity: .85; }

#ank-randevu-modal-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 18px;
    border-top: 1px solid var(--ank-border);
    background: var(--ank-soft);
}

#ank-randevu-summary {
    font-size: 12px;
    color: var(--ank-muted);
    font-weight: 500;
    flex: 1;
    min-width: 0;
}

#ank-randevu-confirm {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 9px 18px;
    background: var(--ank-red);
    color: #fff;
    border: none;
    border-radius: 27px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
    transition: background .15s;
    font-family: inherit;
    flex-shrink: 0;
}
#ank-randevu-confirm:hover:not(:disabled) { background: var(--ank-red-dk); }
#ank-randevu-confirm:disabled { background: #d1d5db; cursor: not-allowed; }

/* ── Price Box ──────────────────────────── */
.ank-price-box {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 16px;
    background: #5C0070;
    border: 1.5px solid #5C0070;
    border-radius: 33px;
    padding: 14px 16px;
    margin-top: 18px;
    position: relative;
    min-height: 64px;
}
.ank-price-left { flex-shrink: 0; flex: 1; }
.ank-price-right { flex-shrink: 0; margin-left: auto; text-align: right; }
.ank-price-label { font-size: 13px; font-weight: 700; color: #fff; text-transform: uppercase; letter-spacing: .5px; }
.ank-price-amount { font-size: 28px; font-weight: 900; color: #fff; line-height: 1.15; margin-top: 1px; }
.ank-distance-amount { font-size: 28px; margin-top: 1px; margin-bottom: 2px; }

.ank-price-details {
    display: flex;
    flex-direction: column;
    gap: 3px;
    width: 100%;
    padding-top: 8px;
    border-top: 1px solid rgba(255,255,255,.2);
    margin-top: 4px;
}
.ank-price-details span { font-size: 12px; color: rgba(255,255,255,.85); line-height: 1.4; }
.ank-hidden { display: none !important; }

.ank-loading { display: none; position: absolute; bottom: 13px; right: 15px; gap: 4px; align-items: center; }
.ank-loading.show { display: flex; }
.ank-loading span { width: 6px; height: 6px; background: #fff; border-radius: 50%; animation: ank-pulse 1.2s infinite; }
.ank-loading span:nth-child(2) { animation-delay: .2s; }
.ank-loading span:nth-child(3) { animation-delay: .4s; }
@keyframes ank-pulse { 0%,80%,100%{transform:scale(.55);opacity:.35} 40%{transform:scale(1);opacity:1} }

/* ── Footer Section ─────────────────────── */
.ank-footer-section {
    margin-top: 16px;
    margin-bottom: 0;
    padding-bottom: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.ank-body > *:first-child { margin-top: 0 !important; }
.ank-body > *:last-child  { margin-bottom: 0 !important; padding-bottom: 0 !important; }

.ank-checkbox-label {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    gap: 8px;
    font-size: 12px;
    color: var(--ank-text);
    cursor: pointer;
    user-select: none;
    line-height: 1.4;
    font-weight: 500;
    white-space: nowrap;
}
.ank-checkbox-label > span { display: inline !important; white-space: nowrap; }
.ank-checkbox-label > span.ank-checkmark { display: flex !important; white-space: normal; }
.ank-checkbox-label input { display: none !important; }
.ank-checkbox-label .ank-checkmark {
    width: 20px;
    height: 20px;
    min-width: 20px;
    flex-shrink: 0;
    border: 2px solid #d1d5db !important;
    border-radius: 5px;
    background: #f9fafb !important;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all .18s;
}
.ank-checkbox-label input:checked + .ank-checkmark { background: #5C0070 !important; border-color: #5C0070 !important; }
.ank-checkbox-label input:checked + .ank-checkmark::after {
    content: '';
    width: 5px; height: 10px;
    border: 2.5px solid #fff; border-top: none; border-left: none;
    transform: rotate(45deg) translate(-1px,-1px);
    display: block;
}
.ank-checkbox-label a { color: var(--ank-red); text-decoration: underline; }

.ank-input {
    width: 100%;
    height: 44px;
    padding: 0 14px;
    border: none;
    border-radius: 0;
    font-size: 16px;
    line-height: 44px;
    color: var(--ank-text);
    background: transparent;
    font-family: inherit;
    box-sizing: border-box;
    outline: none;
}
.ank-input:focus { background: transparent; }

.ank-cta-btn {
    width: 100%;
    height: 44px;
    padding: 0 16px;
    background: #5C0070 !important;
    border: none !important;
    border-radius: 27px !important;
    color: #ffffff !important;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    transition: all .2s;
    font-family: inherit;
}
.ank-cta-btn:hover:not(:disabled) { background: #8A439A !important; transform: translateY(-1px); box-shadow: none; }
.ank-cta-btn:disabled { background: #d1d5db; cursor: not-allowed; transform: none; box-shadow: none; }
.ank-wa-btn { background: #25d366 !important; border-color: #25d366 !important; }
.ank-wa-btn:hover:not(:disabled) { background: #1ebe5d !important; border-color: #1ebe5d !important; }

.ank-payment-btn {
    width: 100%;
    height: 44px;
    padding: 0 16px;
    background: #5C0070 !important;
    border: 1.5px solid #5C0070 !important;
    border-radius: 27px !important;
    color: #ffffff !important;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    transition: all .2s;
    font-family: inherit;
}
.ank-payment-btn:hover { border-color: #8A439A !important; background: #8A439A !important; color: #ffffff !important; }

/* Button Row — main btn + save icon on same line */
.ank-btn-row {
    display: flex;
    align-items: center;
    gap: 8px;
}
.ank-btn-row .ank-cta-btn,
.ank-btn-row .ank-payment-btn {
    flex: 1;
    min-width: 0;
}

/* Save Icon Button */
.ank-save-icon-btn {
    width: 44px;
    height: 44px;
    min-width: 44px;
    padding: 0;
    background: #5C0070 !important;
    border: 1.5px solid #5C0070 !important;
    border-radius: 50% !important;
    color: #ffffff !important;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background .2s, border-color .2s;
    text-decoration: none;
    flex-shrink: 0;
    box-sizing: border-box;
}
.ank-save-icon-btn:disabled { background: #d1d5db; border-color: #d1d5db; cursor: wait; }
.ank-save-icon-btn:hover { background: #8A439A !important; border-color: #8A439A !important; color: #ffffff !important; }
.ank-save-icon-btn--login { background: #5C0070 !important; border-color: #5C0070 !important; color: #ffffff !important; }
.ank-save-icon-btn--login:hover { background: #8A439A !important; border-color: #8A439A !important; color: #ffffff !important; }
.ank-save-icon-btn svg { stroke: #fff; flex-shrink: 0; }

.ank-save-msg {
    font-size: 12px;
    font-weight: 600;
    padding: 8px 14px;
    border-radius: 10px;
    text-align: center;
    line-height: 1.5;
}
.ank-save-msg--ok  { background: #059669; color: #fff; }
.ank-save-msg--err { background: #fee2e2; color: #dc2626; }
.ank-save-msg a { color: #fff !important; }

.ank-disclaimer { font-size: 11px; color: #111827; text-align: center; margin: 0; }

/* ── Map Modal ──────────────────────────── */
#ank-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.52);
    z-index: 2147483647;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    box-sizing: border-box;
    animation: ank-fade .2s ease;
}
@keyframes ank-fade { from{opacity:0} to{opacity:1} }

#ank-modal {
    background: #fff;
    border-radius: 48px;
    width: 100%;
    max-width: 680px;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    box-shadow: none;
    overflow: hidden;
    animation: ank-up .22s ease;
}
@keyframes ank-up { from{transform:translateY(16px);opacity:0} to{transform:translateY(0);opacity:1} }

/* Modal header */
#ank-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    border-bottom: 1px solid var(--ank-border);
    flex-shrink: 0;
    gap: 10px;
}

#ank-modal-title-wrap {
    display: flex;
    align-items: center;
    gap: 9px;
    font-family: 'Segoe UI', system-ui, sans-serif;
    font-weight: 700;
    font-size: 14px;
    color: var(--ank-text);
}
#ank-modal-icon {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 800;
    color: #fff;
}
#ank-modal-close {
    width: 32px; height: 32px;
    border-radius: 24px;
    border: 1.5px solid var(--ank-border);
    background: var(--ank-soft);
    color: var(--ank-muted);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all .15s;
    flex-shrink: 0;
}
#ank-modal-close:hover { border-color: var(--ank-red); color: var(--ank-red); background: #F3EAF5; }

/* Search bar */
#ank-modal-search-bar {
    position: relative;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    border-bottom: 1px solid var(--ank-border);
    background: var(--ank-soft);
    flex-shrink: 0;
}
#ank-modal-search {
    flex: 1;
    min-width: 0;
    height: 40px;
    border: 1.5px solid var(--ank-inp-border, var(--ank-border));
    border-radius: 10px;
    background: var(--ank-inp-bg, #fff);
    outline: none;
    font-size: 13px;
    color: var(--ank-inp-color, var(--ank-text));
    font-family: inherit;
    padding: 0 14px;
    box-sizing: border-box;
    transition: border-color .18s;
}
#ank-modal-search:focus {
    border-color: var(--ank-inp-focus, var(--ank-red));
}
#ank-modal-search::placeholder {
    color: var(--ank-inp-ph, #9ca3af);
    opacity: 1;
}

#ank-modal-locate {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 7px 13px;
    background: #fff7ed;
    border: 1.5px solid #f97316;
    border-radius: 21px;
    color: #f97316;
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    font-family: inherit;
    transition: all .15s;
    flex-shrink: 0;
    line-height: 1;
}
#ank-modal-locate:hover { background: #f97316; color: #fff; }
#ank-modal-locate:hover svg { stroke: #fff; }
#ank-modal-locate.loading { opacity: .6; pointer-events: none; }

#ank-modal-search-results {
    position: absolute;
    top: calc(100% + 1px);
    left: 0;
    right: 0;
    background: #fff;
    border: 1.5px solid var(--ank-border);
    border-top: none;
    border-radius: 0 0 30px 30px;
    box-shadow: none;
    z-index: 10;
    display: none;
    max-height: 200px;
    overflow-y: auto;
}
#ank-modal-search-results.open { display: block; }
.ank-sr-item {
    padding: 10px 14px;
    font-size: 13px;
    color: var(--ank-text);
    cursor: pointer;
    border-bottom: 1px solid #f3f4f6;
    font-family: 'Segoe UI', system-ui, sans-serif;
    transition: background .12s;
}
.ank-sr-item:last-child { border-bottom: none; }
.ank-sr-item:hover { background: #F3EAF5; color: var(--ank-red); }

/* Map itself */
#ank-modal-map {
    flex: 1;
    min-height: 360px;
    width: 100%;
}

/* Footer */
#ank-modal-footer {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-top: 1px solid var(--ank-border);
    background: var(--ank-soft);
    flex-shrink: 0;
}
#ank-modal-selected { flex: 1; min-width: 0; }
#ank-modal-selected-label {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .5px;
    color: var(--ank-muted);
    margin-bottom: 2px;
    font-family: 'Segoe UI', system-ui, sans-serif;
}
#ank-modal-address-wrap {
    display: flex;
    align-items: center;
    gap: 6px;
}

#ank-modal-address {
    font-size: 13px;
    color: var(--ank-text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-family: 'Segoe UI', system-ui, sans-serif;
}

#ank-modal-confirm {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 9px 18px;
    background: var(--ank-red);
    color: #fff;
    border: none;
    border-radius: 27px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
    transition: background .15s;
    font-family: 'Segoe UI', system-ui, sans-serif;
    flex-shrink: 0;
}
#ank-modal-confirm:hover:not(:disabled) { background: var(--ank-red-dk); }
#ank-modal-confirm:disabled { background: #d1d5db; cursor: not-allowed; }

/* ── Responsive ─────────────────────────── */
@media (max-width: 768px) {
    .ank-widget {
        max-width: 100% !important;
        margin: 0 3px !important;
        border-radius: 0 !important;
        border-left: none !important;
        border-right: none !important;
        box-sizing: border-box !important;
    }
    /* iOS zoom: mobil font-size admin panelinden #kuryeup-widget ile override edilir */
    .ank-clear-btn {
        right: 6px;
        padding: 8px;
        min-width: 32px;
        min-height: 32px;
    }
}
@media (max-width: 500px) {
    .ank-map-btn span { display: none; }
    .ank-map-btn { padding: 0 14px; min-width: 44px; height: 44px; }
    .ank-options-grid { grid-template-columns: 1fr; }
    .ank-options-grid .ank-field-group:last-child { grid-column: auto; }
    #ank-modal-map { min-height: 280px; }
    .ank-price-box {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 6px 12px;
        padding: 12px 14px;
        border-radius: 20px;
        align-items: center;
    }
    .ank-price-left  { flex: 1; min-width: 0; }
    .ank-price-right { flex: 1; min-width: 0; text-align: left; margin-left: 0; }
    .ank-price-details { align-items: flex-start; }
    .ank-price-details { width: 100%; padding-top: 0; flex-direction: row; flex-wrap: wrap; gap: 2px 10px; }
    .ank-price-label  { font-size: 11px; letter-spacing: .3px; }
    .ank-price-amount { font-size: 22px; }
    .ank-distance-amount { font-size: 22px; }
}

@media (max-width: 400px) {
    .ank-price-box {
        flex-direction: column;
        gap: 8px;
        border-radius: 16px;
    }
    .ank-price-left,
    .ank-price-right { width: 100%; flex: unset; }
    .ank-price-right { border-top: 1px solid rgba(255,255,255,.2); padding-top: 8px; text-align: left; }
    .ank-price-amount { font-size: 26px; }
    .ank-distance-amount { font-size: 26px; }
}

/* ══ Terms of Service Popup ══ */
.ank-tos-overlay { position:fixed; top:0; left:0; right:0; bottom:0; background:rgba(0,0,0,.5) !important; z-index:2147483647; display:flex; align-items:center; justify-content:center; padding:16px; backdrop-filter:blur(4px); }
.ank-tos-modal { background:#fff !important; border-radius:20px; width:100%; max-width:600px; max-height:42vh; display:flex; flex-direction:column; box-shadow:0 20px 60px rgba(0,0,0,.2); animation:ank-tos-in .2s ease; }
@keyframes ank-tos-in { from { opacity:0; transform:translateY(20px) scale(.97); } to { opacity:1; transform:translateY(0) scale(1); } }
.ank-tos-header { display:flex; align-items:center; justify-content:space-between; padding:18px 24px; border-bottom:1px solid #f3f4f6 !important; flex-shrink:0; }
.ank-tos-header h3 { margin:0; font-size:16px; font-weight:800; color:#111827 !important; }
.ank-tos-close { width:32px; height:32px; border:none !important; border-radius:8px; background:#f3f4f6 !important; color:#6b7280 !important; font-size:16px; cursor:pointer; display:flex; align-items:center; justify-content:center; transition:all .15s; }
.ank-tos-close:hover { background:#5C0070 !important; color:#fff !important; }
.ank-tos-body { padding:20px 24px; overflow-y:auto; flex:1; font-size:13px; line-height:1.7; color:#374151; }
.ank-tos-body p { margin:0 0 12px; }
.ank-tos-body strong { color:#111827; }
.ank-tos-footer { padding:16px 24px; border-top:1px solid #f3f4f6 !important; flex-shrink:0; }
.ank-tos-accept { width:100%; height:44px; padding:0 16px; border:none !important; border-radius:12px; background:#5C0070 !important; color:#fff !important; font-size:14px; font-weight:700; cursor:pointer; font-family:inherit; transition:background .15s; display:inline-flex; align-items:center; justify-content:center; }
.ank-tos-accept:hover { background:#8A439A !important; }
#ank-tos-link { color:#5C0070; font-weight:700; text-decoration:underline; cursor:pointer; }
#ank-tos-link:hover { color:#8A439A; }
@media (max-width:480px) {
    .ank-tos-modal { max-height:46vh; border-radius:16px; }
    .ank-tos-header, .ank-tos-body, .ank-tos-footer { padding:14px 16px; }
}
