/*
 * "WoW Forever Leveling" product page design (product/product_wf_leveling.twig).
 * Loaded only for products with this design chosen in admin.
 */

.wfl_page {
    --wfl-text: #0f1419;
    --wfl-text-soft: #3d4550;
    --wfl-text-muted: #5b6470;
    --wfl-text-faint: #8a8a8a;
    --wfl-body-text: #33404d;
    --wfl-border: #e1e1e1;
    --wfl-border-soft: #e6e8ec;
    --wfl-surface: #ffffff;
    --wfl-surface-soft: #f4f5f7;
    --wfl-circle: #e0e4e8;
    --wfl-circle-border: #cfd2d7;
    --wfl-green: #1dc261;
    --wfl-green-button: #1acb6e;
    --wfl-green-text: #0b6b37;
    --wfl-green-link: #0b7a3e;
    --wfl-green-dark: #06210f;
    --wfl-blue: #1d4ed8;
    --wfl-sky: #2aabee;
    --wfl-sky-soft: rgba(42, 171, 238, 0.1);
    --wfl-shadow-item: 0 1px 1.5px rgba(15, 20, 25, 0.16);
    --wfl-radius-card: 20px;
    --wfl-radius-box: 16px;
    --wfl-radius-group: 12px;
    --wfl-radius-item: 9px;
    --wfl-gap: 17px;
}

/* The site loads each Roboto weight as its own family: bold text from the editor would be a faux bold */
.wfl b,
.wfl strong,
.wfl_about_wrap b,
.wfl_about_wrap strong {
    font-family: Roboto-Bold, sans-serif;
    font-weight: 400;
}

/* No breadcrumbs on this page: the mockup starts right under the header */

.wfl_page .breadcrumb_container {
    display: none;
}

/* Layout */

.wfl {
    color: var(--wfl-text);
    margin-block: 19px 20px;
}

.wfl_grid {
    align-items: start;
    display: grid;
    gap: var(--wfl-gap);
    grid-template-columns: minmax(0, 1fr) 380px;
}

/* Sizes follow the 1440px mockup: main 953 (padding 28) + 17 + aside 380 in .container_wide (1350) */
.wfl_main {
    background-color: var(--wfl-surface);
    border-radius: var(--wfl-radius-card);
    container-type: inline-size;
    display: flex;
    flex-direction: column;
    gap: 15px;
    min-inline-size: 0;
    padding: 24px 28px;
}

.wfl_title {
    color: var(--wfl-text);
    font-family: Roboto-Bold, sans-serif;
    font-size: 24px;
    font-weight: 400;
    line-height: 28px;
    margin: 0;
}

.wfl_top {
    display: grid;
    gap: 17px;
    grid-template-columns: minmax(0, 339px) minmax(0, 1fr);
    margin-block-start: 4px;
}

/* Main column too narrow for setup + level side by side (level under ~440px): stack them */
@container (max-width: 795px) {
    .wfl_top {
        grid-template-columns: minmax(0, 1fr);
    }
}

.wfl_level_art_img[hidden],
.wfl_characters_img[hidden] {
    display: none;
}

/* Figma strokes sit inside the frame: an inset outline keeps the mockup inner sizes */
.wfl_card {
    background-color: var(--wfl-surface);
    border-radius: var(--wfl-radius-card);
    min-inline-size: 0;
    position: relative;
}

/* Cards are stacking contexts (container queries): the card with an open dropdown goes above
   the next cards, but stays under the phone bottom bar (z-index 9) */
.wfl_card.wfl_card_raised {
    z-index: 5;
}

/* Drawn above the content (like a Figma inside stroke) so full-width pictures do not cover it */
.wfl_card::after {
    border: 1px solid var(--wfl-border);
    border-radius: inherit;
    content: "";
    inset: 0;
    pointer-events: none;
    position: absolute;
    z-index: 3;
}

.wfl_card_title {
    color: var(--wfl-text);
    font-family: Roboto-Bold, sans-serif;
    font-size: 20px;
    font-weight: 400;
    line-height: 1.25;
    margin: 0;
}

.wfl_label {
    align-items: center;
    color: var(--wfl-text-muted);
    display: flex;
    font-family: Roboto-Medium, sans-serif;
    font-size: 14px;
    font-weight: 400;
    gap: 6px;
    line-height: 16px;
    margin-block-end: 8px;
}

.wfl_label_small {
    font-family: Roboto-Regular, sans-serif;
    font-size: 13px;
    font-weight: 400;
}

.wfl_field + .wfl_field {
    margin-block-start: 20px;
}

.wfl_input {
    block-size: 1px;
    inline-size: 1px;
    margin: 0;
    opacity: 0;
    overflow: hidden;
    pointer-events: none;
    position: absolute;
}

.wfl_visually_hidden {
    block-size: 1px;
    clip: rect(0 0 0 0);
    inline-size: 1px;
    overflow: hidden;
    position: absolute;
    white-space: nowrap;
}

/* Setup: faction, class, server */

.wfl_setup {
    container: wfl-setup / inline-size;
    padding: 24px 24px 22px;
}

.wfl_faction {
    display: grid;
    gap: 11px;
    grid-template-columns: repeat(2, 140px);
}

.wfl_faction_item {
    position: relative;
}

.wfl_faction_card {
    aspect-ratio: 140 / 166;
    border: 2px solid transparent;
    border-radius: 14px;
    cursor: pointer;
    display: block;
    inline-size: 100%;
    margin: 0;
    overflow: hidden;
    position: relative;
}

.wfl_faction_card::after {
    background-image: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, #000000 100%);
    block-size: 103px;
    content: "";
    inset-block-end: 0;
    inset-inline: 0;
    position: absolute;
}

.wfl_faction_art {
    block-size: 100%;
    filter: grayscale(1);
    inline-size: 100%;
    object-fit: cover;
    object-position: center bottom;
    transition: filter 0.2s ease;
}

.wfl_faction_name {
    align-items: center;
    color: #ffffff;
    display: flex;
    font-family: Roboto-Bold, sans-serif;
    font-size: 14px;
    font-weight: 400;
    gap: 4px;
    inset-block-end: 14px;
    inset-inline-start: 13px;
    opacity: 0.6;
    position: absolute;
    z-index: 1;
}

.wfl_faction_card:hover .wfl_faction_art {
    filter: grayscale(0.5);
}

.wfl_input:checked + .wfl_faction_card {
    border-color: var(--wfl-blue);
}

.wfl_input:checked + .wfl_faction_card::after {
    background-image: linear-gradient(180deg, rgba(9, 21, 56, 0) 0%, #091538 100%);
}

.wfl_input:checked + .wfl_faction_card .wfl_faction_art {
    filter: none;
}

.wfl_input:checked + .wfl_faction_card .wfl_faction_name {
    opacity: 1;
}

.wfl_input:focus-visible + .wfl_faction_card,
.wfl_input:focus-visible + .wfl_segment_label,
.wfl_input:focus-visible + .wfl_addon_card {
    outline: 2px solid var(--wfl-sky);
    outline-offset: 2px;
}

/* Segmented radio groups */

.wfl_segment {
    background-color: var(--wfl-surface-soft);
    border-radius: var(--wfl-radius-group);
    display: grid;
    gap: 2px;
    grid-auto-columns: minmax(0, 1fr);
    grid-auto-flow: column;
    padding: 4px;
}

.wfl_segment_grid {
    gap: 2px 6px;
    grid-auto-flow: row;
    grid-auto-rows: 50px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.wfl_segment_wrap {
    grid-auto-flow: row;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
}

.wfl_segment_item {
    display: flex;
    min-inline-size: 0;
    position: relative;
}

.wfl_segment_label {
    align-items: center;
    border-radius: var(--wfl-radius-item);
    cursor: pointer;
    display: flex;
    flex: 1;
    flex-direction: column;
    font-family: Roboto-Regular, sans-serif;
    font-weight: 400;
    justify-content: center;
    margin: 0;
    min-block-size: 48px;
    padding: 6px 6px;
    text-align: center;
    transition: background-color 0.15s ease, box-shadow 0.15s ease;
}

.wfl_segment_grid .wfl_segment_label {
    min-block-size: 50px;
}

.wfl_segment_label:hover {
    background-color: rgba(255, 255, 255, 0.6);
}

.wfl_segment_name {
    color: var(--wfl-text-soft);
    font-family: Roboto-Medium, sans-serif;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.2;
}

.wfl_segment_price {
    color: #000000;
    font-family: Roboto-Bold, sans-serif;
    font-size: 12px;
    font-weight: 400;
    line-height: 1.2;
    white-space: nowrap;
}

.wfl_input:checked + .wfl_segment_label {
    background-color: var(--wfl-surface);
    box-shadow: var(--wfl-shadow-item);
}

.wfl_input:checked + .wfl_segment_label .wfl_segment_name {
    color: var(--wfl-green-text);
    font-family: Roboto-SemiBold, sans-serif;
    font-weight: 400;
}

.wfl_price_plus:not(:empty)::before {
    content: "+";
}

.wfl_price_minus::before {
    content: "−";
}

/* Dropdowns (class, professions) */

.wfl_dropdown {
    position: relative;
}

.wfl_js .wfl_dropdown_native {
    block-size: 1px;
    inline-size: 1px;
    opacity: 0;
    overflow: hidden;
    pointer-events: none;
    position: absolute;
}

.wfl_dropdown_button {
    align-items: center;
    background-color: var(--wfl-surface-soft);
    border: 0;
    border-radius: 14px;
    color: var(--wfl-text);
    cursor: pointer;
    display: flex;
    gap: 10px;
    inline-size: 100%;
    min-block-size: 60px;
    padding: 6px 16px 6px 6px;
    text-align: start;
}

.wfl_dropdown_button:disabled {
    cursor: default;
    opacity: 0.5;
}

.wfl_dropdown_icon {
    background-color: var(--wfl-circle);
    block-size: 48px;
    border-radius: 10px;
    flex: none;
    inline-size: 48px;
    overflow: hidden;
}

.wfl_dropdown_icon img {
    block-size: 100%;
    inline-size: 100%;
    object-fit: cover;
}

.wfl_dropdown_text {
    flex: 1;
    font-family: Roboto-Bold, sans-serif;
    font-size: 17px;
    font-weight: 400;
    line-height: 1.2;
    min-inline-size: 0;
}

.wfl_dropdown_price {
    flex: none;
    font-family: Roboto-Bold, sans-serif;
    font-size: 18px;
    font-weight: 400;
    white-space: nowrap;
}

.wfl_dropdown_chevron {
    border-block-end: 1.5px solid var(--wfl-text-muted);
    border-inline-end: 1.5px solid var(--wfl-text-muted);
    block-size: 7px;
    flex: none;
    inline-size: 7px;
    margin-block-start: -4px;
    margin-inline-start: 4px;
    transform: rotate(45deg);
    transition: transform 0.15s ease;
}

.wfl_dropdown.is_open .wfl_dropdown_chevron {
    margin-block-start: 4px;
    transform: rotate(-135deg);
}

.wfl_dropdown_list {
    background-color: var(--wfl-surface);
    border: 1px solid var(--wfl-border);
    border-radius: 14px;
    box-shadow: 0 12px 32px rgba(15, 20, 25, 0.14);
    inset-inline: 0;
    list-style: none;
    margin: 6px 0 0;
    max-block-size: 340px;
    overflow-y: auto;
    padding: 6px;
    position: absolute;
    z-index: 30;
}

.wfl_dropdown_item {
    align-items: center;
    border-radius: 10px;
    cursor: pointer;
    display: flex;
    gap: 10px;
    min-block-size: 48px;
    outline: none;
    padding: 4px 10px 4px 4px;
}

.wfl_dropdown_item:hover,
.wfl_dropdown_item:focus {
    background-color: var(--wfl-surface-soft);
}

.wfl_dropdown_item[aria-selected="true"] {
    background-color: #eaf8f0;
}

.wfl_dropdown_item[aria-disabled="true"] {
    cursor: not-allowed;
    opacity: 0.4;
}

.wfl_dropdown_item_icon {
    background-color: var(--wfl-circle);
    block-size: 40px;
    border-radius: 50%;
    flex: none;
    inline-size: 40px;
    overflow: hidden;
}

.wfl_dropdown_item_icon:empty {
    background-color: transparent;
}

.wfl_dropdown_item_icon img {
    block-size: 100%;
    inline-size: 100%;
    object-fit: cover;
    object-position: center top;
}

.wfl_dropdown_item_name {
    flex: 1;
    font-family: Roboto-Medium, sans-serif;
    font-size: 15px;
    font-weight: 400;
}

.wfl_dropdown_item_price {
    font-family: Roboto-Bold, sans-serif;
    font-size: 14px;
    font-weight: 400;
    white-space: nowrap;
}

/* Profession card version of the dropdown: 420x70 in the mockup, picture 62px with its own circle */

.wfl_dropdown_card .wfl_dropdown_button {
    border-radius: var(--wfl-radius-box);
    gap: 14px;
    min-block-size: 70px;
    padding: 4px 24px 4px 14px;
}

.wfl_dropdown_card .wfl_dropdown_icon {
    background-color: transparent;
    block-size: 62px;
    border-radius: 0;
    inline-size: 62px;
    overflow: visible;
}

.wfl_dropdown_card .wfl_dropdown_icon img {
    object-fit: contain;
}

.wfl_dropdown_card .wfl_dropdown_text {
    font-family: Roboto-SemiBold, sans-serif;
    font-size: 16px;
    font-weight: 400;
    line-height: 19px;
}

.wfl_dropdown_card .wfl_dropdown_list {
    background-color: var(--wfl-surface-soft);
}

.wfl_dropdown_card .wfl_dropdown_item_icon {
    background-color: transparent;
    block-size: 50px;
    inline-size: 50px;
}

.wfl_dropdown_card .wfl_dropdown_item:hover,
.wfl_dropdown_card .wfl_dropdown_item:focus {
    background-color: #e9ebee;
}

.wfl_dropdown_card .wfl_dropdown_item_name,
.wfl_dropdown_card .wfl_dropdown_item_price {
    font-family: Roboto-SemiBold, sans-serif;
    font-size: 16px;
    font-weight: 400;
}

/* Level: 541x494 card, positions from the mockup (art at 59, labels at 351, track at 413, marks at 436) */

.wfl_level {
    container: wfl-level / inline-size;
    overflow: hidden;
}

.wfl_level_inner {
    display: flex;
    flex-direction: column;
    block-size: 100%;
    padding: 22px 28px 24px 26px;
}

.wfl_level_head {
    align-items: center;
    block-size: 24px;
    display: flex;
    gap: 12px;
    justify-content: space-between;
    position: relative;
    z-index: 2;
}

.wfl_level_head .wfl_label {
    margin: 0;
}

.wfl_level_price {
    font-family: Roboto-Bold, sans-serif;
    font-size: 20px;
    font-weight: 400;
    line-height: 24px;
    white-space: nowrap;
}

.wfl_level_art {
    aspect-ratio: 541 / 300;
    flex: none;
    margin-block-start: 13px;
    margin-inline: -26px -28px;
    position: relative;
}

.wfl_level_art_img {
    block-size: 100%;
    inline-size: 100%;
    inset: 0;
    object-fit: cover;
    object-position: center top;
    pointer-events: none;
    position: absolute;
}

/* Handles travel from x=29 (level 1) to x=499 (level 60), the gray track runs 24..517 */
.wfl_level_control {
    margin-block-start: auto;
    margin-inline: 3px 14px;
    position: relative;
    z-index: 1;
}

.wfl_level_art + .wfl_level_control {
    margin-block-start: -8px;
}

.wfl_level_values {
    block-size: 44px;
    position: relative;
}

/* Horizontal position is set by the script so labels never leave the card or overlap */
.wfl_level_value {
    align-items: center;
    display: flex;
    flex-direction: column;
    gap: 5px;
    inset-block-start: 0;
    inset-inline-start: 0;
    position: absolute;
    white-space: nowrap;
}

.wfl_level_value_label {
    color: var(--wfl-text-faint);
    font-family: Roboto-SemiBold, sans-serif;
    font-size: 15px;
    font-weight: 400;
    line-height: 18px;
}

.wfl_level_value_num {
    color: #111a22;
    font-family: Roboto-Bold, sans-serif;
    font-size: 26px;
    font-weight: 400;
    line-height: 21px;
}

.wfl_level_track {
    margin-block-start: 18px;
    position: relative;
}

.wfl_level_track::before {
    background-color: #e0e0e0;
    block-size: 8px;
    border-radius: 999px;
    content: "";
    inset-block-start: 0;
    inset-inline: -5px -18px;
    position: absolute;
}

.wfl_level_slider.noUi-target {
    background-color: transparent;
    block-size: 8px;
    border: 0;
    border-radius: 999px;
    box-shadow: none;
}

.wfl_level_slider .noUi-connect {
    background-image: linear-gradient(90deg, var(--wfl-sky) 0%, var(--wfl-green) 100%);
}

.wfl_level_slider .noUi-connects {
    border-radius: 999px;
}

.wfl_level_slider .noUi-handle {
    background-color: var(--wfl-green);
    block-size: 20px;
    border: 2.3px solid #ffffff;
    border-radius: 50%;
    box-shadow: 0 0 0 1.5px var(--wfl-green);
    cursor: grab;
    inline-size: 20px;
    inset-block-start: -6px;
    inset-inline-end: -10px;
}

.wfl_level_slider .noUi-handle::before,
.wfl_level_slider .noUi-handle::after {
    content: none;
}

.wfl_level_slider .noUi-handle:focus-visible {
    outline: 2px solid var(--wfl-sky);
    outline-offset: 2px;
}

.wfl_level_marks {
    block-size: 34px;
    margin-block-start: 15px;
    position: relative;
}

.wfl_level_mark {
    align-items: center;
    display: flex;
    flex-direction: column;
    inset-inline-start: var(--wfl-mark-pos, 0%);
    position: absolute;
    transform: translateX(-50%);
}

.wfl_level_mark b {
    color: var(--wfl-text);
    font-family: Roboto-Bold, sans-serif;
    font-size: 15px;
    font-weight: 400;
    line-height: 18px;
}

.wfl_level_mark small {
    color: var(--wfl-text-muted);
    font-family: Roboto-Medium, sans-serif;
    font-size: 12px;
    font-weight: 400;
    line-height: 14px;
    margin-block-start: 2px;
}

/* Characters */

/* 900x140 card, the group picture sits at the right edge and is cut by the card bottom */
.wfl_characters {
    container: wfl-characters / inline-size;
    min-block-size: 140px;
    overflow: hidden;
    padding: 24px;
    position: relative;
}

.wfl_characters_body {
    display: flex;
    flex-direction: column;
    gap: 11px;
    position: relative;
    z-index: 1;
}

.wfl_segment_characters {
    align-self: flex-start;
    grid-auto-columns: 110px;
}


.wfl_characters_art {
    block-size: 157px;
    inline-size: 274px;
    inset-block-start: -1px;
    inset-inline-end: 31px;
    pointer-events: none;
    position: absolute;
}

.wfl_characters_img {
    block-size: 157px;
    display: block;
    inline-size: 100%;
    object-fit: contain;
    object-position: center bottom;
}

/* Extras: two tabs (pictures with the name drawn in), add-on cards, professions */

.wfl_extras {
    container: wfl-extras / inline-size;
    display: flex;
    flex-direction: column;
    gap: 11px;
    padding: 24px;
}

.wfl_tabs {
    display: grid;
    gap: 12px;
    grid-template-columns: repeat(auto-fit, minmax(0, 1fr));
}

.wfl_tab {
    aspect-ratio: 840 / 162;
    background-color: #000000;
    block-size: auto;
    max-block-size: 81px;
    border: 0;
    border-radius: var(--wfl-radius-box);
    cursor: pointer;
    overflow: hidden;
    padding: 0;
    position: relative;
    text-align: start;
}

.wfl_tab_art {
    block-size: 100%;
    inline-size: 100%;
    inset: 0;
    object-fit: cover;
    object-position: right center;
    position: absolute;
}

.wfl_tab_art_on,
.wfl_tab.is_active .wfl_tab_art_off {
    display: none;
}

.wfl_tab.is_active .wfl_tab_art_on {
    display: block;
}

.wfl_tab_name {
    color: #9a9a9a;
    font-family: Roboto-Bold, sans-serif;
    font-size: 18px;
    font-weight: 400;
    inset-block-start: 50%;
    inset-inline-start: 27px;
    position: absolute;
    transform: translateY(-50%);
    z-index: 1;
}

.wfl_tab.is_active .wfl_tab_name {
    color: #ffffff;
}

.wfl_tab_name_short {
    display: none;
}

/* The name is already drawn on the desktop picture: keep it for screen readers only */
.wfl_tab_name_drawn {
    block-size: 1px;
    clip: rect(0 0 0 0);
    inline-size: 1px;
    overflow: hidden;
    white-space: nowrap;
}

.wfl_tab_count {
    background-color: var(--wfl-green);
    border-radius: 999px;
    color: #ffffff;
    font-family: Roboto-Bold, sans-serif;
    font-size: 12px;
    font-weight: 400;
    inset-block-start: 8px;
    inset-inline-end: 10px;
    line-height: 1;
    padding: 4px 7px;
    position: absolute;
    z-index: 1;
}

.wfl_tab:focus-visible {
    outline: 2px solid var(--wfl-sky);
    outline-offset: 2px;
}

.wfl_panel {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.wfl_panel[hidden] {
    display: none;
}

/* Add-on cards: 205x148, picture top left, name next to it, price and toggle at the bottom */

.wfl_addons {
    display: grid;
    gap: 10px;
}

.wfl_addons_extras {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.wfl_addon {
    position: relative;
}

.wfl_addon_card {
    background-color: var(--wfl-surface-soft);
    border-radius: var(--wfl-radius-box);
    cursor: pointer;
    display: grid;
    font-family: Roboto-Regular, sans-serif;
    font-weight: 400;
    gap: 0 9px;
    grid-template-areas:
        "icon name"
        "price toggle";
    grid-template-columns: 78px minmax(0, 1fr);
    grid-template-rows: 78px 1fr;
    margin: 0;
    min-block-size: 148px;
    padding: 14px 10px 16px 6px;
}

.wfl_addon_icon {
    block-size: 78px;
    grid-area: icon;
    inline-size: 78px;
}

.wfl_addon_icon:empty {
    display: none;
}

.wfl_addon_icon img {
    block-size: 100%;
    inline-size: 100%;
    object-fit: contain;
}

.wfl_addon_name {
    align-self: center;
    color: var(--wfl-text);
    font-family: Roboto-SemiBold, sans-serif;
    font-size: 16px;
    font-weight: 400;
    grid-area: name;
    line-height: 19px;
    min-inline-size: 0;
}

.wfl_addon_price {
    align-self: end;
    color: var(--wfl-text);
    font-family: Roboto-Bold, sans-serif;
    font-size: 18px;
    font-weight: 400;
    grid-area: price;
    line-height: 21px;
    padding-inline-start: 7px;
    white-space: nowrap;
}

.wfl_addon_toggle {
    align-self: end;
    background-color: var(--wfl-green-dark);
    block-size: 31px;
    border-radius: 9.5px;
    grid-area: toggle;
    inline-size: 31px;
    justify-self: end;
    position: relative;
    transition: background-color 0.15s ease;
}

/* Plus drawn with two bars, check mark with a rotated corner */
.wfl_addon_toggle::before,
.wfl_addon_toggle::after {
    background-color: #ffffff;
    border-radius: 1px;
    content: "";
    inset-block-start: 50%;
    inset-inline-start: 50%;
    position: absolute;
}

.wfl_addon_toggle::before {
    block-size: 1.5px;
    inline-size: 11px;
    transform: translate(-50%, -50%);
}

.wfl_addon_toggle::after {
    block-size: 11px;
    inline-size: 1.5px;
    transform: translate(-50%, -50%);
}

.wfl_addon_card:hover .wfl_addon_toggle {
    background-color: #0d3a1d;
}

.wfl_input:checked + .wfl_addon_card .wfl_addon_toggle {
    background-color: var(--wfl-green);
}

.wfl_input:checked + .wfl_addon_card .wfl_addon_toggle::before {
    background-color: transparent;
    block-size: 10px;
    border-block-end: 1.8px solid #ffffff;
    border-inline-end: 1.8px solid #ffffff;
    inline-size: 5px;
    transform: translate(-50%, -62%) rotate(45deg);
}

.wfl_input:checked + .wfl_addon_card .wfl_addon_toggle::after {
    content: none;
}

/* Secondary professions: 276x50 chips with a square picture */

.wfl_addons_chips {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.wfl_addons_chips .wfl_addon_card {
    align-items: center;
    display: flex;
    gap: 10px;
    min-block-size: 50px;
    padding: 9px 10px;
}

.wfl_addons_chips .wfl_addon_icon {
    block-size: 31px;
    border-radius: 7px;
    inline-size: 31px;
    overflow: hidden;
}

.wfl_addons_chips .wfl_addon_icon img {
    object-fit: cover;
}

.wfl_addons_chips .wfl_addon_name {
    flex: 1;
    font-family: Roboto-Medium, sans-serif;
    font-size: 16px;
    font-weight: 400;
}

.wfl_addons_chips .wfl_addon_price {
    font-family: Roboto-SemiBold, sans-serif;
    font-size: 14px;
    font-weight: 400;
    padding: 0;
}

.wfl_addons_chips .wfl_addon_toggle {
    align-self: center;
}

/* Profession rows (one per character) */

.wfl_prof_row {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.wfl_prof_row[hidden] {
    display: none;
}

.wfl_prof_row_title {
    color: var(--wfl-text);
    font-family: Roboto-Bold, sans-serif;
    font-size: 15px;
    font-weight: 400;
}

.wfl_prof_row_selects {
    display: grid;
    gap: 12px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.wfl_secondary {
    display: flex;
    flex-direction: column;
    margin-block-start: 4px;
}

.wfl_secondary .wfl_label {
    margin-block-end: 9px;
}

.wfl_summary {
    align-items: center;
    border-block-start: 1px solid #eef0f2;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding-block-start: 14px;
}

.wfl_summary_title {
    color: var(--wfl-text);
    font-family: Roboto-Bold, sans-serif;
    font-size: 14px;
    font-weight: 400;
}

.wfl_summary_list {
    display: contents;
}

.wfl_summary.is_empty {
    display: none;
}

.wfl_chip {
    align-items: center;
    background-color: #eaf8f0;
    border: 1px solid #bfe9cf;
    border-radius: 999px;
    color: var(--wfl-green-text);
    cursor: pointer;
    display: inline-flex;
    font-family: Roboto-SemiBold, sans-serif;
    font-size: 13px;
    font-weight: 400;
    gap: 6px;
    padding: 5px 10px 5px 12px;
}

.wfl_chip:hover {
    border-color: var(--wfl-green);
}

.wfl_chip_remove {
    font-size: 16px;
    line-height: 1;
}

/* Other options (anything the page does not know) */

.wfl_other {
    padding: 23px;
}

.wfl_other .wfl_card_title {
    margin-block-end: 14px;
}

.wfl_text_input {
    border-radius: var(--wfl-radius-group);
    min-block-size: 46px;
}

/* Aside */

.wfl_aside {
    min-inline-size: 0;
}

/* No overflow clipping here: the "?" hints must be able to leave the card */
.wfl_aside_card {
    background-color: var(--wfl-surface);
    border-radius: var(--wfl-radius-card);
}

.wfl_banner {
    aspect-ratio: 380 / 256;
    border-start-end-radius: var(--wfl-radius-card);
    border-start-start-radius: var(--wfl-radius-card);
    overflow: hidden;
    position: relative;
}

.wfl_banner::after {
    background-image: linear-gradient(180deg, rgba(255, 255, 255, 0) 0%, #ffffff 100%);
    block-size: 50%;
    content: "";
    inset-block-end: 0;
    inset-inline: 0;
    position: absolute;
}

/* The mockup keeps the top of the product picture */
.wfl_banner_img {
    block-size: 100%;
    inline-size: 100%;
    object-fit: cover;
    object-position: center top;
}

.wfl_banner_title {
    display: none;
}

.wfl_aside_body {
    display: flex;
    flex-direction: column;
    gap: 18px;
    padding: 25px 15px 28px;
}

.wfl_region_list {
    background-color: var(--wfl-surface-soft);
    border-radius: var(--wfl-radius-group);
    display: grid;
    gap: 4px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding: 4px;
}

.wfl_region_button {
    align-items: center;
    background-color: transparent;
    block-size: 34px;
    border: 0;
    border-radius: var(--wfl-radius-item);
    color: var(--wfl-text-muted);
    cursor: pointer;
    display: flex;
    font-family: Roboto-SemiBold, sans-serif;
    font-size: 13px;
    font-weight: 400;
    gap: 4px;
    justify-content: center;
}

.wfl_region_button.activ {
    background-color: var(--wfl-surface);
    box-shadow: 0 1px 1px rgba(15, 20, 25, 0.12);
    color: var(--wfl-text);
}

.wfl_eta {
    border-block-end: 1px solid var(--wfl-border-soft);
    display: grid;
    gap: 10px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding-block-end: 20px;
}

.wfl_eta_item {
    background-color: var(--wfl-surface-soft);
    border: 1px solid var(--wfl-border-soft);
    border-radius: var(--wfl-radius-group);
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-block-size: 54px;
    padding: 7px 13px;
}

.wfl_eta_label {
    color: var(--wfl-text-muted);
    font-size: 12px;
    line-height: 1.45;
}

.wfl_eta_value {
    color: var(--wfl-text);
    font-family: Roboto-Bold, sans-serif;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.45;
}

.wfl_eta_value b {
    font-family: Roboto-Bold, sans-serif;
    font-weight: 400;
}

.wfl_eta_value .product-eta__days,
.wfl_eta_value .product-eta__hours,
.wfl_eta_value .product-eta__minutes {
    margin-inline-end: 4px;
}

.wfl_aside .wfl_field + .wfl_field {
    margin-block-start: 0;
}

.wfl_aside .wfl_label {
    margin-block-end: 6px;
}

.wfl_info {
    align-items: center;
    background-color: var(--wfl-circle);
    block-size: 16px;
    border-radius: 50%;
    color: var(--wfl-text-muted);
    cursor: help;
    display: inline-flex;
    font-family: Roboto-Bold, sans-serif;
    font-size: 11px;
    font-weight: 400;
    inline-size: 16px;
    justify-content: center;
    position: relative;
}

.wfl_info_text {
    background-color: var(--wfl-text);
    border-radius: 10px;
    color: #ffffff;
    display: none;
    font-family: Roboto-Regular, sans-serif;
    font-size: 12px;
    font-weight: 400;
    inline-size: 240px;
    inset-block-start: calc(100% + 8px);
    inset-inline-start: 50%;
    line-height: 1.45;
    padding: 10px 12px;
    position: absolute;
    transform: translateX(-50%);
    white-space: normal;
    z-index: 1000;
}

.wfl_info:hover .wfl_info_text,
.wfl_info:focus .wfl_info_text {
    display: block;
}

.wfl_hidden_options {
    display: none;
}

.wfl_total {
    align-items: center;
    display: flex;
    gap: 10px;
    justify-content: space-between;
    margin-block-start: 6px;
}

.wfl_total_price {
    align-items: baseline;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.wfl_total_price .price-new {
    color: var(--wfl-text);
    font-family: Roboto-Bold, sans-serif;
    font-size: 30px;
    font-weight: 400;
    letter-spacing: -0.8px;
    line-height: 40px;
}

.wfl_total_price .price-old {
    color: var(--wfl-text-faint);
    font-size: 18px;
    text-decoration: line-through;
}

.wfl .wfl_cashback {
    align-items: center;
    background-color: var(--wfl-sky-soft);
    border-radius: 11px;
    color: var(--wfl-sky);
    display: flex;
    font-size: 12px;
    gap: 4px;
    margin: 0;
    min-block-size: 30px;
    padding: 4px 10px;
    white-space: nowrap;
}

.wfl .wfl_cashback .product_cash_back_percentage {
    color: var(--wfl-sky);
    font-family: Roboto-Bold, sans-serif;
    font-size: 12px;
    font-weight: 400;
}

.wfl .wfl_cashback .product_cash_back_percentage::before {
    content: "+";
}

.wfl .wfl_cashback svg,
.wfl .wfl_cashback img {
    block-size: 12px;
    inline-size: 12px;
}

.wfl_error {
    color: #d93025;
    font-size: 14px;
}

.wfl .wfl_buy {
    align-items: center;
    background-color: var(--wfl-green-button);
    block-size: 50px;
    border: 0;
    border-radius: 10px;
    color: #ffffff;
    display: flex;
    font-family: Roboto-ExtraBold, sans-serif;
    font-size: 16px;
    font-weight: 400;
    gap: 6px;
    inline-size: 100%;
    justify-content: center;
    margin: 0;
    transition: background-color 0.15s ease;
}

.wfl .wfl_buy:hover {
    background-color: #12b25e;
}

.wfl .wfl_buy svg,
.wfl .wfl_buy img {
    block-size: 14px;
    inline-size: 16px;
}

.wfl .wfl_buy svg path {
    fill: currentColor;
}

/* Description, "You will get", FAQ: in the configurator column (953), like the mockup */

.wfl_about_wrap {
    display: grid;
    gap: var(--wfl-gap);
    grid-template-columns: minmax(0, 1fr) 380px;
    margin-block-end: 50px;
}

.wfl_about_column {
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-inline-size: 0;
}

.wfl_about {
    border-radius: 28px;
    margin-block-end: 12px;
    padding: 20px 32px 40px;
}

.wfl_about::after {
    content: none;
}

.wfl_about_title {
    font-family: Roboto-Bold, sans-serif;
    font-size: 24px;
    font-weight: 400;
    line-height: 28.8px;
    margin: 0 0 12px;
}

.wfl_about_text {
    color: var(--wfl-body-text);
    font-size: 15px;
    line-height: 24px;
}

.wfl_about_text p {
    margin: 0 0 12px;
}

.wfl_about_text p:last-child {
    margin-block-end: 0;
}

.wfl_about_more {
    margin-block-start: 12px;
}

/* "Read full description" is for phones only */
.wfl_about_toggle {
    display: none;
}

.wfl_page .wfl_about_text a,
.wfl_page .wfl_faq_answer a {
    color: var(--wfl-body-text);
    font-family: Roboto-Bold, sans-serif;
    font-weight: 400;
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 2px;
}

.wfl_about_text a:hover,
.wfl_faq_answer a:hover {
    color: var(--wfl-green-link);
}

.wfl_about_subtitle {
    font-family: Roboto-Bold, sans-serif;
    font-size: 20px;
    font-weight: 400;
    line-height: 24px;
    margin: 24px 0 12px;
}

.wfl_benefits {
    display: grid;
    gap: 10px 40px;
    grid-template-columns: repeat(2, minmax(0, max-content));
    list-style: none;
    margin: 0;
    padding: 0;
}

.wfl_benefit {
    color: var(--wfl-text-soft);
    font-size: 16px;
    line-height: 23px;
    padding-inline-start: 30px;
    position: relative;
}

.wfl_benefit::before {
    border-block-end: 2px solid var(--wfl-green);
    border-inline-end: 2px solid var(--wfl-green);
    block-size: 11px;
    content: "";
    inline-size: 6px;
    inset-block-start: 4px;
    inset-inline-start: 6px;
    position: absolute;
    transform: rotate(45deg);
}

.wfl_benefit strong {
    font-family: Roboto-Regular, sans-serif;
    font-weight: 400;
}

/* FAQ: separate white bars, green uppercase question, chevron on the right */

.wfl_faq {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.wfl_faq_item {
    background-color: var(--wfl-surface);
    border-radius: var(--wfl-radius-box);
}

.wfl_faq_question {
    align-items: center;
    color: #08b46c;
    cursor: pointer;
    display: flex;
    font-family: Roboto-Bold, sans-serif;
    font-size: 18px;
    font-weight: 400;
    gap: 16px;
    justify-content: space-between;
    line-height: 22px;
    list-style: none;
    min-block-size: 68px;
    padding: 12px 26px;
    text-transform: uppercase;
}

.wfl_faq_question::-webkit-details-marker {
    display: none;
}

.wfl_faq_question::after {
    block-size: 10px;
    border-block-end: 2.5px solid currentColor;
    border-inline-end: 2.5px solid currentColor;
    content: "";
    flex: none;
    inline-size: 10px;
    margin-block-start: -6px;
    margin-inline-end: 6px;
    transform: rotate(45deg);
    transition: transform 0.2s ease;
}

.wfl_faq_item[open] .wfl_faq_question::after {
    margin-block-start: 4px;
    transform: rotate(-135deg);
}

.wfl_faq_answer {
    color: var(--wfl-body-text);
    font-size: 15px;
    line-height: 24px;
    padding: 0 26px 20px;
}

.wfl_faq_answer p,
.wfl_faq_answer ul {
    margin: 0 0 10px;
}

/* Bottom bar only on phones, the desktop aside has the price and the button */

@media (min-width: 992px) {
    .strange_block_product.wfl_mobile_only {
        display: none !important;
    }
}

/* Price and Buy button stay in view while the options are chosen; below the sticky site
   header (green banner 36px + header ~72px), only when the whole aside fits the screen */
@media (min-width: 992px) and (min-height: 900px) {
    .wfl_aside {
        inset-block-start: 120px;
        position: sticky;
    }
}

@media (max-width: 1199px) {
    .wfl_grid,
    .wfl_about_wrap {
        grid-template-columns: minmax(0, 1fr) 330px;
    }
}

/* Tablet and phone: one column in the order of the mobile mockup */

@media (max-width: 991px) {
    .wfl_about_wrap {
        grid-template-columns: minmax(0, 1fr);
        margin-block-end: 30px;
    }

    .wfl_grid {
        align-items: stretch;
        display: flex;
        flex-direction: column;
        gap: 14px;
    }

    .wfl_grid > * {
        min-inline-size: 0;
    }

    .wfl_main,
    .wfl_top,
    .wfl_aside,
    .wfl_aside_card,
    .wfl_aside_body {
        display: contents;
    }

    .wfl_main_head {
        display: none;
    }

    /* Banner from the phone mockup: wide background, teal shade under the name, the character on the right */
    .wfl_banner {
        aspect-ratio: auto;
        background: #195164 url("../image/wf_leveling/banner_mobile_bg.webp") center top / cover no-repeat;
        block-size: 180px;
        border-radius: var(--wfl-radius-card);
        order: 1;
        overflow: hidden;
    }

    .wfl_banner::after {
        background-image: linear-gradient(90deg, #195164 0, rgba(25, 81, 100, 0) 260px);
        block-size: 100%;
        inset: 0;
    }

    .wfl_banner_img {
        block-size: 178px;
        inline-size: auto;
        inset-block-start: 2px;
        inset-inline-end: 12px;
        object-fit: contain;
        position: absolute;
        z-index: 1;
    }

    .wfl_banner_title {
        color: #ffffff;
        display: block;
        font-family: Roboto-Bold, sans-serif;
        font-size: 22px;
        font-weight: 400;
        inset-block-start: 50%;
        inset-inline-start: 32px;
        line-height: 26px;
        max-inline-size: 200px;
        position: absolute;
        text-wrap: balance;
        transform: translateY(-50%);
        z-index: 2;
    }

    .wfl_level { order: 2; }
    .wfl_region { order: 3; }
    .wfl_eta { order: 4; }
    .wfl_setup { order: 5; }
    .wfl_extras { order: 6; }
    .wfl_method { order: 7; }
    .wfl_characters { order: 8; }
    .wfl_speed { order: 9; }
    .wfl_other { order: 10; }
    .wfl_total { order: 11; }
    .wfl_error { order: 12; }
    .wfl .wfl_buy { order: 13; }
    .wfl_hidden_options { order: 14; }

    .wfl_eta {
        border-block-end: 0;
        padding-block-end: 0;
    }

    .wfl_faction {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .wfl_segment_characters {
        align-self: stretch;
        grid-auto-columns: minmax(0, 1fr);
    }
}

/* Between the phone and the 1440 mockup every card lays itself out by its own width */

/* 1200-1399: the site container is 980-1180px, the page takes the window like the mockup does at 1440 */
@media (min-width: 1200px) and (max-width: 1399px) {
    .wfl_page.container_wide {
        inline-size: calc(100% - 70px);
        max-inline-size: none;
    }
}

/* Wide setup card (stacked top, tablets): factions on the left, class and server on the right */
@container wfl-setup (min-width: 580px) {
    .wfl_setup_body:has(> .wfl_field_faction) {
        align-items: start;
        column-gap: 28px;
        display: grid;
        grid-template-columns: auto minmax(0, 1fr);
        row-gap: 20px;
    }

    .wfl_setup_body:has(> .wfl_field_faction) > .wfl_field {
        grid-column: 2;
        margin: 0;
    }

    .wfl_setup_body:has(> .wfl_field_faction) > .wfl_field_faction {
        grid-column: 1;
        grid-row: 1 / span 2;
    }

    .wfl_setup_body .wfl_faction {
        grid-template-columns: repeat(2, 140px);
    }

    .wfl_setup_body .wfl_faction_card {
        aspect-ratio: 140 / 166;
    }
}

/* Wide level card: the picture keeps the mockup size and fades into the card at the sides */
@container wfl-level (min-width: 600px) {
    .wfl_level .wfl_level_art {
        aspect-ratio: auto;
        block-size: 330px;
        inline-size: 595px;
        margin-inline: auto;
        -webkit-mask-image: linear-gradient(90deg, transparent 0, #000000 8%, #000000 92%, transparent 100%);
        mask-image: linear-gradient(90deg, transparent 0, #000000 8%, #000000 92%, transparent 100%);
    }
}

/* Characters: phones have their own layout (below), wider screens keep the buttons next to the picture */
@media (min-width: 768px) {
    @container wfl-characters (min-width: 640px) {
        .wfl_characters .wfl_segment_characters {
            align-self: flex-start;
            grid-auto-columns: 110px;
        }
    }

    @container wfl-characters (max-width: 639px) {
        .wfl_characters .wfl_segment_characters {
            align-self: flex-start;
            grid-auto-columns: 96px;
        }

        .wfl_characters .wfl_characters_art {
            block-size: 120px;
            inline-size: 210px;
            inset-block-start: 19px;
            inset-inline-end: 12px;
        }

        .wfl_characters .wfl_characters_img {
            block-size: 120px;
        }
    }
}

/* Extras (sizes are of the card content): four add-on cards in a row only when they fit at about the mockup size */
@container wfl-extras (max-width: 699px) {
    .wfl_addons_extras {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@container wfl-extras (max-width: 619px) {
    .wfl_addons_chips {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@container wfl-extras (max-width: 519px) {
    .wfl_prof_row_selects {
        grid-template-columns: minmax(0, 1fr);
    }
}

/* Narrow extras card (phones, 992-1199): tabs with the name on top of the picture */
@container wfl-extras (max-width: 599px) {
    .wfl_tabs {
        gap: 6px;
    }

    .wfl_tab {
        aspect-ratio: auto;
        block-size: 80px;
        max-block-size: none;
    }

    .wfl_tab_name_drawn {
        block-size: auto;
        clip: auto;
        inline-size: auto;
        overflow: visible;
    }

    .wfl_tab_name {
        font-size: 14px;
        inset-inline-start: 16px;
    }

    .wfl_tab::after {
        background-image: linear-gradient(90deg, #000000 25%, rgba(0, 0, 0, 0) 70%);
        content: "";
        inset: 0;
        position: absolute;
    }
}

@container wfl-extras (max-width: 419px) {
    .wfl_tab_name {
        font-size: 13px;
        inset-inline-start: 14px;
    }

    .wfl_tab_name_long {
        display: none;
    }

    .wfl_tab_name_short {
        display: inline;
    }
}

/* Phones: add-ons as 70px rows (mobile mockup: icon 46 + picture over it, name 14, price 16, button 31) */
@container wfl-extras (max-width: 479px) {
    .wfl_addons_extras,
    .wfl_addons_chips,
    .wfl_prof_row_selects {
        grid-template-columns: minmax(0, 1fr);
    }

    .wfl_addon_card {
        align-items: center;
        display: flex;
        gap: 14px;
        min-block-size: 70px;
        padding: 6px 14px 6px 8px;
    }

    .wfl_addon_icon {
        block-size: 54px;
        inline-size: 54px;
    }

    .wfl_addon_name {
        flex: 1;
        font-size: 14px;
        line-height: 17px;
    }

    .wfl_addon_price {
        align-self: center;
        font-size: 16px;
        padding: 0;
    }

    .wfl_addon_toggle {
        align-self: center;
    }
}

/* Phones: sizes from the mobile mockup (Figma frame 24547:70228, 375px wide) */
@media (max-width: 767px) {
    .wfl_page .breadcrumb_container {
        display: none;
    }

    /* 350px column, white page under the configurator and the description */
    .wfl_page.container {
        padding-inline: 12.5px;
    }

    .wfl,
    .wfl_about_wrap {
        border-image: conic-gradient(#ffffff 0 0) fill 0 // 0 100vw;
    }

    .wfl {
        margin-block: 0;
        padding-block: 10px 20px;
    }

    .wfl_grid {
        gap: 20px;
    }

    /* Banner 375x145 from edge to edge, the level card 8px under it */
    .wfl_banner {
        block-size: 145px;
        border-radius: 10px 10px 0 0;
        box-shadow: 0 3.7px 36.9px rgba(0, 0, 0, 0.1);
        margin-block-end: -12px;
        margin-inline: -12.5px;
    }

    .wfl_banner::after {
        background-image: linear-gradient(90deg, #195164 0, rgba(25, 81, 100, 0) 210px);
    }

    .wfl_banner_img {
        block-size: 144px;
        inset-block-start: 1px;
        inset-inline-end: 7px;
    }

    .wfl_banner_title {
        font-size: 16px;
        inset-inline-start: 22px;
        line-height: 19px;
        max-inline-size: 120px;
    }

    .wfl_card,
    .wfl_about {
        border-radius: 16px;
    }

    .wfl_card_title {
        font-size: 16px;
        line-height: 19px;
    }

    .wfl_label {
        font-size: 12px;
        line-height: 14px;
        margin-block-end: 9px;
    }

    .wfl_field + .wfl_field {
        margin-block-start: 10px;
    }

    .wfl_segment_grid {
        gap: 2px 8px;
    }

    /* Level: 350x375, art 350x194 at 46, values at 251, track at 301, marks at 325 */
    .wfl_level_inner {
        padding: 15px 15px 17px;
    }

    .wfl_level_head {
        block-size: 14px;
    }

    .wfl_level_price {
        display: none;
    }

    .wfl_level_art {
        margin-block-start: 17px;
        margin-inline: -15px;
    }

    .wfl_level_art + .wfl_level_control {
        margin-block-start: 11px;
    }

    .wfl_level_control {
        margin-inline: 4px;
    }

    .wfl_level_values {
        block-size: 35px;
    }

    .wfl_level_value_label {
        font-size: 12px;
        line-height: 14px;
    }

    .wfl_level_value_num {
        font-size: 20px;
        line-height: 16px;
    }

    .wfl_level_track {
        margin-block-start: 15px;
    }

    .wfl_level_track::before {
        inset-inline: -4px;
    }

    .wfl_level_marks {
        block-size: 32px;
        margin-block-start: 16px;
    }

    .wfl_level_mark b {
        font-size: 12px;
        line-height: 14px;
    }

    .wfl_level_mark small {
        font-size: 12px;
        line-height: 14px;
        margin-block-start: 4px;
    }

    /* Region, start/completion and a divider like in the aside */
    .wfl_eta {
        border-block-end: 1px solid var(--wfl-border-soft);
        padding-block-end: 19px;
    }

    /* Setup: factions 153x112, class 318x40, server 318x110 */
    .wfl_setup {
        padding: 15px 15px 23px;
    }

    .wfl_faction {
        gap: 12px;
    }

    .wfl_faction_card {
        aspect-ratio: 153 / 112;
    }

    .wfl_faction_card::after {
        block-size: 55px;
    }

    .wfl_faction_art {
        object-position: center 20%;
    }

    .wfl_faction_name {
        inset-block-end: 14px;
        inset-inline-start: 10px;
    }

    .wfl_dropdown_button {
        border-radius: var(--wfl-radius-group);
        gap: 8px;
        min-block-size: 40px;
        padding: 6px 20px 6px 6px;
    }

    .wfl_dropdown_icon {
        block-size: 28px;
        border-radius: 6px;
        inline-size: 28px;
    }

    .wfl_dropdown_text {
        font-size: 14px;
        line-height: 20px;
    }

    .wfl_dropdown_card .wfl_dropdown_text {
        font-size: 14px;
    }

    .wfl_dropdown_card .wfl_dropdown_price {
        font-size: 16px;
    }

    /* Select options: title, 155x80 tabs, 70px rows 8px apart */
    .wfl_extras {
        border-radius: var(--wfl-radius-card);
        gap: 17px;
        padding: 18px 15px 19px;
    }

    .wfl_extras .wfl_panel {
        gap: 8px;
        margin-block-start: -7px;
    }

    .wfl_tabs {
        gap: 8px;
    }

    .wfl_tab_name {
        font-size: 12px;
    }

    .wfl_addons {
        gap: 8px;
    }

    /* Completion method has no title in the mobile mockup */
    .wfl_method > .wfl_label {
        display: none;
    }

    .wfl_speed > .wfl_label {
        font-size: 13px;
        line-height: 15px;
    }

    .wfl_speed .wfl_info {
        display: none;
    }

    /* Characters: the group stands on the card top border, 20px more space above */
    .wfl_characters {
        display: block;
        margin-block-start: 20px;
        min-block-size: 0;
        overflow: visible;
        padding: 15px 15px 16px;
        position: relative;
    }

    .wfl_characters_body {
        gap: 14px;
        inline-size: 100%;
        padding-block-end: 0;
    }

    .wfl_characters_art {
        block-size: 70px;
        inline-size: 122px;
        inset-block-start: -21px;
        inset-inline-end: 64px;
        margin: 0;
        pointer-events: none;
        position: absolute;
        z-index: 4;
    }

    .wfl_characters_img {
        block-size: 70px;
        inline-size: 122px;
    }

    /* Phones use the bottom bar (price + Buy now) instead */
    .wfl_total,
    .wfl .wfl_buy_client {
        display: none;
    }

    /* Description: 4 lines and "Read full description", then "You will get" */
    .wfl_about_wrap {
        gap: 10px;
    }

    .wfl_about {
        padding: 15px 15px 18px;
    }

    .wfl_about::after {
        content: "";
    }

    .wfl_about_title {
        font-size: 16px;
        line-height: 19px;
        margin: 1px 0 12px;
    }

    .wfl_about_text {
        font-size: 12px;
        line-height: 14px;
    }

    .wfl_about_text p {
        margin-block-end: 8px;
    }

    .wfl_about_more {
        margin-block-start: 8px;
    }

    .wfl_about:not(.is_open) .wfl_about_intro {
        -webkit-box-orient: vertical;
        display: -webkit-box;
        -webkit-line-clamp: 4;
        overflow: hidden;
    }

    .wfl_about:not(.is_open) .wfl_about_more {
        display: none;
    }

    .wfl_about_toggle {
        align-items: center;
        background: none;
        border: 0;
        border-block-start: 1px solid #eef0f2;
        color: var(--wfl-green-link);
        cursor: pointer;
        display: flex;
        font-family: Roboto-Bold, sans-serif;
        font-size: 12px;
        gap: 8px;
        inline-size: 100%;
        margin-block-start: 15px;
        min-block-size: 42px;
        padding: 0;
    }

    .wfl_about_toggle::after {
        border-block-end: 1.5px solid currentColor;
        border-inline-end: 1.5px solid currentColor;
        block-size: 6px;
        content: "";
        inline-size: 6px;
        margin-block-start: -4px;
        transform: rotate(45deg);
        transition: transform 0.15s ease;
    }

    .wfl_about.is_open .wfl_about_toggle::after {
        margin-block-start: 3px;
        transform: rotate(-135deg);
    }

    .wfl_about_subtitle {
        font-size: 14px;
        line-height: 16px;
        margin: 2px 0 14px;
    }

    .wfl_benefits {
        gap: 0;
        grid-template-columns: minmax(0, 1fr);
    }

    .wfl_benefit {
        color: var(--wfl-text-soft);
        font-size: 12px;
        line-height: 23.2px;
    }

    .wfl_benefit::before {
        inset-block-start: 5px;
    }

    /* White page on phones: the FAQ bars get the card border */
    .wfl_faq_item {
        border: 1px solid var(--wfl-border);
    }

    .wfl_faq_question {
        font-size: 15px;
        min-block-size: 56px;
        padding: 12px 16px;
    }

    .wfl_faq_answer {
        padding: 0 16px 15px;
    }
}
