/*
 * ISC License
 *
 * Copyright (c) 2024 idnovate.com
 * idnovate is a Registered Trademark & Property of idnovate.com, innovación y desarrollo SCP
 *
 * Permission to use, copy, modify, and/or distribute this software for any
 * purpose with or without fee is hereby granted, provided that the above
 * copyright notice and this permission notice appear in all copies.
 *
 * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
 * REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
 * AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
 * INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
 * LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
 * OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
 * PERFORMANCE OF THIS SOFTWARE.
 *
 * @author    idnovate
 * @copyright 2024 idnovate
 * @license   https://www.isc.org/licenses/ https://opensource.org/licenses/ISC ISC License
 */
/* Bootstrap backward */
#cookiesplus-modal,
#cookiesplus-modal *,
#cookiesplus-modal:after,
#cookiesplus-modal:before,
#cookiesplus-modal :after,
#cookiesplus-modal :before {
    box-sizing: border-box;
}

#cookiesplus-modal ::-webkit-scrollbar {
    -webkit-appearance: none;
    width: 7px;
    height: 7px;
    -webkit-overflow-scrolling: auto;
}

#cookiesplus-modal ::-webkit-scrollbar-thumb {
    border-radius: 4px;
    background-color: rgba(0, 0, 0, .5);
    -webkit-box-shadow: 0 0 1px rgba(255, 255, 255, .5);
}

#cookiesplus-modal .row {
    display: block;
    margin-top: 0;
    margin-bottom: 0;
}

#cookiesplus-modal .row:after {
    content: "";
    display: table;
    clear: both
}

/* Overlay */
#cookiesplus-content {
    padding: 10px 0;
}

#cookiesplus-overlay {
    position: fixed; /* Sit on top of the page content */
    display: none; /* Hidden by default */
    width: 100%; /* Full width (cover the whole page) */
    height: 100%; /* Full height (cover the whole page) */
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5); /* Black background with opacity */
    z-index: 2147483647; /* Specify a stack order in case you're using a different order for other elements */
}

/* Modal */
#cookiesplus-modal-container {
    position: fixed;
    width: 0;
    height: 0;
    min-height: 0 !important;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2147483648;
}

#cookiesplus-modal-container p {
    margin-bottom: 0;
    overflow: hidden;
}

#cookiesplus-modal,
#header #cookiesplus-modal.row,
#cookiesplus-modal-not-available {
    display: none;
    font-size: 14px;
    position: fixed !important;
    padding: 14px;
    margin: 0 auto;
    max-width: 100%;
    background-color: #FFFFFF;
    color: #232323;
    float: none;
    border: 1px solid #CCCCCC;
    border-radius: 0;
    max-height: 100%;
    overflow: auto;
}

#cookiesplus-modal.cookiesplus-top {
    left: 50%;
    top: 0;
    transform: translate(-50%, 0);
}

#cookiesplus-modal.cookiesplus-center,
#cookiesplus-modal-not-available.cookiesplus-center {
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
}

#cookiesplus-modal.cookiesplus-bottom {
    left: 50%;
    bottom: 0;
    transform: translate(-50%, 0);
}

#cookiesplus-modal.cookiesplus-bottom-left {
    bottom: 0;
    left: 0;
    float: left;
}

#cookiesplus-modal.cookiesplus-bottom-right {
    bottom: 0;
    right: 0;
    float: right;
}

#cookiesplus-modal .cookiesplus-close,
#cookiesplus-modal .cookiesplus-close-and-reject,
#cookiesplus-modal .cookiesplus-close-and-save,
#cookiesplus-modal-not-available .cookiesplus-close {
    position: absolute;
    top: 0;
    right: 2px;
    color: black;
    opacity: 1;
    font-size: 25px;
    float: none;
    background-color: transparent;
    border: none;
    cursor: pointer;
    z-index: 1;
    padding: 4px 4px 0 0;
}

/* Actions */
#cookiesplus-modal .cookiesplus-btn {
    margin: 6px 0;
    padding: 8px 14px;
    border: 1px solid transparent;
    cursor: pointer;
    /*clear: both;*/
    width: 100%;
    position: relative;
    top: auto;
    bottom: auto;
    left: auto;
    right: auto;
}

#cookiesplus-modal .cookiesplus-btn span {
    vertical-align: middle;
    font-weight: 400;
}

#cookiesplus-modal .cookiesplus-btn.float-xs-left {
    margin-right: 14px;
}

#cookiesplus-modal .cookiesplus-btn.float-xs-right {
    margin-left: 14px;
}

@media (max-width: 575.98px) {
    #cookiesplus-modal .cookiesplus-btn {
        width: 100%;
    }
}

#cookiesplus-modal .cookiesplus-footer-actions {
    margin: 12px 0 6px;
}

#cookiesplus-modal #cookiesplus-back {
    cursor: pointer;
}

#cookiesplus-modal .cookiesplus-save {
    margin-bottom: 6px;
}

#cookiesplus-modal .cookiesplus-save-disclaimer {
    font-size: small;
    font-style: italic;
}

#cookiesplus-modal .cookiesplus-save:disabled {
    cursor: not-allowed;
}

#cookiesplus-modal .coookiesplus-policy {
    text-align: right;
    clear: both;
}

#cookiesplus-modal .cookiesplus-info {
    max-height: 25vh;
    overflow: auto;
    margin-bottom: 14px;
}

#cookiesplus-modal .cookiesplus-finalities {
    margin-bottom: 0;
    display: none;
}

#cookiesplus-modal .cookiesplus-actions {
    overflow: hidden;
    height: 100%;
    min-height: 100%;
}

#cookiesplus-modal .cookiesplus-actions .first-layer,
#cookiesplus-modal .cookiesplus-actions .second-layer{
    text-align: center ;
}

#cookiesplus-modal .text-small {
    font-style: italic;
    font-size: 12px;
}

/* Switch */
.cookiesplus-finality-container {
    cursor: pointer;
    display: inline-block;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

.cookiesplus-finality-title {
    display: inline-block;
    cursor: pointer;
    line-height: 24px;
}

.cookiesplus-finality-switch-container {
    display: inline-block;
    float: right;
}

.cookiesplus-finality-switch-container label {
    display: inline-block;
}

.cookiesplus-finality-switch-container span {
    display: inline-block;
    font-size: 14px;
    line-height: 24px;
    vertical-align: middle;
    margin-bottom: 0;
    cursor: pointer;
    -webkit-touch-callout: none; /* iOS Safari */
    -webkit-user-select: none; /* Safari */
    -khtml-user-select: none; /* Konqueror HTML */
    -moz-user-select: none; /* Old versions of Firefox */
    -ms-user-select: none; /* Internet Explorer/Edge */
    user-select: none; /* Non-prefixed version, currently supported by Chrome, Edge, Opera and Firefox */
}

.cookiesplus-finality-switch-container span.technical {
    background-color: #56C080;
    color: white;
    text-align: center;
    padding: 0 10px;
    line-height: 24px;
    height: 24px;
    cursor: default;
}

.cookiesplus-finality-switch-container span[disabled="disabled"] {
    cursor: not-allowed;
}

.cookiesplus-finality-switch {
    display: inline-block;
    border-radius: 24px;
    height: 24px;
    width: 50px;
    position: relative;
    vertical-align: middle;
    transition: background 0.25s;
    margin: 0 6px;
}

.cookiesplus-finality-switch:before,
.cookiesplus-finality-switch:after {
    content: "";
}

.cookiesplus-finality-checkbox.disabled ~ .cookiesplus-finality-switch,
.cookiesplus-finality-checkbox:disabled ~ .cookiesplus-finality-switch {
    cursor: not-allowed;
    opacity: 0.65;
}

.cookiesplus-finality-switch:before {
    display: block;
    background: #fff;
    border-radius: 50%;
    position: absolute;
    transition: left 0.25s;
    top: 3px;
    left: 3px;
    width: 18px;
    height: 18px;
    line-height: 18px;
    text-align: center;
}

.cookiesplus-finality-container:hover .cookiesplus-finality-switch:before {
    background: #fff;
}

.cookiesplus-finality-checkbox[value="na"] ~ .cookiesplus-finality-switch {
    color: transparent !important;
    text-align: center;
}

.cookiesplus-finality-checkbox[value="na"]:checked ~ .cookiesplus-finality-switch {
    background: #CCCCCC;
}

.cookiesplus-finality-checkbox[value="na"]:checked ~ .cookiesplus-finality-switch:before {
    left: 16px;
}

.cookiesplus-finality-checkbox[value="off"]:checked ~ .cookiesplus-finality-switch {
    background: #ff0f0f;
}

.cookiesplus-finality-checkbox[value="off"]:checked ~ .cookiesplus-finality-switch:before {
    content: '✘';
    color: #FF0F0F;
}

.cookiesplus-finality-checkbox[value="on"]:checked ~ .cookiesplus-finality-switch {
    background: #56c080;
}

.cookiesplus-finality-checkbox[value="on"]:checked ~ .cookiesplus-finality-switch:before {
    left: 27px;
    content: '✔';
    color: #56c080;
}

.cookiesplus-finality-checkbox {
    position: absolute;
    visibility: hidden;
}

.cookiesplus-finality-switch:focus,
.cookiesplus-finality-switch.focus,
.cookiesplus-finality-switch:focus.active,
.cookiesplus-finality-switch.focus.active {
    outline: none;
}

.cookiesplus-finality-content {
    display: none;
    font-size: 13px;
    margin-top: 10px;
}

#cookiesplus-finalities-container {
    max-height: 40vh;
    overflow: auto;
    margin-bottom: 14px;
}

@media (max-width: 767.98px) {
    #cookiesplus-finalities-container {
        max-height: 20vh;
    }
}

.cookieplus-finality-container {
    border-bottom: 1px solid #CCC;
    margin: 0;
    padding: 14px 0;
    overflow: hidden;
}

.cookieplus-finality-container:first-child {
    border-top: 1px solid #CCC;
}

.cookieplus-finality-container:first-child {
    margin-top: 0;
}

.cookieplus-finality-container:last-child {
    margin-bottom: 8px;
}

#cookiesplus-modal table {
    border-collapse: collapse;
    width: 100%;
    margin: 10px 0 0;
}

#cookiesplus-modal td,
#cookiesplus-modal th {
    border: 1px solid #CCCCCC;
    padding: 4px 8px;
    text-align: left;
}

#cookiesplus-modal th {
    padding-top: 12px;
    padding-bottom: 12px;
    text-align: left;
    background-color: #FAFAFA;
}

#cookiesplus-modal.col-lg-4 table thead {
    display: none;
}

#cookiesplus-modal.col-lg-4 table tr {
    width: 100%;
    margin-bottom: 20px;
    float: left;
}

#cookiesplus-modal.col-lg-4 table td {
    display: flex;
    padding: 0;
    border-bottom: 0;
    word-break: break-word;
}

#cookiesplus-modal.col-lg-4 table td:last-child {
    display: flex;
    border-bottom: 1px solid #CCCCCC;
}

#cookiesplus-modal.col-lg-4 table td::before {
    content: attr(data-label);
    font-weight: bold;
    width: 120px;
    min-width: 120px;
    border-right: 1px solid #CCCCCC;
    padding: 4px 8px;
}

#cookiesplus-modal.col-lg-4 table td span {
    padding: 4px 8px;
}

/* Responsive tables */
@media screen and (max-width: 767px) {
    #cookiesplus-modal table thead {
        display: none;
    }

    #cookiesplus-modal table tr {
        width: 100%;
        margin-bottom: 20px;
        float: left;
    }

    #cookiesplus-modal table td {
        display: flex;
        padding: 0;
        border-bottom: 0;
    }

    #cookiesplus-modal table td:last-child {
        display: flex;
        border-bottom: 1px solid #CCCCCC;
    }

    #cookiesplus-modal table td::before {
        content: attr(data-label);
        font-weight: bold;
        width: 120px;
        min-width: 120px;
        border-right: 1px solid #CCCCCC;
        padding: 4px 8px;
    }

    #cookiesplus-modal table td span {
        padding: 4px 8px;
    }
}

#cookiesplus-modal-container .material-icons {
    vertical-align: middle;
}

/* Collapse divs */
.cookiesplus-finality-chevron::before {
    border-style: solid;
    border-width: 3px 3px 0 0;
    content: '';
    display: inline-block;
    height: 8px;
    position: relative;
    width: 8px;
    margin-top: 6px;
    margin-right: 4px;
}

.cookiesplus-finality-chevron.up:before {
    transform: rotate(-45deg);
}

.cookiesplus-finality-chevron.bottom:before {
    vertical-align: top;
    transform: rotate(135deg);
}

/* Tab */
#cookiesplus-tab {
    position: fixed;
    padding: 5px 10px;
    font-size: 13px;
    cursor: pointer;
    background-color: blue;
    color: white;
    z-index: 999;
}

/* Checker */
#cookiesplus-checker {
    position: fixed;
    top: 0;
    right: -450px;
    width: 450px;
    height: 100vh;
    background-color: #333;
    transition: right 0.3s ease-in-out;
    padding: 20px;
    z-index: 5004;
    overflow-y: auto;
    font-size: 13px;
}

#cookiesplus-checker h2 {
    color: #FFF !important;
    padding: 10px 0 5px;
}

#cookiesplus-checker.hide {
    right: -450px;
}

#cookiesplus-checker.show {
    display: block;
    right: 0;
}

#cookiesplus-checker .close-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    cursor: pointer;
    font-size: 30px;
    color: #FFF;
}

#cookiesplus-checker .alert {
    display: none;
    padding: .75rem 1.25rem;
    border-radius: 5px;
    margin-bottom: 1rem;
    border: 1px solid transparent;
}

#cookiesplus-checker .alert-warning {
    background-color: #ffc107;
    border-color: #ff9a52;
    color: #FFF;
}

#cookiesplus-checker .alert-success {
    background-color: #dff0d8;
    border-color: #d0e9c6;
    color: #3c763d;
}

#cookiesplus-checker .alert-danger {
    background-color: #f2dede;
    border-color: #ebcccc;
    color: #a94442;
}

#consentsResultSuccess {
    display: none;
}

#cookiesplus-checker table {
    width: 100%;
    border-collapse: collapse;
    background-color: white;
    border-radius: 5px;
}

#cookiesplus-checker table th {
    text-align: center;
}

#cookiesplus-checker table th,
#cookiesplus-checker table td {
    padding: 8px;
}

#cookiesplus-checker table thead tr {
    border-bottom: 1px solid rgb(204, 204, 204);
}

#cookiesplus-checker table td:nth-child(2),
#cookiesplus-checker table td:nth-child(3) {
    text-align: center;
}

#cookiesplus-checker table .granted {
    background-color: #e0f2f1;
    color: #00796b;
    padding: 5px 10px;
    border-radius: 5px;
}

#cookiesplus-checker table .denied {
    background-color: #feefe3;
    color: #b31412;
    padding: 5px 10px;
    border-radius: 5px;
}

/* Styles for the spinner */
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

#cookiesplus-checker .spinner {
    border: 4px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top: 4px solid #fff;
    width: 18px;
    height: 18px;
    animation: spin 1s linear infinite;
    margin-right: 10px;
    display: inline-block;
    color: #FFF;
}
