/*--------------------------------------------------------------
# Cookie Banner Styling
--------------------------------------------------------------*/

.ckNotificationContainer {
    box-shadow: 0 -4px 10px 0 rgba(0, 0, 0, 0.2);
    position: fixed;
    width: 100%;
    background-color: #fff;
    bottom: 0;
    z-index: 1000;
    font-size: 14px;
    max-height: 0;
    overflow-y: auto;
    transition: max-height 0.5s ease-in-out;
}

.ckNotificationContainer.active {
    max-height: 80vh;
}

.ckNotificationContainer .container {
    max-width: 560px;
    margin: 0 auto;
    padding: 20px 15px;
}

.ckNotificationContainer .logo-container {
    background: url('../images/tj_logo_color.svg') no-repeat;
    width: 150px;
    height: 29px;
    margin: 0 auto 20px;
    background-size: contain;
    background-position: center;
}

.ckNotificationContainer .text-center {
    text-align: center;
}

.ckNotificationContainer h3 {
    font-family: "Lato-Bold", sans-serif;
    font-size: 24px;
    margin-bottom: 16px;
    color: #333;
}

.ckNotificationContainer .text-column {
    margin-bottom: 20px;
    color: #333;
    line-height: 1.5;
}

.ckNotificationContainer .text-column p {
    margin-bottom: 10px;
}

.ckNotificationContainer .text-column a {
    color: #299cb2;
    text-decoration: underline;
}


/* Button container */

.ckNotificationContainer .button-container {
    display: flex;
    flex-wrap: nowrap;
    justify-content: center;
    width: 100%;
    clear: both;
    margin-top: 20px;
}


/* Button styling */

.ckNotificationContainer .button-section {
    padding: 0 5px;
    margin-bottom: 10px;
    flex: 1;
    max-width: 33.33%;
}

.ckNotificationContainer .defaultButton {
    background-color: #299cb2;
    color: #fff;
    border: none;
    border-radius: 5px;
    padding: 12px 10px;
    font-size: 14px;
    white-space: nowrap;
    height: 45px;
    cursor: pointer;
    display: block;
    text-align: center;
    width: 100%;
    max-width: 100%;
}

.ckNotificationContainer .defaultButton:hover {
    background-color: #67c5d7;
}


/* Fix for the Save & Apply button alignment */

.ckNotificationContainer .button-section .ck-save-and-apply,
.ckNotificationContainer .button-section .ck-customize {
    width: 100%;
    text-align: center;
    display: block;
}


/* Cookie settings panel styling */

.ckNotificationContainer .ck-settings {
    text-align: left;
}


/* Row layout for cookie options */

.ckNotificationContainer .row {
    margin-bottom: 15px;
    clear: both;
}

.ckNotificationContainer .row:after {
    content: "";
    display: table;
    clear: both;
}

.ckNotificationContainer .col-xs-8 {
    width: 66.66666667%;
    float: left;
}

.ckNotificationContainer .col-xs-4 {
    width: 33.33333333%;
    float: left;
}

.ckNotificationContainer .col-sm-12 {
    width: 100%;
    float: left;
    clear: both;
}

.ckNotificationContainer .ck-subTitle {
    font-weight: bold;
    font-size: 16px;
    margin-bottom: 5px;
}

.ckNotificationContainer .ck-description {
    margin-bottom: 20px;
    clear: both;
}


/* Toggle switch styling */

.onoffswitch {
    position: relative;
    width: 36px;
    display: inline-block;
    float: right;
}

.onoffswitch-checkbox {
    display: none;
}

.onoffswitch-label {
    display: block;
    overflow: hidden;
    cursor: pointer;
    border-radius: 10px;
}

.onoffswitch-inner {
    display: block;
    width: 200%;
    margin-left: -100%;
    transition: margin 0.3s ease-in 0s;
}

.onoffswitch-inner:before,
.onoffswitch-inner:after {
    display: block;
    float: left;
    width: 50%;
    height: 21px;
    padding: 0;
    line-height: 21px;
    font-size: 13px;
    color: #fff;
    box-sizing: border-box;
}

.onoffswitch-inner:before {
    content: "";
    padding-left: 8px;
    background-color: #41a471;
}

.onoffswitch-inner:after {
    content: "";
    padding-right: 7px;
    background-color: #a6aab9;
    text-align: right;
}

.onoffswitch-switch {
    display: block;
    width: 13px;
    margin: 4.5px;
    background: #fff;
    position: absolute;
    top: 0;
    bottom: 0;
    right: 16px;
    border-radius: 10px;
    transition: all 0.3s ease-in 0s;
}

.onoffswitch-checkbox:checked+.onoffswitch-label .onoffswitch-inner,
.fake.onoffswitch-inner {
    margin-left: 0;
}

.onoffswitch-checkbox:checked+.onoffswitch-label .onoffswitch-switch,
.fake.onoffswitch-switch {
    right: -1px;
}


/* Styling for the disabled essential cookies toggle */

.onoffswitch-label.fake {
    opacity: 0.7;
    cursor: not-allowed;
}

.fake.onoffswitch-inner:before,
.fake.onoffswitch-inner:after {
    opacity: 0.5;
}

.fake.onoffswitch-inner,
.fake.onoffswitch-switch {
    cursor: default;
}


/* More/Less toggle links */

.more,
.less {
    color: #299cb2;
    cursor: pointer;
    text-decoration: underline;
}


/* Hide elements with .hidden class */

.hidden {
    display: none !important;
}


/* Overlay styling */

.ckOverlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 999;
}


/* Media queries for responsive design */

@media (min-width: 768px) {
    .ckNotificationContainer .button-section {
        width: 33.33%;
    }
}

@media (max-width: 767px) {
    .ckNotificationContainer .button-container {
        display: block;
        flex-wrap: wrap;
    }
    .ckNotificationContainer .container {
        padding: 15px;
        max-width: 100%;
    }
    .ckNotificationContainer h3 {
        font-size: 20px;
    }
    .ckNotificationContainer .text-column {
        font-size: 13px;
    }
    .ckNotificationContainer .ck-subTitle {
        font-size: 14px;
    }
    .ckNotificationContainer .button-section {
        width: 100%;
        max-width: 100%;
        float: none;
        text-align: center;
        padding: 0;
    }
    .ckNotificationContainer .button-section.left-side,
    .ckNotificationContainer .button-section.right-side {
        text-align: center;
    }
    .ckNotificationContainer .defaultButton {
        width: 100%;
        max-width: 100%;
        height: auto;
        min-height: 40px;
        margin: 0 0 10px;
        display: block;
    }
    /* Ensure the container isn't too tall */
    .ckNotificationContainer.active {
        max-height: 85vh;
    }
    /* Ensure buttons are visible */
    .ckNotificationContainer .button-section {
        margin-bottom: 5px;
    }
}