/* ==========================================================================
   Colins - UCookie widget
   Full-width bottom bar + tabbed preferences modal.
   Buttons are black (sample uses orange; black is the only intended difference).
   ========================================================================== */

/* ---------- Bottom bar (popup) ---------- */
.ucookie-container {
    background-color: #2b2b2b;
    color: #ffffff;
    width: 100%;
    box-sizing: border-box;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 99990;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 15px;
    padding: 18px 30px;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.25);
}

.ucookie-container a {
    color: #ffffff;
    font-family: Jost,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;
    font-size: 1em;
    line-height: 1.5;
    font-weight: bold;
    text-decoration: underline;
    cursor: pointer;
}

/* Text Group */
.ucookie-text-group {
    flex: 1 1 480px;
    min-width: 280px;
    font-family: Jost,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;
    font-size: .875em;
    line-height: 1.5;
}

.ucookie-title {
    font-family: Jost,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;
    color: #ffffff;
    margin: 0 0 8px 0;
    font-size: 20px;
}

.ucookie-policy-text {
    font-family: Jost,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;
    clear: both;
    text-align: left;
    color: #ffffff;
    margin: 0;
    font-size: 14px;
}

.ucookie-policy-text a {
    color: #ffffff;
    text-decoration: underline;
}

/* Button Group */
.ucookie-button-group {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    flex: 0 0 auto;
}

/* Black buttons on the dark bar need a light edge to stay distinct */
.ucookie-container .ucookie-button {
    border: 1px solid rgba(255, 255, 255, 0.55);
}

/* ---------- Modal ---------- */
/* Opens as a card anchored to the bottom-left, without dimming/blocking the page */
#ucookie-modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: transparent;
    display: flex;
    justify-content: flex-start;
    align-items: flex-end;
    padding: 20px;
    box-sizing: border-box;
    z-index: 99999;
    pointer-events: none;
}

#ucookie-modal-container {
    pointer-events: auto;
    background-color: #ffffff;
    width: 600px;
    max-width: 94%;
    max-height: calc(100vh - 40px);
    overflow: auto;
    padding: 0;
    border-radius: 4px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
    z-index: 10000;
}

#ucookie-modal-header {
    height: 40px !important;
    font-weight: bold !important;
    padding: 12px 18px;
    display: flex;
    align-items: center;
    font-family: Jost,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;
    font-size: 21px;
    line-height: 25px;
    border-bottom: 1px solid whitesmoke;
}

#ucookie-modal-body {
    padding: 16px 18px;
    max-height: 300px;
    overflow: auto;
    font-family: Jost,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;
    font-size: 13px;
    line-height: 1.6;
    text-align: left;
    border-bottom: 1px solid whitesmoke;
}

#ucookie-modal-intro {
    margin-bottom: 14px;
    color: #333;
}

#ucookie-modal-body a {
    color: #000000;
    font-family: Jost,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;
    font-size: 1em;
    line-height: 1.5;
    font-weight: bold;
    text-decoration: underline;
    cursor: pointer;
}

/* ---------- Tabs ---------- */
.ucookie-tab-nav {
    display: flex;
    flex-wrap: nowrap;
    align-items: stretch;
    gap: 6px;
    padding-bottom: 12px;
    margin-bottom: 4px;
    border-bottom: 1px solid #e2e2e2;
}

.ucookie-tab-button {
    flex: 1 1 0;
    min-width: 0;
    background: #f4f4f4;
    border: 1px solid #e2e2e2;
    border-radius: 3px;
    padding: 10px 12px;
    cursor: pointer;
    font-family: inherit;
    font-size: 13px;
    color: #444 !important;
    line-height: 1.3;
    text-align: center;
    white-space: normal;
    word-break: break-word;
    outline: none;
}

.ucookie-tab-button:hover {
    background: #ececec;
}

.ucookie-tab-active {
    background: #000000 !important;
    color: #ffffff !important;
    font-weight: 600;
    border-color: #000000;
}

.ucookie-tab-panel {
    display: none;
    padding: 18px 4px 6px 4px;
}

.ucookie-tab-panel-active {
    display: block;
}

.ucookie-panel-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
    gap: 12px;
}

.ucookie-panel-title {
    font-size: 15px;
    font-weight: 600;
    color: #000000;
}

.ucookie-always-active {
    font-size: 13px;
    font-weight: 600;
    color: #000000;
    white-space: nowrap;
}

.ucookie-panel-desc {
    color: #444;
    font-size: 13px;
    line-height: 1.7;
}

.ucookie-panel-desc p {
    margin: 0;
}

/* ---------- Footer ---------- */
#ucookie-modal-footer {
    min-height: 60px;
    padding: 12px 18px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 10px;
    font-family: Jost,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;
    border-bottom: 1px solid whitesmoke;
}

/* ---------- Buttons (black) ---------- */
.ucookie-button {
    align-items: center;
    background-color: #000000 !important;
    border: 1px solid #000000;
    box-sizing: border-box;
    color: #ffffff !important;
    cursor: pointer;
    display: inline-flex;
    font-family: Jost,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;
    font-size: 12px;
    font-weight: 600;
    justify-content: center;
    line-height: 20px;
    min-width: 160px;
    height: 40px;
    padding-left: 20px;
    padding-right: 20px;
    text-align: center;
    vertical-align: middle;
    border-radius: 2px;
}

/* High-specificity guard so a host site's own button rules can't hide the label */
#ucookie-container .ucookie-button,
#ucookie-modal-footer .ucookie-button,
.ucookie-button-group .ucookie-button {
    color: #ffffff !important;
    font-size: 12px !important;
    text-indent: 0 !important;
    text-shadow: none !important;
    opacity: 1 !important;
}

.ucookie-button:hover,
.ucookie-button:focus {
    background-color: #1a1a1a !important;
    color: #ffffff !important;
}

.ucookie-button:active {
    color: rgb(255, 255, 255, .7) !important;
}

.ucookie-button:disabled {
    cursor: not-allowed;
    background: rgba(0, 0, 0, .08) !important;
    color: rgba(0, 0, 0, .3) !important;
    border-color: transparent;
}

/* ---------- Toggle switch ---------- */
.ucookie-switch {
    position: relative;
    display: inline-block;
    width: 34px;
    height: 18px;
    flex: 0 0 auto;
}

.ucookie-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.ucookie-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    -webkit-transition: .4s;
    transition: .4s;
}

.ucookie-slider:before {
    position: absolute;
    content: "";
    height: 14px;
    width: 14px;
    left: 2px;
    bottom: 2px;
    background-color: white;
    -webkit-transition: .4s;
    transition: .4s;
}

input:checked + .ucookie-slider {
    background-color: #000000;
}

.ucookie-checked {
    background-color: #000000 !important;
}

input:focus + .ucookie-slider {
    box-shadow: 0 0 1px #000000
}

input:checked + .ucookie-slider:before {
    -webkit-transform: translateX(16px);
    -ms-transform: translateX(16px);
    transform: translateX(16px);
}

.ucookie-slider.ucookie-round {
    border-radius: 18px;
}

.ucookie-slider.ucookie-round:before {
    border-radius: 50%;
}

/* ---------- Logo ---------- */
#ucookie-modal-logo {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    height: 10px !important;
    padding: 10px;
    color: #808080;
    font-family: 'Lato TR', sans-serif;
    font-size: 10px;
}

#ucookie-logo {
    width: 70px;
    cursor: pointer;
    margin-left: 5px;
}

/* ---------- Responsive ---------- */
@media (max-width: 790px) {
    .ucookie-container {
        flex-direction: column;
        align-items: stretch;
        padding: 16px 18px;
    }

    .ucookie-button-group {
        width: 100%;
        justify-content: stretch;
    }

    .ucookie-button-group .ucookie-button {
        flex: 1 1 auto;
        min-width: 0;
    }

    .ucookie-title {
        font-size: 18px !important;
    }

    .ucookie-policy-text {
        font-size: 13px !important;
    }

    .ucookie-tab-nav {
        overflow-x: auto;
        flex-wrap: nowrap;
    }

    .ucookie-tab-button {
        white-space: nowrap;
    }

    #ucookie-modal-footer {
        justify-content: center;
    }
}