/*
 * Voyager: what the old index.php carried inline, and the few lines the platform needs on top of
 * the template's own stylesheets. Loaded last, so it wins where it has to.
 */

/* .page_wrapper wrapped the whole old page; the platform owns <body>, so the rule moves there. */
body { overflow-x: hidden; }

/* The language dropdown - an inline <style> block in the old page. */
.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: #f9f9f9;
    min-width: 125px;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
    padding: 12px 16px;
    z-index: 1;
}

.dropdown:hover .dropdown-content {
    display: block;
}

/*
 * The Material Symbols the old page took from Google Fonts are inline SVG now (partials/icons.php);
 * this gives them the size the font had (.material-symbols-rounded { font-size: 30px }).
 */
svg.material-symbols-rounded {
    width: 30px;
    height: 30px;
    vertical-align: middle;
}

.app_btn li a svg.material-symbols-rounded {
    float: left;
}

/* The circle was laid out for a font glyph (padding-top on an inline-table); an SVG is centred. */
.btncircle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding-top: 0;
}

/* The plan cards: room on the sides at every width (responsive.css cut it to 15px), and the
   tick / cross on the line of the text. */
.pricing_section .pricing_pannel .pricing_block,
.pricing_section .pricing_pannel .pricing_block.highlited_block {
    padding-left: 30px;
    padding-right: 30px;
}

/* The old glyph was a <span> and took the highlighted card's white from its span rule. */
.pricing_section .pricing_pannel .pricing_block.highlited_block .btncircle {
    color: var(--text-white);
}

.pricing_section .pricing_pannel .pricing_block .benifits li p img {
    vertical-align: -4px;
    margin-right: 4px;
}

/* A question opens from anywhere on its bar, not only on its text: the button takes the card's
   padding and the whole width. */
.faq_section .faq_panel .card {
    padding: 0;
}

.faq_section .faq_panel .card-header {
    padding: 0;
}

.faq_section .faq_panel .card-header h2 {
    margin: 0;
}

.faq_section .faq_panel .card-header .btn {
    position: relative;
    display: block;
    width: 100%;
    padding: 16px 56px 16px 20px;
    text-align: left;
    white-space: normal;
}

.faq_section .faq_panel .card-header .icon_faq {
    top: 50%;
    transform: translateY(-50%);
}

.faq_section .faq_panel .card-body {
    padding: 0 20px 16px;
}

/* The anchors land under the fixed header, as the old wrappers' padding-top made them. */
html { scroll-padding-top: 90px; }
