#google-consent-mode {
    position: fixed;
    bottom: 15px;
    right: 15px;
    z-index: 999999999999999999;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

#google-consent-mode.hard-mode {
    bottom: 0;
    right: 0;
    left: 0;
    top: 0;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
}

#google-consent-mode-window {
    background-color: var(--google-consent-mode-background-color);
    color: var(--google-consent-mode-theme-color);
    border: 1px solid #ccc;
    border-radius: 5px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    padding: 15px;
    width: 950px;
    max-width: 90vw;
}

/* Container for the header with toggle button */
#google-consent-mode .consent-window-switch-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 5px;
}

/* Style for the toggle button */
#google-consent-mode .consent-window-switch-toggle {
    background: transparent;
    border: none;
    color: var(--google-consent-mode-theme-color);
    cursor: pointer;
    font-size: 16px;
    padding: 0;
    margin-left: 10px;
    opacity: 0.7;
    transition: opacity 0.3s;
}

#google-consent-mode .consent-window-switch-toggle:hover,
#google-consent-mode .consent-window-switch-toggle.active {
    opacity: 1;
}

/* Style for the description text */
#google-consent-mode .consent-window-switch-description {
    font-size: 12px;
    color: #666;
    margin-left: 0px;
    margin-bottom: 10px;
    padding: 5px 0;
    line-height: 1.4;
    border-left: 2px solid var(--google-consent-mode-theme-color);
    padding-left: 10px;
    background-color: rgba(0,0,0,0.05);
    border-radius: 0 3px 3px 0;
}

#google-consent-mode-window-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

#google-consent-mode-window-header-title {
    font-size: 18px;
}

#google-consent-mode-window-footer {
    margin-top: 15px;
    display: flex;
    gap: 10px;
    justify-content: space-between;
}

#consent-window-customise,
#consent-window-back {
    background-color: transparent;
    border: 1px solid var(--google-consent-mode-theme-color);
    border-radius: 5px;
    color: var(--google-consent-mode-theme-color);
    padding: 5px 10px;
    font-weight: 600;
    transition: background-color 0.3s, color 0.3s;
}

#consent-window-customise:hover,
#consent-window-back:hover {
    background-color: var(--google-consent-mode-theme-color);
    color: var(--google-consent-mode-theme-text-color);
}
.consent-window-switch-toggle i{
    background: #E6E8EA;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: black;
    border-radius: 100%;
    font-size: 10px;
}
#consent-window-accept {
    background-color: #6CBD6D;
    border: 1px solid #6CBD6D;
    border-radius: 5px;
    color: var(--google-consent-mode-theme-text-color);
    padding: 7px 17px;
    font-weight: 600;
    transition: background-color 0.3s, color 0.3s;
}

#consent-window-accept:hover {
    background-color: var(--google-consent-mode-theme-text-color);
    color: var(--google-consent-mode-theme-color);
}

#consent-window-reject {
    background-color: transparent;
    border: none;
    color: inherit;
    cursor: pointer;
    font-size: .85em;
    margin-right: auto;
    padding: 0;
    opacity: .75;
}

#google-consent-mode .consent-window-switch label {
    display: flex;
    gap: 10px;
    margin-bottom: 10px;
}

#google-consent-mode .consent-window-switch input {
    display: none;
}

#google-consent-mode .consent-window-switch label .consent-window-switch-switcher {
    background-color: #ccc;
    border-radius: 20px;
    cursor: pointer;
    display: flex;
    height: 20px;
    position: relative;
    width: 40px;
    transition: background-color 0.3s;
}

#google-consent-mode .consent-window-switch .consent-window-switch-switcher::before {
    background-color: #fff;
    border-radius: 50%;
    content: '';
    height: 16px;
    left: 0;
    position: absolute;
    top: 0;
    transition: transform 0.3s;
    width: 16px;
    margin: 2px;
}

#google-consent-mode .consent-window-switch input:checked + label .consent-window-switch-switcher {
    background-color: #6CBD6D;
}

#google-consent-mode .consent-window-switch input:checked + label .consent-window-switch-switcher::before {
    transform: translateX(20px);
}

#google-consent-mode .consent-window-switch label .consent-window-switch-text {
    font-size: 14px;
    line-height: 20px;
}

/* Style for essential (disabled) switches */
#google-consent-mode .consent-window-switch input:disabled + label .consent-window-switch-switcher {
    background-color: var(--google-consent-mode-theme-color);
    opacity: 0.8;
    cursor: not-allowed;
}

#google-consent-mode .consent-window-switch input:disabled + label .consent-window-switch-switcher::before {
    transform: translateX(20px);
}

#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;
}

/* Manage consent button */
#google-consent-mode-manage-button {
    position: fixed;
    bottom: 0px;
    left: 15px;
    z-index: 9999;
}

#google-consent-manage-trigger {
    border-top-left-radius: 15px;
    padding-top: 10px;
    border-top-right-radius: 15px;
    padding-bottom: 8px;
    padding-left: 12px;
    padding-right: 12px;
    box-shadow: 1px 2px 8px 0 rgba(0, 0, 0, 0.2);
    background: #FFFFFF;
    color: black;
    font-size: 13px;
    overflow: hidden;
    transition-duration: 500ms;
    white-space: nowrap;
    border: none;
}
#google-consent-manage-trigger:hover{
    padding-bottom: 13px;
}



/* NEW STYLES FOR ENHANCED FEATURES */

/* Brief info section */
#consent-brief-info {
    margin-bottom: 10px;
}

.consent-link-button {
    background: none; 
    border: none; 
    color: var(--google-consent-mode-theme-color, #007bff); 
    text-decoration: underline; 
    cursor: pointer; 
    padding: 0; 
    font-size: inherit;
    font-family: inherit;
}

.consent-link-button:hover {
    color: #0056b3;
}

/* Reject all button */
#consent-window-reject-all {
    background-color: white;
    border: 1px solid var(--google-consent-mode-theme-color);
    border-radius: 5px;
    color: var(--google-consent-mode-theme-color);
    padding: 7px 17px;
    font-weight: 600;
    transition: background-color 0.3s, color 0.3s;
}

#consent-window-reject-all:hover {
    background-color: white;
    border-color: var(--google-consent-mode-theme-color);
}

/* Tab styles */
.consent-tabs {
    display: flex;
    border-bottom: 1px solid #ddd;
    background-color: #f8f9fa;
    border-radius: 5px 5px 0 0;
}

.consent-tab-btn {
    flex: 1;
    padding: 12px 16px;
    border: none;
    background: transparent;
    cursor: pointer;
    font-weight: 500;
    color: #666;
    transition: all 0.3s ease;
}

.consent-tab-btn:first-child {
    border-radius: 5px 0 0 0;
}

.consent-tab-btn:last-child {
    border-radius: 0 5px 0 0;
}

.consent-tab-btn.active {
    background-color: var(--google-consent-mode-theme-color);
    color: var(--google-consent-mode-theme-text-color);
}

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

.consent-tab-content {
    padding: 15px;
    max-height: 300px;
    overflow-y: auto;
}

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

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

#consent-detailed-info {
    max-width: 100%;
}
.rejectbtns{
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}
/* About cookies content */
.consent-about-content p {
    margin-bottom: 15px;
    line-height: 1.5;
}

.consent-about-content a {
    color: #007bff;
    text-decoration: none;
}

.consent-about-content a:hover {
    text-decoration: underline;
}


/* Enhanced styles for cookie tables */
.cookie-count-badge {
    font-size: 0.8em;
    color: #666;
    font-weight: normal;
}

.cookie-table-container {
    margin-top: 15px;
    border: 1px solid #e1e1e1;
    border-radius: 6px;
    overflow: hidden;
}

.cookie-table-title {
    background: #f8f9fa;
    margin: 0;
    padding: 12px 15px;
    font-size: 14px;
    font-weight: 600;
    color: #495057;
    border-bottom: 1px solid #e1e1e1;
}

.cookie-table-wrapper {
    max-height: 300px;
    overflow-y: auto;
}

.cookie-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.85em;
    margin: 0;
}

.cookie-table th {
    background: #fff;
    padding: 10px 8px;
    text-align: left;
    font-weight: 600;
    color: #495057;
    border-bottom: 2px solid #e1e1e1;
    position: sticky;
    top: 0;
    z-index: 10;
    font-size:13px
}

.cookie-table td {
    padding: 10px 8px;
    border-bottom: 1px solid #f1f1f1;
    vertical-align: top;
    line-height: 1.4;
}

.cookie-table tbody tr:hover {
    background-color: #f8f9fa;
}

.cookie-name strong {
    color: #212529;
    font-size: 13px;
}

.cookie-security-badges {
    margin-top: 4px;
}

.security-badge {
    display: inline-block;
    padding: 2px 5px;
    font-size: 0.7em;
    font-weight: bold;
    border-radius: 3px;
    margin-right: 3px;
    color: white;
    text-transform: uppercase;
}

.security-badge.http-only {
    background-color: #6c757d;
}

.security-badge.secure {
    background-color: #28a745;
}

.security-badge.same-site {
    background-color: #ffc107;
    color: #212529;
}

.cookie-provider {
    max-width: 120px;
}

.provider-name {
    font-weight: 500;
    color: #495057;
    font-size: 13px;
}

.cookie-domain {
    font-family: 'Courier New', monospace;
    font-size: 0.8em;
    color: #6c757d;
    margin-top: 2px;
}

.cookie-expiry {
    white-space: nowrap;
}

.expiry-badge {
    padding: 3px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
    text-transform: uppercase;
}
.expiry-badge.expiry-sesiune,
.expiry-badge.expiry-session {
    background-color: #ffc107;
    color: #212529;
}
.expiry-badge.expiry-1-hour,
.expiry-badge.expiry-1-ora,
.expiry-badge.expiry-1-day,
.expiry-badge.expiry-1-zi,
.expiry-badge.expiry-24-ore,
.expiry-badge.expiry-10-minute,
.expiry-badge.expiry-10-minutes,
.expiry-badge.expiry-1-minut {
    background-color: #17a2b8;
    color: white;
}

.expiry-badge.expiry-3-luni,
.expiry-badge.expiry-90-zile {
    background-color: #28a745;
    color: white;
}
.expiry-badge.expiry-niciodata,
.expiry-badge.expiry-never,
.expiry-badge.expiry-2-ani,
.expiry-badge.expiry-1-an {
    background-color: #dc3545;
    color: white;
}

.cookie-description {
    max-width: 200px;
    font-size: 12px;
    color: #6c757d;
    line-height: 1.3;
}

.no-cookies-found {
    padding: 20px;
    text-align: center;
    color: #6c757d;
    font-style: italic;
}

.category-description {
    margin-bottom: 15px;
    padding: 12px;
    background: #f8f9fa;
    border-radius: 5px;
    font-size: 0.9em;
    line-height: 1.4;
    color: #495057;
}

.cookie-summary {
    margin-top: 20px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 6px;
}

.cookie-summary h4 {
    margin-top: 0;
    margin-bottom: 10px;
    color: #495057;
    font-size: 1em;
}

.cookie-summary-list {
    margin: 0;
    padding-left: 20px;
}

.cookie-summary-list li {
    margin-bottom: 5px;
    font-size: 0.9em;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .cookie-table th,
    .cookie-table td {
        padding: 8px 6px;
        font-size: 0.8em;
    }
    
    .cookie-provider,
    .cookie-description {
        max-width: 100px;
    }
    
    .cookie-table-wrapper {
        max-height: 250px;
    }
}

/* Enhanced consent tab styles */
.consent-tabs {
    display: flex;
    background: #f8f9fa;
    border-bottom: 1px solid #ddd;
}

.consent-tab-btn {
    flex: 1;
    padding: 12px 15px;
    border: none;
    background: transparent;
    cursor: pointer;
    font-weight: 500;
    color: #6c757d;
    transition: all 0.3s ease;
}

.consent-tab-content {
    background: white;
    padding: 15px;
    max-height: 400px;
    overflow-y: auto;
}

.consent-window-switch-description {
    border-top: 1px solid #e9ecef;
    margin-top: 10px;
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        max-height: 0;
    }
    to {
        opacity: 1;
        max-height: 500px;
    }
}

/* Responsive adjustments */
@media (max-width: 480px) {
    #google-consent-mode-window {
        width: 95vw;
        max-height: 90vh;
        overflow-y: auto;
    }
    
    .consent-tab-btn {
        padding: 8px 12px;
        font-size: 14px;
    }
    
    .consent-tab-content {
        max-height: 250px;
    }
    
    #google-consent-manage-trigger {
        font-size: 12px;
        padding: 6px 12px;
    }
    
    #google-consent-mode-window-footer {
        flex-wrap: wrap;
        gap: 6px;
    }
    
    #google-consent-mode-window-footer button {
        min-width: auto;
        font-size: 14px;
        width: calc(50% - 3px);
        padding: 10px 0;
    }
}