/* ITM — Dil / Para birimi modalları (ön yüz) */

body > .iziModal-overlay,
.iziModal-overlay {
    z-index: 90000 !important;
}

body > .iziModal,
.iziModal {
    z-index: 90001 !important;
}

#selectLang.iziModal,
#selectCurrency.iziModal,
#selectLang.itm-lc-modal,
#selectCurrency.itm-lc-modal {
    max-width: 480px !important;
    width: min(92vw, 480px) !important;
    border-radius: 20px !important;
    overflow: visible !important;
    background: #fff !important;
    box-shadow: 0 24px 64px rgba(15, 23, 42, 0.22) !important;
    border: 1px solid #e2e8f0 !important;
}

#selectLang .padding20,
#selectCurrency .padding20,
#selectLang .itm-lc-modal-body,
#selectCurrency .itm-lc-modal-body {
    padding: 28px 24px 24px !important;
}

#selectLang .langandcur,
#selectCurrency .langandcur,
#selectLang .itm-lc-modal-grid,
#selectCurrency .itm-lc-modal-grid {
    float: none !important;
    width: 100% !important;
    text-align: left !important;
    color: #334155 !important;
}

#selectLang .itm-lc-modal-title,
#selectCurrency .itm-lc-modal-title,
#selectCurrency .currencyitems h4 {
    float: none !important;
    width: 100% !important;
    margin: 0 0 20px !important;
    padding: 0 0 16px !important;
    border-bottom: 1px solid #e2e8f0 !important;
    font-family: 'Plus Jakarta Sans', sans-serif !important;
    font-size: 1.125rem !important;
    font-weight: 800 !important;
    color: #0f172a !important;
    text-align: center !important;
    line-height: 1.35 !important;
    letter-spacing: -0.02em !important;
}

#selectLang .itm-lc-modal-grid,
#selectCurrency .itm-lc-currency-grid {
    display: flex !important;
    flex-wrap: wrap !important;
    justify-content: center !important;
    gap: 10px !important;
}

#selectLang .itm-lc-modal-title,
#selectCurrency .itm-lc-modal-title {
    flex: 0 0 100% !important;
}

#selectCurrency .currencyitems,
#selectCurrency .itm-lc-currency-grid {
    display: flex !important;
    flex-wrap: wrap !important;
    justify-content: center !important;
    gap: 10px !important;
    margin: 0 !important;
    float: none !important;
    width: 100% !important;
}

#selectLang .itm-lc-option,
#selectCurrency .itm-lc-option,
#selectLang .langandcur a,
#selectCurrency .currencyitems a {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 10px !important;
    width: calc(50% - 6px) !important;
    min-width: 0 !important;
    margin: 0 !important;
    padding: 12px 14px !important;
    font-family: 'Plus Jakarta Sans', sans-serif !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    color: #334155 !important;
    background: #f8fafc !important;
    border: 1.5px solid #e2e8f0 !important;
    border-radius: 14px !important;
    text-decoration: none !important;
    box-sizing: border-box !important;
    float: none !important;
    line-height: 1.35 !important;
    transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease, transform 0.2s ease !important;
}

#selectLang .itm-lc-option span,
#selectCurrency .itm-lc-option span {
    flex: 1;
    min-width: 0;
    text-align: left;
}

#selectLang .itm-lc-option:hover,
#selectCurrency .itm-lc-option:hover,
#selectLang .langandcur a:hover,
#selectCurrency .currencyitems a:hover {
    border-color: #0ea5e9 !important;
    color: #0284c7 !important;
    background: #f0f9ff !important;
    transform: translateY(-1px);
}

#selectLang .itm-lc-option.activelangcur,
#selectCurrency .itm-lc-option.activelangcur,
#selectLang .langandcur a.activelangcur,
#selectCurrency .currencyitems a.activelangcur {
    opacity: 1 !important;
    filter: none !important;
    border-color: #0ea5e9 !important;
    background: linear-gradient(135deg, #e0f2fe 0%, #ecfeff 100%) !important;
    color: #0369a1 !important;
    cursor: default !important;
    pointer-events: none !important;
    box-shadow: 0 4px 14px rgba(14, 165, 233, 0.15) !important;
}

#selectLang .itm-lc-option img,
#selectCurrency .itm-lc-option img,
#selectLang .langandcur img {
    display: block !important;
    width: 24px !important;
    height: 16px !important;
    margin: 0 !important;
    border-radius: 3px !important;
    object-fit: cover !important;
    flex-shrink: 0 !important;
    float: none !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12);
}

#selectCurrency .itm-lc-option strong {
    font-size: 16px !important;
    font-weight: 800 !important;
    color: #0f172a !important;
    min-width: 28px;
    text-align: center;
}

#selectLang .itm-lc-modal-close,
#selectCurrency .itm-lc-modal-close,
#selectLang .langcurclose,
#selectCurrency .langcurclose {
    position: absolute !important;
    right: 14px !important;
    top: 14px !important;
    width: 36px !important;
    height: 36px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    line-height: 1 !important;
    background: #f1f5f9 !important;
    color: #64748b !important;
    border-radius: 12px !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    text-decoration: none !important;
    z-index: 5 !important;
    border: 1px solid #e2e8f0 !important;
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease !important;
}

#selectLang .itm-lc-modal-close:hover,
#selectCurrency .itm-lc-modal-close:hover {
    background: #e2e8f0 !important;
    color: #0f172a !important;
    border-color: #cbd5e1 !important;
}

html.itm-dark-mode #selectLang.iziModal,
html.itm-dark-mode #selectCurrency.iziModal {
    background: #151d35 !important;
    border-color: #334155 !important;
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.45) !important;
}

html.itm-dark-mode #selectLang .itm-lc-modal-title,
html.itm-dark-mode #selectCurrency .itm-lc-modal-title {
    color: #f1f5f9 !important;
    border-bottom-color: #334155 !important;
}

html.itm-dark-mode #selectLang .itm-lc-option,
html.itm-dark-mode #selectCurrency .itm-lc-option {
    background: #1e293b !important;
    border-color: #475569 !important;
    color: #e2e8f0 !important;
}

html.itm-dark-mode #selectLang .itm-lc-option:hover,
html.itm-dark-mode #selectCurrency .itm-lc-option:hover {
    background: #334155 !important;
    border-color: #0ea5e9 !important;
    color: #22d3ee !important;
}

html.itm-dark-mode #selectLang .itm-lc-option.activelangcur,
html.itm-dark-mode #selectCurrency .itm-lc-option.activelangcur {
    background: rgba(14, 165, 233, 0.18) !important;
    border-color: #0ea5e9 !important;
    color: #7dd3fc !important;
}

html.itm-dark-mode #selectCurrency .itm-lc-option strong {
    color: #f1f5f9 !important;
}

html.itm-dark-mode #selectLang .itm-lc-modal-close,
html.itm-dark-mode #selectCurrency .itm-lc-modal-close {
    background: #1e293b !important;
    border-color: #475569 !important;
    color: #94a3b8 !important;
}

@media (max-width: 480px) {
    #selectLang .itm-lc-option,
    #selectCurrency .itm-lc-option {
        width: 100% !important;
    }
}
