/* Cookie Consent Modal Styles */
:root {
    --cc-primary: #efbc27;
    --cc-primary-hover: #d7a915;
    --cc-text: #233a42;
    --cc-text-light: #506872;
    --cc-bg: #fff;
    --cc-border: #e0e0e0;
    --cc-overlay: rgba(0, 0, 0, 0.5);
}

/* Overlay */
.cc-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--cc-overlay);
    backdrop-filter: blur(3px);
    z-index: 999998;
    display: none;
}

.cc-overlay.is-active {
    display: block;
}

/* Modal Container */
.cc-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: var(--cc-bg);
    border-radius: 8px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    z-index: 999999;
    max-width: 700px;
    width: 95%;
    max-height: 90vh;
    overflow: hidden;
    display: none;
    font-family: Arial, Helvetica, sans-serif;
}

.cc-modal.is-active {
    display: flex;
    flex-direction: column;
}

/* Modal Header */
.cc-modal-header {
    padding: 15px 20px;
    border-bottom: 1px solid var(--cc-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-shrink: 0;
}

.cc-modal-header img {
    width: min(220px, calc(100% - 42px));
    height: auto;
}

.cc-modal-close {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #999;
    padding: 5px;
    line-height: 1;
}

.cc-modal-close:hover {
    color: #333;
}

/* Modal Body */
.cc-modal-body {
    padding: 25px 30px;
    overflow-y: auto;
    flex-grow: 1;
}

.cc-modal-title {
    font-size: 22px;
    font-weight: 700;
    margin: 0 0 15px 0;
    color: var(--cc-text);
}

.cc-modal-text {
    font-size: 14px;
    line-height: 1.6;
    color: var(--cc-text-light);
    margin-bottom: 10px;
}

.cc-modal-text a {
    color: var(--cc-primary);
    text-decoration: underline;
}

.cc-modal-text strong {
    color: var(--cc-primary);
}

/* Modal Footer */
.cc-modal-footer {
    padding: 20px 30px;
    border-top: 1px solid var(--cc-border);
    display: flex;
    justify-content: flex-start;
    gap: 10px;
    flex-wrap: wrap;
    flex-shrink: 0;
    background: #f9f9f9;
}

/* Buttons */
.cc-btn {
    min-width: 104px;
    min-height: 38px;
    padding: 0 18px;
    border-radius: 5px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
    text-decoration: none;
    display: inline-block;
    text-align: center;
    line-height: 39px;
}

.cc-btn-primary {
    background: var(--cc-primary);
    color: #fff;
}

.cc-btn-primary:hover {
    background: var(--cc-primary-hover);
}

.cc-btn-secondary {
    background: #e0e0e0;
    color: var(--cc-text);
}

.cc-btn-secondary:hover {
    background: #d0d0d0;
}

.cc-btn-outline {
    background: transparent;
    border: 2px solid var(--cc-primary);
    color: var(--cc-primary);
}

.cc-btn-outline:hover {
    background: var(--cc-primary);
    color: #fff;
}

/* Settings Panel */
.cc-settings-section {
    margin-top: 20px;
}

.cc-settings-title {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--cc-text);
}

/* Cookie Category Items */
.cc-category {
    border: 1px solid var(--cc-border);
    margin-bottom: -1px;
}

.cc-category:first-child {
    border-radius: 5px 5px 0 0;
}

.cc-category:last-child {
    border-radius: 0 0 5px 5px;
}

.cc-category-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    cursor: pointer;
    background: #fff;
    transition: background 0.2s ease;
}

.cc-category-header:hover {
    background: #f9f9f9;
}

.cc-category-name {
    font-weight: 600;
    font-size: 15px;
    color: var(--cc-text);
    display: flex;
    align-items: center;
    gap: 10px;
}

.cc-category-arrow {
    transition: transform 0.3s ease;
    color: #999;
}

.cc-category.is-open .cc-category-arrow {
    transform: rotate(90deg);
}

.cc-category-controls {
    display: flex;
    align-items: center;
    gap: 15px;
}

.cc-category-status {
    color: #559a66;
    font-size: 13px;
    font-weight: 600;
}

/* Toggle Switch */
.cc-toggle {
    position: relative;
    width: 44px;
    height: 24px;
}

.cc-toggle input {
    opacity: 0;
    width: 0;
    height: 0;
}

.cc-toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #d0d4d9;
    transition: 0.3s;
    border-radius: 24px;
}

.cc-toggle-slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: 0.3s;
    border-radius: 50%;
}

.cc-toggle input:checked + .cc-toggle-slider {
    background-color: var(--cc-primary);
}

.cc-toggle input:checked + .cc-toggle-slider:before {
    transform: translateX(20px);
}

.cc-toggle input:disabled + .cc-toggle-slider {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Category Content */
.cc-category-content {
    display: none;
    padding: 20px;
    background: #f7f7f9;
    font-size: 13px;
    line-height: 1.6;
    color: var(--cc-text-light);
    border-top: 1px solid var(--cc-border);
}

.cc-category.is-open .cc-category-content {
    display: block;
}

.cc-category-content a {
    color: var(--cc-primary);
}

/* Responsive */
@media (max-width: 600px) {
    .cc-modal {
        top: auto;
        right: 15px;
        bottom: 15px;
        left: 15px;
        width: auto;
        max-width: none;
        height: auto;
        max-height: calc(100vh - 30px);
        border-radius: 18px;
        transform: none;
    }

    .cc-modal-header {
        padding: 16px 17px 14px;
    }

    .cc-modal-header img {
        width: min(230px, calc(100% - 46px));
    }

    .cc-modal-body {
        padding: 20px 17px;
    }

    .cc-modal-footer {
        padding: 17px;
        gap: 10px;
        flex-wrap: nowrap;
    }

    .cc-btn {
        flex: 1 1 0;
        min-width: 0;
        min-height: 38px;
        padding: 0 8px;
        font-size: 12px;
        white-space: nowrap;
    }
}

/* Floating settings button (shown after consent) */
.cc-settings-btn {
    position: fixed;
    bottom: 20px;
    left: 20px;
    background: var(--cc-primary);
    color: #fff;
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    cursor: pointer;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    z-index: 99999;
    display: none;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s ease;
}

.cc-settings-btn:hover {
    transform: scale(1.1);
}

.cc-settings-btn.is-visible {
    display: none;
}

.cc-settings-btn svg {
    width: 24px;
    height: 24px;
}
