/* assets/css/sf-cookie.css */

.sf-cookie-banner {
    background-color: #282c34;
    color: #FFFFFF;
    font-size: 14px;
    z-index: 9999;
    padding: 20px 10px;
}

.sf-cookie-banner hr {
    background-color: #ccc;
    border: 0;
    height: 1px;
    border-radius: 1px;
}

.sf-cookie-content {
    max-width: 850px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    padding: 20px;
}

.sf-cookie-content p {
    flex: 1 1 400px;
    margin: 0;
    line-height: 1.5;
}

.sf-cookie-banner .sf-cookie-title {
    font-size: 20px;
    font-weight:bold;
    /* border buttom */
    border-bottom: 2px solid #ccc;
    padding-bottom: 8px;
    margin-bottom: 13px;
}
.sf-cookie-banner .sf-cookie-description {

}

#sf-cookie-mini .sf-cookie-mini-description {
    margin-bottom: 12px;
}
#sf-cookie-mini .sf-cookie-mini-title {
    font-weight: 600;
    font-size:18px;
}

.sf-cookie-content a {
    color: #61dafb;
    text-decoration: underline;
}

.sf-cookie-buttons {
    display: flex;
    gap: 10px;
    margin-top: 15px;
    margin-left: auto;
    margin-right: auto;
    width: 100%;
}

.sf-cookie-buttons button {
    flex: 1 1 0; /* nimmt gleichmäßig Platz ein */
    min-width: 0; /* verhindert Overflow */
}

.sf-cookie-btn {
    padding: 8px 16px;
    border: none;
    cursor: pointer;
    font-size: 14px;
    border-radius: 4px;
}

.sf-cookie-btn-accept {
    background-color: #4CAF50;
    color: #fff;
}

.sf-cookie-btn-decline {
    background-color: #f44336;
    color: #fff;
}

.sf-cookie-btn-settings {
    background-color: #555;
    color: #fff;
}

.sf-cookie-settings-panel {
    margin-top: 15px;
    background-color: #20232a;
    padding: 20px;
    border-radius: 6px;
    width: 100%;
    margin-left: auto;
    margin-right: auto;
    max-height: 40vh;
    overflow-y: auto;
    position: relative;
}

div#sf-cookie-settings-panel::-webkit-scrollbar {
    display: none;
}

.sf-cookie-settings-panel h4 {
    margin-top: 0;
    color: #626262;
}

.sf-cookie-category {
    margin-bottom: 15px;
    cursor: pointer;
}

.sf-cookie-category input[type="checkbox"] {
    margin-right: 8px;
}

.sf-cookie-category label {
    color: #eeeeee;
    font-size: 15px;
}

.sf-cookie-cat-desc {
    display: block;
    font-size: 13px;
    color: #626262;
    margin-left: 24px;
    margin-top:5px;
}

.sf-cookie-list {
    list-style: none;
    padding-left: 20px;
    padding-right: 20px;
    margin-top: 8px;
    border-radius: 15px;
}

/**
// last sf-cookie-entry in sf-cookie-list , remove border-bottom
 */
.sf-cookie-list div:last-child {
    border-bottom: none!important;
}

.sf-cookie-individual {
    margin-right: 6px;
}

.sf-cookie-btn-save {
    background-color: rgb(26, 26, 26);
    color: #fff;
}

#sf-cookie-reopen-btn {
    position: fixed; bottom: 20px;
    left: 20px; z-index: 999;
    width: 52px; height: 52px;
    border-radius: 50%;
    color: #fff;
    display: flex;
    background-color: #333;
    justify-content: center;
    align-items: center;
    cursor: pointer;
}
#sf-cookie-reopen-btn:hover {
    background-color: #555;
}


/* Toggle Switch Styles */
.sf-switch {
    position: relative;
    display: inline-block;
    width: 46px;
    height: 24px;
    margin-right: 10px;
}
.sf-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}
.sf-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #8d8d8d;
    transition: .4s;
    border-radius: 24px;
}
.sf-slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}
.sf-switch input:checked + .sf-slider {
    background-color: #4cd964;
}
.sf-switch input:checked + .sf-slider:before {
    transform: translateX(22px);
}

.sf-cookie-list {
    display: none; /* Standard: versteckt */
}
.sf-cookie-category.open .sf-cookie-list {
    display: block;
}



.sf-cookie-close {
    position: absolute;
    top: 0;
    right: 10px;
    background: none!important;
    border: none!important;
    cursor: pointer!important;
    font-size: 30px!important;
    color: dimgrey!important;
    margin: 0!important;
    padding: 0!important;
    transition: color 0.3s ease, transform 0.3s ease;
}

.sf-cookie-close:hover {
    color: black!important;
    background:none!important;
    transform: scale(1.11);

}
.sf-cookie-close:focus {
    outline: none!important;
    color:black!important;
    box-shadow: unset!important;
    border: 0!important;
}


#sf-cookie-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.15); /* dunkles Overlay */
    z-index: 9998; /* unter dem Banner, aber über allem anderen */
    display: none;
}


.sf-cookie-cat-toggle {
    transition: transform 0.3s ease;
    font-size: 18px;
    float:right;
    color: dimgray;
}
/*
sf-toggle-rotate - Diese Klasse wird verwendet, um das Drehen des Toggle-Schalters zu steuern.
*/
.sf-toggle-rotate {
    transform: rotate(90deg);
    display:inline-block;
    transition: transform 0.3s ease;
}

#sf-cookie-banner {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 9999;
    max-width: 650px;
    width: 90%;
    box-shadow: 0 0 20px rgba(0,0,0,0.3);
    border-radius: 12px;
    display:none;
    padding: 0;
    max-height: 90vh;
    overflow-y: auto;
}

#sf-cookie-banner::-webkit-scrollbar {
    display: none;
}

.sf-cookie-footer {
    font-size: 12px;
    color: #888;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding: 6px;
    background: #f1f1f1;
    border-radius: 0 0 12px 12px;
}


.sf-cookie-banner #sf-cookie-save-preferences {
    margin-top: 10px;
}

/**
MINI WALL
 */

#sf-cookie-mini {
    position: fixed;
    bottom: 20px;
    left: 20px;
    background: #333;
    color: white;
    padding: 16px;
    border-radius: 8px;
    z-index: 10000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.4);
    max-width: 420px;
    font-size: 14px;
    font-family: inherit;
}
/* responsive mini cookie wall  */
@media screen and (max-width: 600px) {
    /*  set sf-cookie-mini in the buttom center of the screen  */
    #sf-cookie-mini {
        left: 50%;
        transform: translateX(-50%);
        width: 90%;
    }
}



#sf-cookie-mini button {
    font-size: 13px;
    font-weight: 500;
    border: none;
    border-radius: 4px;
    padding: 8px 12px;
    cursor: pointer;
}
#sf-cookie-mini #sf-mini-settings {
    background: #666;
    color: #fff;
    flex:1; padding: 8px; border:none; border-radius: 4px;
}
#sf-cookie-mini #sf-mini-decline {
    background: #555;
    color: #fff;
    flex:1; padding: 8px; border:none; border-radius: 4px;
}
#sf-cookie-mini #sf-mini-accept {
    background: #2e8b57;
    color: #fff;
    width: 100%;
    margin-top: 6px;
}
#sf-cookie-mini button:hover {
    opacity: 0.9;
}

.sf-cookie-cat-required {
    float:right;
    margin-right: 8px;
    font-weight: bold;
}

.sf-cookie-cat-label {
    font-weight:bold;
    font-size: 16px;
}
.sf-cookie-cat-desc {
    font-size: 14px;
}

.sf-cookie-iframe-placeholder {
    position: relative;
    text-align:center;
    padding:20px;
    border:1px solid #ccc;
    line-height:1.5;
    background-color: rgba(255, 255, 255, 0.8); /* normale Basisfarbe */
    z-index: 0;
    overflow: hidden;
}

.sf-iframe-accept {
    margin-top: 5px;
}