/* ===================== Cookie Consent Banner ===================== */
.cookie-consent {
    position: fixed;
    z-index: 99999;
    left: 0;
    right: 0;
    padding: 0;
    font-family: inherit;
    transition: transform 0.4s ease, opacity 0.4s ease;
}

.cookie-consent--bottom {
    bottom: 0;
    width: 100%;
}

.cookie-consent--bottom-left {
    bottom: 20px;
    left: 20px;
    right: auto;
    max-width: 420px;
    border-radius: 12px;
    overflow: hidden;
}

.cookie-consent--bottom-right {
    bottom: 20px;
    right: 20px;
    left: auto;
    max-width: 420px;
    border-radius: 12px;
    overflow: hidden;
}

/* --- Dark Theme --- */
.cookie-consent--dark .cookie-consent__inner {
    background: #1a1a2e;
    color: #e0e0e0;
    border-top: 3px solid var(--theme-color, #e2b93b);
}

.cookie-consent--dark .cookie-consent__policy-link {
    color: var(--theme-color, #e2b93b);
}

.cookie-consent--dark .cookie-settings {
    background: #16162a;
    border-top: 1px solid rgba(255,255,255,0.08);
}

.cookie-consent--dark .cookie-settings__item {
    border-bottom: 1px solid rgba(255,255,255,0.06);
}

.cookie-consent--dark .cookie-settings__item strong {
    color: #fff;
}

.cookie-consent--dark .cookie-settings__item small {
    color: #aaa;
}

/* --- Light Theme --- */
.cookie-consent--light .cookie-consent__inner {
    background: #ffffff;
    color: #333;
    border-top: 3px solid var(--theme-color, #e2b93b);
    box-shadow: 0 -4px 20px rgba(0,0,0,0.1);
}

.cookie-consent--light .cookie-consent__policy-link {
    color: #c49a1a;
}

.cookie-consent--light .cookie-settings {
    background: #f8f9fa;
    border-top: 1px solid #eee;
}

.cookie-consent--light .cookie-settings__item {
    border-bottom: 1px solid #eee;
}

.cookie-consent--light .cookie-settings__item strong {
    color: #222;
}

.cookie-consent--light .cookie-settings__item small {
    color: #666;
}

/* --- Master site (santiyeplus.com) — marka paleti ---
   MasterCookieConsentViewComponent banner köküne "cookie-consent--master" ekler (CookieConsentViewModel.EkSinif).
   Kiracı temaları bu sınıfı almaz; yukarıdaki dark/light varsayılanları (lacivert + sarı) onlara aittir.
   Renkler master/css/style.css (Staco) ile aynı: birincil mavi #0095ff, koyu zemin footer-section #191c1f. */
.cookie-consent--master {
    --theme-color: #0095ff;
}

.cookie-consent--master.cookie-consent--dark .cookie-consent__inner {
    background: #191c1f;
    color: #e9ecef;
}

.cookie-consent--master.cookie-consent--dark .cookie-settings {
    background: #14171a;
}

.cookie-consent--master.cookie-consent--dark .cookie-settings__item small {
    color: #a9b0b8;
}

.cookie-consent--master.cookie-consent--light .cookie-consent__inner {
    color: #111111;
    box-shadow: 0 -4px 24px rgba(17, 17, 17, 0.08);
}

.cookie-consent--master.cookie-consent--light .cookie-consent__policy-link {
    color: #0095ff;
}

.cookie-consent--master.cookie-consent--light .cookie-settings__item small {
    color: #444444;
}

/* Staco'nun h6/p renkleri koyu zeminde okunmasın diye bant rengini miras alır */
.cookie-consent--master .cookie-consent__title,
.cookie-consent--master .cookie-consent__desc {
    color: inherit;
}

/* Butonlar sitedeki .theme-btn gibi hap biçimli */
.cookie-consent--master .cookie-consent__btn {
    border-radius: 100px;
    padding: 10px 22px;
}

.cookie-consent--master .cookie-consent__btn--accept {
    background: #0095ff;
    color: #ffffff;
}

.cookie-consent--master .cookie-consent__btn--accept:hover {
    background: #0080e0;
    filter: none;
}

.cookie-consent--master .cookie-consent__btn--reject:hover,
.cookie-consent--master .cookie-consent__btn--settings:hover {
    border-color: #0095ff;
    color: #0095ff;
    background: rgba(0, 149, 255, 0.08);
}

.cookie-consent--master .form-check-input:checked {
    background-color: #0095ff;
    border-color: #0095ff;
}

.cookie-consent--master.cookie-consent--bottom-left,
.cookie-consent--master.cookie-consent--bottom-right {
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.25);
}

/* --- Inner Layout --- */
.cookie-consent__inner {
    padding: 20px 30px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
}

.cookie-consent__content {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    flex: 1;
    min-width: 280px;
}

.cookie-consent__icon {
    font-size: 28px;
    color: var(--theme-color, #e2b93b);
    flex-shrink: 0;
    margin-top: 2px;
}

.cookie-consent__title {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 4px;
}

.cookie-consent__desc {
    font-size: 13px;
    line-height: 1.5;
    margin: 0;
    opacity: 0.85;
}

.cookie-consent__policy-link {
    text-decoration: underline;
    font-weight: 600;
    margin-left: 4px;
}

.cookie-consent__policy-link:hover {
    opacity: 0.8;
}

/* --- Buttons --- */
.cookie-consent__actions {
    display: flex;
    gap: 8px;
    flex-shrink: 0;
    flex-wrap: wrap;
}

.cookie-consent__btn {
    padding: 10px 20px;
    border: none;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.cookie-consent__btn--accept {
    background: var(--theme-color, #e2b93b);
    color: #1a1a2e;
}

.cookie-consent__btn--accept:hover {
    filter: brightness(0.92);
    transform: translateY(-1px);
}

.cookie-consent__btn--reject {
    background: transparent;
    color: inherit;
    border: 1px solid rgba(128,128,128,0.4);
}

.cookie-consent__btn--reject:hover {
    border-color: rgba(128,128,128,0.7);
    background: rgba(128,128,128,0.1);
}

.cookie-consent__btn--settings {
    background: transparent;
    color: inherit;
    border: 1px solid rgba(128,128,128,0.3);
    font-size: 12px;
    padding: 8px 14px;
}

.cookie-consent__btn--settings:hover {
    border-color: var(--theme-color, #e2b93b);
    color: var(--theme-color, #e2b93b);
}

/* --- Settings Panel --- */
.cookie-settings__inner {
    padding: 15px 30px 20px;
}

.cookie-settings__item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 0;
    gap: 15px;
}

.cookie-settings__item:last-of-type {
    border-bottom: none;
}

.cookie-settings__info {
    flex: 1;
}

.cookie-settings__info strong {
    display: block;
    font-size: 14px;
    margin-bottom: 2px;
}

.cookie-settings__info small {
    font-size: 12px;
    line-height: 1.4;
}

.cookie-settings__save {
    padding-top: 10px;
    text-align: right;
}

/* --- Corner Variants --- */
.cookie-consent--bottom-left .cookie-consent__inner,
.cookie-consent--bottom-right .cookie-consent__inner {
    flex-direction: column;
    align-items: stretch;
    padding: 18px 20px;
}

.cookie-consent--bottom-left .cookie-consent__content,
.cookie-consent--bottom-right .cookie-consent__content {
    flex-direction: column;
    gap: 10px;
}

.cookie-consent--bottom-left .cookie-consent__actions,
.cookie-consent--bottom-right .cookie-consent__actions {
    flex-direction: column;
}

.cookie-consent--bottom-left .cookie-consent__btn,
.cookie-consent--bottom-right .cookie-consent__btn {
    text-align: center;
}

.cookie-consent--bottom-left .cookie-settings__inner,
.cookie-consent--bottom-right .cookie-settings__inner {
    padding: 10px 20px 15px;
}

/* --- Animation --- */
.cookie-consent--hiding {
    transform: translateY(100%);
    opacity: 0;
}

/* --- Responsive --- */
@media (max-width: 768px) {
    .cookie-consent__inner {
        flex-direction: column;
        padding: 16px 18px;
        gap: 14px;
    }

    .cookie-consent__content {
        flex-direction: column;
        gap: 8px;
    }

    .cookie-consent__actions {
        width: 100%;
        flex-direction: column;
    }

    .cookie-consent__btn {
        width: 100%;
        text-align: center;
    }

    .cookie-consent--bottom-left,
    .cookie-consent--bottom-right {
        left: 10px;
        right: 10px;
        bottom: 10px;
        max-width: none;
    }

    .cookie-settings__inner {
        padding: 10px 18px 15px;
    }
}
