/* Cookie Consent Banner Styles */
.acc-banner {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    padding: 20px;
    max-width: 90%;
    width: 500px;
    z-index: 999997;
}

.acc-banner-content {
    font-size: 14px;
    line-height: 1.5;
    color: #333;
    margin-bottom: 15px;
}

.acc-banner-buttons {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.acc-banner-buttons-row {
    display: flex;
    gap: 10px;
    justify-content: space-between;
}

.acc-banner-settings-link {
    text-align: center;
}

.acc-settings-link {
    color: #a6937f;
    text-decoration: underline;
    font-size: 14px;
    cursor: pointer;
    background: none;
    border: none;
    padding: 0;
    font-family: inherit;
}

.acc-settings-link:hover {
    color: #8b7a68;
}

.acc-banner .acc-btn {
    padding: 8px 16px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    border: none;
    transition: all 0.2s ease;
}

.acc-banner .acc-btn-primary {
    background: #A6937F;
    color: #fff;
}

.acc-banner .acc-btn-primary:hover {
    background: #8B735B;
}

.acc-banner .acc-btn-secondary {
    background: #f5f5f5;
    color: #333;
}

.acc-banner .acc-btn-secondary:hover {
    background: #e5e5e5;
}

/* Modal Styles */
.acc-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000000;
    overflow-y: auto;
}

.acc-modal-content {
    background: #fff;
    width: 90%;
    max-width: 900px;
    margin: 40px auto;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    position: relative;
    font-size: 14px;
    line-height: 1.4;
}

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

.acc-modal-title {
    font-size: 18px;
    font-weight: 600;
    color: #4a3c31;
    margin: 0;
}

.acc-modal-close {
    background: none;
    border: none;
    font-size: 24px;
    color: #666;
    cursor: pointer;
    padding: 0;
    line-height: 1;
}

.acc-modal-body {
    padding: 20px;
}

.acc-cookie-groups {
    margin-bottom: 30px;
}

.acc-cookie-group {
    margin-bottom: 20px;
    padding: 15px;
    border: 1px solid #eee;
    border-radius: 6px;
}

.acc-cookie-group-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.acc-cookie-group-title {
    font-size: 16px;
    font-weight: 500;
    color: #4a3c31;
    margin: 0;
}

.acc-cookie-group-description {
    color: #666;
    margin: 0 0 15px 0;
}

.acc-cookie-group-toggle {
    position: relative;
    display: inline-block;
    width: 40px;
    height: 20px;
}

.acc-cookie-group-toggle input {
    opacity: 0;
    width: 0;
    height: 0;
}

.acc-cookie-group-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: .4s;
    border-radius: 20px;
}

.acc-cookie-group-slider:before {
    position: absolute;
    content: "";
    height: 16px;
    width: 16px;
    left: 2px;
    bottom: 2px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}

input:checked + .acc-cookie-group-slider {
    background-color: #a6937f;
}

input:checked + .acc-cookie-group-slider:before {
    transform: translateX(20px);
}

/* Stiluri pentru toggle-ul categoriei "Necesare" (disabled) */
input:disabled + .acc-cookie-group-slider {
    background-color: #e0dedc;
    cursor: not-allowed;
}

input:disabled:checked + .acc-cookie-group-slider {
    background-color: #e0dedc;
}

input:disabled + .acc-cookie-group-slider:before {
    background-color: #f5f5f5;
    border: 1px solid #ccc;
}

.acc-modal-footer {
    padding: 20px;
    border-top: 1px solid #eee;
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

/* Button Styles */
.acc-button {
    display: inline-block;
    padding: 8px 16px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
}

.acc-button-primary {
    background-color: #a6937f;
    color: #fff;
}

.acc-button-primary:hover {
    background-color: #8b7a68;
}

.acc-button-secondary {
    background-color: transparent;
    color: #a6937f;
    border: 1px solid #a6937f;
}

.acc-button-secondary:hover {
    background-color: rgba(166, 147, 127, 0.1);
}

/* Reject Button */
.acc-button-reject {
    background-color: #f5f5f5 !important;
    color: #666666 !important;
    border: 1px solid #cccccc !important;
}

.acc-button-reject:hover {
    background-color: #e8e8e8 !important;
    border-color: #b3b3b3 !important;
}

/* Cookie List Table Styles */
.acc-cookie-list {
    margin: 2em 0;
    overflow-x: auto;
}

.acc-cookie-table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    font-size: 14px;
}

.acc-cookie-table th,
.acc-cookie-table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.acc-cookie-table th {
    background-color: #f8f4f1;
    color: #4a3c31;
    font-weight: 600;
}

.acc-cookie-table tr:hover {
    background-color: #fafafa;
}

/* Cookie Type Badges */
.acc-cookie-type-badge {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
}

.acc-cookie-type-badge.necesar {
    background-color: #e9f5e9;
    color: #2e7d32;
}

.acc-cookie-type-badge.analytics {
    background-color: #e3f2fd;
    color: #1565c0;
}

.acc-cookie-type-badge.marketing {
    background-color: #fff8e1;
    color: #ff9800;
    
}

.acc-cookie-type-badge.funcțional {
    background-color: #f5f5f5;
    color: #757575;
}

/* Priority Highlighting */
.acc-cookie-type-necesar {
    background-color: rgba(233, 245, 233, 0.1);
}

.acc-cookie-type-analytics {
    background-color: rgba(227, 242, 253, 0.1);
}

.acc-cookie-type-marketing {
    background-color: rgba(252, 228, 236, 0.1);
}

/* Banner initial - fundal maro */
.acc-banner-initial {
    background: #b19b82;
    color: #2d2216;
    border-radius: 0;
    box-shadow: none;
    padding: 32px 24px 32px 32px;
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    justify-content: space-between;
    gap: 32px;
    font-size: 1.1em;
}
.acc-banner-initial h2 {
    font-size: 1.3em;
    font-weight: 700;
    margin-bottom: 12px;
}
.acc-banner-initial p {
    margin: 0 0 12px 0;
    color: #2d2216;
}
.acc-banner-actions {
    display: flex;
    gap: 16px;
    align-items: center;
}
.acc-banner-initial .acc-button {
    background: transparent;
    border: 1.5px solid #8B735B;
    color: #2d2216;
    border-radius: 10px;
    padding: 12px 32px;
    font-size: 1em;
    font-weight: 500;
    transition: background 0.2s, color 0.2s;
}
.acc-banner-initial .acc-button:hover {
    background: #8B735B;
    color: #fff;
}
.acc-link-settings {
    background: none;
    border: none;
    color: #2d2216;
    font-weight: 600;
    font-size: 1em;
    cursor: pointer;
    text-decoration: underline;
    padding: 0 8px;
}
.acc-link-settings:hover {
    color: #8B735B;
}
.acc-link-policy {
    color: #2d2216;
    text-decoration: underline;
}
.acc-close-banner {
    background: none;
    border: none;
    font-size: 1.5em;
    color: #2d2216;
    cursor: pointer;
    position: absolute;
    top: 16px;
    right: 24px;
}

/* Floating Button */
.acc-floating-btn {
    position: fixed;
    bottom: 20px;
    left: 20px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: #A6937F;
    border: none;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 999998;
    transition: all 0.3s ease, opacity 0.3s ease, visibility 0.3s ease;
    padding: 0;
    opacity: 0;
    visibility: hidden;
}

.acc-floating-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.25);
    background: #8B735B;
}

.acc-floating-btn img {
    width: 24px;
    height: 24px;
    filter: brightness(0) invert(1); /* Make the icon white */
    transition: transform 0.3s ease;
}

.acc-floating-btn:hover img {
    transform: rotate(45deg);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .acc-banner {
        bottom: 0;
        left: 0;
        right: 0;
        transform: none;
        width: 100%;
        max-width: 100%;
        border-radius: 8px 8px 0 0;
        padding: 15px;
    }

    .acc-banner-content {
        font-size: 13px;
        margin-bottom: 12px;
    }

    .acc-banner-buttons {
        flex-direction: column;
        gap: 8px;
    }

    .acc-banner .acc-btn {
        width: 100%;
        padding: 10px;
        font-size: 13px;
        text-align: center;
    }

    .acc-floating-btn {
        bottom: 15px;
        left: 15px;
        width: 40px;
        height: 40px;
    }

    .acc-floating-btn img {
        width: 20px;
        height: 20px;
    }
}

/* Banner mic, centrat */
.acc-banner-small {
    position: fixed;
    top: 32px;
    left: 50%;
    transform: translateX(-50%);
    width: 380px;
    max-width: 95vw;
    min-width: 220px;
    background: #f7f3ef;
    color: #2d2216;
    border-radius: 16px;
    box-shadow: 0 4px 32px rgba(0,0,0,0.13);
    z-index: 1000002;
    padding: 18px 18px 18px 18px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-size: 0.98em;
    text-align: center;
}
.acc-banner-small-content h2 {
    font-size: 1.1em;
    font-weight: 700;
    margin-bottom: 8px;
}
.acc-banner-small-content p {
    font-size: 0.98em;
    margin-bottom: 10px;
}
.acc-banner-small .acc-banner-actions {
    display: flex;
    gap: 8px;
    justify-content: center;
    margin-top: 6px;
}
.acc-banner-small .acc-button,
.acc-banner-small .acc-link-settings {
    font-size: 0.95em;
    padding: 7px 16px;
    border-radius: 7px;
    min-width: unset;
}
.acc-banner-small .acc-link-settings {
    font-size: 0.95em;
    padding: 7px 10px;
    background: none;
    border: none;
    color: #8B735B;
    text-decoration: underline;
    cursor: pointer;
}
.acc-banner-small .acc-link-settings:hover {
    color: #2d2216;
}
.acc-banner-small .acc-close-banner {
    position: absolute;
    top: 8px;
    right: 12px;
    font-size: 1.2em;
    color: #8B735B;
}
@media (max-width: 500px) {
    .acc-banner-small {
        width: 98vw;
        left: 1vw;
        transform: none;
        padding: 10px 2vw 10px 2vw;
    }
    .acc-banner-small-content h2 {
        font-size: 1em;
    }
    .acc-banner-small-content p {
        font-size: 0.93em;
    }
}

/* Cookie Group Details */
.acc-cookie-group-title-wrapper {
    display: flex;
    align-items: center;
    gap: 10px;
}

.acc-cookie-group-toggle-details {
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
}

.acc-arrow {
    display: inline-block;
    transition: transform 0.3s ease;
    font-size: 12px;
    color: inherit;
}

.acc-arrow.expanded {
    transform: rotate(180deg);
}

.acc-cookie-details {
    margin-top: 15px;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    padding-top: 15px;
}

.acc-cookie-details-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
    font-size: 13px;
}

.acc-cookie-details-table th,
.acc-cookie-details-table td {
    padding: 8px;
    text-align: left;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.acc-cookie-details-table th {
    font-family: 'p-bold', sans-serif;
    background: rgba(0, 0, 0, 0.05);
}

.acc-cookie-details-table td {
    font-family: 'p-regular', sans-serif;
}

/* Responsive table */
@media (max-width: 768px) {
    .acc-cookie-details-table {
        display: block;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .acc-cookie-details-table th,
    .acc-cookie-details-table td {
        min-width: 120px;
    }
}

/* Banner Positioning */
.acc-banner-top {
    top: 0;
    left: 50%;
    right: auto;
    bottom: auto;
    transform: translateX(-50%);
    position: fixed;
    z-index: 999997;
}

.acc-banner-bottom {
    bottom: 20px;
    left: 50%;
    right: auto;
    top: auto;
    transform: translateX(-50%);
    position: fixed;
    z-index: 999997;
}

@media (max-width: 768px) {
    .acc-banner-top {
        top: 0;
        left: 0;
        right: 0;
        bottom: auto;
        transform: none;
        width: 100%;
        max-width: 100%;
        border-radius: 0 0 8px 8px;
        padding: 15px;
    }
    .acc-banner-bottom {
        bottom: 0;
        left: 0;
        right: 0;
        top: auto;
        transform: none;
        width: 100%;
        max-width: 100%;
        border-radius: 8px 8px 0 0;
        padding: 15px;
    }
} 