/* FluentCart Elementor Blocks — layout overrides */

/* Single-column checkout: spacing between summary/notes and form fields */
.fce-checkout-single-column .fct_checkout_form {
    margin-top: 24px;
}

/* Single-column checkout: reset core section top margin on submit wrapper */
.fce-checkout-single-column .fct_checkout_form_submit .fct_checkout_form_section {
    margin-top: 0;
}

/* Review presets are rendered by the Elementor widget, so their semantic
 * classes live here rather than in core's Gutenberg block stylesheet. */
.fct-reviews-layout-preset--summary-top .fct-reviews-layout {
    display: flex;
    flex-direction: column;
}

.fct-reviews-layout-preset--summary-top .fct-reviews-layout-left {
    position: static;
    width: 100%;
}

.fct-reviews-layout-preset--minimal .fct-review-item,
.fct-reviews-layout-preset--compact .fct-review-item {
    box-shadow: none;
}

.fct-reviews-layout-preset--photo-wall .fct-review-item,
.fct-reviews-layout-preset--photo-grid .fct-review-item {
    overflow: hidden;
}

/* Photo Grid: the image is the card's lead, with the review copy below it. */
.fct-reviews-layout-preset--photo-grid .fct-review-item {
    overflow: hidden;
}

.fct-reviews-layout-preset--photo-grid .fct-review-media-gallery {
    width: calc(100% + 32px);
    margin: -16px -16px 14px;
}

.fct-reviews-layout-preset--photo-grid .fct-review-media-thumb {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border: 0;
    border-radius: 0;
}

/* Photo Wall needs no rules here.
 *
 * The card is drawn by reviews.scss, which this widget already loads: core
 * styles any card holding a backdrop gallery, and the preset asks for one. It
 * makes the photograph the card, lays the scrim over it and settles the words
 * at the foot -- the same card the block editor builds, because it is the same
 * stylesheet.
 *
 * This file used to restate all of that, and the copy drifted: it pushed the
 * byline down with margin-top:auto, which ate the free space above it and left
 * the stars stranded at the top of the card while core kept them with the name
 * at the bottom. One card, two descriptions, and only one of them right.
 * ------------------------------------------------------------------------ */

/* Photo Strip needs no rules here.
 *
 * The card is drawn by reviews.scss, which this widget already loads: core
 * styles any card carrying fct-review-photo-only, and the preset asks for that
 * class. It takes the padding off the card and lets the flush gallery fill it.
 *
 * This file restated that and went further, and the extras were the mismatch:
 * it cropped every tile to a square with object-fit, which cuts the ends off a
 * landscape product shot, rounded the tile instead of the gallery, and stripped
 * the card's frame and background. It also hid the header, title, content and
 * reply button, none of which this preset renders in the first place.
 * ------------------------------------------------------------------------ */

/* Testimonials needs no rules here.
 *
 * The card is drawn by reviews.scss, which this widget already loads: core
 * styles any card carrying fct-review-testimonial, and the preset asks for that
 * class. It centres the card, makes room at the top and draws the quotation
 * mark -- the same card the block editor builds, because it is the same
 * stylesheet.
 *
 * This file used to draw the quotation mark as well, and the two landed on one
 * pseudo-element at equal specificity, so the later file won property by
 * property. Core's colour and size lost to this one's while core's opacity
 * stayed, leaving a mark that was both smaller and washed out, and core's room
 * at the top lost to a padding that did not leave any.
 * ------------------------------------------------------------------------ */

/* These presets omit the review footer in the core template. Pro's vote
 * enhancer falls back to the card when no footer slot exists, so suppress
 * that fallback and keep Elementor identical to the core layout. */
.fct-reviews-layout-preset--photo-wall .fct-review-votes,
.fct-reviews-layout-preset--photo-strip .fct-review-votes,
.fct-reviews-layout-preset--compact .fct-review-votes,
.fct-reviews-layout-preset--testimonials .fct-review-votes {
    display: none;
}
