/* BidHom cookie consent banner and preference modal */

/* Footer trigger: explicit white text/icon so it reads clearly against the
   footer's purple gradient background, independent of any inherited color. */
.bidhom-cc-footer-link {
    display: inline-flex !important;
    align-items: center;
    gap: 6px;
    color: #ffffff !important;
}
.bidhom-cc-footer-link svg {
    color: #ffffff;
    flex-shrink: 0;
}
.bidhom-cc-footer-link:hover {
    color: #ffffff !important;
}

.bidhom-cc-banner {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 999999999;
    background: #21254a;
    color: #f2f3fb;
    box-shadow: 0 -2px 16px rgba(0, 0, 0, 0.25);
    transform: translateY(100%);
    transition: transform 0.3s ease;
    font-family: inherit;
}
.bidhom-cc-banner.bidhom-cc-visible {
    transform: translateY(0);
}
.bidhom-cc-banner-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 18px 24px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 16px 24px;
}
.bidhom-cc-text {
    flex: 1 1 480px;
    margin: 0;
    font-size: 14px;
    line-height: 1.55;
    color: #fff;
}
.bidhom-cc-text a {
    color: #9ba3ff;
    text-decoration: underline;
}
.bidhom-cc-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    flex: 0 0 auto;
}
.bidhom-cc-btn {
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    padding: 10px 18px;
    border-radius: 2px;
    border: 1px solid transparent;
    white-space: nowrap;
}
.bidhom-cc-btn-solid {
    background: #4550c2;
    color: #fff;
}
.bidhom-cc-btn-solid:hover {
    background: #2e39aa;
}
.bidhom-cc-btn-outline {
    background: transparent;
    color: #f2f3fb;
    border-color: #6b71a8;
}
.bidhom-cc-btn-outline:hover {
    background: rgba(255, 255, 255, 0.08);
}
.bidhom-cc-btn-link {
    background: transparent;
    color: #cfd2fa;
    text-decoration: underline;
    padding: 10px 6px;
}

.bidhom-cc-modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 9999999999;
    background: rgba(9, 11, 32, 0.6);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}
.bidhom-cc-modal-overlay.bidhom-cc-visible {
    display: flex;
}
.bidhom-cc-modal {
    position: relative;
    background: #fff;
    color: #1c1f3a;
    width: 100%;
    max-width: 560px;
    max-height: 90vh;
    overflow-y: auto;
    border-radius: 10px;
    padding: 32px 28px 24px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
}
.bidhom-cc-modal h2 {
    margin: 0 0 12px;
    font-size: 20px;
    color: #21254a;
}
.bidhom-cc-modal-intro {
    font-size: 13.5px;
    line-height: 1.55;
    color: #4a4f6b;
    margin: 0 0 20px;
}
.bidhom-cc-modal-close {
    position: absolute;
    top: 14px;
    right: 16px;
    background: none;
    border: none;
    font-size: 26px;
    line-height: 1;
    cursor: pointer;
    color: #7a7ea0;
}
.bidhom-cc-modal-close:hover {
    color: #1c1f3a;
}
.bidhom-cc-category {
    border-top: 1px solid #e6e7f1;
    padding: 14px 0;
}
.bidhom-cc-category:last-of-type {
    border-bottom: 1px solid #e6e7f1;
}
.bidhom-cc-category-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-weight: 600;
    font-size: 15px;
    color: #21254a;
}
.bidhom-cc-category p {
    margin: 6px 0 0;
    font-size: 13px;
    line-height: 1.5;
    color: #55597a;
}
.bidhom-cc-modal .bidhom-cc-actions {
    margin-top: 22px;
    justify-content: flex-end;
}
.bidhom-cc-modal .bidhom-cc-btn-outline {
    color: #21254a;
    border-color: #b9bad4;
}
.bidhom-cc-modal .bidhom-cc-btn-outline:hover {
    background: #f0f0f9;
}

.bidhom-cc-switch {
    position: relative;
    display: inline-block;
    width: 42px;
    height: 24px;
    flex: 0 0 auto;
}
.bidhom-cc-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}
.bidhom-cc-slider {
    position: absolute;
    cursor: pointer;
    inset: 0;
    background: #c7c8dd;
    border-radius: 24px;
    transition: 0.2s;
}
.bidhom-cc-slider::before {
    content: "";
    position: absolute;
    height: 18px;
    width: 18px;
    left: 3px;
    top: 3px;
    background: #fff;
    border-radius: 50%;
    transition: 0.2s;
}
.bidhom-cc-switch input:checked + .bidhom-cc-slider {
    background: #4550c2;
}
.bidhom-cc-switch input:checked + .bidhom-cc-slider::before {
    transform: translateX(18px);
}
.bidhom-cc-switch-disabled .bidhom-cc-slider {
    cursor: not-allowed;
    opacity: 0.7;
}

@media (max-width: 640px) {
    .bidhom-cc-banner-inner {
        padding: 16px;
    }
    .bidhom-cc-actions {
        width: 100%;
    }
    .bidhom-cc-actions .bidhom-cc-btn {
        flex: 1 1 auto;
        text-align: center;
    }
}
