/* Kalender katalog karar araçları: kayıtlı kart verisi, karşılaştırma ve stok bildirimi. */
.kb-decision-sr-only {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    margin: -1px !important;
    padding: 0 !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

.kui-family-catalog .kb-card-evidence {
    display: grid;
    gap: 6px;
    margin: 2px 14px 12px;
    padding: 0;
}

.kui-family-catalog .kb-catalog-decision-help {
    margin: 0 0 14px;
    border-left: 4px solid #1677c8;
    border-radius: 8px;
    background: #edf6ff;
    color: #385673;
    padding: 9px 11px;
    font-size: 13px;
    line-height: 1.55;
}

.kui-family-catalog .kb-card-evidence > div {
    display: grid;
    grid-template-columns: minmax(66px, .7fr) minmax(0, 1.3fr);
    gap: 8px;
    align-items: start;
    font-size: 12px;
    line-height: 1.4;
}

.kui-family-catalog .kb-card-evidence dt {
    color: #52657a;
    font-weight: 700;
}

.kui-family-catalog .kb-card-evidence dd {
    min-width: 0;
    margin: 0;
    color: #334155;
    font-weight: 600;
    overflow-wrap: anywhere;
}

.kui-family-catalog .kb-card-actions {
    display: grid;
    gap: 8px;
}

.kui-family-catalog .kb-card-actions__secondary {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 7px;
}

.kui-family-catalog .kb-card-action-button {
    box-sizing: border-box;
    min-height: 44px;
    border: 1px solid #b9cbe0;
    border-radius: 9px;
    background: #f8fbff;
    color: #17456f;
    padding: 8px 7px;
    font: inherit;
    font-size: 12px;
    font-weight: 750;
    line-height: 1.25;
    cursor: pointer;
}

.kui-family-catalog .kb-card-action-button:hover {
    border-color: #1677c8;
    background: #edf6ff;
}

.kui-family-catalog .kb-card-action-button[aria-pressed="true"] {
    border-color: #0b6b45;
    background: #eaf8f1;
    color: #075a3a;
}

.kui-family-catalog .kb-card-action-button:focus-visible,
.kb-compare-bar button:focus-visible,
.kb-decision-dialog button:focus-visible,
.kb-decision-dialog a:focus-visible,
.kb-decision-dialog input:focus-visible {
    outline: 3px solid #075fbd;
    outline-offset: 2px;
}

.kb-compare-bar {
    position: fixed;
    z-index: 1400;
    left: 50%;
    bottom: max(18px, env(safe-area-inset-bottom));
    transform: translateX(-50%);
    display: flex;
    width: min(680px, calc(100vw - 32px));
    box-sizing: border-box;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    border: 1px solid #9fc0de;
    border-radius: 14px;
    background: #0f2947;
    color: #fff;
    padding: 10px 12px;
    box-shadow: 0 14px 38px rgba(15, 41, 71, .28);
    pointer-events: none;
}

.kb-compare-bar[hidden] {
    display: none;
}

.kb-compare-bar__status {
    min-width: 0;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.35;
}

.kb-compare-bar__actions {
    display: flex;
    flex: 0 0 auto;
    gap: 7px;
}

.kb-compare-bar__actions button {
    pointer-events: auto;
}

.kb-compare-bar button,
.kb-decision-dialog__button {
    box-sizing: border-box;
    min-height: 44px;
    border: 1px solid transparent;
    border-radius: 9px;
    padding: 9px 12px;
    font: inherit;
    font-size: 13px;
    font-weight: 750;
    cursor: pointer;
}

.kb-compare-bar__open,
.kb-decision-dialog__button--primary {
    background: #fff;
    color: #0f4f85;
}

.kb-compare-bar__clear,
.kb-decision-dialog__button--secondary {
    border-color: #7f9bb6 !important;
    background: transparent;
    color: inherit;
}

.kb-compare-bar button:disabled,
.kb-decision-dialog button:disabled {
    opacity: .55;
    cursor: not-allowed;
}

.kb-decision-dialog {
    width: min(920px, calc(100vw - 28px));
    max-height: min(86vh, 760px);
    box-sizing: border-box;
    border: 0;
    border-radius: 16px;
    padding: 0;
    color: #23384e;
    box-shadow: 0 24px 70px rgba(15, 41, 71, .32);
}

.kb-decision-dialog::backdrop {
    background: rgba(15, 23, 42, .66);
    backdrop-filter: blur(2px);
}

.kb-decision-dialog__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    border-bottom: 1px solid #dbe7f1;
    padding: 16px 18px 13px;
}

.kb-decision-dialog__header h2 {
    margin: 0;
    color: #173b5b;
    font-size: clamp(19px, 3vw, 25px);
    line-height: 1.25;
}

.kb-decision-dialog__close {
    flex: 0 0 44px;
    width: 44px;
    height: 44px;
    border: 1px solid #c7d5e3;
    border-radius: 50%;
    background: #fff;
    color: #334155;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
}

.kb-decision-dialog__body {
    max-height: calc(86vh - 78px);
    overflow: auto;
    padding: 16px 18px 20px;
}

.kb-compare-table-wrap {
    overflow-x: auto;
    border: 1px solid #d7e3ee;
    border-radius: 11px;
    -webkit-overflow-scrolling: touch;
}

.kb-compare-table {
    width: 100%;
    min-width: 620px;
    border-collapse: collapse;
    background: #fff;
    font-size: 13px;
    line-height: 1.45;
}

.kb-compare-table caption {
    padding: 10px 12px;
    background: #edf6ff;
    color: #385673;
    font-weight: 700;
    text-align: left;
}

.kb-compare-table th,
.kb-compare-table td {
    border-right: 1px solid #e1e8ef;
    border-bottom: 1px solid #e1e8ef;
    padding: 10px 12px;
    text-align: left;
    vertical-align: top;
    overflow-wrap: anywhere;
}

.kb-compare-table tr:last-child > * {
    border-bottom: 0;
}

.kb-compare-table tr > *:last-child {
    border-right: 0;
}

.kb-compare-table thead th {
    background: #f8fafc;
    color: #1f3f59;
}

.kb-compare-table tbody th {
    width: 126px;
    background: #f8fafc;
    color: #38516a;
}

.kb-compare-table a {
    color: #075fbd;
    font-weight: 700;
    text-underline-offset: 2px;
}

.kb-compare-remove-list {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin: 12px 0 0;
    padding: 0;
    list-style: none;
}

.kb-compare-remove-list button {
    min-height: 44px;
    border: 1px solid #cbd5e1;
    border-radius: 9px;
    background: #fff;
    color: #334155;
    padding: 8px 10px;
    font: inherit;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
}

.kb-stock-notice-copy {
    margin: 0 0 13px;
    color: #4c5f73;
    font-size: 14px;
    line-height: 1.65;
}

.kb-stock-notice-product {
    margin: 0 0 13px;
    border-left: 4px solid #1677c8;
    border-radius: 8px;
    background: #edf6ff;
    color: #173b5b;
    padding: 10px 12px;
    font-weight: 750;
    line-height: 1.45;
}

.kb-stock-notice-consent {
    display: grid;
    grid-template-columns: 24px minmax(0, 1fr);
    gap: 9px;
    align-items: start;
    margin: 14px 0;
    color: #3d5064;
    font-size: 13px;
    line-height: 1.55;
}

.kb-stock-notice-consent input {
    width: 22px;
    height: 22px;
    margin: 1px 0 0;
}

.kb-stock-notice-consent a {
    color: #075fbd;
    text-underline-offset: 2px;
}

.kb-decision-dialog__footer {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 8px;
    margin-top: 14px;
}

.kb-decision-dialog__footer .kb-decision-dialog__button--primary {
    background: #0f6b43;
    color: #fff;
}

.kb-decision-dialog__footer .kb-decision-dialog__button--secondary {
    border-color: #a9bacb !important;
    color: #334155;
}

@media (max-width: 640px) {
    .kui-family-catalog .kb-card-evidence {
        margin-inline: 12px;
    }

    .kb-compare-bar {
        bottom: calc(76px + env(safe-area-inset-bottom));
        align-items: stretch;
        flex-direction: column;
        gap: 8px;
        padding: 10px;
    }

    .kb-compare-bar__actions {
        display: grid;
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    }

    .kb-decision-dialog__header,
    .kb-decision-dialog__body {
        padding-left: 14px;
        padding-right: 14px;
    }

    .kb-decision-dialog__footer {
        display: grid;
        grid-template-columns: 1fr;
    }
}

@media (prefers-reduced-motion: reduce) {
    .kb-decision-dialog::backdrop {
        backdrop-filter: none;
    }
}
