/*
 * Vlastní styly pro Silktide Cookie Consent Manager
 * Přizpůsobeno vzhledu webu Masáže Tomáš Šobr
 */

#silktide-wrapper {
    --primaryColor: #4BC0C8;
    --backgroundColor: #ffffff;
    --textColor: #333333;
    --backdropBackgroundColor: rgba(0, 0, 0, 0.6);
    --focus: 0 0 0 2px #ffffff, 0 0 0 4px #4BC0C8;
    --cookieIconColor: #4BC0C8;
    --cookieIconBackgroundColor: #ffffff;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

#silktide-banner,
#silktide-modal {
    border: 1px solid #e0e0e0;
    box-shadow: 0 4px 12px rgba(75, 192, 200, 0.15);
    border-radius: 8px;
    max-width: 600px;
}

/* Hlavní tlačítko "Přijmout vše" */
#silktide-wrapper .st-button.st-button--primary {
    background-color: #4BC0C8;
    border-color: #4BC0C8;
    color: #ffffff;
    transition: all 0.3s ease;
    font-weight: 600;
    padding: 10px 24px;
}

#silktide-wrapper .st-button.st-button--primary:hover {
    background-color: #3aa3ab;
    border-color: #3aa3ab;
    box-shadow: 0 2px 8px rgba(58, 163, 171, 0.3);
}

/* Sekundární tlačítka (Odmítnout, Nastavení) */
#silktide-wrapper .st-button.st-button--secondary,
#silktide-banner .preferences {
    background-color: #f9f9f9;
    color: #333333;
    border: 1px solid #d0d0d0;
    font-weight: 500;
    padding: 10px 24px;
    transition: all 0.3s ease;
}

#silktide-wrapper .st-button.st-button--secondary:hover,
#silktide-banner .preferences:hover {
    background-color: #e8f4f5;
    color: #4BC0C8;
    border-color: #4BC0C8;
}

/* Přepínače v modálním okně */
#silktide-modal .switch input:checked + .switch__pill {
    background: #4BC0C8;
}

/* Cookie Icon - ikona v rohu */
#silktide-cookie-icon {
    background-color: #ffffff;
    border: 2px solid #4BC0C8;
    box-shadow: 0 4px 12px rgba(75, 192, 200, 0.2);
    transition: all 0.3s ease;
    border-radius: 50%;
}

#silktide-cookie-icon svg {
    fill: #4BC0C8;
    transition: fill 0.3s ease;
}

#silktide-cookie-icon:hover {
    background-color: #4BC0C8;
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(75, 192, 200, 0.3);
}

#silktide-cookie-icon:hover svg {
    fill: #ffffff;
}

/* Text ve zpravě */
#silktide-banner p,
#silktide-modal p {
    color: #333333;
    line-height: 1.6;
}

#silktide-banner h2,
#silktide-modal h2 {
    color: #333333;
    font-weight: 600;
}

/* Přepínače - label text */
#silktide-modal .cookie-type-name,
#silktide-modal .cookie-type-description {
    color: #333333;
}

/* ===== PLACEHOLDER PRO BLOKOVANÉ IFRAMY ===== */

.iframe-cookie-placeholder {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #f9f9f9 0%, #f5f5f5 100%);
    border-radius: 8px;
    z-index: 1000;
    flex-direction: column;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    pointer-events: auto;
}

/* Zákaz interakce s iframem bez src atributu */
iframe:not([src]) {
    pointer-events: none;
}

.iframe-cookie-placeholder .text-center {
    max-width: 400px;
    animation: slideIn 0.3s ease-out;
}

.iframe-cookie-placeholder h5 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    letter-spacing: -0.3px;
}

.iframe-cookie-placeholder p {
    font-size: 0.95rem;
    line-height: 1.6;
    color: #666666;
}

.iframe-cookie-placeholder svg {
    display: block;
    margin: 0 auto;
}

.iframe-cookie-placeholder .btn {
    margin-top: 0.5rem;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}