/* Flexible Rows Toolkit - front-end styles for the ACF Flexible Content for Elementor rows.
   Colours and icons come from the CSS variables printed by the plugin (Settings > Flexible Rows). */

/* ==========================================================================
   Events - Info Cards: list icons
   Card wrapper needs: .info-card .info-card--icon-{card_list_icon}
   Card Content editor output goes inside .info-card__content
   ========================================================================== */
.info-card__content ul {
    list-style: none;
    margin: 0 0 1em;
    padding: 0;
}

.info-card__content ul li {
    position: relative;
    padding-left: 28px;
    margin-bottom: 8px;
}

.info-card__content ul li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.2em;
    width: 18px;
    height: 18px;
    box-sizing: border-box;
    background-repeat: no-repeat;
    background-position: center;
}

/* Circle Check: lime circle with a dark tick */
.info-card--icon-circle_check .info-card__content ul li::before {
    border-radius: 50%;
    background-color: var(--frt-info-check);
    background-size: 11px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3 8.5l3 3 7-7' fill='none' stroke='%23333' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

/* Plain Check: tick in the card's text colour (works on light and dark cards) */
.info-card--icon-check .info-card__content ul li::before {
    background-color: currentColor;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3 8.5l3 3 7-7' fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 14px no-repeat;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3 8.5l3 3 7-7' fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 14px no-repeat;
}

/* Square Check: lime outlined square with a lime tick */
.info-card--icon-square_check .info-card__content ul li::before {
    border: 1.5px solid var(--frt-info-check);
    border-radius: 3px;
    background-size: 10px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3 8.5l3 3 7-7' fill='none' stroke='%238dc63f' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

/* ==========================================================================
   Events - flexible rows (ACF Flexible Elementor)
   Option classes come from the row wrapper: .afce-opt--{field}-{value}
   ========================================================================== */

/* Heading highlight colour (Effector Highlighted Heading widget) */
/* Extra specificity so the ACF option beats a colour set on the widget itself. */
.afce-row .afce-opts.afce-opt--section_highlight_color-pink .elementor-widget-effector-highlighted-heading .elementor-heading-title .effector-heading-highlight {
    color: var(--frt-pink);
}

/* Extra specificity so the ACF option beats a colour set on the widget itself. */
.afce-row .afce-opts.afce-opt--section_highlight_color-green .elementor-widget-effector-highlighted-heading .elementor-heading-title .effector-heading-highlight {
    color: var(--frt-green);
}

/* List Style: Numbered - big coloured numbers with dividers (bullet or numbered lists).
   Each item is a flex row: the number (::before) and the text, which the add-on wraps in
   .afce-li-text so bold text and links stay inline. */
.afce-opt--section_list_style-numbered .elementor-widget-text-editor ol , .afce-opt--section_list_style-numbered .elementor-widget-text-editor:not(:has(ol)) ul {
    list-style: none;
    counter-reset: frt-number;
    margin: 1.25em 0;
    padding: 0;
}

.afce-opt--section_list_style-numbered .elementor-widget-text-editor ol > li , .afce-opt--section_list_style-numbered .elementor-widget-text-editor:not(:has(ol)) ul > li {
    counter-increment: frt-number;
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 14px 0;
    border-bottom: 1px solid var(--frt-divider);
}

.afce-opt--section_list_style-numbered .elementor-widget-text-editor ol > li::before , .afce-opt--section_list_style-numbered .elementor-widget-text-editor:not(:has(ol)) ul > li::before {
    content: counter(frt-number);
    position: relative;
    flex: none;
    font-family: "Arial", Sans-serif;
    font-size: var(--tx-5xl, 56px);
    font-weight: 700;
    text-transform: uppercase;
    line-height: 1.1;
    color: var(--frt-pink);
    /* Undo the default bullet tick (absolute, sized box with an icon background). */
    left: auto;
    top: auto;
    width: auto;
    height: auto;
    background: none;
}

.afce-opt--section_list_style-numbered .elementor-widget-text-editor ol > li > .afce-li-text , .afce-opt--section_list_style-numbered .elementor-widget-text-editor:not(:has(ol)) ul > li > .afce-li-text {
    flex: 1;
    min-width: 0;
}

.afce-opt--section_list_style-numbered .elementor-widget-text-editor ol > li:nth-child(4n+2)::before , .afce-opt--section_list_style-numbered .elementor-widget-text-editor:not(:has(ol)) ul > li:nth-child(4n+2)::before {
    color: var(--frt-green);
}

.afce-opt--section_list_style-numbered .elementor-widget-text-editor ol > li:nth-child(4n+3)::before , .afce-opt--section_list_style-numbered .elementor-widget-text-editor:not(:has(ol)) ul > li:nth-child(4n+3)::before {
    color: var(--frt-lime);
}

.afce-opt--section_list_style-numbered .elementor-widget-text-editor ol > li:nth-child(4n+4)::before , .afce-opt--section_list_style-numbered .elementor-widget-text-editor:not(:has(ol)) ul > li:nth-child(4n+4)::before {
    color: var(--frt-yellow);
}

/* List Style: Circle Check - lime circle ticks (bullet or numbered lists) */
.afce-opt--section_list_style-check .elementor-widget-text-editor :is(ol, ul) {
    list-style: none;
    margin: 1em 0;
    padding: 0;
}

.afce-opt--section_list_style-check .elementor-widget-text-editor :is(ol, ul) > li {
    position: relative;
    padding-left: 28px;
    margin-bottom: 8px;
}

.afce-opt--section_list_style-check .elementor-widget-text-editor :is(ol, ul) > li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.2em;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--frt-lime) center / 11px no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3 8.5l3 3 7-7' fill='none' stroke='%23333' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

/* Section padding from each row's Developer tab (ACF section_padding).
   Targets the top container of the row's template; left/right stay var(--sp-l, 24px).
   Breakpoints match Elementor: tablet <= 1024px, mobile <= 767px. */
.afce-row .afce-opts > .elementor > .e-con {
    --padding-top: var(--afce-pt, var(--sp-4xl, 80px));
    --padding-bottom: var(--afce-pb, var(--sp-4xl, 80px));
    --padding-left: var(--sp-l, 24px);
    --padding-right: var(--sp-l, 24px);
}

@media (max-width: 1024px) {
    .afce-row .afce-opts > .elementor > .e-con {
        --padding-top: var(--afce-pt-tablet, var(--sp-4xl, 80px));
        --padding-bottom: var(--afce-pb-tablet, var(--sp-4xl, 80px));
    }
}

@media (max-width: 767px) {
    .afce-row .afce-opts > .elementor > .e-con {
        --padding-top: var(--afce-pt-mobile, var(--sp-4xl, 80px));
        --padding-bottom: var(--afce-pb-mobile, var(--sp-4xl, 80px));
    }
}


/* Accordion answers (filled from ACF by the add-on): bullet lists get lime circle ticks */
.afce-acc-content ul {
    list-style: none;
    margin: 1em 0;
    padding: 0;
}

.afce-acc-content ul > li {
    position: relative;
    padding-left: 30px;
    margin-bottom: 10px;
}

.afce-acc-content ul > li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.15em;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--frt-lime) center / 12px no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3 8.5l3 3 7-7' fill='none' stroke='%23333' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

.afce-acc-content > .elementor-widget-container > :last-child {
    margin-bottom: 0;
}


/* Row List tag (e.g. FAQs Content List Items): lime circle ticks */
.afce-list {
    list-style: none;
    margin: 1em 0;
    padding: 0;
    text-align: start;
}

.afce-list > li {
    position: relative;
    padding-left: 30px;
    margin-bottom: 10px;
}

.afce-list > li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.15em;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--frt-lime) center / 12px no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3 8.5l3 3 7-7' fill='none' stroke='%23333' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}


/* Numbered List layout: number colours by position (1 pink, 2 green, 3 lime, 4 yellow, repeat),
   continuing across columns. Classes afce-num-c0..3 are added by the add-on. */
.afce-row .afce-list-item.afce-num-c0 .afce-list-number .elementor-heading-title {
    color: var(--frt-pink);
}

.afce-row .afce-list-item.afce-num-c1 .afce-list-number .elementor-heading-title {
    color: var(--frt-green);
}

.afce-row .afce-list-item.afce-num-c2 .afce-list-number .elementor-heading-title {
    color: var(--frt-lime);
}

.afce-row .afce-list-item.afce-num-c3 .afce-list-number .elementor-heading-title {
    color: var(--frt-yellow);
}

/* Numbered List layout: One Column stacks the lists */
.afce-row .afce-opt--section_list_layout-one_column .afce-list-grid {
    --e-con-grid-template-columns: 1fr;
}


/* Numbered List: List Heading Colour (Dark keeps the widget's own colour) */
.afce-row .afce-opts .afce-list-title.afce-list-title--pink.elementor-widget .elementor-heading-title {
    color: var(--frt-pink);
}

.afce-row .afce-opts .afce-list-title.afce-list-title--green.elementor-widget .elementor-heading-title {
    color: var(--frt-green);
}


/* Table layout (JetElements table filled from ACF) */
/* Table Heading Background (Rounded Rows only) */
.afce-row .afce-opts.afce-opt--section_table_style-rounded.afce-opt--section_table_heading_color-pink .afce-table .jet-table .jet-table__head .jet-table__cell {
    background-color: var(--frt-pink);
}

.afce-row .afce-opts.afce-opt--section_table_style-rounded.afce-opt--section_table_heading_color-green .afce-table .jet-table .jet-table__head .jet-table__cell {
    background-color: var(--frt-green);
}

/* Column Highlight: lime header text */
.afce-row .afce-opts .afce-table .jet-table .jet-table__head .jet-table__cell.afce-col-highlight .jet-table__cell-text {
    color: var(--frt-lime);
}

/* Bold First Column */
.afce-row .afce-opts.afce-opt--section_bold_first_column-yes .afce-table .jet-table .jet-table__body .jet-table__cell:first-child .jet-table__cell-text {
    font-weight: 700;
}

/* Alignment: Left overrides the template's centred heading / description / footer */
.afce-row .afce-opts.afce-opt--section_table_style-rounded.afce-opt--section_alignment-left .elementor-widget-effector-highlighted-heading,
.afce-row .afce-opts.afce-opt--section_table_style-rounded.afce-opt--section_alignment-left .elementor-widget-text-editor {
    text-align: start;
    align-self: flex-start;
}



/* Text Box: Box Colour (overrides the background set on the box in the template) */
.afce-row .afce-opts.afce-opt--section_box_color-green .afce-box-bg {
    background-color: var(--frt-green) !important;
    background-image: none !important;
}

.afce-row .afce-opts.afce-opt--section_box_color-pink .afce-box-bg {
    background-color: var(--frt-pink) !important;
    background-image: none !important;
}

/* Text Box: One Column list uses the full width of the box */
.afce-row .afce-opts.afce-opt--section_list_columns-1 .afce-box-bg {
    --e-con-grid-template-columns: 1fr;
}


/* Info Cards (built from ACF by the add-on) */
/* Full width: span both grid columns */
.afce-row .afce-cards-grid .afce-card.afce-card--full {
    grid-column: 1 / -1;
}

/* Text Colour */
.afce-row .afce-opts .afce-card.afce-card--text-light .elementor-heading-title,
.afce-row .afce-opts .afce-card.afce-card--text-light .elementor-widget-text-editor,
.afce-row .afce-opts .afce-card.afce-card--text-light .elementor-widget-text-editor a {
    color: var(--frt-light);
}

.afce-row .afce-opts .afce-card.afce-card--text-dark .elementor-heading-title,
.afce-row .afce-opts .afce-card.afce-card--text-dark .elementor-widget-text-editor,
.afce-row .afce-opts .afce-card.afce-card--text-dark .elementor-widget-text-editor a {
    color: var(--frt-dark);
}

/* Numbered card: keep the coloured numbers (they use the afce-num-c* colours) */
.afce-row .afce-opts .afce-card .afce-num-block.afce-num-c0 .afce-num-value .elementor-heading-title { color: var(--frt-pink); }
.afce-row .afce-opts .afce-card .afce-num-block.afce-num-c1 .afce-num-value .elementor-heading-title { color: var(--frt-green); }
.afce-row .afce-opts .afce-card .afce-num-block.afce-num-c2 .afce-num-value .elementor-heading-title { color: var(--frt-lime); }
.afce-row .afce-opts .afce-card .afce-num-block.afce-num-c3 .afce-num-value .elementor-heading-title { color: var(--frt-yellow); }

/* List icons in Card Content (your SVG icons from the template) */
.afce-row .afce-card .afce-card-content ul {
    list-style: none;
    margin: 1em 0;
    padding: 0;
}

.afce-row .afce-card .afce-card-content ul > li {
    position: relative;
    padding-left: 30px;
    margin-bottom: 8px;
}

.afce-row .afce-card .afce-card-content ul > li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.1em;
    width: 20px;
    height: 20px;
    background: center / contain no-repeat;
}

.afce-row .afce-card.afce-card--icon-circle_check .afce-card-content ul > li::before {
    background-image: var(--frt-check-icon);
}

.afce-row .afce-card.afce-card--icon-square_check .afce-card-content ul > li::before {
    background-image: var(--frt-check-box-icon);
}

/* Plain Check: tick in the card's text colour */
.afce-row .afce-card.afce-card--icon-check .afce-card-content ul > li::before {
    background: currentColor;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3 8.5l3 3 7-7' fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 14px no-repeat;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3 8.5l3 3 7-7' fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 14px no-repeat;
}


/* Heading layout: Alignment Left (the template is centred by default) */
.afce-row--heading_section .afce-opts.afce-opt--section_alignment-left .elementor-widget-effector-highlighted-heading,
.afce-row--heading_section .afce-opts.afce-opt--section_alignment-left .elementor-widget-text-editor,
.afce-row--heading_section .afce-opts.afce-opt--section_alignment-left .elementor-widget-image,
.afce-row--heading_section .afce-opts.afce-opt--section_alignment-left .elementor-widget-button {
    text-align: start;
    align-self: flex-start;
}

.afce-row--heading_section .afce-opts.afce-opt--section_alignment-left .elementor-widget-button .elementor-button-wrapper {
    justify-content: flex-start;
    text-align: start;
}


/* Logo Grid: Logos per Row (desktop only; tablet/mobile keep the template's columns) */
@media (min-width: 1025px) {
    .afce-row .afce-opts.afce-opt--section_logos_per_row-4 .afce-logo-grid { --e-con-grid-template-columns: repeat(4, 1fr); }
    .afce-row .afce-opts.afce-opt--section_logos_per_row-5 .afce-logo-grid { --e-con-grid-template-columns: repeat(5, 1fr); }
    .afce-row .afce-opts.afce-opt--section_logos_per_row-6 .afce-logo-grid { --e-con-grid-template-columns: repeat(6, 1fr); }
    .afce-row .afce-opts.afce-opt--section_logos_per_row-7 .afce-logo-grid { --e-con-grid-template-columns: repeat(7, 1fr); }
    .afce-row .afce-opts.afce-opt--section_logos_per_row-8 .afce-logo-grid { --e-con-grid-template-columns: repeat(8, 1fr); }
}

/* Logo Grid: Alignment Left for the heading (the logos stay in their grid) */
.afce-row--logo_grid_section .afce-opts.afce-opt--section_alignment-left .elementor-widget-effector-highlighted-heading {
    text-align: start;
    align-self: flex-start;
}


/* Two Columns: per-column highlight colour (beats the colour set on the pattern heading) */
.afce-row .afce-opts .afce-text-column.afce-text-column--pink .elementor-widget-effector-highlighted-heading .elementor-heading-title .effector-heading-highlight {
    color: var(--frt-pink);
}

.afce-row .afce-opts .afce-text-column.afce-text-column--green .elementor-widget-effector-highlighted-heading .elementor-heading-title .effector-heading-highlight {
    color: var(--frt-green);
}


/* Text + Image / Image + Text: Width = Narrow (site content width, centred) */
.afce-row .afce-opts.afce-opt--section_width-narrow > .elementor > .e-con > .e-con-inner > .e-con,
.afce-row .afce-opts.afce-opt--section_width-narrow > .elementor > .e-con > .e-con {
    width: 100%;
    max-width: var(--container-max-width, 1140px);
    margin-left: auto;
    margin-right: auto;
}


/* Accordion layout: lists in the Description get the green circle tick (answers keep their own ticks) */
.afce-row--accordion_section .elementor-widget-text-editor:not(.afce-acc-content) ul {
    list-style: none;
    margin: 1em 0;
    padding: 0;
}

.afce-row--accordion_section .elementor-widget-text-editor:not(.afce-acc-content) ul > li {
    position: relative;
    padding-left: 32px;
    margin-bottom: 10px;
}

.afce-row--accordion_section .elementor-widget-text-editor:not(.afce-acc-content) ul > li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.1em;
    width: 20px;
    height: 20px;
    background: var(--frt-check-icon) center / contain no-repeat;
}


/* ==========================================================================
   Flexible rows: general typography and lists for editor (WYSIWYG) content.
   Low specificity (:where) so the layout-specific styles above still win.
   ========================================================================== */

/* Headings h2-h6 in flexible rows */
:where(.afce-row) :is(h2, h3, h4, h5, h6) {
    font-family: var(--frt-heading-font, inherit);
}

/* Headings inside editor text get breathing room (none when first in the block) */
:where(.afce-row) .elementor-widget-text-editor :is(h2, h3, h4, h5, h6) {
    margin-top: 30px;
}

:where(.afce-row) .elementor-widget-text-editor .elementor-widget-container > :is(h2, h3, h4, h5, h6):first-child,
:where(.afce-row) .elementor-widget-text-editor > :is(h2, h3, h4, h5, h6):first-child {
    margin-top: 0;
}

/* Bullet lists: green circle tick */
:where(.afce-row) .elementor-widget-text-editor ul {
    list-style: none;
    margin: 1em 0;
    padding: 0;
}

:where(.afce-row) .elementor-widget-text-editor ul > li {
    position: relative;
    padding-left: 30px;
    margin-bottom: 10px;
}

:where(.afce-row) .elementor-widget-text-editor ul > li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.15em;
    width: 20px;
    height: 20px;
    background: var(--frt-check-icon) center / contain no-repeat;
}

/* Numbered lists: coloured numbers (pink, green, lime, yellow), dividers */
:where(.afce-row) .elementor-widget-text-editor ol {
    list-style: none;
    counter-reset: frt-ol;
    margin: 1em 0;
    padding: 0;
}

:where(.afce-row) .elementor-widget-text-editor ol > li {
    --frt-ol-size: var(--tx-3xl, 32px);
    counter-increment: frt-ol;
    position: relative;
    box-sizing: border-box;
    min-height: calc(var(--frt-ol-size) * 1.1 + 20px);
    padding: 10px 0 10px calc(var(--frt-ol-size) * 1.1 + 12px);
    border-bottom: 1px solid var(--frt-divider);
}

:where(.afce-row) .elementor-widget-text-editor ol > li::before {
    content: counter(frt-ol);
    position: absolute;
    left: 0;
/*     top: 10px; */
    font-family: "Arial", Sans-serif;
    font-size: var(--frt-ol-size);
    font-weight: 700;
    line-height: 1.1;
    color: var(--frt-pink);
}

:where(.afce-row) .elementor-widget-text-editor ol > li:nth-child(4n+2)::before { color: var(--frt-green); }
:where(.afce-row) .elementor-widget-text-editor ol > li:nth-child(4n+3)::before { color: var(--frt-lime); }
:where(.afce-row) .elementor-widget-text-editor ol > li:nth-child(4n+4)::before { color: var(--frt-yellow); }


/* Centred sections: lists stay a centred block (max 600px) with left-aligned text; the tick stays absolute and the li keeps its left padding. */
.afce-row .afce-opts.afce-opt--section_alignment-center .elementor-widget-text-editor :is(ul, ol) {
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    text-align: left;
}


/* Padding-bottom 0 on a row also drops the template's inner column padding at the bottom (Text + Image / Image + Text). */
.afce-row--text_plus_image .afce-opts.afce-pb-0 .e-con.e-child,
.afce-row--image_plus_text .afce-opts.afce-pb-0 .e-con.e-child {
	padding-bottom: 0;
}

/* No leftover spacing at a row's edges: first inner block without top margin (e.g. Info Cards grid when there is no heading), last paragraph of a text block without bottom margin. */
.afce-row .afce-opts > .elementor > .e-con > .e-con-inner > .e-con:first-child,
.afce-row .afce-opts > .elementor > .e-con > .e-con:first-child {
	margin-top: 0;
}
.afce-row .elementor-widget-text-editor .elementor-widget-container > :last-child,
.afce-row .elementor-widget-text-editor > :last-child {
	margin-bottom: 0;
}

/* Emojis used as bullets (e.g. the green tick) get a gap before the text. WP core sets margin with !important. */
.elementor p img.emoji,
.elementor li img.emoji {
	margin: 0 0.35em 0 0.07em !important;
}

/* Text + Image / Image + Text with Media = Video: responsive 16:9 embed in place of the image. */
.afce-media--video {
	width: 100%;
	align-self: center;
}
.afce-video {
	position: relative;
	width: 100%;
	aspect-ratio: 16 / 9;
	border-radius: 30px;
	overflow: hidden;
	background: #000;
}
.afce-video iframe {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	border: 0;
}

/* Mobile: Text + Image / Image + Text are centred. Lists stay left-aligned but sit as a centred block. */
@media (max-width: 767px) {
	:is(.afce-row--text_plus_image, .afce-row--image_plus_text) .elementor-widget:not(.afce-media) {
		align-self: center;
		text-align: center;
	}
	:is(.afce-row--text_plus_image, .afce-row--image_plus_text) :is(.elementor-heading-title, .elementor-widget-text-editor, .elementor-widget-text-editor p) {
		text-align: center;
	}
	:is(.afce-row--text_plus_image, .afce-row--image_plus_text) .elementor-widget-text-editor :is(ul, ol) {
		width: fit-content;
		max-width: min(100%, 500px);
		margin-left: auto;
		margin-right: auto;
		text-align: left;
	}
	:is(.afce-row--text_plus_image, .afce-row--image_plus_text) .elementor-widget-text-editor :is(ul, ol) li {
		text-align: left;
	}
	:is(.afce-row--text_plus_image, .afce-row--image_plus_text) .elementor-widget-button .elementor-button-wrapper {
		text-align: center;
	}
}
/* Text + Image / Image + Text: Rounded Image Corners switched off. */
.afce-row .afce-media-col.afce-media-col--square,
.afce-row .afce-media-col.afce-media-col--square img {
	border-radius: 0 !important;
}

.afce-image-card .afce-image-card-content ul li {
	display: inline-block;
}
.afce-show--section_accordion_layout-stacked .elementor-widget-effector-highlighted-heading {
	text-align: center !important;
}

/* Numbered List: Description Position left / right - text beside the one-column list. */
.afce-row .afce-list-split {
	display: flex;
	align-items: flex-start;
	gap: var(--sp-2xl, 40px);
	width: 100%;
}
.afce-row .afce-list-split > * {
	flex: 1 1 0;
	min-width: 0;
}
.afce-row .afce-list-split .afce-list-desc,
.afce-row .afce-list-split .afce-list-desc :is(p, h2, h3, h4) {
	text-align: left;
}
.afce-row .afce-list-split .afce-list-grid {
	width: 100%;
	max-width: none;
	margin-top: 0;
	/* The template grid has 2 columns; beside the text the single list uses the full width. */
	--e-con-grid-template-columns: 1fr;
	grid-template-columns: 1fr;
}
@media (max-width: 767px) {
	.afce-row .afce-list-split {
		flex-direction: column;
	}
}



/* Text + Image / Image + Text: Layout = One Column - image / video on top, full width, text below. */
.afce-row .afce-opt--section_layout-one_column .e-grid:has(.afce-media-col) {
	--e-con-grid-template-columns: 1fr;
	grid-template-columns: 1fr !important;
}
.afce-row .afce-opt--section_layout-one_column .afce-media-col {
	order: -1;
	width: 100%;
	max-width: var(--container-max-width, 1140px);
	justify-self: center;
	margin-left: auto;
	margin-right: auto;
}
.afce-row .afce-opt--section_layout-one_column .e-grid:has(.afce-media-col) > .e-con:not(.afce-media-col) {
	padding-left: 0;
	padding-right: 0;
}

/* One Column: more space between media and text; Media Position = Bottom puts the media under the text. */
.afce-row .afce-opt--section_layout-one_column .e-grid:has(.afce-media-col) {
	row-gap: var(--sp-3xl, 56px) !important;
}
.afce-row .afce-opt--section_layout-one_column.afce-opt--section_media_position-bottom .afce-media-col {
	order: 1;
}

/* Quote carousel: each slide keeps its own height (see quote-carousel.js) */
.afce-quotes .swiper-wrapper {
	align-items: flex-start;
	/* the height follows the active slide smoothly (duration comes from the carousel's own speed setting) */
	transition-property: transform, height;
}
.afce-quotes .swiper-slide {
	height: auto;
}

/* Numbered List (opt-in): add the class afce-aligned-rows in the row's Developer > CSS Classes to line up the dividers across the columns. Item 1 of every column shares one row with item 1 of the other columns, and so on (two-column layout only; stacked layouts are untouched). */
@supports selector(:has(a)) and (grid-template-rows: subgrid) {
	@media (min-width: 768px) {
	.afce-opts.afce-aligned-rows .afce-list-grid {
		--afce-rows: 1;
		row-gap: 0;
		grid-template-rows: repeat(var(--afce-rows), auto);
	}
	.afce-opts.afce-aligned-rows .afce-list-grid:has(.afce-list-item:nth-child(2)) {
		--afce-rows: 2;
	}
	.afce-opts.afce-aligned-rows .afce-list-grid:has(.afce-list-item:nth-child(3)) {
		--afce-rows: 3;
	}
	.afce-opts.afce-aligned-rows .afce-list-grid:has(.afce-list-item:nth-child(4)) {
		--afce-rows: 4;
	}
	.afce-opts.afce-aligned-rows .afce-list-grid:has(.afce-list-item:nth-child(5)) {
		--afce-rows: 5;
	}
	.afce-opts.afce-aligned-rows .afce-list-grid:has(.afce-list-item:nth-child(6)) {
		--afce-rows: 6;
	}
	.afce-opts.afce-aligned-rows .afce-list-grid:has(.afce-list-item:nth-child(7)) {
		--afce-rows: 7;
	}
	.afce-opts.afce-aligned-rows .afce-list-grid:has(.afce-list-item:nth-child(8)) {
		--afce-rows: 8;
	}
	.afce-opts.afce-aligned-rows .afce-list-grid > .afce-list-column {
		display: grid;
		grid-template-rows: subgrid;
		grid-row: span var(--afce-rows);
		row-gap: var(--row-gap);
	}
	}
}

/* Numbered List with afce-aligned-rows: keep the number and the text at the top of each row (centred content floats in the taller row of the other column). */
.afce-opts.afce-aligned-rows .afce-list-item {
	align-items: flex-start;
}
/* ...and give the text box at least the height of the number, centred, so a short text sits beside the number instead of at its top edge. */
.afce-opts.afce-aligned-rows .afce-list-text {
	min-height: calc(var(--tx-5xl, 56px) * 1.1);
	display: flex;
	align-items: center;
}
.afce-opts.afce-aligned-rows .afce-list-text > .elementor-widget-container {
	flex: 1;
	min-width: 0;
}

/* Heading row: Feefo testimonials switch - space above the carousel (the carousel sizes itself). */
.afce-feefo {
	width: 100%;
	margin-top: var(--sp-xl, 32px);
}

/* Image + Text / Text + Image with class afce-heading-full: the heading (moved to the start of the grid by includes/heading-full-width.php) spans both columns. */
.afce-opts.afce-heading-full .afce-heading-full-wrap {
	grid-column: 1 / -1;
}

/* Numbered List, Description Position left / right: the template's description widget has a fixed 1100px width, wider than its column in the split, so the text ran off the page (horizontal scroll). Make it fit the column. */
.afce-row .afce-opts .afce-list-split__text .afce-list-desc.elementor-widget {
	width: 100% !important;
	max-width: 100% !important;
	--container-widget-width: 100% !important;
}

/* Image + Text / Text + Image with afce-heading-full: the full width heading is centred. */
.afce-opts.afce-heading-full .afce-heading-full-wrap,
.afce-opts.afce-heading-full .afce-heading-full-wrap .elementor-heading-title {
	text-align: center !important;
}

/* afce-heading-full on phones: the image is stacked above the heading, so give the heading some space from it. */
@media (max-width: 767px) {
	.afce-opts.afce-heading-full .afce-heading-full-wrap {
		margin-top: var(--sp-2xl, 32px);
	}
}
