/* BGH Araç Modal – bgh-modal.css */

#bgh-tool-host[hidden] {
    display: none !important;
}

.bgh-tool-scrim {
    position: fixed;
    inset: 0;
    background: rgba(20, 18, 20, .6);
    display: grid;
    place-items: center;
    padding: 20px;
    z-index: 9999;
    opacity: 0;
    animation: bghToolFade .2s ease forwards;
}
@keyframes bghToolFade {
    to { opacity: 1; }
}

.bgh-tool-outer {
    position: relative;
    width: min(560px, 100%);
    max-height: calc(100vh - 40px);
    transform: translateY(12px);
    animation: bghToolRise .24s cubic-bezier(.22, .8, .3, 1) forwards;
}
@keyframes bghToolRise {
    to { transform: translateY(0); }
}

/* Hesaplayicinin kendi .bwc-wrap / .bhc-wrap kutusu zaten beyaz zemin ve
   kenarlik tasiyor; burada ikinci bir kutu cizilmiyor. */
.bgh-tool-modal {
    max-height: calc(100vh - 40px);
    overflow-y: auto;
}

.bgh-tool-close {
    position: absolute;
    top: -14px;
    right: -14px;
    z-index: 1;
    appearance: none;
    border: 1px solid #dee2e6;
    background: #fff;
    color: #606a70;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    font-size: 14px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, .15);
    transition: border-color .16s ease, color .16s ease;
}
.bgh-tool-close:hover,
.bgh-tool-close:focus-visible {
    border-color: #c5168c;
    color: #c5168c;
}

/* Select2 dropdown'u body'ye ekleniyor, modal ortusunun ustune cikmali */
.select2-container--open,
.select2-dropdown {
    z-index: 10001 !important;
}

/* Modal aciklen arka plan kaymasin */
body.bgh-tool-open {
    overflow: hidden;
}

@media (prefers-reduced-motion: reduce) {
    .bgh-tool-scrim,
    .bgh-tool-outer {
        animation: none;
        opacity: 1;
        transform: none;
    }
}
