/* Cookie Consent — Teeka branded bottom-right popup (light theme) */

.tk-cookie-banner {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 320px;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.2), 0 4px 12px rgba(0, 0, 0, 0.1);
    padding: 22px;
    z-index: 9999;
    display: none;
    opacity: 0;
    transform: translateY(40px) scale(0.9);
    transition: transform 0.45s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.3s ease;
    font-family: inherit;
}

.tk-cookie-banner.tk-cookie-show {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.tk-cookie-title {
    margin: 0 0 8px 0;
    font-size: 15px;
    font-weight: 700;
    color: #111111;
}

.tk-cookie-desc {
    margin: 0 0 16px 0;
    font-size: 13px;
    color: #444444;
    line-height: 1.5;
}

.tk-cookie-actions {
    display: flex;
    gap: 8px;
}

.tk-cookie-btn {
    flex: 1;
    border-radius: 8px;
    padding: 10px 16px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: inherit;
    line-height: 1.2;
}

.tk-cookie-btn--accept {
    background: #06DDCD;
    color: #111111;
    border: none;
}

.tk-cookie-btn--accept:hover {
    background: #05c4b6;
}

.tk-cookie-btn--manage {
    background: transparent;
    color: #111111;
    border: 1.5px solid #cccccc;
    font-weight: 500;
}

.tk-cookie-btn--manage:hover {
    border-color: #06DDCD;
    color: #06DDCD;
}

.tk-cookie-btn--full {
    width: 100%;
    padding: 12px;
    font-size: 14px;
}

/* ── Preferences Modal ── */
.tk-cookie-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 10000;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.tk-cookie-modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
}

.tk-cookie-modal-box {
    position: relative;
    background: #ffffff;
    border-radius: 12px;
    width: 100%;
    max-width: 420px;
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.2);
    overflow: hidden;
}

.tk-cookie-modal-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 20px;
    border-bottom: 1px solid #eeeeee;
}

.tk-cookie-modal-head span {
    font-size: 15px;
    font-weight: 700;
    color: #111111;
}

.tk-cookie-modal-close {
    background: none;
    border: none;
    font-size: 22px;
    cursor: pointer;
    color: #888888;
    line-height: 1;
    padding: 0;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    transition: color 0.2s, background 0.2s;
}

.tk-cookie-modal-close:hover {
    color: #111111;
    background: #f5f5f5;
}

.tk-cookie-modal-body {
    padding: 8px 20px;
    max-height: 60vh;
    overflow-y: auto;
}

.tk-cookie-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 14px 0;
    border-bottom: 1px solid #f0f0f0;
}

.tk-cookie-row:last-child {
    border-bottom: none;
}

.tk-cookie-row-info {
    flex: 1;
}

.tk-cookie-row-info strong {
    display: block;
    font-size: 14px;
    color: #111111;
    margin-bottom: 2px;
    font-weight: 600;
}

.tk-cookie-row-info span {
    font-size: 12px;
    color: #777777;
    line-height: 1.4;
}

.tk-cookie-badge {
    display: inline-block;
    background: #e8faf9;
    color: #06DDCD !important;
    font-size: 11px !important;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 20px;
    margin-top: 4px;
}

/* ── Toggle ── */
.tk-toggle {
    position: relative;
    display: inline-block;
    width: 44px;
    height: 24px;
    flex-shrink: 0;
    cursor: pointer;
}

.tk-toggle input {
    opacity: 0;
    width: 0;
    height: 0;
    position: absolute;
}

.tk-toggle-track {
    position: absolute;
    inset: 0;
    background: #dddddd;
    border-radius: 12px;
    transition: background 0.2s ease;
}

.tk-toggle input:checked + .tk-toggle-track {
    background: #06DDCD;
}

.tk-toggle input:disabled + .tk-toggle-track {
    opacity: 0.5;
    cursor: not-allowed;
}

.tk-toggle-thumb {
    position: absolute;
    top: 2px;
    left: 2px;
    width: 20px;
    height: 20px;
    background: #ffffff;
    border-radius: 50%;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
    transition: transform 0.2s ease;
    pointer-events: none;
}

.tk-toggle input:checked ~ .tk-toggle-thumb {
    transform: translateX(20px);
}

.tk-cookie-modal-foot {
    padding: 16px 20px;
    border-top: 1px solid #eeeeee;
}

/* ── Reopen button ── */
.tk-cookie-reopen {
    position: fixed;
    bottom: 20px;
    left: 20px;
    width: 40px;
    height: 40px;
    background: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 50%;
    color: #06DDCD;
    cursor: pointer;
    z-index: 9998;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.2s ease;
}

.tk-cookie-reopen:hover {
    background: #06DDCD;
    border-color: #06DDCD;
    color: #ffffff;
    transform: scale(1.05);
}

/* Mobile */
@media (max-width: 480px) {
    .tk-cookie-banner {
        right: 12px;
        left: 12px;
        bottom: 12px;
        width: auto;
    }

    .tk-cookie-modal-box {
        max-width: calc(100% - 32px);
    }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    .tk-cookie-banner,
    .tk-cookie-btn,
    .tk-toggle-track,
    .tk-toggle-thumb,
    .tk-cookie-reopen {
        transition: none;
    }
}

.tk-cookie-btn:focus-visible,
.tk-toggle input:focus-visible + .tk-toggle-track,
.tk-cookie-modal-close:focus-visible,
.tk-cookie-reopen:focus-visible {
    outline: 2px solid #06DDCD;
    outline-offset: 2px;
}
