/**
* 2007-2024 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
* If you did not receive a copy of the license and are unable to
* obtain it through the world-wide-web, please send an email
* to license@prestashop.com so we can send you a copy immediately.
*
* DISCLAIMER
*
* Do not edit or add to this file if you wish to upgrade PrestaShop to newer
* versions in the future. If you wish to customize PrestaShop for your
* needs please refer to http://www.prestashop.com for more information.
*
*  @author    PrestaShop SA <contact@prestashop.com>
*  @copyright 2007-2024 PrestaShop SA
*  @license   http://opensource.org/licenses/afl-3.0.php  Academic Free License (AFL 3.0)
*  International Registered Trademark & Property of PrestaShop SA
*
* Don't forget to prefix your containers with your own identifier
* to avoid any conflicts with others containers.
*/

/* Vlastní CSS třídy s prefixem rn-dotazy pro prevenci kolizí */
.rn-dotazy-contact-wrapper {
    margin: 20px 0;
}

.rn-dotazy-toggle-button-wrapper {
    margin-bottom: 15px;
}

/* Nadpis formuláře - statický text */
.rn-dotazy-form-title {
    font-weight: 600;
    text-transform: uppercase;
    color: #ffffff;
    font-size: 14px;
    padding: 12px;
    background: #f0653a;
    border-radius: 4px;
}

/* Kontejner formuláře - vždy viditelný */
.rn-dotazy-form-container {
    display: block !important;
    opacity: 1;
    padding: 20px 0;
    padding-top: 0;
}

/* Formulář */
.rn-dotazy-contact-form {
    width: 100%;
    padding: 18px 18px;
    text-align: left;
    border: 1px solid #f3f3f3;
}

.rn-dotazy-contact-form .form-group {
    margin-bottom: 15px;
}

.rn-dotazy-contact-form label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
    text-align: left;
}

.rn-dotazy-contact-form .required {
    color: #d9534f;
}

.rn-dotazy-contact-form .form-control {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

.rn-dotazy-contact-form textarea.form-control {
    min-height: 100px;
    resize: vertical;
}

.rn-dotazy-contact-form .help-block {
    font-size: 12px;
    color: #666;
    margin-top: 5px;
}

/* Collapsible motif sections */
.rn-motif-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background: #fafafa;
    cursor: pointer;
    transition: background-color 0.2s ease;
}
.rn-motif-toggle:hover {
    background: #f0f0f0;
}
.rn-motif-toggle .rn-motif-label {
    font-weight: 600;
    color: #333;
}
.rn-motif-toggle .rn-motif-icon {
    transition: transform 0.2s ease;
}
.rn-motif-toggle.active .rn-motif-icon {
    transform: rotate(90deg);
}

.rn-motif-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.25s ease, padding 0.25s ease;
    padding: 0 2px;
}
.rn-motif-content.open {
    padding: 10px 2px 2px 2px;
    max-height: 100%;
}

.rn-dotazy-submit-btn {
    margin-top: 15px;
}

/* Skrytí bloku "Add to cart" pokud je proměnná nastavena (fallback) */
body.rn-dotazy-hide-add-to-cart .product-add-to-cart,
body.rn-dotazy-hide-add-to-cart .js-product-add-to-cart {
    display: none !important;
}

/* Skrytí dostupnosti produktu pokud je proměnná nastavena */
body.rn-dotazy-hide-add-to-cart .prod-availability,
body.rn-dotazy-hide-add-to-cart span.prod-availability,
body.rn-dotazy-hide-add-to-cart #product-availability,
body.rn-dotazy-hide-add-to-cart .js-product-availability {
    display: none !important;
}

  
  
  
  
/* Cílíme jen labely, které obsahují náš checkbox */
label:has(> .input_dotazy) {
  position: relative;
}

/* Checkbox roztáhneme přes celý label, ale necháme ho “neviditelný” */
label:has(> .input_dotazy) > .input_dotazy {
  position: absolute !important;
  inset: 0 !important;         /* top/right/bottom/left = 0 */
  width: 100% !important;
  height: 100% !important;

  margin: 0 !important;
  opacity: 0 !important;       /* obrazek zůstane vidět */
  cursor: pointer;

  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;

  z-index: 5;
}

/* Overlay rámeček přes celý label */
label:has(> .input_dotazy)::after {
  content: "";
  position: absolute;
  inset: 0;
  border: 2px solid transparent;
  border-radius: 8px;          /* aby to ladilo s img radius 4px */
  pointer-events: none;
  z-index: 6;

  transition: border-color .15s ease, box-shadow .15s ease;
}

/* Hover (volitelně) */
label:has(> .input_dotazy):hover::after {
  border-color: rgba(0, 251, 255, 0.45);
}

/* Vybráno = jen rámeček */
label:has(> .input_dotazy:checked)::after {
  border-color: #00fbff;
  box-shadow: 0 0 0 3px rgba(0, 251, 255, 0.22);
}

/* Focus (přístupnost) */
label:has(> .input_dotazy:focus-visible)::after {
  border-color: #00fbff;
  box-shadow: 0 0 0 3px rgba(0, 251, 255, 0.35);
}

/* Volitelně: při výběru změň i border na img (přebije inline border) */
label:has(> .input_dotazy:checked) > img {
  border-color: #00fbff !important;
}

