/* MTD Cookie Consent - Banner (Dogline adaptation) */
:root {
    --mtdcc-bg:        #1a1a2e;
    --mtdcc-surface:   #ffffff;
    --mtdcc-text:      #1a1a2e;
    --mtdcc-text-muted:#555555;
    --mtdcc-accent:    #e64b15;
    --mtdcc-accent-dk: #ffffff;
    --mtdcc-toast-bg:  #e64b15;
    --mtdcc-toast-text:#ffffff;
    --mtdcc-radius:    12px;
    --mtdcc-shadow:    0 -4px 32px rgba(0,0,0,0.18);
    --mtdcc-z:         999999;
    --mtdcc-font:      'Lato', system-ui, -apple-system, sans-serif;
}

#mtd-cc-overlay {
    position: fixed;
    top: 0; right: 0; bottom: 0; left: 0;
    background: rgba(0,0,0,0.45);
    z-index: 999998;
    opacity: 0;
    visibility: hidden;
    transition: opacity .3s ease, visibility .3s ease;
}
#mtd-cc-overlay.is-visible {
    opacity: 1;
    visibility: visible;
}

#mtd-cc-banner {
    position: fixed;
    left: 0;
    right: 0;
    z-index: 999999;
    font-family: var(--mtdcc-font);
    text-align: left;
    transform: translateY(110%);
    opacity: 0;
    transition: transform .45s cubic-bezier(.22,1,.36,1), opacity .35s ease;
    transform-origin: bottom center;
    box-sizing: border-box;
}
#mtd-cc-banner *,
#mtd-cc-reopen,
#mtd-cc-toast {
    box-sizing: border-box;
}
#mtd-cc-banner.is-visible {
    transform: translateY(0);
    opacity: 1;
}

#mtd-cc-banner.pos-bottom { bottom: 0; }
#mtd-cc-banner.pos-top    { top: 0; transform: translateY(-110%); }
#mtd-cc-banner.pos-top.is-visible { transform: translateY(0); }

.mtd-cc__inner {
    background: var(--mtdcc-surface);
    box-shadow: var(--mtdcc-shadow);
    border-top: 3px solid var(--mtdcc-accent);
    padding: 18px 28px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px 24px;
    max-width: 100%;
}

.mtd-cc__texts {
    flex: 1;
    min-width: 240px;
    text-align: left;
}
.mtd-cc__title {
    font-size: 16px;
    font-weight: 700;
    color: var(--mtdcc-text);
    margin: 0 0 4px;
    line-height: 1.3;
    text-align: left;
}
.mtd-cc__desc {
    font-size: 13.5px;
    color: var(--mtdcc-text-muted);
    margin: 0;
    line-height: 1.5;
    text-align: left;
}
.mtd-cc__desc a:link,
.mtd-cc__desc a:visited {
    font-size: 13.5px;
    color: var(--mtdcc-accent);
    text-decoration: underline;
    font-weight: 600;
}

.mtd-cc__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    flex-shrink: 0;
}

.mtd-cc__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 20px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    border: 2px solid transparent;
    transition: background .2s, color .2s, border-color .2s, filter .2s;
    white-space: nowrap;
    font-family: var(--mtdcc-font);
    line-height: 1.2;
}
.mtd-cc__btn--accept {
    background: var(--mtdcc-accent);
    color: var(--mtdcc-accent-dk);
}
.mtd-cc__btn--accept:hover {
    filter: brightness(0.92);
}
.mtd-cc__btn--reject {
    background: transparent;
    border-color: #c3c4c7;
    color: var(--mtdcc-text-muted);
}
.mtd-cc__btn--reject:hover {
    border-color: var(--mtdcc-text);
    color: var(--mtdcc-text);
}
.mtd-cc__btn--customize {
    background: transparent;
    color: var(--mtdcc-text-muted);
    font-size: 13px;
    padding: 8px 12px;
    text-decoration: underline;
    font-weight: 600;
}
.mtd-cc__btn--customize:hover { color: var(--mtdcc-text); }

.mtd-cc__powered {
    width: 100%;
    text-align: left;
    font-size: 11px;
    color: #999999;
    padding-top: 2px;
    margin: 0;
}
.mtd-cc__powered a:link,
.mtd-cc__powered a:visited,
.mtd-cc__powered a:hover,
.mtd-cc__powered a:active {
    font-size: 11px !important;
    color: #777777 !important;
    font-weight: 600 !important;
    text-decoration: underline !important;
}

#mtd-cc-details {
    display: none;
    background: var(--mtdcc-surface);
    border-top: 1px solid #eeeeee;
    padding: 18px 28px;
    text-align: left;
}
#mtd-cc-details.is-open { display: block; }

.mtd-cc__categories {
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-width: 900px;
}

.mtd-cc__category {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 10px 14px;
    border: 1px solid #e8e8e8;
    border-radius: 8px;
    text-align: left;
}
.mtd-cc__category-info { flex: 1; text-align: left; }
.mtd-cc__category-name {
    font-weight: 700;
    font-size: 14px;
    color: var(--mtdcc-text);
    margin: 0 0 2px;
    text-align: left;
}
.mtd-cc__category-desc {
    font-size: 12.5px;
    color: var(--mtdcc-text-muted);
    margin: 0;
    text-align: left;
}

.mtd-cc__toggle {
    position: relative;
    width: 40px;
    height: 22px;
    flex-shrink: 0;
    margin-top: 2px;
    display: inline-block;
}
.mtd-cc__toggle input {
    opacity: 0;
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    margin: 0;
    cursor: pointer;
    z-index: 1;
}
.mtd-cc__toggle-track {
    position: absolute;
    top: 0; right: 0; bottom: 0; left: 0;
    background: #cccccc;
    border-radius: 99px;
    cursor: pointer;
    transition: background .2s;
}
.mtd-cc__toggle input:checked + .mtd-cc__toggle-track { background: var(--mtdcc-accent); }
.mtd-cc__toggle-track::after {
    content: '';
    position: absolute;
    left: 3px; top: 3px;
    width: 16px; height: 16px;
    background: #ffffff;
    border-radius: 50%;
    transition: transform .2s;
}
.mtd-cc__toggle input:checked + .mtd-cc__toggle-track::after { transform: translateX(18px); }
.mtd-cc__toggle input:disabled + .mtd-cc__toggle-track { opacity: .5; cursor: not-allowed; }

.mtd-cc__details-actions {
    margin-top: 14px;
    display: flex;
    gap: 8px;
    justify-content: flex-start;
}

#mtd-cc-reopen {
    position: fixed;
    bottom: 16px;
    left: 16px;
    z-index: 999999;
    background: var(--mtdcc-surface);
    border: 2px solid #c3c4c7;
    border-radius: 99px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.12);
    padding: 7px 14px 7px 11px;
    font-size: 12.5px;
    font-weight: 700;
    font-family: var(--mtdcc-font);
    color: #1a1a2e;
    cursor: pointer;
    display: none;
    align-items: center;
    gap: 6px;
    transition: box-shadow .2s, border-color .2s;
}
#mtd-cc-reopen:hover {
    border-color: var(--mtdcc-accent);
    box-shadow: 0 4px 16px rgba(0,0,0,0.16);
}
#mtd-cc-reopen.is-visible { display: flex; }

#mtd-cc-toast {
    position: fixed;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%) translateY(20px) scale(0.92);
    background: var(--mtdcc-toast-bg);
    color: var(--mtdcc-toast-text);
    font-family: var(--mtdcc-font);
    font-size: 14px;
    font-weight: 700;
    padding: 10px 24px;
    border-radius: 99px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.15);
    z-index: 1000000;
    opacity: 0;
    visibility: hidden;
    transition: opacity .3s ease, transform .35s cubic-bezier(.22,1,.36,1), visibility .3s ease;
    white-space: nowrap;
    pointer-events: none;
}
#mtd-cc-toast.is-visible {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0) scale(1);
}

@media (max-width: 640px) {
    .mtd-cc__inner {
        flex-direction: column;
        align-items: stretch;
        padding: 16px;
    }
    .mtd-cc__actions {
        flex-direction: column;
    }
    .mtd-cc__btn { width: 100%; }
}
