/* Yücel Boru - Cookie Consent */

#yb-cookie-banner,
#yb-cookie-settings {
    font-family: Arial, Helvetica, sans-serif;
    box-sizing: border-box;
}

#yb-cookie-banner *,
#yb-cookie-settings * {
    box-sizing: border-box;
}

#yb-cookie-banner {
    position: fixed;
    left: 25px;
    right: 25px;
    bottom: 25px;
    z-index: 999999;
    max-width: 1180px;
    margin: 0 auto;
    padding: 24px 28px;
    background: #ffffff;
    border: 1px solid #ddd;
    box-shadow: 0 8px 35px rgba(0,0,0,.20);
    color: #333;
}

.yb-cookie-title {
    margin: 0 0 8px;
    font-size: 20px;
    font-weight: 700;
}

.yb-cookie-text {
    margin: 0;
    font-size: 14px;
    line-height: 1.55;
}

.yb-cookie-text a {
    color: #333;
    text-decoration: underline;
}

.yb-cookie-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 18px;
}

.yb-cookie-btn {
    border: 1px solid #333;
    padding: 10px 18px;
    background: #fff;
    color: #222;
    cursor: pointer;
    font-size: 14px;
    transition: .2s ease;
}

.yb-cookie-btn:hover {
    background: #f2f2f2;
}

.yb-cookie-btn-primary {
    background: #333;
    color: #fff;
}

.yb-cookie-btn-primary:hover {
    background: #111;
}

/* Preferences overlay */

#yb-cookie-settings {
    position: fixed;
    inset: 0;
    z-index: 1000000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(0,0,0,.55);
}

.yb-cookie-settings-box {
    width: 100%;
    max-width: 620px;
    max-height: 90vh;
    overflow-y: auto;
    background: #fff;
    padding: 28px;
    color: #333;
    box-shadow: 0 10px 45px rgba(0,0,0,.30);
}

.yb-cookie-settings-box h2 {
    margin: 0 0 10px;
    font-size: 24px;
}

.yb-cookie-settings-intro {
    margin-bottom: 24px;
    font-size: 14px;
    line-height: 1.55;
}

.yb-cookie-category {
    padding: 17px 0;
    border-top: 1px solid #ddd;
}

.yb-cookie-category-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.yb-cookie-category h3 {
    margin: 0;
    font-size: 16px;
}

.yb-cookie-category p {
    margin: 7px 0 0;
    font-size: 13px;
    line-height: 1.5;
    color: #666;
}

.yb-cookie-always {
    white-space: nowrap;
    font-size: 12px;
    font-weight: 700;
}

/* switch */

.yb-switch {
    position: relative;
    width: 46px;
    height: 24px;
    flex: 0 0 46px;
}

.yb-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.yb-slider {
    position: absolute;
    cursor: pointer;
    inset: 0;
    background: #aaa;
    transition: .2s;
    border-radius: 24px;
}

.yb-slider:before {
    position: absolute;
    content: "";
    width: 18px;
    height: 18px;
    left: 3px;
    top: 3px;
    background: #fff;
    transition: .2s;
    border-radius: 50%;
}

.yb-switch input:checked + .yb-slider {
    background: #333;
}

.yb-switch input:checked + .yb-slider:before {
    transform: translateX(22px);
}

@media (max-width: 650px) {
    #yb-cookie-banner {
        left: 10px;
        right: 10px;
        bottom: 10px;
        padding: 20px;
    }

    .yb-cookie-actions {
        display: block;
    }

    .yb-cookie-btn {
        display: block;
        width: 100%;
        margin-top: 8px;
    }

    .yb-cookie-settings-box {
        padding: 20px;
    }
}

/* =========================================
   Third Party Content - YouTube / Maps
   ========================================= */

.yb-external-content {
    width: 815px;
    max-width: 100%;
    min-height: 458px;
}

.yb-external-content iframe {
    display: block;
    width: 100%;
    height: 458px;
    border: 0;
}

.yb-external-placeholder {
    width: 100%;
    min-height: 458px;
    padding: 40px 25px;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    text-align: center;

    background: #f5f5f5;
    border: 1px solid #ddd;
    color: #333;
}

.yb-external-placeholder strong {
    font-size: 18px;
}

.yb-external-placeholder p {
    margin: 12px 0 20px;
    font-size: 14px;
    line-height: 1.5;
}

@media (max-width: 850px) {

    .yb-external-content {
        width: 100%;
        min-height: auto;
    }

    .yb-external-content iframe,
    .yb-external-placeholder {
        width: 100%;
        min-height: auto;
        aspect-ratio: 16 / 9;
    }

}