/* Kurrant Cookie Consent — discreet bottom-right card on desktop, slim bottom bar on mobile.
   Brand colors: --k-orange #ff834a (primary), --k-blue #5f80cf (secondary), deep #1f3b5b (text).
   Font: inherits Montserrat from the parent theme. */

.kcc-banner {
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 99990;
    max-width: 380px;
    width: calc(100% - 32px);
    font-family: inherit;
}
.kcc-banner[hidden] { display: none !important; }

@keyframes kccSlideUp {
    from { opacity: 0; transform: translateY(12px); }
    to   { opacity: 1; transform: translateY(0); }
}

.kcc-card {
    position: relative;
    background: #fff;
    color: #1f3b5b;
    border: 1px solid #e6ebf2;
    border-radius: 12px;
    padding: 16px 18px 14px;
    box-shadow: 0 10px 28px rgba(31, 59, 91, 0.10), 0 2px 6px rgba(31, 59, 91, 0.06);
    font-size: 0.85rem;
    line-height: 1.5;
    animation: kccSlideUp 0.32s cubic-bezier(0.22, 0.61, 0.36, 1);
}

.kcc-x {
    position: absolute;
    top: 6px;
    right: 8px;
    background: transparent;
    border: 0;
    color: #8893a4;
    font-size: 18px;
    line-height: 1;
    padding: 4px 6px;
    cursor: pointer;
    border-radius: 4px;
}
.kcc-x:hover { color: #1f3b5b; background: #f3f5f9; }

.kcc-title {
    display: inline;
    font-weight: 600;
    color: #1f3b5b;
    margin-right: 6px;
    letter-spacing: -0.01em;
}
.kcc-desc {
    margin: 0 0 12px;
    padding-right: 14px;
    color: #41506a;
}
.kcc-link {
    color: #5f80cf;
    text-decoration: none;
    font-weight: 500;
    border-bottom: 1px solid rgba(95, 128, 207, 0.3);
    padding-bottom: 1px;
    transition: border-color 0.12s;
}
.kcc-link:hover { border-bottom-color: #5f80cf; }

.kcc-actions {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
    flex-wrap: wrap;
}

.kcc-btn {
    border: 1px solid transparent;
    border-radius: 8px;
    padding: 7px 14px;
    font-size: 0.8rem;
    font-weight: 500;
    cursor: pointer;
    line-height: 1.25;
    transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease, transform 0.1s ease, box-shadow 0.15s ease;
    font-family: inherit;
    letter-spacing: 0.01em;
}
.kcc-btn:active { transform: translateY(1px); }
.kcc-btn-ghost {
    background: transparent;
    color: #4b5668;
    border-color: #dde2ea;
}
.kcc-btn-ghost:hover {
    background: #f3f5f9;
    color: #1f3b5b;
    border-color: #c5cdda;
}
.kcc-btn-primary {
    background: #ff834a;
    color: #fff;
    border-color: #ff834a;
    box-shadow: 0 2px 6px rgba(255, 131, 74, 0.25);
}
.kcc-btn-primary:hover {
    background: #f26e30;
    border-color: #f26e30;
    box-shadow: 0 4px 10px rgba(255, 131, 74, 0.32);
}

.kcc-detail {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid #eceff4;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.kcc-detail[hidden] { display: none; }
.kcc-cat {
    display: grid;
    grid-template-columns: 18px 1fr;
    grid-template-rows: auto auto;
    column-gap: 8px;
    align-items: start;
    cursor: pointer;
    padding: 4px 0;
}
.kcc-cat input[type="checkbox"] {
    grid-row: 1 / span 2;
    margin-top: 3px;
    accent-color: #ff834a;
}
.kcc-cat input[type="checkbox"]:disabled { opacity: 0.55; cursor: not-allowed; }
.kcc-cat-name { font-weight: 600; color: #1f3b5b; }
.kcc-cat-desc { color: #6a7585; font-size: 0.75rem; line-height: 1.35; }
.kcc-detail-actions { text-align: right; margin-top: 4px; }

/* Mobile: slim bottom bar instead of corner card */
@media (max-width: 600px) {
    .kcc-banner {
        right: 8px;
        left: 8px;
        bottom: 8px;
        max-width: none;
        width: auto;
    }
    .kcc-card {
        font-size: 0.8rem;
        padding: 12px 14px 10px;
    }
    .kcc-actions { justify-content: stretch; }
    .kcc-actions .kcc-btn {
        flex: 1 1 0;
        min-width: 0;
    }
}

/* "Cookie settings" reopen link styling — subtle inline link, no decoration of its own */
a.kcc-reopen {
    color: inherit;
    text-decoration: underline;
    cursor: pointer;
}
