/* ═══════════════════════════════════════════════════════════
   Google Consent V2 — Modern 2026
   Structura HTML identica cu originalul, doar design updatat
═══════════════════════════════════════════════════════════ */

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

/* ── Wrapper principal ── */
#google-consent-mode {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 2147483646;
    display: none;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

#google-consent-mode.hard-mode {
    bottom: 0;
    right: 0;
    left: 0;
    top: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0,0,0,0.45);
    backdrop-filter: blur(6px);
}

/* ── Fereastra ── */
#google-consent-mode-window {
    background-color: var(--google-consent-mode-background-color, #fff);
    color: #1a1a1a;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.15), 0 4px 16px rgba(0,0,0,0.08);
    padding: 20px;
    width: 560px;
    max-width: 92vw;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 14px;
    line-height: 1.5;
}

/* ── Header ── */
#google-consent-mode-window-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid #f0f0f0;
}

#google-consent-mode-window-header-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--google-consent-mode-theme-color, #1a1a1a);
    letter-spacing: -0.01em;
}

/* ── Body text ── */
#google-consent-mode-window-body p {
    color: #4b5563;
    font-size: 13.5px;
    line-height: 1.6;
    margin: 0 0 8px;
}

#google-consent-mode-window-body a {
    color: var(--google-consent-mode-theme-color, #1a1a1a);
    text-decoration: underline;
    text-underline-offset: 2px;
    font-size: 13px;
}
#google-consent-mode-window-body a:hover { opacity: 0.75; }

/* ── Brief info ── */
#consent-brief-info {
    margin-bottom: 12px;
}
#consent-brief-info p {
    color: #4b5563;
    font-size: 13px;
    line-height: 1.6;
    margin: 0;
}

/* ── Tabs ── */
.consent-tabs {
    display: flex;
    background: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
    border-radius: 8px 8px 0 0;
    overflow: hidden;
}

.consent-tab-btn {
    flex: 1;
    padding: 10px 16px;
    border: none;
    background: transparent;
    cursor: pointer;
    font-weight: 500;
    font-size: 13px;
    font-family: inherit;
    color: #6b7280;
    transition: all 0.15s ease;
    border-bottom: 2px solid transparent;
    margin-bottom: -1px;
}

.consent-tab-btn:hover:not(.active) {
    color: #374151;
    background: #f3f4f6;
}

.consent-tab-btn.active {
    background: #fff;
    color: var(--google-consent-mode-theme-color, #1a1a1a);
    font-weight: 600;
    border-bottom-color: var(--google-consent-mode-theme-color, #1a1a1a);
}

.consent-tab-content {
    background: #fff;
    padding: 14px;
    max-height: 280px;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: #e5e7eb #fff;
}
.consent-tab-content::-webkit-scrollbar { width: 5px; }
.consent-tab-content::-webkit-scrollbar-thumb { background: #e5e7eb; border-radius: 3px; }

.consent-tab-pane { display: none; }
.consent-tab-pane.active { display: block; }

/* ── Switch row ── */
.consent-window-switch {
    margin-bottom: 4px;
    border-radius: 8px;
    border: 1px solid #f3f4f6;
    overflow: hidden;
    transition: border-color 0.15s;
}
.consent-window-switch:hover { border-color: #e5e7eb; }

.consent-window-switch-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 10px;
    gap: 10px;
    background: #fafafa;
}

/* Input hidden — comportamentul e pe div-ul switcher */
#google-consent-mode .consent-window-switch input {
    display: none;
}

/* Label cu switcher + text */
#google-consent-mode .consent-window-switch label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    flex: 1;
    margin: 0;
}

/* Toggle track */
#google-consent-mode .consent-window-switch label .consent-window-switch-switcher {
    position: relative;
    width: 40px;
    height: 22px;
    background: #d1d5db;
    border-radius: 11px;
    flex-shrink: 0;
    transition: background-color 0.2s ease;
    cursor: pointer;
}

/* Toggle thumb */
#google-consent-mode .consent-window-switch .consent-window-switch-switcher::before {
    content: '';
    position: absolute;
    top: 3px;
    left: 3px;
    width: 16px;
    height: 16px;
    background: #fff;
    border-radius: 50%;
    box-shadow: 0 1px 3px rgba(0,0,0,0.2);
    transition: transform 0.2s ease;
}

/* Checked state */
#google-consent-mode .consent-window-switch input:checked + label .consent-window-switch-switcher {
    background: #22c55e;
}
#google-consent-mode .consent-window-switch input:checked + label .consent-window-switch-switcher::before {
    transform: translateX(18px);
}

/* Disabled (essential) */
#google-consent-mode .consent-window-switch input:disabled + label .consent-window-switch-switcher {
    background: var(--google-consent-mode-theme-color, #1a1a1a);
    opacity: 0.75;
    cursor: not-allowed;
}
#google-consent-mode .consent-window-switch input:disabled + label .consent-window-switch-switcher::before {
    transform: translateX(18px);
}
#google-consent-mode .consent-window-switch input:disabled + label {
    cursor: default;
}
#google-consent-mode .consent-window-switch input:disabled + label .consent-window-switch-text {
    font-weight: 600;
}

/* Switch text */
#google-consent-mode .consent-window-switch label .consent-window-switch-text {
    font-size: 13px;
    font-weight: 500;
    color: #374151;
    line-height: 1.4;
}

.cookie-count-badge {
    font-size: 11px;
    color: #9ca3af;
    font-weight: 400;
}

/* Buton expand chevron */
.consent-window-switch-toggle {
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 3px;
    color: #9ca3af;
    opacity: 1;
    transition: color 0.15s, transform 0.2s;
    border-radius: 4px;
    display: flex;
    align-items: center;
    flex-shrink: 0;
}
.consent-window-switch-toggle:hover { color: #374151; background: #f3f4f6; }
.consent-window-switch-toggle.active { color: var(--google-consent-mode-theme-color, #1a1a1a); }
.consent-window-switch-toggle.active i { transform: rotate(180deg); }
.consent-window-switch-toggle i {
    background: #f3f4f6;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6b7280;
    border-radius: 50%;
    font-size: 10px;
    transition: transform 0.2s;
}

/* Description panel */
.consent-window-switch-description {
    font-size: 12px;
    color: #6b7280;
    padding: 10px 12px;
    line-height: 1.5;
    border-left: 3px solid var(--google-consent-mode-theme-color, #1a1a1a);
    background: #f9fafb;
    border-radius: 0 0 0 0;
    animation: gcv2-slide-down 0.2s ease;
}
@keyframes gcv2-slide-down {
    from { opacity: 0; transform: translateY(-4px); }
    to   { opacity: 1; transform: translateY(0); }
}

.category-description {
    font-size: 12.5px;
    color: #4b5563;
    line-height: 1.55;
    padding: 8px 0 4px;
}

/* ── Cookie table ── */
.cookie-table-container {
    margin-top: 10px;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    overflow: hidden;
}
.cookie-table-title {
    background: #f9fafb;
    margin: 0;
    padding: 8px 12px;
    font-size: 12px;
    font-weight: 600;
    color: #374151;
    border-bottom: 1px solid #e5e7eb;
}
.cookie-table-wrapper {
    max-height: 200px;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: #e5e7eb #fff;
}
.cookie-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 12px;
}
.cookie-table th {
    background: #fff;
    padding: 7px 10px;
    text-align: left;
    font-weight: 600;
    color: #6b7280;
    border-bottom: 1px solid #e5e7eb;
    position: sticky;
    top: 0;
    z-index: 1;
}
.cookie-table td {
    padding: 7px 10px;
    border-bottom: 1px solid #f3f4f6;
    vertical-align: top;
    color: #374151;
    line-height: 1.4;
}
.cookie-table tbody tr:last-child td { border-bottom: none; }
.cookie-table tbody tr:hover td { background: #fafafa; }
.cookie-name strong { color: #111827; font-size: 12px; font-family: 'Courier New', monospace; }
.cookie-security-badges { margin-top: 3px; }
.security-badge {
    display: inline-block;
    padding: 1px 4px;
    font-size: 10px;
    font-weight: 700;
    border-radius: 3px;
    margin-right: 2px;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}
.security-badge.http-only { background: #6b7280; }
.security-badge.secure    { background: #16a34a; }
.security-badge.same-site { background: #f59e0b; color: #1a1a1a; }
.cookie-provider { max-width: 110px; }
.provider-name   { font-weight: 500; color: #374151; font-size: 12px; }
.cookie-domain   { font-family: 'Courier New', monospace; font-size: 10px; color: #9ca3af; margin-top: 1px; }
.cookie-expiry   { white-space: nowrap; }
.expiry-badge {
    display: inline-block;
    padding: 2px 7px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 500;
}
.expiry-badge.expiry-sesiune,
.expiry-badge.expiry-session  { background: #fef3c7; color: #92400e; }
.expiry-badge.expiry-1-minut,
.expiry-badge.expiry-1-ora,
.expiry-badge.expiry-24-ore,
.expiry-badge.expiry-10-minute { background: #e0f2fe; color: #075985; }
.expiry-badge.expiry-90-zile,
.expiry-badge.expiry-3-luni   { background: #dcfce7; color: #166534; }
.expiry-badge.expiry-1-an,
.expiry-badge.expiry-2-ani,
.expiry-badge.expiry-niciodata { background: #fee2e2; color: #991b1b; }
.cookie-description { max-width: 180px; font-size: 11.5px; color: #6b7280; line-height: 1.3; }

/* ── About tab ── */
.consent-about-content p { margin-bottom: 12px; line-height: 1.6; font-size: 13px; color: #4b5563; }
.consent-about-content a { color: var(--google-consent-mode-theme-color, #1a1a1a); text-decoration: underline; }
.cookie-summary { margin-top: 16px; padding: 12px; background: #f9fafb; border-radius: 6px; border: 1px solid #e5e7eb; }
.cookie-summary h4 { margin: 0 0 8px; font-size: 13px; font-weight: 600; color: #374151; }
.cookie-summary-list { margin: 0; padding-left: 16px; }
.cookie-summary-list li { margin-bottom: 4px; font-size: 12.5px; color: #4b5563; }

/* ── Footer butoane ── */
#google-consent-mode-window-footer {
    margin-top: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    padding-top: 14px;
    border-top: 1px solid #f0f0f0;
}

/* Decline — text link subtil */
#consent-window-reject {
    background: transparent;
    border: none;
    color: #9ca3af;
    cursor: pointer;
    font-size: 12.5px;
    font-family: inherit;
    margin-right: auto;
    padding: 0;
    text-decoration: underline;
    text-underline-offset: 2px;
    transition: color 0.15s;
}
#consent-window-reject:hover { color: #374151; }

/* Personalizeaza / Inapoi — outline */
#consent-window-customise,
#consent-window-back {
    background: transparent;
    border: 1.5px solid var(--google-consent-mode-theme-color, #1a1a1a);
    border-radius: 7px;
    color: var(--google-consent-mode-theme-color, #1a1a1a);
    padding: 7px 14px;
    font-size: 13px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: background 0.15s, color 0.15s;
}
#consent-window-customise:hover,
#consent-window-back:hover {
    background: var(--google-consent-mode-theme-color, #1a1a1a);
    color: var(--google-consent-mode-theme-text-color, #fff);
}

/* Refuza tot */
#consent-window-reject-all {
    background: #fff;
    border: 1.5px solid #e5e7eb;
    border-radius: 7px;
    color: #374151;
    padding: 7px 14px;
    font-size: 13px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.15s;
}
#consent-window-reject-all:hover {
    border-color: #9ca3af;
    color: #111827;
}

/* Accept — solid verde */
#consent-window-accept {
    background: #22c55e;
    border: 1.5px solid #22c55e;
    border-radius: 7px;
    color: #fff;
    padding: 7px 18px;
    font-size: 13px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.15s;
    margin-left: auto;
}
#consent-window-accept:hover {
    background: #16a34a;
    border-color: #16a34a;
}

.rejectbtns { display: flex; gap: 8px; flex-wrap: wrap; }

/* ── Buton persistent ── */
#google-consent-mode-manage-button {
    position: fixed;
    bottom: 0;
    left: 16px;
    z-index: 2147483645;
}
#google-consent-manage-trigger {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 7px 14px 10px;
    background: #fff;
    color: #374151;
    border: 1px solid #e5e7eb;
    border-bottom: none;
    border-radius: 10px 10px 0 0;
    font-size: 12px;
    font-family: 'Inter', -apple-system, sans-serif;
    font-weight: 500;
    cursor: pointer;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.08);
    transition: padding-bottom 0.2s, color 0.15s;
}
#google-consent-manage-trigger:hover {
    padding-bottom: 15px;
    color: var(--google-consent-mode-theme-color, #1a1a1a);
}

/* ── Responsive ── */
@media (max-width: 600px) {
    #google-consent-mode {
        bottom: 0;
        right: 0;
        left: 0;
        width: 100%;
    }
    #google-consent-mode-window {
        width: 100%;
        max-width: 100%;
        border-radius: 14px 14px 0 0;
        border-left: none;
        border-right: none;
        border-bottom: none;
        max-height: 88vh;
        overflow-y: auto;
    }
    .consent-tab-btn { padding: 9px 10px; font-size: 12px; }
    .consent-tab-content { max-height: 220px; }
    #google-consent-mode-window-footer { gap: 6px; }
    #consent-window-accept { margin-left: 0; width: 100%; justify-content: center; }
}
