/**
* 2010-2026 SwissGeek | Web Developer Freelance
*
 * NOTICE OF LICENSE
 *
 * This source file is subject to the Open Software License (OSL 3.0)
 * that is bundled with this package in the file LICENSE.md.
 * It is also available through the world-wide-web at this URL:
 * https:// opensource.org/licenses/OSL-3.0
 * 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 https:// devdocs.prestashop.com/ for more information.
*
* @Module		SGK FAQ
* @Description	FAQ module with categories: questions and answers grouped by category on a dedicated CMS page, animated accordion, customizable typography.
* @Version		1.9.1
* @Copyright	SwissGeek | Web Developer Freelance <https://swissgeek.dev/>
* @support		Support Requests <https://admin.swissgeek.dev/forms/ticket?styled=1&with_logo=1>
* @Blog			Breaking News <https://news.swissgeek.dev/> <https://news.prestageek.ch/>
* @Addons		Developments <https://prestageek.ch/> <https://add.swissgeek.dev/>
*
* @license		http://opensource.org/licenses/afl-3.0.php  Academic Free License (AFL 3.0)
*				Valid for 1 website (or project) for each purchase of license International Registered 
*				Trademark & Property of SwissGeek. More information on <https://swissgeek.dev/license/>
*/

/* =========================================================================
   SGK FAQ - Panda (SunnyToo) skin.

   Loaded only when the active theme is Panda or a child theme derived from
   it. Panda is based on Bootstrap 4 alpha and exposes no CSS custom property,
   so the real theme values are used as fallbacks; the var(--x, fallback) form
   is kept so a child theme defining those tokens still wins.

   Accent      : #e54d26  (.theme_color, link hover)
   Body text   : #666
   Headings    : #444
   Muted       : #878787 / #999
   Borders     : #d9d9d9 (cards, form-control) / #f2f2f2 (hairlines)
   Surfaces    : #fff / #f6f6f6
   Radius      : 0       (cards, buttons, fields are square)
   Font        : Arial, Helvetica, sans-serif

   Typography of the questions and answers is deliberately NOT redefined here:
   those properties are driven by the merchant's own settings through the
   --sgkfaq-* custom properties. Only the structural skin is adjusted.
   ========================================================================= */

.sgkfaq-panda {
    --sgkfaq-accent: var(--main-color, #e54d26);
    --sgkfaq-accent-h: var(--main-color-hover, #c8401d);
    --sgkfaq-accent-10: rgba(229, 77, 38, .10);
    --sgkfaq-accent-18: rgba(229, 77, 38, .18);
    --sgkfaq-text: var(--body-color, #666);
    --sgkfaq-heading: #444;
    --sgkfaq-muted: #878787;
    --sgkfaq-border: var(--border-color, #d9d9d9);
    --sgkfaq-border-lt: #f2f2f2;
    --sgkfaq-bg: var(--body-bg, #fff);
    --sgkfaq-bg-alt: #f6f6f6;
    --sgkfaq-font: var(--font-family, Arial, Helvetica, sans-serif);
}

/* =========================================================================
   GROUPS
   ========================================================================= */

.sgkfaq-panda .sgkfaq-group__title {
    color: var(--sgkfaq-heading);
    font-family: var(--sgkfaq-font);
    text-transform: uppercase;
    letter-spacing: .02em;
    font-size: 1rem;
}

.sgkfaq-panda .sgkfaq-group__desc {
    color: var(--sgkfaq-muted);
    font-family: var(--sgkfaq-font);
}

/* =========================================================================
   LIST AND ITEMS - square corners, Panda idiom
   ========================================================================= */

.sgkfaq-panda .sgkfaq-list {
    border-color: var(--sgkfaq-border);
    border-radius: 0;
    background: var(--sgkfaq-bg);
}

.sgkfaq-panda .sgkfaq-item {
    border-bottom-color: var(--sgkfaq-border-lt);
}

.sgkfaq-panda .sgkfaq-item__btn {
    padding: 13px 15px;
}

.sgkfaq-panda .sgkfaq-item__btn:hover {
    background: var(--sgkfaq-bg-alt);
}

.sgkfaq-panda .sgkfaq-item--open > .sgkfaq-item__btn {
    background: var(--sgkfaq-bg-alt);
}

/* Panda applies a global `button:focus { outline: 5px auto }` whose
   specificity beat the module's reset: neutralised on click, kept on
   keyboard focus. */
.sgkfaq-panda .sgkfaq-list .sgkfaq-item__btn:focus {
    outline: none;
}

.sgkfaq-panda .sgkfaq-list .sgkfaq-item__btn:focus-visible {
    outline: 2px solid var(--sgkfaq-accent);
    outline-offset: -2px;
}

/* =========================================================================
   ICONS - inline SVG tinted with the Panda accent
   ========================================================================= */

.sgkfaq-panda .sgkfaq-item__icon {
    background: var(--sgkfaq-accent-10);
    width: 24px;
    height: 24px;
    min-width: 24px;
}

.sgkfaq-panda .sgkfaq-item__icon svg {
    fill: var(--sgkfaq-accent);
}

.sgkfaq-panda .sgkfaq-item--open > .sgkfaq-item__btn .sgkfaq-item__icon {
    background: var(--sgkfaq-accent-18);
}

.sgkfaq-panda .sgkfaq-item__chevron svg {
    fill: #999;
}

.sgkfaq-panda .sgkfaq-item--open .sgkfaq-item__chevron svg {
    fill: var(--sgkfaq-accent);
}

/* =========================================================================
   ANSWER
   ========================================================================= */

.sgkfaq-panda .sgkfaq-item__answer {
    background: var(--sgkfaq-bg);
}

.sgkfaq-panda .sgkfaq-item__answer-body {
    padding: 12px 15px 15px 3rem;
    line-height: 1.7;
}

.sgkfaq-panda .sgkfaq-item__answer-body a {
    color: var(--sgkfaq-heading);
    text-decoration: underline;
}

.sgkfaq-panda .sgkfaq-item__answer-body a:hover,
.sgkfaq-panda .sgkfaq-item__answer-body a:focus {
    color: var(--sgkfaq-accent);
}

.sgkfaq-panda .sgkfaq-item__answer-body ul,
.sgkfaq-panda .sgkfaq-item__answer-body ol {
    margin: .5rem 0 .75rem;
    padding-left: 1.5rem;
}

.sgkfaq-panda .sgkfaq-item__answer-body ul {
    list-style: disc outside;
}

.sgkfaq-panda .sgkfaq-item__answer-body ol {
    list-style: decimal outside;
}

.sgkfaq-panda .sgkfaq-item__answer-body li {
    margin-bottom: .25rem;
}

.sgkfaq-panda .sgkfaq-item__answer-body img {
    max-width: 100%;
    height: auto;
}

/* =========================================================================
   EMPTY STATE
   ========================================================================= */

.sgkfaq-panda .sgkfaq-empty-state {
    border-radius: 0;
    border-color: var(--sgkfaq-border);
    background: var(--sgkfaq-bg-alt);
}

.sgkfaq-panda .sgkfaq-empty-state__icon svg {
    fill: var(--sgkfaq-muted);
}

.sgkfaq-panda .sgkfaq-empty-state__text {
    color: var(--sgkfaq-muted);
    font-family: var(--sgkfaq-font);
}

/* =========================================================================
   BACK TO HOME LINK
   ========================================================================= */

.sgkfaq-panda .sgkfaq-home-link-wrap {
    border-top-color: var(--sgkfaq-border-lt);
}

.sgkfaq-panda .sgkfaq-home-link {
    border-radius: 0;
    border-color: var(--sgkfaq-border);
    background: var(--sgkfaq-bg-alt);
    color: var(--sgkfaq-text);
    font-family: var(--sgkfaq-font);
}

.sgkfaq-panda .sgkfaq-home-link:hover {
    color: var(--sgkfaq-accent);
    border-color: var(--sgkfaq-accent);
    background: var(--sgkfaq-bg);
}

.sgkfaq-panda .sgkfaq-home-link:focus-visible {
    outline: 2px solid var(--sgkfaq-accent);
    outline-offset: 2px;
    color: var(--sgkfaq-accent);
    border-color: var(--sgkfaq-accent);
    background: var(--sgkfaq-bg);
}

/* =========================================================================
   SUGGEST-A-QUESTION FORM
   ========================================================================= */

.sgkfaq-panda .sgkfaq-contact {
    border-radius: 0;
    border-color: var(--sgkfaq-border);
    background: var(--sgkfaq-bg);
}

.sgkfaq-panda .sgkfaq-contact__title {
    color: var(--sgkfaq-heading);
    font-family: var(--sgkfaq-font);
    text-transform: uppercase;
    letter-spacing: .02em;
    font-size: 1rem;
}

.sgkfaq-panda .sgkfaq-contact__intro,
.sgkfaq-panda .sgkfaq-contact__label,
.sgkfaq-panda .sgkfaq-contact__consent {
    color: var(--sgkfaq-text);
    font-family: var(--sgkfaq-font);
}

.sgkfaq-panda .sgkfaq-contact__alert {
    border-radius: 0;
    font-family: var(--sgkfaq-font);
}

.sgkfaq-panda .sgkfaq-contact__input,
.sgkfaq-panda .sgkfaq-contact__textarea {
    border-radius: 0;
    border-color: var(--sgkfaq-border);
    font-family: var(--sgkfaq-font);
    color: var(--sgkfaq-text);
}

.sgkfaq-panda .sgkfaq-contact__input:focus,
.sgkfaq-panda .sgkfaq-contact__textarea:focus {
    border-color: var(--sgkfaq-accent);
    box-shadow: none;
}

.sgkfaq-panda .sgkfaq-contact__btn {
    border-radius: 0;
    background: var(--sgkfaq-accent);
    font-family: var(--sgkfaq-font);
    text-transform: uppercase;
    letter-spacing: .02em;
}

.sgkfaq-panda .sgkfaq-contact__btn:hover {
    background: var(--sgkfaq-accent-h);
}

.sgkfaq-panda .sgkfaq-contact__btn:focus {
    outline: none;
}

.sgkfaq-panda .sgkfaq-contact__btn:focus-visible {
    outline: 2px solid var(--sgkfaq-accent);
    outline-offset: 2px;
}

/* =========================================================================
   RESPONSIVE - Panda
   ========================================================================= */

@media (max-width: 767.98px) {
    .sgkfaq-panda .sgkfaq-item__btn {
        padding: 11px 12px;
    }

    .sgkfaq-panda .sgkfaq-item__answer-body {
        padding: 11px 12px 14px;
    }
}

/* =========================================================================
   RTL - Panda ships an rtl.css and flips direction on Arabic and Hebrew
   stores. Mirror the direction-aware paddings and the home-link hover shift.
   ========================================================================= */

[dir="rtl"] .sgkfaq-panda .sgkfaq-item__answer-body {
    padding-left: 15px;
    padding-right: 3rem;
}

[dir="rtl"] .sgkfaq-panda .sgkfaq-home-link:hover {
    transform: translateX(3px);
}

[dir="rtl"] .sgkfaq-panda .sgkfaq-item__answer-body ul,
[dir="rtl"] .sgkfaq-panda .sgkfaq-item__answer-body ol {
    padding-left: 0;
    padding-right: 1.5rem;
}
