/**
 * Cookie Consent Banner Styles – Panel seome.pl
 * @version 2.1.0
 */

/* =========================================================================
   WRAPPER & OVERLAY
   ========================================================================= */

.mso-cc-wrapper {
    position: fixed;
    z-index: 999999;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    font-size: 14px;
    line-height: 1.5;
    opacity: 0;
    transition: opacity 0.4s ease;
    -webkit-font-smoothing: antialiased;
}

.mso-cc-wrapper.mso-cc-visible {
    opacity: 1;
}

.mso-cc-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    z-index: 1;
}

.mso-cc-banner {
    position: relative;
    z-index: 2;
    box-shadow: 0 -4px 30px rgba(0,0,0,0.25);
    max-height: 90vh;
    overflow-y: auto;
}

.mso-cc-banner::-webkit-scrollbar {
    width: 6px;
}
.mso-cc-banner::-webkit-scrollbar-thumb {
    background: rgba(255,255,255,0.2);
    border-radius: 3px;
}

/* =========================================================================
   LAYOUT VARIANTS
   ========================================================================= */

/* Bar Bottom */
.mso-cc-bar-bottom {
    bottom: 0; left: 0; right: 0;
}
.mso-cc-bar-bottom .mso-cc-banner {
    padding: 24px 32px;
    border-radius: 0;
}

/* Bar Top */
.mso-cc-bar-top {
    top: 0; left: 0; right: 0;
}
.mso-cc-bar-top .mso-cc-banner {
    padding: 24px 32px;
    border-radius: 0;
    box-shadow: 0 4px 30px rgba(0,0,0,0.25);
}

/* Popup Center */
.mso-cc-popup-center {
    top: 0; left: 0; right: 0; bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}
.mso-cc-popup-center .mso-cc-banner {
    max-width: 600px;
    width: 100%;
    border-radius: 16px;
    padding: 32px;
}

/* Floating Bottom Left */
.mso-cc-floating-bl {
    bottom: 20px; left: 20px;
}
.mso-cc-floating-bl .mso-cc-banner {
    max-width: 440px;
    width: calc(100vw - 40px);
    border-radius: 16px;
    padding: 24px;
}

/* Floating Bottom Right */
.mso-cc-floating-br {
    bottom: 20px; right: 20px;
}
.mso-cc-floating-br .mso-cc-banner {
    max-width: 440px;
    width: calc(100vw - 40px);
    border-radius: 16px;
    padding: 24px;
}

/* =========================================================================
   BANNER CONTENT
   ========================================================================= */

.mso-cc-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}

.mso-cc-logo {
    max-height: 28px;
    width: auto;
    flex-shrink: 0;
}

.mso-cc-title {
    font-size: 18px;
    font-weight: 700;
    line-height: 1.3;
}

.mso-cc-desc {
    font-size: 13px;
    opacity: 0.85;
    line-height: 1.6;
    margin: 6px 0 12px;
}

.mso-cc-privacy-link {
    font-size: 12px;
    text-decoration: underline;
    opacity: 0.8;
    transition: opacity 0.2s;
    display: inline-block;
    margin-bottom: 8px;
}
.mso-cc-privacy-link:hover {
    opacity: 1;
}

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

.mso-cc-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 6px;
}

.mso-cc-btn {
    padding: 11px 24px;
    border: none;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
    line-height: 1;
    font-family: inherit;
}

.mso-cc-btn:hover {
    transform: translateY(-1px);
    filter: brightness(1.1);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.mso-cc-btn:active {
    transform: translateY(0);
}

.mso-cc-btn-settings {
    background: transparent !important;
}
.mso-cc-btn-settings:hover {
    filter: brightness(1.3);
}

/* =========================================================================
   DETAILS VIEW
   ========================================================================= */

.mso-cc-detail-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    gap: 12px;
}

.mso-cc-back-btn {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    font-family: inherit;
    padding: 4px 8px;
    transition: opacity 0.2s;
    white-space: nowrap;
}
.mso-cc-back-btn:hover {
    opacity: 0.8;
}

/* =========================================================================
   CATEGORIES
   ========================================================================= */

.mso-cc-category {
    padding: 14px 0;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}
.mso-cc-category:last-of-type {
    border-bottom: none;
}

.mso-cc-cat-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}

.mso-cc-cat-info {
    display: flex;
    align-items: center;
    gap: 8px;
}

.mso-cc-cat-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    flex-shrink: 0;
}

.mso-cc-cat-title {
    font-weight: 600;
    font-size: 14px;
}

.mso-cc-cat-count {
    font-size: 11px;
    opacity: 0.5;
}

.mso-cc-cat-desc {
    font-size: 12px;
    opacity: 0.65;
    margin-top: 4px;
    padding-left: 18px;
    line-height: 1.5;
}

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

.mso-cc-toggle {
    position: relative;
    display: inline-block;
    width: 44px;
    height: 24px;
    flex-shrink: 0;
}

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

.mso-cc-toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(255,255,255,0.15);
    border-radius: 24px;
    transition: background 0.3s;
}

.mso-cc-toggle-slider::before {
    content: '';
    position: absolute;
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background: #fff;
    border-radius: 50%;
    transition: transform 0.3s;
}

.mso-cc-toggle input:checked + .mso-cc-toggle-slider {
    background: #22c55e;
}

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

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

/* =========================================================================
   COOKIE LIST (expandable)
   ========================================================================= */

.mso-cc-cookie-list-toggle {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 11px;
    font-weight: 600;
    margin-top: 6px;
    padding: 2px 0 2px 18px;
    font-family: inherit;
    transition: opacity 0.2s;
}
.mso-cc-cookie-list-toggle:hover {
    opacity: 0.8;
}

.mso-cc-cookie-list {
    margin-top: 8px;
    padding-left: 18px;
}

.mso-cc-cookie-item {
    display: grid;
    grid-template-columns: minmax(120px, 1fr) minmax(80px, auto) 2fr;
    gap: 8px;
    padding: 6px 0;
    border-bottom: 1px solid rgba(255,255,255,0.04);
    font-size: 11px;
    align-items: start;
}

.mso-cc-ck-name {
    font-family: 'SF Mono', 'Fira Code', 'Consolas', monospace;
    font-weight: 600;
    word-break: break-all;
    font-size: 11px;
}

.mso-cc-ck-provider {
    opacity: 0.7;
    font-size: 11px;
}

.mso-cc-ck-desc {
    opacity: 0.55;
    font-size: 11px;
    line-height: 1.4;
}

/* =========================================================================
   REOPEN BUTTON
   ========================================================================= */

.mso-cc-reopen {
    position: fixed;
    z-index: 999998;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: none;
    background: #1e293b;
    color: #fff;
    font-size: 22px;
    cursor: pointer;
    box-shadow: 0 4px 16px rgba(0,0,0,0.3);
    transition: all 0.3s ease;
    opacity: 0;
    transform: scale(0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.mso-cc-reopen:hover {
    transform: scale(1.1) !important;
    box-shadow: 0 6px 24px rgba(0,0,0,0.4);
}

.mso-cc-reopen-visible {
    opacity: 1;
    transform: scale(1);
}

.mso-cc-reopen-bottom-left {
    bottom: 20px;
    left: 20px;
}

.mso-cc-reopen-bottom-right {
    bottom: 20px;
    right: 20px;
}

/* =========================================================================
   RESPONSIVE
   ========================================================================= */

@media (max-width: 768px) {
    .mso-cc-bar-bottom .mso-cc-banner,
    .mso-cc-bar-top .mso-cc-banner {
        padding: 18px 16px;
    }

    .mso-cc-popup-center .mso-cc-banner {
        padding: 22px 18px;
        border-radius: 12px;
    }

    .mso-cc-floating-bl,
    .mso-cc-floating-br {
        bottom: 0 !important;
        left: 0 !important;
        right: 0 !important;
    }
    .mso-cc-floating-bl .mso-cc-banner,
    .mso-cc-floating-br .mso-cc-banner {
        max-width: 100%;
        width: 100%;
        border-radius: 12px 12px 0 0;
    }

    .mso-cc-title {
        font-size: 16px;
    }

    .mso-cc-desc {
        font-size: 12px;
    }

    .mso-cc-buttons {
        flex-direction: column;
    }

    .mso-cc-btn {
        width: 100%;
        text-align: center;
        padding: 12px 16px;
    }

    .mso-cc-cookie-item {
        grid-template-columns: 1fr;
        gap: 2px;
    }

    .mso-cc-detail-header {
        flex-direction: column-reverse;
        align-items: flex-start;
    }
}

@media (max-width: 480px) {
    .mso-cc-popup-center {
        padding: 10px;
    }

    .mso-cc-reopen {
        width: 42px;
        height: 42px;
        font-size: 18px;
    }

    .mso-cc-reopen-bottom-left {
        bottom: 12px;
        left: 12px;
    }

    .mso-cc-reopen-bottom-right {
        bottom: 12px;
        right: 12px;
    }
}
