/**
 * Wisenetic_Gdpr extension
 *
 * NOTICE OF LICENSE
 *
 * This source file is subject to the GNU General Public License 3 License
 * that is bundled with this package in the file LICENSE
 * It is also available through the world-wide-web at this URL:
 * https://www.gnu.org/licenses/gpl-3.0.de.html
 *
 * @category  wisenetic
 * @package   Wisenetic_Gdpr
 * @copyright Copyright © Wisenetic Technologies. All rights reserved.
 * @license   https://www.gnu.org/licenses/gpl-3.0.html GNU General Public License 3 License
 * @author    mailto:info@wisenetic.com
 */

/* --Cookie Policy Bar Styling-- */

/* Styling for the Cookie Policy Bar */
.wisenetic-cookie-policy-bar {
    display: none;
    position: fixed;
    left: 2em;
    bottom: 2em;
    z-index: 900;
    width: fit-content;
    background-color: #f0f0f0;
    padding: 2px 0px 12px 36px;
    border-radius: 42px;
}

/* Layout for the content inside the cookie policy bar */
.wisenetic-cookie-policy-bar .cookie-bar-content {
    display: flex;
}

/* Message displayed in the cookie policy */
.wisenetic-cookie-policy-bar .cookie-bar-message {
    margin-right: 10px;
    width: fit-content;
}

/* Styles for the buttons in the cookie policy bar */
.wisenetic-cookie-policy-bar .cookie-button {
    margin: 3px;
    width: 140px;
    padding: 7px 3px;
    font-size: 14px;
}

/* Container for the buttons in the cookie policy bar */
.wisenetic-cookie-policy-bar .cookie-bar-button-container {
    padding-right: 25px;
    width: fit-content;
}

/* --cookie model Styling-- */

/* Styles for the close action button in the GDPR model */
.wisenetic-gdpr-model .action-close {
    padding: 6px;
}

/* padding unset */
.wisenetic-gdpr-model .modal-header, .wisenetic-gdpr-model .modal-content, .wisenetic-gdpr-model .modal-footer {
    padding: unset;
}

/* General Modal Styling */
#wisenetic_cookie-model {
    display: none;
    background-color: #f9f9f9;
    border-radius: 10px;
    padding: 20px;
    margin: 0 auto;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    font-family: Arial, sans-serif;
}

/* Title Styling */
.wisenetic-gdpr-model .cookie-model-title {
    font-size: 24px;
    color: #333;
    margin-bottom: 20px;
    text-align: left;
}

/* Content Section Styling */
.wisenetic-gdpr-model .cookie-model-content {
    font-size: 16px;
    color: #666;
    margin-bottom: 30px;
    line-height: 1.6;
    text-align: left;
}

/* Cookie Group Container */
.wisenetic-gdpr-model .cookie-group-model {
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 5px;
    margin-bottom: 20px;
    padding: 15px;
}

/* Group Header */
.wisenetic-gdpr-model .cookie-group-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    padding: 10px;
    border-radius: 5px;
}

/* Toggle Arrow */
.wisenetic-gdpr-model .cookie-group-content .arrow {
    font-size: 16px;
    margin-right: 10px;
}

/* Group Toggle Switch */
.wisenetic-gdpr-model .cookie-group-toggle-switch {
    position: relative;
    display: inline-block;
    width: 40px;
    height: 20px;
}

/* Hides the input for the cookie group toggle switch */
.wisenetic-gdpr-model .cookie-group-toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

/* Styles for the slider of the cookie group toggle switch */
.wisenetic-gdpr-model .cookie-group-slider {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    cursor: pointer;
    background-color: #ccc;
    border-radius: 20px;
    transition: 0.4s;
}

/* Styles for the slider handle of the cookie group toggle switch */
.wisenetic-gdpr-model .cookie-group-slider:before {
    position: absolute;
    content: "";
    height: 16px;
    width: 16px;
    left: 2px;
    bottom: 2px;
    background-color: white;
    border-radius: 50%;
    transition: 0.4s;
}

/* Styles for the slider background when the toggle switch is checked */
.wisenetic-gdpr-model .cookie-toggle-switch-input:checked + .cookie-group-slider {
    background-color: #007bff;
}

/* Styles for the slider handle when the toggle switch is checked */
.wisenetic-gdpr-model .cookie-toggle-switch-input:checked + .cookie-group-slider:before {
    transform: translateX(20px);
}

/* Styles for the slider when the toggle switch is disabled */
.wisenetic-gdpr-model .cookie-toggle-switch-input:disabled + .cookie-group-slider {
    cursor: not-allowed;
}

/* Styles for the slider handle when the toggle switch is disabled */
.wisenetic-gdpr-model .cookie-toggle-switch-input:disabled + .cookie-group-slider:before {
    background-color: #72b9e7;
}

/* Cookie Group Content */
.cookie_group_cookies_list {
    padding: 15px;
    border-top: 1px solid #ddd;
}

/* Table Styling */
.wisenetic-gdpr-model table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 15px;
}

/* Styling for the table headers and cells in the GDPR model */
.wisenetic-gdpr-model table th,
.wisenetic-gdpr-model table td {
    padding: 10px;
    border-bottom: 1px solid #ddd;
    text-align: left;
    font-size: 14px;
    color: #555;
}
.wisenetic-gdpr-model table td {
    word-break: break-word;
}
/* Styling for the table headers in the GDPR model */
.wisenetic-gdpr-model table th {
    background-color: #f4f4f4;
    color: #333;
}

/* Container for actions related to cookies in the GDPR model */
.wisenetic-gdpr-model .cookie-action {
    text-align: right;
    margin-top: 20px;
}

/* Styling for the apply button in the GDPR model */
.wisenetic-gdpr-model .cookie_apply_button {
    color: #ffffff;
    border: none;
    padding: 10px 20px;
    font-size: 16px;
    cursor: pointer;
    border-radius: 4px;
}

/* --cookie shortcut Styling-- */
#wisenetic_cookie_model_shortcut {
    display: none;
    position: fixed;
    left: 2em;
    bottom: 1em;
    width: 60px;
    z-index: 10000;
    cursor: pointer;
}

/* Responsive styles for the Cookie Policy Bar on screens smaller than 712px */
@media screen and (max-width: 712px) {
    .wisenetic-cookie-policy-bar {
        left: 50%;
        transform: translateX(-50%);
    }

    .wisenetic-cookie-policy-bar .cookie-bar-message {
        width: 100%;
    }

    .wisenetic-cookie-policy-bar .cookie-bar-button-container {
        width: 100%;
        display: flex;
        flex-direction: column;
        margin-top: 8px;
    }

    .wisenetic-cookie-policy-bar .cookie-button {
        width: 75%;
        margin-top: 6px;
    }

    .wisenetic-cookie-policy-bar .cookie-bar-content {
        padding-right: 20px;
        flex-direction: column;
    }
}

/* Responsive styles for the Cookie Policy Bar on screens between 713px and 1712px */
@media screen and (min-width: 713px) and (max-width: 1712px) {
    .wisenetic-cookie-policy-bar {
        width: 54%;
    }

    .wisenetic-cookie-policy-bar .cookie-bar-content {
        display: flex;
        flex-direction: column;
        padding-right: 20px;
    }

    .wisenetic-cookie-policy-bar .cookie-bar-message {
        width: 100%;
    }

    .wisenetic-cookie-policy-bar .cookie-bar-button-container {
        width: 100%;
        padding-top: 10px;
    }

    .wisenetic-cookie-policy-bar .cookie-button {
        width: 120px;
        margin: 1px 1px 1px 1px;
    }
}
