/*
Theme Name: Merto Child
Theme URI: https://demo.theme-sky.com/merto/
Author: Theme Sky Team
Author URI: http://theme-sky.com/
Description: A Premium and Responsive WordPress theme, designed for E-Commerce websites
Template: merto
Version: 1.0.0
License: GNU General Public License v2 or later
License URI:  http://www.gnu.org/licenses/gpl-2.0.html
Tags: two-columns, left-sidebar, custom-background, custom-colors, custom-header, custom-menu, editor-style, featured-images, microformats, post-formats, rtl-language-support, sticky-post, threaded-comments, translation-ready
Text Domain: merto-child
*/

.page-container {
 padding-bottom: 0 !important;
}

@media screen and (max-width: 768px)  {
bf-service-strip {
    display: none ;
}
}

/* ==========================================================================
   Babli Fashion Point - Modern Reviews Section
   ========================================================================== */

   .bfp-reviews-wrapper {
    max-width: 1240px;
    margin: 60px auto 30px;
    padding: 0 20px;
    clear: both;
}

.bfp-reviews-header {
    text-align: left;
    margin-bottom: 30px;
}

/* Two-column Layout: Reviews on Left, Submission Form on Right */
.bfp-reviews-layout {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 40px;
    align-items: start;
}

/* Overall Rating Summary Card */
.bfp-reviews-summary-card {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
}

.bfp-reviews-score-block {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.bfp-reviews-average {
    font-size: 2.5rem;
    font-weight: 800;
    color: #111827;
    line-height: 1;
}

.bfp-reviews-summary-card .bfp-product-stars {
    font-size: 1.25rem;
    color: #eab308;
    letter-spacing: 2px;
}

.bfp-reviews-count-label {
    font-size: 0.82rem;
    color: #64748b;
}

/* Comment List */
.bfp-commentlist {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.bfp-commentlist li.review {
    background: #ffffff;
    border: 1px solid #eef2f6;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.bfp-commentlist .comment_container {
    display: flex;
    gap: 16px;
}

.bfp-commentlist .comment_container img.avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #f1f5f9;
}

.bfp-commentlist .comment-text {
    flex-grow: 1;
}

.bfp-commentlist .comment-text .meta {
    font-size: 0.85rem;
    color: #6b7280;
    margin-bottom: 6px;
}

.bfp-commentlist .comment-text .woocommerce-review__author {
    font-weight: 700;
    color: #111827;
    font-size: 0.95rem;
}

.bfp-commentlist .star-rating {
    float: right;
    color: #eab308;
}

.bfp-commentlist .description {
    font-size: 0.92rem;
    color: #374151;
    line-height: 1.6;
}

/* Review Form Card */
.bfp-review-card-form {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 28px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
}

.bfp-review-form-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: #111827;
    margin: 0 0 18px 0;
}

.bfp-form-group {
    margin-bottom: 16px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.bfp-form-group label {
    font-size: 0.85rem;
    font-weight: 600;
    color: #374151;
}

.bfp-input,
.bfp-select,
.bfp-textarea {
    width: 100% !important;
    padding: 10px 14px !important;
    border: 1px solid #d1d5db !important;
    border-radius: 8px !important;
    font-size: 0.9rem !important;
    color: #1f2937 !important;
    background: #ffffff !important;
    box-sizing: border-box !important;
    transition: border-color 0.2s ease;
}

.bfp-input:focus,
.bfp-select:focus,
.bfp-textarea:focus {
    border-color: #111827 !important;
    outline: none !important;
}

.bfp-submit-review-btn {
    width: 100% !important;
    padding: 12px !important;
    font-size: 0.95rem !important;
    font-weight: 700 !important;
    border: none !important;
    border-radius: 8px !important;
    cursor: pointer !important;
    margin-top: 10px !important;
}

.bfp-no-reviews-box,
.bfp-verification-box {
    background: #f8fafc;
    border: 1px dashed #cbd5e1;
    border-radius: 10px;
    padding: 24px;
    text-align: center;
    color: #64748b;
}

/* Responsive adjustments */
@media (max-width: 860px) {
    .bfp-reviews-layout {
        grid-template-columns: 1fr;
    }
}

.woocommerce div.product.summary-scrolling > .summary ~ *, .woocommerce div.product div.images {
    width: 100%;
    float: left;
    position: relative;
}
/* Best Discount menu item — ticket icon with percent sign */
.bfp-icon-ticket-percent {
    display: inline-block;
    vertical-align: -3px;
    margin-right: 6px;
}

/* Desktop menus: centre icon and label in a row; tighter gap (half of mobile) */
.ts-menu a[href*="onsale=yes"] {
    display: flex;
    align-items: center;
    gap: 9px;
}
.ts-menu a[href*="onsale=yes"] .bfp-icon-ticket-percent {
    flex: 0 0 auto;
    margin-right: 0; /* gap alone controls spacing in flex rows */
}
@media (min-width: 768px) {
    .ts-menu a[href*="onsale=yes"] {
        gap: 7px;
    }
}

/* ============================================================
   Review form redesign (product page, scoped to the form card)
   The Merto theme makes .comment-form a flex row-wrap and orders
   the textarea/submit first via ID selectors — overridden below.
   ============================================================ */

/* Field order: rating → review → photos → name/email → consent → submit */
.bfp-review-card-form form.comment-form {
    display: flex !important;
    flex-flow: row wrap !important;
    justify-content: space-between;
    row-gap: 16px;
}
.bfp-review-card-form form.comment-form > * { margin: 0; }
.bfp-review-card-form form.comment-form > .wcpr-form-description { order: 1 !important; }
.bfp-review-card-form form.comment-form > p.comment-notes { order: 2 !important; }
.bfp-review-card-form form.comment-form > p.comment-form-author { order: 3 !important; }
.bfp-review-card-form form.comment-form > p.comment-form-email { order: 4 !important; }
.bfp-review-card-form form.comment-form > .comment-form-rating { order: 5 !important; }
.bfp-review-card-form form.comment-form > p.comment-form-comment { order: 6 !important; }
.bfp-review-card-form form.comment-form > .wcpr-comment-form-images { order: 7 !important; }
.bfp-review-card-form form.comment-form > p.comment-form-cookies-consent { order: 8 !important; }
.bfp-review-card-form form.comment-form > p.form-submit { order: 9 !important; }

/* "Review now to get coupon!" → badge */
.bfp-review-card-form .wcpr-form-description {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    justify-self: start;
    background: #fff1ec;
    color: #ff542a;
    font-size: 13px;
    font-weight: 600;
    padding: 7px 14px;
    border-radius: 999px;
}
.bfp-review-card-form .wcpr-form-description::before { content: "🎟️"; font-size: 14px; }

/* Helper note → small muted text */
.bfp-review-card-form p.comment-notes { font-size: 12.5px; color: #9ca3af; line-height: 1.5; }

/* Star rating picker: bigger, gold, brand hover.
   The theme pins star colour (inherit) and glyph size with !important
   rules — these must be !important too; child sheet loads last so ties
   resolve in our favour. Gray "beyond selection" rules come last. */
.bfp-review-card-form p.stars { display: flex; gap: 6px; }
.bfp-review-card-form p.stars a { font-size: 26px !important; color: #d1d5db !important; }
.bfp-review-card-form p.stars a::before { font-size: 26px !important; }
.bfp-review-card-form p.stars:hover a,
.bfp-review-card-form p.stars.selected a:not(.active),
.bfp-review-card-form p.stars.selected a.active { color: #ffb400 !important; }
.bfp-review-card-form p.stars a:hover ~ a,
.bfp-review-card-form p.stars.selected a.active ~ a { color: #d1d5db !important; }

/* Photo upload → dashed dropzone tile (label is the click target).
   Block layout + absolutely-centred icon: the label's hidden original
   text stays an anonymous item that skews flex centring, so avoid flex. */
.bfp-review-card-form .wcpr-comment-form-images > label {
    display: block;
    position: relative;
    box-sizing: border-box;
    width: 100%;
    min-height: 58px;
    border: 2px dashed #e5e7eb;
    border-radius: 12px;
    background: #fafafa;
    color: #6b7280;
    padding: 12px 16px 12px 52px;
    cursor: pointer;
    font-size: 0 !important;
    line-height: 0;
    text-align: left;
    transition: border-color .2s ease, background .2s ease, color .2s ease;
}
.bfp-review-card-form .wcpr-comment-form-images > label::before {
    content: "\f030";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    font-size: 18px;
    line-height: 1;
    position: absolute;
    left: 17px;
    top: 50%;
    transform: translateY(-50%);
}
.bfp-review-card-form .wcpr-comment-form-images > label::after {
    content: "Add photos — up to 2 images (JPG / PNG, max 2MB each)";
    display: block;
    font-size: 13px !important;
    line-height: 1.45;
    font-weight: 600;
    position: absolute;
    left: 52px;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
}
.bfp-review-card-form .wcpr-comment-form-images > label:hover {
    border-color: #ff542a;
    background: #fff6f2;
    color: #ff542a;
}
/* Hide the raw file input but keep it usable via the label */
.bfp-review-card-form .wcpr-input-file-container { position: relative; }
.bfp-review-card-form .wcpr-input-file-container input.wcpr_image_upload {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}
/* Selected previews: clean thumbnail grid BELOW the dropzone.
   The theme renders .wcpr-input-file-wrap as a flex row, which squeezes
   previews beside the tile — force block flow and size thumbs properly. */
.bfp-review-card-form .wcpr-comment-form-images {
    display: block !important; /* theme flex row places previews beside the label */
    width: 100% !important;
}
.bfp-review-card-form .wcpr-input-file-container .wcpr-input-file-wrap {
    display: block !important;
}
.bfp-review-card-form .wcpr-selected-image-container {
    display: flex !important;
    flex-wrap: wrap;
    gap: 10px;
    margin: 10px 0 0 !important;
}
.bfp-review-card-form .wcpr-selected-image-container .wcpr-selected-image {
    position: relative;
    width: 72px !important;
    max-width: 72px !important;
    height: 72px !important;
    margin: 0 !important;
    border-radius: 10px !important;
    overflow: hidden;
    border: 1px solid #e5e7eb;
    background: #ffffff;
}
.bfp-review-card-form .wcpr-selected-image-container .wcpr-selected-image .wcpr-selected-image-preview {
    width: 100% !important;
    height: 100% !important;
    max-width: none !important;
    object-fit: cover !important;
    display: block !important;
    margin: 0 !important;
    border-radius: 0 !important;
}
/* File names hidden; validation errors (too large / wrong type) surface
   as a red note instead of a clipped tooltip */
.bfp-review-card-form .wcpr-selected-image-container .wcpr-selected-image-name { display: none; }
.bfp-review-card-form .wcpr-selected-image:has(.wcpr-comment-form-error) {
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    border: 1px solid #fecaca !important;
    background: #fef2f2 !important;
    border-radius: 8px !important;
    padding: 8px 10px;
}
.bfp-review-card-form .wcpr-selected-image:has(.wcpr-comment-form-error) .wcpr-selected-image-preview { display: none !important; }
.bfp-review-card-form .wcpr-selected-image:has(.wcpr-comment-form-error) .wcpr-selected-image-info { display: block !important; }
.bfp-review-card-form .wcpr-selected-image:has(.wcpr-comment-form-error) .wcpr-selected-image-name {
    display: block !important;
    font-size: 12px !important;
    color: #dc2626 !important;
    line-height: 1.45;
    margin: 0 !important;
}

/* Cookies consent → compact muted; checkbox sized to the text line */
.bfp-review-card-form p.comment-form-cookies-consent {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 12.5px;
    line-height: 20px;
    color: #9ca3af;
}
.bfp-review-card-form p.comment-form-cookies-consent input[type="checkbox"] {
    width: 20px;
    height: 20px;
    flex: 0 0 auto;
    margin: 0;
    accent-color: #ff542a;
    cursor: pointer;
}

/* Focus rings in brand colour */
.bfp-review-card-form .bfp-input:focus,
.bfp-review-card-form .bfp-textarea:focus {
    border-color: #ff542a !important;
    box-shadow: 0 0 0 3px rgba(255, 84, 42, 0.12);
}

/* Submit → brand orange, full width */
.bfp-review-card-form .bfp-submit-review-btn {
    background: #ff542a !important;
    color: #ffffff !important;
    box-shadow: 0 4px 12px rgba(255, 84, 42, 0.25);
    transition: background .2s ease, transform .1s ease;
}
.bfp-review-card-form .bfp-submit-review-btn:hover { background: #e8451d !important; }
.bfp-review-card-form .bfp-submit-review-btn:active { transform: translateY(1px); }

/* Narrow phones: stack name/email full-width */
@media (max-width: 480px) {
    .bfp-review-card-form form.comment-form > p.comment-form-author,
    .bfp-review-card-form form.comment-form > p.comment-form-email {
        width: 100% !important;
    }
}

/* ============================================================
   Related Products cards (product page) — mirror the home
   "Featured Shoes" card design exactly (bf-product-card look).
   ============================================================ */
.pbpp-related-grid .pbpp-related-card {
    display: flex !important;
    flex-direction: column;
    border: 1px solid #e9e5e2 !important;
    border-radius: 22px !important;
    overflow: hidden !important;
    background: #fff !important;
    box-shadow: 0 5px 18px rgba(28, 28, 28, .045) !important;
    padding: 0 !important;
}
.pbpp-related-grid .pbpp-related-product-link {
    display: flex !important;
    flex-direction: column;
    align-items: center;
    flex: 0 0 auto;
    padding: 0 !important;
    text-align: center;
}
.pbpp-related-grid .pbpp-related-image {
    height: 220px;
    width: 100%;
    display: block;
    position: relative;
    background: #f7f6f4;
    overflow: hidden;
    flex: 0 0 auto;
    border-radius: 0 !important;
    margin: 0 !important;
}
.pbpp-related-grid .pbpp-related-product-img {
    display: block;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    border-radius: 0 !important;
}
/* The plugin JS hoists the category link out of its span at runtime —
   style both the wrapper span and the bare rel=tag link. */
.pbpp-related-grid .pbpp-related-category,
.pbpp-related-grid a[rel="tag"] {
    display: block !important;
    font-size: 10px !important;
    letter-spacing: 1px !important;
    text-transform: uppercase !important;
    color: #96918d !important;
    font-weight: 500 !important;
    margin: 0 0 10px !important;
    text-align: center !important;
}
.pbpp-related-grid .pbpp-related-category a,
.pbpp-related-grid a[rel="tag"] { color: #96918d !important; }
.pbpp-related-grid .pbpp-related-category a:hover,
.pbpp-related-grid a[rel="tag"]:hover { color: #ff4b1f !important; }
.pbpp-related-grid .pbpp-related-name {
    display: block !important;
    font-size: 14px !important;
    line-height: 1.35 !important;
    margin: 0 0 7px !important;
    font-weight: 700 !important;
    color: #242424 !important;
    text-align: center !important;
    min-height: 0 !important; /* plugin reserves 2 lines (39px) — kills single-line cards */
}
.pbpp-related-grid .pbpp-related-sku {
    display: flex !important;
    justify-content: center;
    align-items: center;
    gap: 6px;
    font-size: 12px !important;
    color: #777 !important;
    margin: 0 0 8px !important;
}
.pbpp-related-grid .pbpp-related-sku b { font-weight: 600 !important; color: #555 !important; }
.pbpp-related-grid .pbpp-related-price {
    font-size: 15px !important;
    font-weight: 900 !important;
    margin: 4px 0 7px !important;
    color: #252525 !important;
}
.pbpp-related-grid .pbpp-related-price del { color: #999 !important; font-weight: 400 !important; }
.pbpp-related-grid .pbpp-related-price ins { text-decoration: none !important; }
.pbpp-related-grid .pbpp-related-rating {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    gap: 5px !important;
    margin: auto 0 12px !important;
    font-size: 10px !important;
    color: #777 !important;
    min-height: 16px !important;
    width: 100% !important;
}
.pbpp-related-grid .pbpp-related-stars { color: #e7a21a !important; letter-spacing: 1px !important; font-size: 12px !important; white-space: nowrap; }
.pbpp-related-grid .pbpp-related-review-count { font-size: 10px !important; color: #888 !important; }
.pbpp-related-grid .pbpp-related-actions {
    display: flex !important;
    width: 100% !important;
    margin-top: auto !important;
    min-height: 45px !important;
}
.pbpp-related-grid .pbpp-related-button {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 7px !important;
    width: 50% !important;
    min-height: 45px !important;
    padding: 10px 5px !important;
    text-align: center !important;
    color: #fff !important;
    font-size: 11px !important;
    font-weight: 800 !important;
    text-transform: uppercase !important;
    line-height: 1.2 !important;
    white-space: nowrap;
}
.pbpp-related-grid .pbpp-related-button svg {
    width: 15px;
    height: 15px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}
.pbpp-related-grid .pbpp-related-button-cart {
    background: #ff4b1f !important;
    border-right: 1px solid rgba(255, 255, 255, .25) !important;
}
.pbpp-related-grid .pbpp-related-button-cart:hover { background: #e83d14 !important; }
.pbpp-related-grid .pbpp-related-button-buy {
    background: #171717 !important;
    border-left: 1px solid rgba(255, 255, 255, .18) !important;
}
.pbpp-related-grid .pbpp-related-button-buy:hover { background: #fff0e5 !important; color: #171717 !important; }

/* Match home card responsive image heights */
@media (max-width: 800px) {
    .pbpp-related-grid .pbpp-related-image { height: 190px !important; }
}
@media (max-width: 540px) {
    .pbpp-related-grid .pbpp-related-image { height: 155px !important; }
    .pbpp-related-grid .pbpp-related-button { font-size: 9px !important; gap: 4px !important; }
}

/* ============================================================
   My Account screens — account details, addresses, orders,
   downloads, payment methods. Constrained width + card forms.
   ============================================================ */

/* Constrain and centre the whole account area */
.woocommerce-account .woocommerce {
    max-width: 880px;
    margin: 0 auto !important;
    padding: 0 16px 48px;
}

/* Account navigation tabs */
.woocommerce-account .woocommerce-MyAccount-navigation ul {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 28px;
    justify-content: flex-start;
    border: 0 !important;
    margin: 0 0 26px !important;
    padding: 0 !important;
}

/* Content wrapper becomes a card */
.woocommerce-account .woocommerce-MyAccount-content {
    background: #fff;
    border: 1px solid #e9e5e2;
    border-radius: 16px;
    padding: 28px 30px 30px;
    box-shadow: 0 5px 18px rgba(28, 28, 28, .045);
    float: none !important;
    width: 100% !important;
}

/* Two-column form grid; wide rows span both columns */
.woocommerce-account .woocommerce-MyAccount-content form,
.woocommerce-account .woocommerce-MyAccount-content .woocommerce-address-fields__field-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px 18px;
}
.woocommerce-account .woocommerce-MyAccount-content form .form-row,
.woocommerce-account .woocommerce-MyAccount-content form p,
.woocommerce-account .woocommerce-MyAccount-content .woocommerce-address-fields__field-wrapper .form-row {
    float: none !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
}
.woocommerce-account .woocommerce-MyAccount-content form .form-row-wide,
.woocommerce-account .woocommerce-MyAccount-content form .woocommerce-form-row--wide,
.woocommerce-account .woocommerce-MyAccount-content form h2,
.woocommerce-account .woocommerce-MyAccount-content form h3,
.woocommerce-account .woocommerce-MyAccount-content form legend,
.woocommerce-account .woocommerce-MyAccount-content form p:not(.form-row):not(.woocommerce-form-row) {
    grid-column: 1 / -1;
}

/* Labels + fields */
.woocommerce-account .woocommerce-MyAccount-content label {
    font-size: 13px;
    font-weight: 600;
    color: #374151;
    margin: 0 0 6px;
    display: inline-block;
}
.woocommerce-account .woocommerce-MyAccount-content label .required { color: #ff542a; text-decoration: none; }
.woocommerce-account .woocommerce-MyAccount-content .input-text,
.woocommerce-account .woocommerce-MyAccount-content select,
.woocommerce-account .woocommerce-MyAccount-content textarea,
.woocommerce-account .woocommerce-MyAccount-content .select2-container--default .select2-selection--single {
    width: 100% !important;
    padding: 11px 14px !important;
    border: 1px solid #d1d5db !important;
    border-radius: 8px !important;
    font-size: 14px !important;
    color: #1f2937 !important;
    background: #fff !important;
    box-sizing: border-box !important;
    height: auto !important;
    min-height: 0 !important;
}
.woocommerce-account .woocommerce-MyAccount-content .select2-container--default .select2-selection--single .select2-selection__rendered {
    padding: 0 !important;
    line-height: 20px !important;
    color: #1f2937 !important;
}
.woocommerce-account .woocommerce-MyAccount-content .select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 100% !important;
    top: 0 !important;
    right: 6px !important;
}
.woocommerce-account .woocommerce-MyAccount-content .input-text:focus,
.woocommerce-account .woocommerce-MyAccount-content select:focus,
.woocommerce-account .woocommerce-MyAccount-content textarea:focus,
.woocommerce-account .woocommerce-MyAccount-content .select2-container--default.select2-container--open .select2-selection--single {
    border-color: #ff542a !important;
    box-shadow: 0 0 0 3px rgba(255, 84, 42, .12);
    outline: none !important;
}

/* Headings inside forms */
.woocommerce-account .woocommerce-MyAccount-content h2,
.woocommerce-account .woocommerce-MyAccount-content h3 {
    font-size: 16px;
    font-weight: 700;
    color: #111827;
    margin: 8px 0 4px;
}

/* Buttons: brand orange */
.woocommerce-account .woocommerce-MyAccount-content .button,
.woocommerce-account .woocommerce-MyAccount-content button[type="submit"] {
    background: #ff542a !important;
    color: #fff !important;
    border: 0 !important;
    border-radius: 8px !important;
    padding: 12px 26px !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    cursor: pointer !important;
    transition: background .2s ease;
    height: auto !important;
    line-height: 1.4 !important;
}
.woocommerce-account .woocommerce-MyAccount-content .button:hover,
.woocommerce-account .woocommerce-MyAccount-content button[type="submit"]:hover { background: #e8451d !important; }

/* Tables (orders, downloads, payment methods) */
.woocommerce-account .woocommerce-MyAccount-content table.shop_table,
.woocommerce-account .woocommerce-MyAccount-content table.woocommerce-orders-table {
    width: 100%;
    border: 1px solid #e9e5e2 !important;
    border-radius: 12px;
    border-collapse: separate !important;
    border-spacing: 0;
    overflow: hidden;
    font-size: 13.5px;
    margin: 0 0 20px;
}
.woocommerce-account .woocommerce-MyAccount-content table.shop_table th,
.woocommerce-account .woocommerce-MyAccount-content table.woocommerce-orders-table th {
    background: #f8fafc;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: .5px;
    color: #6b7280;
    padding: 12px 14px;
    text-align: left;
}
.woocommerce-account .woocommerce-MyAccount-content table.shop_table td {
    padding: 12px 14px;
    border-top: 1px solid #f1f2f4;
    vertical-align: middle;
}

/* Address blocks (Addresses screen) */
.woocommerce-account .woocommerce-MyAccount-content .woocommerce-Address {
    border: 1px dashed #d1d5db;
    border-radius: 12px;
    padding: 18px 20px;
    margin: 0 0 18px;
}
.woocommerce-account .woocommerce-MyAccount-content .woocommerce-Address-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 0 0 6px;
}
.woocommerce-account .woocommerce-MyAccount-content .woocommerce-Address-title h3 { margin: 0; }

/* Dashboard greeting block */
.woocommerce-account .woocommerce-MyAccount-content > p:first-child {
    font-size: 15px;
    color: #374151;
}

/* Tighten the vertical rhythm on account pages (empty title block,
   container padding, nav margin) */
.woocommerce-account .breadcrumb-title-wrapper {
    min-height: 0 !important;
    padding: 0 !important;
}
.woocommerce-account .page-container { padding-top: 0 !important; }
.woocommerce-account .woocommerce-MyAccount-navigation { margin-top: 0 !important; }

/* Address form rows: the theme pins 48% widths with a later stylesheet —
   out-rank it so each row fills its grid column */
.woocommerce-account .woocommerce-MyAccount-content .woocommerce-address-fields__field-wrapper .form-row,
.woocommerce-account .woocommerce-MyAccount-content .woocommerce-address-fields__field-wrapper p.form-row.form-row-first,
.woocommerce-account .woocommerce-MyAccount-content .woocommerce-address-fields__field-wrapper p.form-row.form-row-last {
    width: 100% !important;
    float: none !important;
}

/* The address form nests its rows inside a wrapper — span it across
   both grid columns */
.woocommerce-account .woocommerce-MyAccount-content form .woocommerce-address-fields,
.woocommerce-account .woocommerce-MyAccount-content form .woocommerce-address-fields__field-wrapper {
    grid-column: 1 / -1;
}

/* Password change section: distinct sub-card.
   WooCommerce renders it as a fieldset with a legend. */
.woocommerce-account .woocommerce-MyAccount-content form.edit-account fieldset {
    grid-column: 1 / -1;
    border: 1px solid #e9e5e2 !important;
    border-radius: 12px;
    background: #f8fafc;
    padding: 18px 20px 20px !important;
    margin: 10px 0 0 !important;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px 18px;
}
.woocommerce-account .woocommerce-MyAccount-content form.edit-account fieldset legend {
    grid-column: 1 / -1;
    font-size: 14px !important;
    font-weight: 700 !important;
    color: #111827;
    padding: 0 !important;
    margin: 0 0 4px !important;
    float: left;
    width: 100%;
}
.woocommerce-account .woocommerce-MyAccount-content form.edit-account fieldset p {
    float: none !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
}
.woocommerce-account .woocommerce-MyAccount-content form.edit-account fieldset .form-row-wide {
    grid-column: 1 / -1;
}

/* WooCommerce clears are float helpers — phantom rows inside the grid */
.woocommerce-account .woocommerce-MyAccount-content form .clear {
    display: none !important;
}

/* Legal pages (Terms & Conditions, Privacy Policy): trim the excess
   space under the breadcrumb row and add 60px breathing room at the
   bottom before the footer */
.page-id-12917 .page-container,
.page-id-3 .page-container {
    padding-top: 0 !important;
    padding-bottom: 60px !important;
}
.page-id-12917 .entry-content,
.page-id-3 .entry-content {
    margin-top: 24px !important;
}

/* ─────────────────────────────────────────────────────────────
   Point 11 — Guest My Account: Login/Signup toggle
   The notifyflow plugin renders both cards side by side; the child
   JS (bfp-auth-toggle.js) collapses them into one card switched by
   a pill toggle. Signup is the default.
   ───────────────────────────────────────────────────────────── */
.nfwa-my-account-grid {
    display: block !important;
    width: min(546px, 100%) !important;
}
.nfwa-my-account-grid .nfwa-my-account-column {
    display: block;
}
.nfwa-my-account-grid .nfwa-my-account-column[hidden] {
    display: none !important;
}
.bfp-auth-toggle {
    position: relative;
    display: flex;
    margin: 0 0 22px;
    padding: 5px;
    border: 1px solid rgba(33, 25, 22, .08);
    border-radius: 999px;
    background: #fff;
    box-shadow: 0 12px 38px rgba(39, 27, 22, .07);
}
.bfp-auth-toggle__thumb {
    position: absolute;
    top: 5px;
    left: 5px;
    width: calc(50% - 5px);
    height: calc(100% - 10px);
    border-radius: 999px;
    background: linear-gradient(135deg, #ff4b1f, #ff8a55);
    box-shadow: 0 6px 14px rgba(255, 75, 31, .28);
    transition: transform .28s cubic-bezier(.4, 0, .2, 1);
    transform: translateX(100%); /* default tab is Sign Up (right) */
}
.bfp-auth-toggle--login .bfp-auth-toggle__thumb {
    transform: translateX(0);
}
.bfp-auth-toggle__btn {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    flex: 1;
    min-height: 46px;
    margin: 0;
    padding: 10px 14px;
    border: 0;
    border-radius: 999px;
    background: transparent !important;
    box-shadow: none !important;
    color: #77716e;
    font-family: inherit;
    font-size: 14px;
    font-weight: 800;
    line-height: 1.3;
    letter-spacing: .2px;
    text-transform: none;
    cursor: pointer;
    transition: color .2s ease;
    -webkit-tap-highlight-color: transparent;
}
.bfp-auth-toggle__btn svg {
    flex: 0 0 auto;
    display: block;
}
.bfp-auth-toggle__btn:hover {
    color: #ff4b1f;
    background: transparent !important;
    transform: none;
}
.bfp-auth-toggle__btn.is-active {
    color: #fff;
}
.bfp-auth-toggle__btn.is-active:hover {
    color: #fff;
}
.bfp-auth-toggle__btn:focus-visible {
    outline: 3px solid rgba(255, 75, 31, .28);
    outline-offset: 2px;
}
@media (max-width: 767px) {
    .bfp-auth-toggle {
        margin: 0 0 18px;
    }
    .bfp-auth-toggle__btn {
        min-height: 44px;
        font-size: 13.5px;
    }
}

/* Point 12 — guest My Account: keep breathing room between the card and
   the footer. The theme zeroes the bottom margin of the last element in
   the article (body.page article.page > :last-child), which swallowed the
   plugin's 76px card margin — restore 60px at every viewport. */
body.page article.page > .nfwa-my-account-grid {
    margin-bottom: 60px !important;
}

/* ─────────────────────────────────────────────────────────────
   Point 13 — Product image hover zoom (in-place, follows cursor)
   Activated by body class bfp-zoom-cursor (BFP_PRODUCT_ZOOM_MODE
   in functions.php = 'cursor'). With 'panel', none of this applies
   and the plugin's original side-panel zoom runs unchanged.
   ───────────────────────────────────────────────────────────── */
body.bfp-zoom-cursor .pbpp-hover-zoom,
body.bfp-zoom-cursor .pbpp-zoom-lens {
    display: none !important;
}
body.bfp-zoom-cursor .pbpp-main-image {
    overflow: hidden;
}
body.bfp-zoom-cursor .pbpp-main-img {
    transition: transform .18s ease;
    transform-origin: 50% 50%;
    will-change: transform;
}
body.bfp-zoom-cursor .pbpp-main-image-button.is-zooming .pbpp-main-img {
    transform: scale(var(--bfp-zoom-scale, 2.2));
    transition: none;
}
