/* ============================================================
   OVERLAY
============================================================ */

.cookies_overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    padding: 20px;
}

/* ============================================================
   MODAL
============================================================ */

.cookies_modal {
    width: 720px;
    max-width: 100%;
    max-height: 90vh;
    background: #ffffff;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
}

/* ============================================================
   HEADER
============================================================ */

.cookies_header {
    padding: 24px 28px;
    border-bottom: 1px solid #e6e6e6;
}

.cookies_title {
    margin: 0;
    font-size: 20px;
    font-weight: 600;
    color: #111;
}

/* ============================================================
   BODY
============================================================ */

.cookies_body {
    padding: 24px 28px;
    overflow-y: auto;
    font-size: 14px;
    color: #333;
    line-height: 1.55;
}

/* ============================================================
   BASIC VIEW
============================================================ */

.cookies_intro {
    display: flex;
    justify-content: space-between;
    gap: 32px;
}

.cookies_intro_text {
    flex: 1;
}

.cookies_intro_text p {
    margin: 0 0 14px 0;
}

.cookies_intro_text a {
    color: #0078ff;
    text-decoration: none;
}

.cookies_intro_text a:hover {
    text-decoration: underline;
}

.cookies_icon {
    width: 80px;
    height: 80px;
    flex-shrink: 0;
    opacity: 0.85;
}

/* ============================================================
   SETTINGS SECTION
============================================================ */

.cookies_section_header {
    font-weight: 600;
    font-size: 15px;
    margin: 24px 0 10px 0;
}

.cookies_section_desc {
    font-size: 13px;
    color: #555;
    margin-bottom: 10px;
}

/* ============================================================
   PREFERENCE BLOCK
============================================================ */

.cookies_pref {
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    margin-top: 14px;
    background: #fafafa;
    transition: border 0.2s ease;
}

.cookies_pref:hover {
    border-color: #d0d0d0;
}

.cookies_pref_header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 18px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
}

.cookies_pref_controls {
    display: flex;
    align-items: center;
    gap: 14px;
}

/* ============================================================
   EXPAND CONTENT
============================================================ */

.cookies_pref_content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    padding: 0 18px;
    font-size: 13px;
    color: #555;
}

.cookies_pref.cookies_open .cookies_pref_content {
    max-height: 300px;
    padding-bottom: 16px;
}

/* ============================================================
   TOGGLE
============================================================ */

.cookies_toggle {
    width: 44px;
    height: 24px;
    border-radius: 50px;
    background: #c9c9c9;
    border: none;
    position: relative;
    cursor: pointer;
    transition: background 0.2s ease;
}

.cookies_toggle:focus {
    outline: none;
}

.cookies_toggle::after {
    content: "";
    position: absolute;
    width: 20px;
    height: 20px;
    background: #ffffff;
    border-radius: 50%;
    top: 2px;
    left: 2px;
    transition: transform 0.2s ease;
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}

.cookies_toggle_on {
    background: #00b050;
}

.cookies_toggle_on::after {
    transform: translateX(20px);
}

.cookies_toggle[disabled] {
    background: #bdbdbd;
    cursor: not-allowed;
}

/* ============================================================
   FOOTER
============================================================ */

.cookies_footer {
    padding: 18px 28px;
    border-top: 1px solid #e6e6e6;
    display: flex;
    justify-content: flex-end;
    gap: 14px;
    background: #fafafa;
}

.cookies_footer_basic {
    border-top: 1px solid #e6e6e6;
    margin-top: 20px;
}

/* ============================================================
   BUTTONS
============================================================ */

.cookies_btn_primary {
    background: #111;
    color: #ffffff;
    padding: 10px 20px;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: background 0.2s ease, transform 0.05s ease;
}

.cookies_btn_primary:hover {
    background: #000;
}

.cookies_btn_primary:active {
    transform: scale(0.98);
}

.cookies_btn_secondary {
    background: transparent;
    border: none;
    cursor: pointer;
    font-size: 14px;
    color: #333;
    padding: 10px 14px;
}

.cookies_btn_secondary:hover {
    text-decoration: underline;
}
