/* DeepAd Cookie Consent Styles - Console Version */
/* Matches website styling exactly, adapted for non-AMP usage */

@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600&display=swap');

/* Bottom Banner */
.deepad-consent-banner-bottom {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #ffffff;
    border-top: 1px solid #e5e7eb;
    box-shadow: 0 -2px 16px rgba(0, 0, 0, 0.1);
    z-index: 999999;
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    padding: 20px 32px;
    animation: slideUp 0.4s ease-out;
}

@keyframes slideUp {
    from {
        transform: translateY(100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.deepad-consent-banner-content {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.deepad-consent-banner-text {
    flex: 1;
    margin: 0;
    font-size: 14px;
    line-height: 1.6;
    color: #374151;
}

.deepad-consent-link {
    color: #ff0000;
    text-decoration: underline;
    font-weight: 500;
}

.deepad-consent-link:hover {
    color: #CC0000;
}

.deepad-consent-banner-buttons {
    display: flex;
    gap: 12px;
    flex-shrink: 0;
}

.deepad-consent-btn {
    padding: 10px 20px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: inherit;
    white-space: nowrap;
    border: none;
}

.deepad-consent-btn-settings {
    background: transparent;
    border: 1px solid #d1d5db;
    color: #374151;
}

.deepad-consent-btn-settings:hover {
    background: #f9fafb;
}

.deepad-consent-btn-reject {
    background: #e5e7eb;
    color: #374151;
}

.deepad-consent-btn-reject:hover {
    background: #d1d5db;
}

.deepad-consent-btn-accept {
    background: #ff0000;
    color: #ffffff;
    font-size: 16px;
    font-weight: 700;
    padding: 12px 28px;
}

.deepad-consent-btn-accept:hover {
    background: #CC0000;
}

/* Floating Cookie Icon Button (Bottom-Left) */
.deepad-cookie-float-btn {
    position: fixed;
    bottom: 20px;
    left: 20px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: #ff0000;
    border: none;
    box-shadow: 0 4px 16px rgba(255, 0, 0, 0.4);
    cursor: pointer;
    z-index: 999998;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.deepad-cookie-float-btn:hover {
    background: #CC0000;
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(255, 0, 0, 0.5);
}

.deepad-cookie-float-btn svg {
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.2));
}

/* Sidebar Overlay */
.deepad-sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.deepad-sidebar-overlay.open {
    opacity: 1;
    visibility: visible;
}

/* Sidebar Panel */
.deepad-consent-sidebar {
    position: fixed;
    top: 0;
    left: 0;
    height: 100%;
    background: #ffffff;
    width: 540px;
    max-width: 100vw;
    box-shadow: 2px 0 24px rgba(0, 0, 0, 0.15);
    z-index: 1000000;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

.deepad-consent-sidebar.open {
    transform: translateX(0);
}

.deepad-consent-sidebar-content {
    height: 100%;
    display: flex;
    flex-direction: column;
    padding: 0;
}

.deepad-consent-sidebar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px;
    border-bottom: 1px solid #e5e7eb;
    flex-shrink: 0;
    gap: 16px;
}

.deepad-consent-sidebar-header img {
    flex-shrink: 0;
    max-width: 100%;
    height: auto;
}

.deepad-consent-close {
    background: transparent;
    border: none;
    font-size: 28px;
    color: #6b7280;
    cursor: pointer;
    padding: 4px 8px;
    line-height: 1;
}

.deepad-consent-close:hover {
    color: #374151;
}

.deepad-consent-sidebar-body {
    padding: 24px;
    flex: 1;
    overflow-y: auto;
}

.deepad-consent-title {
    font-size: 24px;
    font-weight: 600;
    color: #1a1a1a;
    margin: 0 0 16px 0;
}

.deepad-consent-description {
    font-size: 14px;
    line-height: 1.6;
    color: #4a4a4a;
    margin: 0 0 12px 0;
}

.deepad-consent-more-info {
    display: block;
    font-size: 14px;
    color: #ff0000;
    text-decoration: underline;
    margin-bottom: 24px;
    width: fit-content;
}

.deepad-consent-more-info:hover {
    color: #CC0000;
}

.deepad-consent-allow-all {
    width: auto;
    padding: 12px 32px;
    background: #ff0000;
    color: #ffffff;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    margin-bottom: 20px;
    font-family: inherit;
    display: block;
}

.deepad-consent-allow-all:hover {
    background: #CC0000;
}

.deepad-consent-subtitle {
    font-size: 18px;
    font-weight: 600;
    color: #1a1a1a;
    margin: 0 0 16px 0;
}

/* Accordion Styles (Non-AMP) */
.deepad-consent-accordion {
    margin-bottom: 0;
}

.deepad-consent-category {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    margin-bottom: 12px;
    overflow: visible;
}

.deepad-consent-category-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: nowrap;
    padding: 16px 20px 16px 16px;
    margin: 0;
    font-size: 15px;
    font-weight: 600;
    color: #1a1a1a;
    cursor: pointer;
    gap: 12px;
    min-height: 60px;
    background: transparent;
    border: none;
    width: 100%;
    text-align: left;
    box-sizing: border-box;
}

.deepad-consent-category.expanded .deepad-consent-category-header {
    border-bottom: 1px solid #e5e7eb;
}

.deepad-accordion-title {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1 1 auto;
    min-width: 0;
}

.deepad-accordion-icon {
    font-size: 20px;
    font-weight: 700;
    color: #1a1a1a;
    line-height: 1;
    min-width: 20px;
    text-align: center;
}

.deepad-consent-category.expanded .deepad-accordion-icon::before {
    content: '−';
}

.deepad-consent-category:not(.expanded) .deepad-accordion-icon::before {
    content: '+';
}

.deepad-toggle,
.deepad-badge-always-active {
    margin-left: auto;
    flex-shrink: 0;
}

.deepad-consent-category-content {
    padding: 16px;
    background: #ffffff;
    display: none;
}

.deepad-consent-category.expanded .deepad-consent-category-content {
    display: block;
}

.deepad-consent-category-desc {
    font-size: 13px;
    line-height: 1.5;
    color: #6b7280;
    margin: 0 0 12px 0;
}

.deepad-badge-always-active {
    background: #ff0000;
    color: #ffffff;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    flex-shrink: 0;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    vertical-align: middle;
}

.deepad-consent-details-toggle {
    background: transparent;
    border: none;
    color: #ff0000;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    padding: 0;
    text-decoration: underline;
}

.deepad-consent-details-toggle:hover {
    color: #CC0000;
}

.deepad-consent-details {
    margin-top: 12px;
    padding: 12px;
    background: #f9fafb;
    border-radius: 4px;
    font-size: 13px;
    color: #4a4a4a;
}

.deepad-consent-details ul {
    margin: 8px 0 0 0;
    padding-left: 20px;
}

.deepad-consent-details li {
    margin-bottom: 4px;
}

/* Toggle Switch */
.deepad-toggle {
    position: relative;
    display: inline-block;
    width: 48px;
    min-width: 48px;
    height: 24px;
    flex-shrink: 0;
    vertical-align: middle;
}

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

.deepad-toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #d1d5db;
    transition: 0.2s;
    border-radius: 24px;
}

.deepad-toggle-slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: 0.2s;
    border-radius: 50%;
}

.deepad-toggle input:checked + .deepad-toggle-slider {
    background-color: #ff0000;
}

.deepad-toggle input:checked + .deepad-toggle-slider:before {
    transform: translateX(24px);
}

/* Footer Buttons (Sticky Bottom) */
.deepad-consent-footer-buttons {
    display: flex;
    gap: 12px;
    padding: 16px 24px;
    border-top: 1px solid #e5e7eb;
    background: #ffffff;
    flex-shrink: 0;
}

.deepad-consent-btn-footer {
    flex: 1;
    padding: 14px 24px;
    border: none;
    border-radius: 6px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
}

.deepad-consent-btn-reject-all {
    background: #6b7280;
    color: #ffffff;
}

.deepad-consent-btn-reject-all:hover {
    background: #4b5563;
}

.deepad-consent-btn-confirm {
    background: #ff0000;
    color: #ffffff;
}

.deepad-consent-btn-confirm:hover {
    background: #CC0000;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    /* Compact bottom banner: a slim 2-row strip instead of a tall
       full-height-button stack, so it never buries page content
       (e.g. the centered sign-in card CTA) on phones. */
    .deepad-consent-banner-bottom {
        padding: 12px 14px;
    }

    .deepad-consent-banner-content {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }

    .deepad-consent-banner-text {
        font-size: 12px;
        line-height: 1.45;
    }

    .deepad-consent-banner-buttons {
        flex-direction: row;
        flex-wrap: wrap;
        width: 100%;
        gap: 8px;
    }

    .deepad-consent-btn {
        flex: 1 1 0;
        min-width: 0;
        padding: 9px 10px;
        font-size: 13px;
        justify-content: center;
        text-align: center;
    }

    /* Primary action gets its own full-width row on top */
    .deepad-consent-btn-accept {
        flex: 1 1 100%;
        order: -1;
        font-size: 13px;
        font-weight: 700;
        padding: 10px 14px;
    }

    .deepad-consent-sidebar {
        width: 100vw;
    }

    .deepad-consent-footer-buttons {
        flex-direction: column;
    }
}
