/* Cookie Consent Banner - Thrifty Pig */
#tp-cookie-banner {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 99998;
    background: #1d344c;
    color: #fff;
    font-family: 'Poppins', sans-serif;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.18);
    transform: translateY(100%);
    transition: transform 0.35s ease;
    max-height: 90vh;
    overflow-y: auto;
}

#tp-cookie-banner.tp-cookie-banner--visible {
    transform: translateY(0);
}

#tp-cookie-banner .tp-cookie-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 18px 24px;
}

#tp-cookie-banner .tp-cookie-intro {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 16px;
}

#tp-cookie-banner .tp-cookie-intro .tp-cookie-text {
    flex: 1 1 360px;
    font-size: 14px;
    line-height: 1.5;
}

#tp-cookie-banner .tp-cookie-intro .tp-cookie-text p {
    margin: 0 0 6px;
}

#tp-cookie-banner .tp-cookie-intro .tp-cookie-text a {
    color: #5db4f0;
    text-decoration: underline;
    font-weight: 600;
}

#tp-cookie-banner .tp-cookie-intro .tp-cookie-text a:hover {
    color: #9fd1f8;
}

#tp-cookie-banner .tp-cookie-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    flex: 0 0 auto;
}

#tp-cookie-banner .tp-cookie-btn {
    border: 1px solid #fff;
    background: transparent;
    color: #fff;
    padding: 9px 18px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease;
    line-height: 1.2;
}

#tp-cookie-banner .tp-cookie-btn:hover {
    background: #fff;
    color: #1d344c;
}

#tp-cookie-banner .tp-cookie-btn--accept {
    background: #047eb6;
    border-color: #047eb6;
}

#tp-cookie-banner .tp-cookie-btn--accept:hover {
    background: #fff;
    color: #1d344c;
    border-color: #fff;
}

#tp-cookie-banner .tp-cookie-btn--settings {
    background: transparent;
}

#tp-cookie-banner .tp-cookie-settings {
    display: none;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

#tp-cookie-banner .tp-cookie-settings.tp-cookie-settings--open {
    display: block;
}

#tp-cookie-banner .tp-cookie-category {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

#tp-cookie-banner .tp-cookie-category:last-child {
    border-bottom: none;
}

#tp-cookie-banner .tp-cookie-category .tp-cookie-toggle {
    position: relative;
    width: 42px;
    height: 22px;
    flex: 0 0 42px;
}

#tp-cookie-banner .tp-cookie-category .tp-cookie-toggle input {
    opacity: 0;
    width: 42px;
    height: 22px;
    margin: 0;
    cursor: pointer;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 2;
}

#tp-cookie-banner .tp-cookie-category .tp-cookie-slider {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.25);
    border-radius: 999px;
    transition: background 0.2s ease;
}

#tp-cookie-banner .tp-cookie-category .tp-cookie-slider::before {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    left: 3px;
    top: 3px;
    background: #fff;
    border-radius: 50%;
    transition: transform 0.2s ease;
}

#tp-cookie-banner .tp-cookie-category .tp-cookie-toggle input:checked + .tp-cookie-slider {
    background: #047eb6;
}

#tp-cookie-banner .tp-cookie-category .tp-cookie-toggle input:checked + .tp-cookie-slider::before {
    transform: translateX(20px);
}

#tp-cookie-banner .tp-cookie-category .tp-cookie-toggle input:disabled + .tp-cookie-slider {
    opacity: 0.55;
    cursor: not-allowed;
}

#tp-cookie-banner .tp-cookie-category .tp-cookie-cat-text {
    flex: 1 1 auto;
}

#tp-cookie-banner .tp-cookie-category .tp-cookie-cat-text strong {
    display: block;
    font-size: 13px;
    margin-bottom: 2px;
}

#tp-cookie-banner .tp-cookie-category .tp-cookie-cat-text span {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.4;
}

#tp-cookie-banner .tp-cookie-settings-actions {
    margin-top: 16px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

@media (max-width: 640px) {
    #tp-cookie-banner .tp-cookie-intro {
        flex-direction: column;
    }

    #tp-cookie-banner .tp-cookie-actions {
        width: 100%;
        justify-content: stretch;
    }

    #tp-cookie-banner .tp-cookie-btn {
        flex: 1 1 100%;
        text-align: center;
    }
}