/**
* 2007-2023 PrestaShop
*
* NOTICE OF LICENSE
*
* This source file is subject to the Academic Free License (AFL 3.0)
* that is bundled with this package in the file LICENSE.txt.
* It is also available through the world-wide-web at this URL:
* http://opensource.org/licenses/afl-3.0.php
*
*  @author    PrestaShop SA <contact@prestashop.com>
*  @copyright 2007-2023 PrestaShop SA
*  @license   http://opensource.org/licenses/afl-3.0.php  Academic Free License (AFL 3.0)
*  International Registered Trademark & Property of PrestaShop SA
*
* Deladosaladoce look & feel (Mod by Enfoquestic).
* cookie-consent.css is injected by the library after this file, so the
* variables below use !important to win over its :root defaults.
* Fonts, sizes, radius and the editable colors come from the "Styles" panel
* of the module configuration and are printed inline by displayHeader.tpl.
* This file only holds the fixed details.
*/

:root {
    --cc-btn-secondary-hover-bg: var(--cc-cookie-category-block-bg) !important;
    --cc-toggle-bg-off: #b3a8a6 !important;
    --cc-toggle-bg-readonly: #e7dfdd !important;
    --cc-cookie-category-block-bg-hover: #f4efed !important;
    --cc-section-border: #efe9e7 !important;
    --cc-cookie-table-border: #efe9e7 !important;
    --cc-overlay-bg: #1d1d20 !important;
    --cc-overlay-opacity: .6 !important;
    --cc-consent-modal-box-shadow: 0 0 10px rgba(0, 0, 0, .15) !important;
}

/* Headings use the brand serif, like the rest of the site. */
#cc--main #c-ttl,
#cc--main #s-ttl {
    font-family: var(--mdn-font-heading, Georgia, serif);
    font-weight: 400;
    font-size: 1.5em;
    letter-spacing: 0;
}

/* Buttons like the site CTAs: same case and size for all three (the library uppercases only some). */
#cc--main .c-bn {
    border: 1px solid var(--cc-btn-primary-bg);
    font-weight: 600 !important;
    font-size: 13px !important;
    letter-spacing: .03em !important;
    text-transform: none !important;
}

/* Close (x) of the settings modal: it shares .c-bn, so the border and font size above
   move the library's em-based lines off center. Center them exactly instead. */
#cc--main #s-c-bn::before,
#cc--main #s-c-bn::after {
    top: 50% !important;
    left: 50% !important;
    height: 10px !important;
    margin-top: -5px !important;
    margin-left: -0.75px !important;
}

/* Reject and Accept get the same visual weight (AEPD: rejecting must be as easy as accepting). */
#cc--main #c-bns .c-bn {
    min-width: 9em;
}

#cc--main .cc-link,
#cc--main .cc-link:hover {
    color: var(--mdn-link) !important;
    border-bottom-color: var(--mdn-link) !important;
}

/* Visible focus for keyboard users. */
#cc--main .c-bn:focus-visible,
#cc--main .cc-link:focus-visible,
.mdn-cookie-button a:focus-visible {
    outline: 2px solid var(--cc-text);
    outline-offset: 2px;
}

/* Floating tab to reopen the settings. */
.mdn-cookie-button {
    position: fixed;
    bottom: 0;
    right: 1rem;
    z-index: 1000;
    background: var(--mdn-background) !important;
    padding: 0.5rem 1rem !important;
    font-family: var(--cc-font-family);
    font-weight: 600;
    font-size: 0.8125rem;
    transform: translateY(50%);
    transition: transform 0.3s;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.2);
}

/* The library renders its own tab with the link; the empty placeholder from displayFooter.tpl must not show as a blank box. */
.mdn-cookie-button:empty {
    display: none !important;
}

/* "Cookie settings" link rendered by the library once a consent is stored. */
.mdn-cookie-button a {
    color: var(--mdn-primary) !important;
}

.mdn-cookie-button:hover,
.mdn-cookie-button:focus-within {
    transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
    .mdn-cookie-button {
        transition: none;
    }
}
