.cookie-compact {
    position: fixed;
    bottom: 20px;
    left: 20px;
    z-index: 9998;
}

.cookie-toggle {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: #fad1b2;
    border: 2px solid #fad1b2;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.cookie-toggle:hover {
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

/* Modal Overlay */
.cookie-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9999;
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.cookie-modal-overlay.show {
    display: flex;
    opacity: 1;
    align-items: flex-end;
    justify-content: flex-start;
}

/* Cookie Panel */
.cookie-panel {
    background: #fff;
    border-radius: 0;
    max-width: 420px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    margin: 0 0 90px 20px;
}

.cookie-panel-inner {
    display: flex;
    flex-direction: column;
}

/* Header */
.cookie-header-gray {
    background: #fad1b2;
    padding: 12px 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.cookie-lang-selector {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
}

.cookie-lang-selector select {
    background: rgba(255, 255, 255, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 4px;
    padding: 4px 8px;
    font-size: 12px;
    font-weight: 600;
    color: #A6A6A6;
    cursor: pointer;
    outline: none;
}

.cookie-header-gray h3 {
    margin: 0;
    font-size: 16px;
    font-weight: 700;
    color: #A6A6A6 !important;
    text-align: center;
}

.cookie-close {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    width: 24px;
    height: 24px;
    cursor: pointer;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cookie-close svg {
    width: 16px;
    height: 16px;
    color: #A6A6A6;
}

/* Description */
.cookie-description {
    padding: 15px 20px;
    border-bottom: 1px solid #e0e0e0;
}

.cookie-description p {
    margin: 0;
    font-size: 13px;
    line-height: 1.5;
    color: #333;
}

/* Tabs */
.cookie-tabs {
    display: flex;
    background: #f5f5f5;
    border-bottom: 1px solid #ddd;
}

.cookie-tab {
    flex: 1;
    padding: 12px;
    background: none;
    border: none;
    border-bottom: 3px solid transparent;
    font-size: 14px;
    font-weight: 500;
    color: #666;
    cursor: pointer;
    transition: all 0.2s;
}

.cookie-tab.active {
    color: #333;
    border-bottom-color: #fad1b2;
    background: #fff;
}

.cookie-tab:hover {
    background: #fff;
}

/* Tab Content */
.cookie-tab-content {
    display: none;
    flex-direction: column;
}

.cookie-tab-content.active {
    display: flex;
}

/* Select All */
.cookie-select-all {
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #e0e0e0;
    font-size: 14px;
    color: #666;
}

/* Categories */
.cookie-categories {
    flex: 1;
    overflow-y: auto;
}

.cookie-category {
    border-bottom: 1px solid #e0e0e0;
}

.category-header {
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    transition: background 0.2s;
}

.category-header:hover {
    background: transparent;
}

.category-left {
    display: flex;
    align-items: center;
    gap: 10px;
}

.chevron-right {
    width: 16px;
    height: 16px;
    color: #666;
    transition: transform 0.3s;
}

.cookie-category.open .chevron-right {
    transform: rotate(90deg);
}

.category-left strong {
    font-size: 14px;
    color: #A6A6A6 !important;
}

.category-right {
    display: flex;
    align-items: center;
    gap: 10px;
}

.info-icon {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #999;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: bold;
}

/* Green Checkbox */
.cookie-checkbox-green {
    position: relative;
    display: inline-block;
    width: 20px;
    height: 20px;
    cursor: pointer;
}

.cookie-checkbox-green input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
}

.checkmark-green {
    position: absolute;
    top: 0;
    left: 0;
    height: 20px;
    width: 20px;
    background-color: #fff;
    border: 2px solid #ddd;
    border-radius: 3px;
}

.cookie-checkbox-green input:checked~.checkmark-green {
    background-color: #1f1f1d;
    border-color: #1f1f1d;
}

.checkmark-green:after {
    content: "";
    position: absolute;
    display: none;
}

.cookie-checkbox-green input:checked~.checkmark-green:after {
    display: block;
}

.cookie-checkbox-green .checkmark-green:after {
    left: 6px;
    top: 2px;
    width: 5px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.cookie-checkbox-green.disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Category Services */
.category-services {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    padding: 0 20px 0 46px;
}

.cookie-category.open .category-services {
    max-height: 300px;
    padding: 0 20px 15px 46px;
}

.service-item {
    padding: 8px 0;
    font-size: 13px;
    color: #666;
    border-bottom: 1px solid #f0f0f0;
}

.service-item:last-child {
    border-bottom: none;
}

/* Footer */
.cookie-footer {
    padding: 15px 20px;
    background: #f9f9f9;
    border-top: 1px solid #e0e0e0;
}

.cookie-footer p {
    margin: 0;
    font-size: 11px;
    color: #999;
    text-align: center;
}

.cookie-footer a {
    color: #fad1b2;
    text-decoration: none;
}

.cookie-footer a:hover {
    text-decoration: underline;
}

/* Save Button */
.btn-save-settings {
    width: 100%;
    padding: 15px;
    background: #fad1b2;
    border: none;
    font-size: 13px;
    font-weight: 700;
    color: #A6A6A6;
    cursor: pointer;
    transition: background 0.2s;
}

/* History Tab */
.history-empty {
    padding: 40px 20px;
    text-align: center;
    color: #999;
    font-size: 14px;
}

/* Responsive */
@media (max-width: 768px) {
    .cookie-panel {
        width: 95%;
        max-height: 85vh;
    }

    .cookie-compact {
        bottom: 16px;
        left: 16px;
    }

    .cookie-toggle {
        width: 50px;
        height: 50px;
    }
}