/* 🔥 IZOLÁCIA */
#ss-cookie-overlay,
#ss-cookie-overlay * {
    box-sizing: border-box;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
}

/* základ */
#ss-cookie-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.45);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;

    font-size: 14px;
    line-height: 1.5;
    color: #444;
}

/* nadpis */
#ss-cookie-overlay h4 {
    font-size: 16px;
    line-height: 1.4;
    font-weight: 600;
    color: #1a1a1a;
    margin: 0 0 8px 0;
}

/* text override */
#ss-cookie-overlay p {
    font-size: 14px !important;
    line-height: 1.5 !important;
    color: #444 !important;
    margin: 8px 0;
}

/* 🔥 MODAL */
.ss-cookie-modal {
    background: #fff;
    width: 90%;
    max-width: 600px;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.2);
    overflow: hidden;

    display: flex;
    flex-direction: column;

    max-height: 90vh; /* 🔥 FIX PRE MOBILE */
}

/* tabs */
.ss-cookie-tabs {
    display: flex;
    border-bottom: 1px solid #eee;
}

.ss-tab {
    flex: 1;
    padding: 12px;
    border: none;
    background: none;
    cursor: pointer;
    font-weight: 500;
    color: #666;
}

.ss-tab.active {
    border-bottom: 2px solid #9288F8;
    color: #9288F8;
}

/* 🔥 SCROLLABLE CONTENT */
.ss-cookie-content {
    padding: 16px;
    overflow-y: auto;
    max-height: calc(90vh - 120px);
    -webkit-overflow-scrolling: touch;
}

.ss-tab-pane {
    display: none;
}

.ss-tab-pane.active {
    display: block;
}

/* 🔥 ROW FIX */
.ss-cookie-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    margin: 12px 0;
}

.ss-cookie-row > div {
    flex: 1;
    min-width: 0;
}

/* 🔥 TOGGLE SWITCH */
.ss-switch {
    position: relative;
    display: inline-block;
    width: 42px;
    height: 22px;
    flex-shrink: 0;
}

.ss-switch input {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
    margin: 0;
}

.ss-slider {
    position: absolute;
    inset: 0;
    background: #ddd;
    border-radius: 999px;
    transition: 0.2s;
    pointer-events: none;
}

.ss-slider::before {
    content: "";
    position: absolute;
    height: 16px;
    width: 16px;
    left: 3px;
    top: 3px;
    background: #fff;
    border-radius: 50%;
    transition: 0.2s;
}

.ss-switch input:checked + .ss-slider {
    background: #9288F8;
}

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

.ss-switch input:disabled + .ss-slider {
    opacity: 0.5;
    cursor: not-allowed;
}

/* buttons */
.ss-cookie-actions {
    display: flex;
    gap: 8px;
    padding: 16px;
    border-top: 1px solid #eee;
}

.ss-cookie-actions button {
    flex: 1;
    padding: 10px;
    border-radius: 8px;
    border: 1px solid #ddd;
    background: #f9f9f9;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.2s ease;
}

.ss-cookie-actions button:hover {
    background: #f3f4f6;
}

/* primary */
.ss-cookie-actions .primary {
    background: #9288F8;
    color: white;
    border: none;
}

.ss-cookie-actions .primary:hover {
    background: #7c72e6;
}

/* ghost */
.ss-cookie-actions .ghost {
    background: white;
    border: 1px solid #9288F8;
    color: #9288F8;
}

/* 🔥 FIX TLAČIDLA DOLE */
.ss-cookie-consent-settings-btn {
    position: fixed;
    bottom: 20px;
    left: 20px;

    background: #fff;
    border: 1px solid #ddd;
    border-radius: 999px;

    padding: 8px 14px;
    font-size: 13px;
    font-weight: 500;

    display: flex;
    align-items: center;
    gap: 6px;

    box-shadow: 0 6px 18px rgba(0,0,0,0.12);

    cursor: pointer;
    z-index: 9999;

    transition: all 0.2s ease;
}

.ss-cookie-consent-settings-btn:hover {
    background: #f9f9f9;
    transform: translateY(-1px);
}

/* 🔥 SCROLL LOCK */
body.ss-cookie-open {
    overflow: hidden;
    touch-action: none;
}

/* 📱 EXTRA MOBILE */
@media (max-width: 600px) {
    .ss-cookie-modal {
        width: 95%;
        max-height: 85vh;
        border-radius: 10px;
    }
}