/**
 * Cookie Compliance Pro - Premium Styles
 */

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

:root {
    --fv-primary: #1863dc;
    --fv-primary-hover: #0f4fb8;
    --fv-btn-primary-text: #ffffff;
    --fv-btn-secondary-bg: #eef2f7;
    --fv-btn-secondary-text: #111827;
    --fv-btn-outline-border: #d1dae6;
    --fv-btn-outline-text: #111827;
    --fv-secondary: #eef2f7;
    --fv-bg: #ffffff;
    --fv-text: #111827;
    --fv-text-muted: #4b5563;
    --fv-glass: rgba(255, 255, 255, 0.05);
    --fv-radius: 12px;
}

.fv-ccp-banner {
    position: fixed;
    bottom: 16px;
    left: 16px;
    right: auto;
    background: var(--fv-bg);
    border: 1px solid #dbe2ea;
    border-radius: var(--fv-radius);
    padding: 18px;
    z-index: 999999;
    box-shadow: 0 16px 34px rgba(15, 23, 42, 0.15);
    font-family: 'Outfit', sans-serif;
    color: var(--fv-text);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease;
    width: min(460px, calc(100vw - 32px));
}

.fv-ccp--hidden {
    display: none !important;
    opacity: 0;
    transform: translateY(20px);
}

.fv-ccp-container {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
}

.fv-ccp-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.fv-ccp-brand-logo {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    object-fit: contain;
    background: rgba(255, 255, 255, 0.08);
    padding: 4px;
}

.fv-ccp-brand-name {
    font-size: 0.9rem;
    color: var(--fv-text);
}

@media (max-width: 768px) {
    .fv-ccp-container {
        flex-direction: column;
        align-items: flex-start;
    }
}

.fv-ccp-content h3 {
    margin: 0 0 8px 0;
    font-size: 1.15rem;
    font-weight: 600;
    color: #111827;
}

.fv-ccp-content p {
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.5;
    color: #374151;
}

.fv-ccp-links {
    margin-top: 6px;
    font-size: 0.85rem;
}

.fv-ccp-links a {
    color: #1863dc !important;
    text-decoration: underline;
    font-weight: 600;
}

.fv-ccp-actions {
    display: flex;
    gap: 8px;
    width: 100%;
    flex-wrap: wrap;
}

.fv-ccp-credit {
    width: 100%;
    margin-top: 2px;
}

.fv-ccp-credit small {
    font-size: 11px;
    color: #6b7280;
    display: block;
    margin-top: 2px;
}

.fv-ccp-credit a {
    color: #4b5563 !important;
    text-decoration: none;
}

.fv-ccp-credit a:hover {
    text-decoration: underline;
}

.fv-ccp-btn {
    padding: 10px 14px;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    border: 1px solid transparent;
    outline: none;
    white-space: nowrap;
    flex: 1 1 30%;
}

.fv-ccp-btn--primary {
    background: var(--fv-primary);
    color: var(--fv-btn-primary-text);
}

.fv-ccp-btn--primary:hover {
    background: var(--fv-primary-hover);
    transform: translateY(-1px);
}

.fv-ccp-btn--secondary {
    background: var(--fv-btn-secondary-bg);
    color: var(--fv-btn-secondary-text);
    border-color: #d1dae6;
}

.fv-ccp-btn--outline {
    background: #fff;
    border: 1px solid var(--fv-btn-outline-border);
    color: var(--fv-btn-outline-text);
}

.fv-ccp-btn--outline:hover {
    background: #f8fafc;
}

.fv-ccp-theme-soft {
    --fv-bg: #ffffff;
    --fv-text: #111827;
    --fv-text-muted: #4b5563;
}

/* Modal Styles */
.fv-ccp-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1000000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.fv-ccp-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.55);
    backdrop-filter: blur(4px);
}

.fv-ccp-modal-card {
    position: relative;
    background: #ffffff;
    width: 90%;
    max-width: 680px;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 24px 52px rgba(15, 23, 42, 0.28);
    border: 1px solid #dbe2ea;
}

.fv-ccp-modal-header {
    padding: 20px 24px;
    border-bottom: 1px solid #e5e7eb;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.fv-ccp-modal-header h4 {
    margin: 0;
    font-size: 1.25rem;
    color: #0f172a;
}

.fv-ccp-modal-close {
    background: none;
    border: none;
    color: #6b7280;
    font-size: 1.5rem;
    cursor: pointer;
}

.fv-ccp-modal-body {
    padding: 24px;
    max-height: 60vh;
    overflow-y: auto;
}

.fv-ccp-category-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 0;
    border-bottom: 1px solid #edf1f5;
}

.fv-ccp-category-item:last-child {
    border-bottom: none;
}

.fv-ccp-category-info strong {
    display: block;
    margin-bottom: 4px;
}

.fv-ccp-category-info p {
    font-size: 0.85rem;
    color: #4b5563;
}

/* Switch Styles */
.fv-ccp-switch-container input {
    height: 0;
    width: 0;
    visibility: hidden;
}

.fv-ccp-switch-container label {
    cursor: pointer;
    text-indent: -9999px;
    width: 44px;
    height: 24px;
    background: #d1d5db;
    display: block;
    border-radius: 100px;
    position: relative;
}

.fv-ccp-switch-container label:after {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    width: 20px;
    height: 20px;
    background: #fff;
    border-radius: 90px;
    transition: 0.3s;
}

.fv-ccp-switch-container input:checked + label {
    background: var(--fv-primary);
}

.fv-ccp-switch-container input:checked + label:after {
    left: calc(100% - 2px);
    transform: translateX(-100%);
}

.fv-ccp-modal-footer {
    padding: 20px 24px;
    border-top: 1px solid #e5e7eb;
    text-align: right;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.fv-ccp-policy-link {
    font-size: 0.85rem;
    color: #1d4ed8 !important;
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    border-radius: 8px;
    padding: 8px 10px;
    display: inline-block;
    text-decoration: underline;
    font-weight: 600;
}

#fv-cookie-banner .fv-ccp-policy-link:hover,
#fv-cookie-banner .fv-ccp-links a:hover,
#fv-cookie-banner .fv-ccp-credit a:hover {
    color: #1e40af !important;
}

.fv-ccp-modal-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.fv-ccp-modal-actions .fv-ccp-btn {
    flex: initial;
}

.fv-ccp-blocked-content {
    border: 1px solid #d1d5db;
    border-radius: 12px;
    padding: 24px;
    background: linear-gradient(180deg, #f8fafc 0%, #eef2ff 100%);
    margin: 16px 0;
}

.fv-ccp-blocked-inner {
    display: flex;
    gap: 12px;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
}

.fv-ccp-blocked-inner span {
    font-size: 0.95rem;
    color: #1f2937;
}

.fv-ccp-revisit-btn {
    position: fixed;
    left: 20px;
    bottom: 20px;
    width: 56px;
    height: 56px;
    border-radius: 999px;
    border: 0;
    z-index: 999998;
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    box-shadow: 0 12px 25px rgba(37, 99, 235, 0.35);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.fv-ccp-revisit-btn::before {
    content: "\2699";
    position: absolute;
    color: #ffffff;
    font-size: 30px;
    line-height: 1;
    font-weight: 700;
    z-index: 2;
}

.fv-ccp-revisit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 30px rgba(37, 99, 235, 0.42);
}

.fv-ccp-revisit-btn img {
    width: 30px;
    height: 30px;
    object-fit: contain;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.16);
    padding: 3px;
}

.fv-ccp-revisit-icon {
    width: 36px;
    height: 36px;
    display: block;
    filter: drop-shadow(0 2px 2px rgba(0, 0, 0, 0.2));
    opacity: 0.001;
}

@media (max-width: 768px) {
    .fv-ccp-actions {
        width: 100%;
        flex-wrap: wrap;
    }

    .fv-ccp-btn {
        flex: 1 1 auto;
        text-align: center;
    }

    .fv-ccp-revisit-btn {
        width: 52px;
        height: 52px;
        left: 14px;
        bottom: 14px;
    }
}
