/* =====================================================
   BULK APPAREL BUILDER – THEME SAFE STYLES
   ===================================================== */

:root {
    --bab-primary: var(--wp--preset--color--primary, #ea375d);
    --bab-primary-soft: rgba(252, 235, 238);
    --bab-border: #e5e5e5;
    --bab-text-muted: #777;
}

/* ===============================
   STEP 5 – DESIGN WIDTH BUTTONS
   =============================== */

.bab-width-options {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin: 10px 0 16px;
}

/* Base button */
.bab-width-options button {
    appearance: none;
    background: #fff;
    border: 1px solid var(--bab-border);
    color: #111827;

    padding: 8px 16px;
    border-radius: 999px;

    font-size: 14px;
    font-weight: 500;
    cursor: pointer;

    transition: all 0.2s ease;
}

/* Hover */
.bab-width-options button:hover {
    border-color: var(--bab-primary);
    color: var(--bab-primary);
}

/* Active (selected) */
.bab-width-options button.active {
    background: var(--bab-primary);
    border-color: var(--bab-primary);
    color: #fff;
    font-weight: 600;
}

/* ===============================
 * COLOURS / SWATCHES
 * =============================== */
.bab-colour-swatch {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 2px solid #e5e7eb;
    cursor: pointer;
    outline: none;
    padding: 0;
    background-clip: padding-box;
    position: relative;
}
/* Active ring */
.bab-colour-swatch.active {
    border-color: var(--bab-primary);
    box-shadow: 0 0 0 3px rgba(0, 166, 81, 0.25);
}
/* ===============================
 * STEP 2 – SIZE GRID
 * =============================== */
#bab-step-2 {
    margin-top: 1em;
}

/* Colour block */
.bab-grid {
    background: #fcebee;
    border-radius: 12px;
    margin-bottom: 16px;
    border: none;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(90px, 1fr));
    gap: 0.75em;
    padding: 1em;
}

/* ===============================
 * TOTALS
 * =============================== */
#bab-total {
    font-weight: bold;
}

/* ===============================
 * STEPS
 * =============================== */
.bab-step {
    margin-top: 1.5em;
    background: #fcebee;
    border-radius: 14px;
    padding: 20px;
}

#bab-add-customisation {
    border: 1px solid var(--wp--preset--color--primary, #ea375d);
    background: transparent;
    color: #ea375d;
    border-radius: 999px;
}

/* ===============================
 * CUSTOMISATION TYPE
 * =============================== */
.bab-customisation-option {
    padding: 0.6em 1em;
    margin-right: 0.5em;
    border: 1px solid #ccc;
    background: #fff;
    cursor: pointer;
}

.bab-customisation-option.active {
    border-color: var(--wp--preset--color--primary, #ea375d);
    background: #e9f7ef;
}

/* ===============================
 * DESIGN POSITION
 * =============================== */
.bab-positions button {
    margin: 0.4em;
}

/* ===============================
 * ARTWORK OPTIONS
 * =============================== */
/* Tabs container */
.bab-artwork-options {
    display: flex;
    justify-content: center;
    margin: 16px 0 20px;
  flex-wrap:wrap;   /* ✅ */
    gap: 0.5em;
    margin-bottom: 1em;
}




.bab-artwork-panel {
    background: #fcebee;
    border: 1px dashed #ddd;
    /* padding: 1em; */
}

/* ===============================
 * UPLOAD PREVIEW
 * =============================== */
.bab-upload-preview img {
    max-width: 120px;
    display: block;
    margin-bottom: 0.5em;
}

/* ===============================
 * TEXT CREATOR
 * =============================== */
/* Text preview box */
#bab-text-preview {
    background: #ffffff;
    border-radius: 12px;
    border: none;
    padding: 20px;
    min-height: 90px;
    box-shadow: inset 0 0 0 1px #e5e7eb;
}

/* ===============================
 * OPTIONAL PROGRESS BAR
 * =============================== */
.bab-progress {
    background: #eee;
    height: 6px;
    border-radius: 3px;
    margin: 0.5em 0;
}

.bab-progress-bar {
    display: block;
    height: 100%;
    width: 0;
    background: #ea375d;
}
input.bab-text-line {
    margin-bottom: 5px !important;
}

.bab-tier {
    text-align: center;
    font-size: 14px;
}

.bab-tier-price {
    font-weight: 600;
    font-size: 15px;
}

.bab-tier-save {
    color: #ea375d;
    font-size: 12px;
}

.bab-tier.contact {
    color: #ea375d;
    font-weight: 600;
}
.bab-tier-pricing {
    margin-bottom: 24px;
    background: #fcebee;
    border-radius: 14px;
}


.bab-tier.active {
    border: 2px solid #ea375d;
    background: #e9f7ef;
    border-radius: 4px;
}


.bab-position-card.active {
    border-color: #ea375d;
    background: var(--bab-primary-soft);
    background: #fff;
}

.bab-position-card img {
    max-width: 100%;
    height: auto;
    margin-bottom: 10px;
    display: block;
    margin: 6px auto 8px;
}


/* ===============================
   STEP 4 – POSITION CARD LAYOUT
   =============================== */



/* ===============================
   BUILDER WRAPPER
   =============================== */
#bab-builder {
    margin: 1.5em 0;
}


/* ===============================
   STEP 2 – SIZE GRID
   =============================== */


.bab-grid label {
    display: flex;
    flex-direction: column;
    font-size: 0.9em;    
    font-weight: 600;
    text-align: center;
}


/* ===============================
   PRICE TIERS
   =============================== */

.bab-tier-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(90px, 1fr));
    gap: 16px;
    padding: 20px;
}

.bab-tier {
    text-align: center;
    font-size: 14px;
}

.bab-tier-price {
    font-weight: 600;
}

.bab-tier-save {
    font-size: 12px;
    color: #ea375d;
}



/* ===============================
   STEP 4 – DESIGN POSITION (SWIPER)
   =============================== */
.bab-position-carousel {
    width: 100%;
    padding: 24px 40px; /* space for arrows */
    box-sizing: border-box;
}


/* Swiper slide safety for themes */
.bab-position-carousel .swiper-slide {
    display: flex;
    justify-content: center;
    width: auto !important; /* prevent squeeze */
}

/* Position card */
.bab-position-card {
    width: 180px;              /* 👈 KEY FIX */
    min-width: 180px;
    max-width: 180px;
    background: #fff;
    border-radius: 14px;
    padding: 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.2s ease;
    background: #fff;
    box-shadow: 0 1px 2px rgba(0,0,0,0.04);
    background: #fff;
}

.bab-position-card:hover {
    transform: translateY(-2px);
}
/* FRONT / BACK label */
.bab-position-side {
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 8px;
    letter-spacing: 0.04em;
    color: #6b7280;
}

/* Position name (Left Chest, Centre Back etc.) */
.bab-position-name {
    font-size: 13px;
    font-weight: 500;
    color: #111827;
    line-height: 1.3;
    margin-top: 6px;
}

/* Center single slide (Names & Numbers) */
.bab-position-carousel .swiper-wrapper {
    align-items: stretch;
}

/* ===============================
 * TEXT CREATOR
 * =============================== */
.bab-text-controls {
    display: flex;
    gap: 0.5em;
    margin-bottom: 0.75em;

    /* ✅ MOBILE FIX */
    flex-wrap: wrap;
}
/* Select fields */
.bab-text-controls select {
    flex: 1;
    appearance: none;
    border-radius: 999px;
    border: 1px solid #d1d5db;
    padding: 8px 14px;
    font-size: 13px;
    background: #fff url("data:image/svg+xml,%3Csvg width='10' height='6' viewBox='0 0 10 6' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1L5 5L9 1' stroke='%236b7280' stroke-width='1.5'/%3E%3C/svg%3E") no-repeat right 14px center;
    background-size: 10px;
    cursor: pointer;
    /* ✅ allow flex items to actually shrink instead of overflowing */
    min-width: 0;
    /* ✅ make them share the row cleanly */
    -webkit-appearance: none;
    -moz-appearance: none;
    background-color: #ffffff;
    background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%236b7280' stroke-width='2' fill='none'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    font-weight: 500;
    color: #111827;
    transition: all 0.2s ease;
}

/* Hover */
.bab-text-controls select:hover {
    border-color: var(--bab-primary);
}

/* Focus */
.bab-text-controls select:focus {
    outline: none;
    border-color: var(--bab-primary);
    box-shadow: 0 0 0 3px rgba(0, 166, 81, 0.18);
}

/* Dropdown menu options */
.bab-text-controls select option {
    font-size: 13px;
    font-weight: 500;
    padding: 8px;
    line-height: 1.3;
}

/* Disabled placeholder option */
.bab-text-controls select option[value=""] {
    color: #9ca3af;
}
/* On narrow screens, stack selects nicely */
@media (max-width: 480px) {
    .bab-text-controls {
        gap: 10px;
    }

    .bab-text-controls select {
        flex: 1 1 100%;
        width: 100%;
    }
}


@media (max-width:480px){
  .bab-artwork-option{ min-width: 0; }
}

/* ===============================
   SWIPER ARROWS – CLEAN UI
   =============================== */

.bab-position-carousel .swiper-button-prev,
.bab-position-carousel .swiper-button-next {
    width: 36px;
    height: 36px;

    background: #fff;
    border-radius: 50%;
    box-shadow: 0 4px 12px rgba(0,0,0,0.12);

    color: #333;
    transition: all 0.2s ease;
}

.bab-position-carousel .swiper-button-prev:hover,
.bab-position-carousel .swiper-button-next:hover {
    background: var(--bab-primary);
    color: #fff;
}

.bab-position-carousel .swiper-button-prev::after,
.bab-position-carousel .swiper-button-next::after {
    font-size: 14px;
    font-weight: bold;
}

/* Better positioning */
.bab-position-carousel .swiper-button-prev {
    left: 6px;
}

.bab-position-carousel .swiper-button-next {
    right: 6px;
}

/* Hide arrows if not needed */
.bab-position-carousel .swiper-button-disabled {
    opacity: 0;
    pointer-events: none;
}

/* Step 2 colour swatch display */
.bab-step2-colour {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}

.bab-colour-dot {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 2px solid #ddd;
    box-shadow: inset 0 0 0 1px rgba(0,0,0,0.08);
}
.bab-text-color option {
    font-weight: 600;
}

.bab-text-color {
    appearance: none;
}
.bab-row.is-disabled {
    opacity: 0.45;
    pointer-events: auto;
}
.bab-names-controls {
    display: flex;
    gap: 12px;
}

.bab-names-controls select {
    flex: 1;
    min-width: 0;
}
.bab-dropzone {
    border: 2px dashed #cfd8dc;
    border-radius: 10px;
    padding: 40px;
    text-align: center;
    cursor: pointer;
    background: #f9fafb;
}

.bab-dropzone.dragover {
    border-color: #ea375d;
    background: #eefaf1;
}

.bab-dropzone-inner strong {
    font-size: 16px;
    display: block;
    margin-bottom: 6px;
}
/* Upload preview container */
#bab-upload-preview {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 10px;
}

/* Uploaded image */
#bab-upload-thumb {
    max-width: 160px;
    max-height: 160px;
    object-fit: contain;
    border-radius: 6px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}
#bab-upload-filename {
    display: none;
}
.bab-delete-btn {
    background: #fff;
    border: 1px solid #d63638;
    color: #d63638;
    padding: 6px 14px;
    border-radius: 4px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.bab-delete-btn:hover {
    background: #d63638;
    color: #fff;
}
.bab-cart-customisation {
    display: flex;
    gap: 12px;
    padding: 10px;
    margin-top: 8px;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
}

.bab-cart-artwork img {
    width: 70px;
    height: auto;
    border-radius: 4px;
    border: 1px solid #ddd;
}

.bab-cart-info {
    font-size: 14px;
    line-height: 1.4;
}

.bab-cart-info strong {
    display: block;
    margin-bottom: 4px;
}

.bab-cart-notes {
    margin-top: 4px;
    font-style: italic;
    color: #555;
}
/* =====================================================
   STEP 5 – ARTWORK (FINAL IMAGE-2 MATCH)
   ===================================================== */

/* Step title */
.bab-step-5 h3 {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 10px;
}

/* Upload dropzone container */
.bab-dropzone {
    padding: 34px;
}

/* Upload main text */
.bab-dropzone-inner strong {
    font-size: 13.5px;
    font-weight: 600;
}

/* Upload helper line */
.bab-dropzone-inner p {
    font-size: 12px;
    color: #6b7280;
    margin: 4px 0;
}

/* File types */
.bab-dropzone-inner small {
    font-size: 11.5px;
    color: #9ca3af;
}

/* Checkbox text */
.bab-step-5 label {
    font-size: 12.8px;
    color: #374151;
}

/* Section subtitles (Choose design width, Text preview) */
.bab-step-5 h4 {
    font-size: 13px;
    font-weight: 600;
    margin: 12px 0 6px;
}

/* Width buttons */
.bab-width-options button {
    font-size: 12.8px;
    padding: 6px 14px;
}

/* Inputs */
.bab-step-5 input[type="text"],
.bab-step-5 input[type="number"] {
    border-radius: 999px;
    border: 1px solid #d1d5db;
    padding: 10px 14px;
    font-size: 13px;
    background: #fff;
}

/* Placeholder */
.bab-step-5 input::placeholder {
    font-size: 12px;
    color: #9ca3af;
}

/* Remove filename completely */
#bab-upload-filename {
    display: none !important;
}

/* Remove button */
.bab-delete-btn {
    font-size: 12.8px;
    padding: 6px 12px;
}
/* =====================================================
   STEP 4 – DESIGN POSITION (MATCH IMAGE 2)
   Smaller text, cleaner cards, softer background
   ===================================================== */

/* Step title */
.bab-step-4 h3 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 14px;
}

/* Names & Numbers toggle row */
.bab-names-toggle {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 12px;
}

.bab-names-toggle label {
    font-size: 13px;
    color: #374151;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Toggle UI (if custom styled elsewhere, this just refines spacing) */
.bab-names-toggle input {
    transform: scale(0.9);
}

/* Swiper container background */
.bab-step-4 {
    background: #fcebee;
    padding: 16px;
    border-radius: 10px;
}

/* Carousel spacing */
.bab-position-carousel {
    padding: 20px 36px;
}

/* Swiper arrows – softer & smaller */
.bab-position-carousel .swiper-button-prev,
.bab-position-carousel .swiper-button-next {
    width: 32px;
    height: 32px;
    background: #fff;
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(0,0,0,0.12);
}

.bab-position-carousel .swiper-button-prev::after,
.bab-position-carousel .swiper-button-next::after {
    font-size: 12px;
    font-weight: bold;
}

/* Hide arrows when disabled */
.bab-position-carousel .swiper-button-disabled {
    opacity: 0;
    pointer-events: none;
}
/* =====================================================
   STEP 3 – CUSTOMISATION TYPE (MATCH IMAGE 2)
   ===================================================== */

.bab-step-3 h3 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 12px;
}

/* Container spacing */
.bab-step-3 {
    background: #fcebee;
    padding: 16px;
    border-radius: 14px;
}

/* Print button */
.bab-customisation-option {
    display: inline-flex;
    align-items: center;
    gap: 10px;

    padding: 10px 18px;
    border-radius: 999px;

    border: 2px solid var(--bab-primary);
    background: #fff;

    font-size: 14px;
    font-weight: 600;
    color: #111827;

    cursor: pointer;
    transition: all 0.2s ease;
}

/* remove the emoji icon */
.bab-customisation-option::before {
  content: none !important;
}

/* icon circle */
.bab-customisation-option .bab-icon {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;

  background: #111827;      /* dark circle like your image 2 */
  color: #fff;
  font-size: 15px;
  line-height: 1;
}

/* optional: active state can invert circle if you want */
.bab-customisation-option.active .bab-icon {
  background: #111827;
  color: #fff;
}


/* Active state */
.bab-customisation-option.active {
    background: var(--bab-primary-soft);
    border-color: var(--bab-primary);
}

/* =====================================================
   STEP 1 – COLOUR SELECTION (MATCH IMAGE 2)
   ===================================================== */

.bab-step h3 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
/* Container background */
.bab-colours {
    background:#fcebee;
    padding: 5px;
    border-radius: 10px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 1em;

}

/* Hover */
.bab-colour-swatch:hover {
    transform: scale(1.05);
}

/* =====================================================
   STEP 2 – SIZES & QUANTITY (MATCH IMAGE 2)
   ===================================================== */


/* Colour header row */
.bab-grid h4 {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 12px;
    text-transform: capitalize;
}

/* Quantity inputs (pill style) */
.bab-grid input[type="number"] {
    border-radius: 999px;
    border: 1px solid #d1d5db;
    background: #fff;
    font-size: 13px;
    height: 34px;
    text-align: center;
    padding: 0.4em;
    width: 100%;
}

/* Remove arrows */
.bab-grid input[type="number"]::-webkit-inner-spin-button,
.bab-grid input[type="number"]::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* Total row */
#bab-total {
    display: inline-block;
    background: #111827;
    color: #fff;
    padding: 6px 14px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 600;
    margin-top: 8px;
}
/* =====================================================
   STEP 5 – TEXT CREATOR (MATCH IMAGE 2)
   ===================================================== */

/* Panel background */
.bab-artwork-panel[data-panel="text"] {
    background: #fcebee;
    /* padding: 18px; */
    border-radius: 12px;
    border: none;
}

/* Line labels (LINE 1, LINE 2 OPTIONAL) */
.bab-artwork-panel[data-panel="text"] label {
    font-size: 12px;
    font-weight: 600;
    color: #6b7280;
    margin-bottom: 6px;
    display: block;
}

/* Text input fields */
.bab-artwork-panel[data-panel="text"] input.bab-text-line {
    width: 100%;
    border-radius: 999px;
    border: 1px solid #d1d5db;
    padding: 10px 14px;
    font-size: 13px;
    background: #fff;
    margin-bottom: 8px;
}



/* Text preview label */
.bab-artwork-panel[data-panel="text"] h4 {
    font-size: 13px;
    font-weight: 600;
    margin: 14px 0 6px;
}

/* Design width buttons spacing */
.bab-artwork-panel[data-panel="text"] .bab-width-options {
    margin-top: 10px;
}

/* Notes + filename inputs */
.bab-artwork-panel[data-panel="text"] input[type="text"],
.bab-artwork-panel[data-panel="text"] input[type="number"] {
    width: 100%;
    border-radius: 999px;
    border: 1px solid #d1d5db;
    padding: 10px 14px;
    font-size: 13px;
    background: #fff;
}

/* Placeholder style */
.bab-artwork-panel[data-panel="text"] input::placeholder {
    font-size: 12px;
    color: #9ca3af;
}

/* Error message */
.bab-error {
    margin-top: 10px;
    font-size: 12px;
    font-weight: 600;
}
/* =====================================================
   STEP 5 – TEXT CREATOR (SELECTS & DROPDOWNS)
   MATCH IMAGE 2
   ===================================================== */


/* Line labels (LINE 1, LINE 2 OPTIONAL, etc.) */
.bab-artwork-panel label {
    font-size: 12px;
    font-weight: 600;
    color: #374151;
    margin-bottom: 4px;
    display: block;
}

/* Text inputs */
.bab-text-line {
    width: 100%;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 999px;

    padding: 10px 16px;
    font-size: 13px;

    margin-bottom: 6px;
}

.bab-text-line:focus {
    outline: none;
    border-color: var(--bab-primary);
    box-shadow: 0 0 0 3px rgba(0, 166, 81, 0.15);
}

/* Make everything breathe a bit */
.bab-artwork-panel[data-panel="text"] {
    background: #fcebee;
    border-radius: 12px;
    /* padding: 16px; */
}


/* =====================================================
   STEP 5 – ARTWORK TABS (FA ICONS, CENTERED)
   MATCH IMAGE 2
   ===================================================== */
/* Base tab */
.bab-artwork-option {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    border-radius: 999px;
    background: #ffffff;
    border: 2px solid #e5e7eb;
    font-weight: 500;
    color: #111827;
    transition: all 0.2s ease;
    font-size: 13px;
    flex:1 1 0;       /* ✅ makes them distribute nicely */
    min-width:140px;  /* ✅ prevents tiny pills */
    background: #fff;
    padding: 0.6em 1em;
    background: #fff;
    cursor: pointer;
}

/* Hover */
.bab-artwork-option:hover {
    border-color: var(--bab-primary);
}

/* Active */
.bab-artwork-option.active {
    color: #111827;
    border-color: var(--wp--preset--color--primary, #ea375d);
    background: #e9f7ef;
    background: var(--bab-primary-soft);
}


/* ===============================
   FONT AWESOME ICONS
   =============================== */

.bab-artwork-option::before {
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    font-size: 15px;
    line-height: 1;
}

/* My designs */
.bab-artwork-option[data-artwork="my_designs"]::before {
    content: "\f5fc"; /* fa-pen-nib */
}

/* Upload image */
.bab-artwork-option[data-artwork="upload"]::before {
    content: "\f382"; /* fa-cloud-upload-alt */
}

/* Text creator */
.bab-artwork-option[data-artwork="text"]::before {
    content: "\f031"; /* fa-text-height */
}
.bab-step-title,
#bab-builder h3 {
    font-size: 16px;
    font-weight: 600;
    line-height: 1.3;
    margin: 0;
    margin-bottom: 1.6rem;
}
.bab-step-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
    gap: 12px;
}
.bab-size-guide {
    font-size: 13px;
    font-weight: 600;
    color: #ea375d;
    cursor: pointer;
    text-decoration: underline;
    white-space: nowrap;
}

.bab-size-guide:hover {
    opacity: 0.85;
}

#bab-step-2 {
    margin-top: 8px;
}



.editor-styles-wrapper table.wc-block-cart-items .wc-block-cart-items__row .wc-block-components-product-name, table.wc-block-cart-items .wc-block-cart-items__row .wc-block-components-product-name {
    display: block;
    font-size: var(--wp--preset--font-size--small, 14px);
    line-height: 20px;
    line-height: 1.4;
    max-width: max-content;
    font-size: 16px;
    font-weight: 600;
    color: #111;
    text-decoration: none;
}

.wc-block-components-product-name:hover {
    text-decoration: underline;
}
.editor-styles-wrapper table.wc-block-cart-items .wc-block-cart-items__row .wc-block-cart-item__prices, table.wc-block-cart-items .wc-block-cart-items__row .wc-block-cart-item__prices {
    font-size: var(--wp--preset--font-size--small, 14px);
    line-height: 20px;
    margin-top: 2px;
    font-size: 13px;
    color: #6b7280;
}
.wc-block-components-product-details.wc-block-components-product-details {
    list-style: none;
    padding: 0;
    margin: 0;
}

.wc-block-components-product-details.wc-block-components-product-details li {
    margin-left: 0;
    display: flex;
    align-items: baseline;
    gap: 6px;
    margin-bottom: 2px;
    line-height: 1.4;
}
    .wc-block-cart__main .wc-block-components-product-details__name {
        font-weight: 700;
        font-weight: 600;
        color: #111;
        white-space: nowrap;
    }
.wc-block-components-product-details__name, .wc-block-components-product-details__value {
    display: inline-block;
    color: #374151;
}
/*
.wc-block-components-product-details__colour,
.wc-block-components-product-details__size {
    display: none !important;
}*/
.wc-block-components-product-details img {
    max-width: 80px;
    border-radius: 6px;
    border: 1px solid #e5e7eb;
    margin-top: 4px;
    display: block;
}
.wc-block-components-quantity-selector {
    border: 2px solid #ea375d;
    border-radius: 999px;
    padding: 4px 8px;
    gap: 6px;
}

.wc-block-components-quantity-selector__input {
    font-weight: 600;
    border: none;
    width: 48px;
    text-align: center;
}
.wc-block-cart-item__remove-link {
    font-size: 12px;
    color: #9ca3af;
}

.wc-block-cart-item__remove-link:hover {
    color: #dc2626;
}
.wc-block-cart-items__row {
    padding: 16px 0;
    border-bottom: 1px solid #e5e7eb;
}
.bab-step-heading {
    font-size: 18px;
    font-weight: 700;
    margin: 0 0 8px;
}

/* Hide size swatches/buttons (old Step 2) */
.cgkit-attribute-swatches[data-attribute*="size"] { 
  display: none !important; 
}

/* Hide the size label row ("SIZE: No selection") if it remains */
.variations .attribute_pa_size,
.variations .attribute_size {
  display: none !important;
}

/* Hide the entire SIZE row (label + field) */
.variations tr:has(select[name^="attribute_pa_size"]),
.variations tr:has(select[name^="attribute_size"]) {
  display: none !important;
}

/* Common Woo classes */
.variations .attribute_pa_size,
.variations .attribute_size {
  display: none !important;
}

/* If theme outputs th/td with these classes */
.variations tr .label label[for="pa_size"],
.variations tr .label label[for="size"] {
  display: none !important;
}

.bab-tier.is-active-tier {
  outline: 2px solid currentColor;
  border-radius: 10px;
}
.variations select[name^="attribute_pa_size"],
.variations .label:has(label[for^="pa_size"]) {
  display: none !important;
}
/* Hide size swatches/buttons */
.cgkit-attribute-swatches[data-attribute*="size"] { 
  display: none !important; 
}

/* Hide size row (label/value) */
.variations .attribute_pa_size,
.variations .attribute_size {
  display: none !important;
}

form.cart .quantity { display:none !important; }



/* ---------------------------------------------------------
   BAB Step 2 – force Image #1 styling (pill inputs etc.)
   --------------------------------------------------------- */

.bab-step-2{
  background:#fcebee;
  padding:20px;
  border-radius:14px;
  margin-top:20px;
}

/* Panel header (color dot + name + remove X) */
.bab-step-2 .bab-size-panel{ background:transparent; }

.bab-step-2 .bab-size-panel-header{
  display:flex;
  align-items:center;
  gap:14px;
  margin-top:14px;
  margin-bottom:14px;
}

.bab-step-2 .bab-color-dot,
.bab-step-2 .bab-colour-dot{
  width:2.2rem;
  height:2.2rem;
  border-radius:50%;
  flex:0 0 2.2rem;
}

.bab-step-2 .bab-color-name{
  letter-spacing:.5px;
}

.bab-step-2 .bab-remove-color{
  margin-left:auto;
  border:0;
  background:transparent;
  font-size:26px;
  line-height:1;
  cursor:pointer;
  color:#111;
}

/* Size grid spacing like Image #1 */
.bab-step-2 .bab-size-grid{
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
    gap: 0px 15px;
}

.bab-step-2 .bab-size-cell{ 
    width:auto;
    display:flex;
  flex-direction:column;
  align-items:center;     /* centers label + input */
  text-align:center;      /* centers label text */

 }
.bab-step-2 .bab-size-cell input.bab-size-qty{ width:100% !important; }
.bab-step-2 .bab-size-label{
  display:block;
  font-weight:800;
  margin-top:1rem;
  /* margin-bottom:.8rem; */
  color:#333;
  width:100%;
  text-align:center;
}

/* Pill input (override theme input styles) */
.bab-step-2 input.bab-size-qty{
  width:100% !important;     /* ✅ let grid control width */
  max-width:7rem;           /* ✅ keep “pill” size cap */
  height:2.2rem !important;
  padding:0 14px !important;
  border-radius:999px !important;
  border:0 !important;
  background:#fff !important;
  text-align:center !important;
  box-shadow:none !important;
  outline:none !important;
   margin:0 auto;
}


/* Remove number spinners (to match clean pill look) */
.bab-step-2 input.bab-size-qty::-webkit-outer-spin-button,
.bab-step-2 input.bab-size-qty::-webkit-inner-spin-button{
  -webkit-appearance:none;
  margin:0;
}
.bab-step-2 input.bab-size-qty[type="number"]{
  -moz-appearance:textfield;
  appearance:textfield;
}

/* Footer like Image #1 (dark “Total” pill) */
.bab-step-2 .bab-sizeqty-footer{
  margin-top:16px;
  font-weight:700;
  display:flex;
  align-items:center;
  gap:14px;
}

.bab-step-2 #bab-sizeqty-total-qty{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-width:7rem;
  height:2.2rem !important;
  padding:0 18px;
  border-radius:999px;
  background:#3b3b3b;
  color:#fff;
  font-weight:700;
}

/* Optional: if you want Image #1 behavior (no price shown) */
.bab-step-2 #bab-sizeqty-total-price{
      display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 7rem;
    height: 2.2rem !important;
    padding: 0 18px;
    border-radius: 999px;
    background: #3b3b3b;
    color: #fff;
    font-weight: 700;
}
#bab-step-2 .bab-size-row {
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 10px;
  text-align: center;
}

#bab-step-2 .bab-size-row .bab-size-label {
  display: block;
  font-weight: 600;
  margin-bottom: 6px;
}

#bab-step-2 .bab-size-row .bab-size-qty {
  width: 100%;
  text-align: center;
}

/* Highlight pill when qty > 0 */
.bab-step-2 input.bab-size-qty.has-qty{
  border: 2px solid var(--bab-primary) !important;
  box-shadow: 0 0 0 3px rgba(248, 195, 206) !important;
  outline: none !important;
}

span.bab-step {
    font-size: 16px;
    font-weight: 600;
    line-height: 1.3;
    margin: 0;
    text-transform: none;
}

.product table.variations {
    background: #fcebee;
    border-radius: 14px;
    padding: 20px;
  
}

.summary .variations label {
    text-transform: none !important;
}
.summary h1 {
    font-size: 18px !important;
}


.bab-cart-block{
  margin-top:8px;
  padding:10px;
  background:#f9fafb;
  border:1px solid #e5e7eb;
  border-radius:10px;
}

.bab-cart-grid{
  display:grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap:10px 14px;
  font-size:13px;
  line-height:1.35;
}

.bab-cart-grid strong{
  font-size:12px;
  color:#111;
}

.bab-cart-text{
  margin-top:10px;
  font-size:13px;
}


/* Keep Shoptimizer layout intact */
.single-product div.product .product-details-wrapper{
  width: 100%;
}

/* Tabs behave like left column second row */
.single-product div.product .product-details-wrapper .woocommerce-tabs,
.single-product div.product .product-details-wrapper .wc-tabs-wrapper{
  float: left;
  width: 40%;
  clear: left;        /* under gallery only */
  margin-top: 20px;
  background-color: #fcebee;
  border-radius: 8px;
  padding-top: 1.2rem;
  padding-left: 2rem;
  padding-right: 2rem;
}

/* Prevent tabs from pushing the right column down */
.single-product div.product .product-details-wrapper::after{
  content: "";
  display: block;
  clear: both;
}

/* Optional: cap description height */
.single-product div.product .product-details-wrapper .woocommerce-tabs .panel{
  /* max-height: 520px; */
  overflow: auto;
  padding-right: 0em;
  padding-left: 0em;
  padding-bottom: 0em;
}

/* Mobile stack */
@media (max-width: 768px){
  .single-product div.product .product-details-wrapper .woocommerce-tabs,
  .single-product div.product .product-details-wrapper .wc-tabs-wrapper{
    float: none;
    width: 100%;
    clear: both;
  }
}
/* ===== Step 4 switch (Image 2 style) ===== */

.bab-names-toggle{
  display:flex;
  justify-content:flex-end;
  align-items:center;
  gap:12px;
  margin-bottom:12px;
}

.bab-toggle-label{
  font-size:13px;
  font-weight:600;
  color:#374151;
}

/* Switch */
.bab-switch{
  position:relative;
  display:inline-block;
  width:42px;
  height:22px;
}

.bab-switch input{
  opacity:0;
  width:0;
  height:0;
}

.bab-slider{
  position:absolute;
  cursor:pointer;
  top:0; left:0; right:0; bottom:0;
  background:#e5e7eb;
  transition: .2s ease;
  border-radius:999px;
}

.bab-slider:before{
  content:"";
  position:absolute;
  height:18px;
  width:18px;
  left:2px;
  top:2px;
  background:#fff;
  transition:.2s ease;
  border-radius:50%;
  box-shadow:0 2px 8px rgba(0,0,0,.15);
}

.bab-switch input:checked + .bab-slider{
  background: var(--bab-primary);
}

.bab-switch input:checked + .bab-slider:before{
  transform: translateX(20px);
}


/* Names & Numbers line inputs (match Text Creator pills) */
.bab-step-names input.bab-name-line{
  width:100%;
  border-radius:999px;
  border:1px solid #e5e7eb;
  padding:10px 14px;
  font-size:13px;
  background:#fff;
  margin-bottom:10px;
}

.bab-step-names input.bab-name-line:focus{
  outline:none;
  border-color: var(--bab-primary);
  box-shadow: 0 0 0 3px rgba(0,166,81,.15);
}

/* =========================
   Step 5 – Names & Numbers styling (match Text Creator)
   ========================= */

/* Make Line inputs match the rounded Text Creator inputs */
.bab-step-names .bab-name-line{
  width: 100%;
  border-radius: 999px;
  padding: 14px 16px;
  border: 1px solid rgba(0,0,0,.10);
  background: #fff;
  outline: none;
}

/* Same 3-pill row layout as Text Creator */
.bab-step-names .bab-name-controls{
  display: flex;
  gap: 12px;
  margin-top: 10px;
}

/* Pill dropdowns */
.bab-step-names .bab-pill-select{
  flex: 1;
  border-radius: 999px;
  padding: 12px 14px;
  border: 1px solid rgba(0,0,0,.10);
  background: #fff;
  appearance: none;
}

/* Mobile stacking like your Step 5 text creator */
@media (max-width: 600px){
  .bab-step-names .bab-name-controls{
    flex-direction: column;
  }
}

/* Labels spacing to feel like Text Creator */
.bab-step-names label{
  margin-top: 14px;
  display: block;
  font-weight: 700;
  font-size: 12px;
  opacity: .75;
  letter-spacing: .4px;
  text-transform: uppercase;
}
/* ============================
   Step 5 – Names & Numbers
   Match Text Creator styling
   ============================ */


/* Notes + filename (match pill inputs from Step 5 panels) */
.bab-step-names .bab-meta-fields input.bab-notes,
.bab-step-names .bab-meta-fields input.bab-file-name{
  width: 100%;
  border: 1px solid rgba(0,0,0,.12);
  border-radius: 999px;
  padding: 12px 14px;
  background: #fff;
  outline: none;
  box-shadow: none;
}

/* spacing like the text creator section */
.bab-step-names .bab-meta-fields{
  margin-top: 12px;
  display: grid;
  gap: 12px;
}
/* Names step - make Notes/File match Text Creator pills */
.bab-step-names .bab-meta-fields input.bab-notes,
.bab-step-names .bab-meta-fields input.bab-file-name{
  width:100%;
  border:1px solid rgba(0,0,0,.12);
  border-radius:999px;
  padding:12px 14px;
  background:#fff;
}

/* spacing like the text creator section */
.bab-step-names .bab-meta-fields{
  margin-top:12px;
  display:grid;
  gap:12px;
}

/* preview box like text creator */
#bab-name-preview{
  border:1px solid rgba(0,0,0,.10);
  border-radius:14px;
  background:#fff;
  min-height:90px;
  padding:14px;
}
/* =====================================================
   Step 5 – Names & Numbers (FINAL, matches Text Creator)
   Put this at the VERY BOTTOM of your CSS
   ===================================================== */

/* Match the Text Creator preview box exactly */
.bab-step-names #bab-name-preview{
  background: #ffffff;
  border-radius: 12px;
  border: none;
  padding: 20px;
  min-height: 90px;
  box-shadow: inset 0 0 0 1px #e5e7eb;
}

/* Match Text Creator "Notes + filename" pill inputs exactly */
.bab-step-names input.bab-notes,
.bab-step-names input.bab-file-name{
  width: 100%;
  border-radius: 999px;
  border: 1px solid #d1d5db;
  padding: 10px 14px;
  font-size: 13px;
  background: #fff;
}

.bab-step-names input.bab-notes:focus,
.bab-step-names input.bab-file-name:focus{
  outline: none;
  border-color: var(--bab-primary);
  box-shadow: 0 0 0 3px rgba(0, 166, 81, 0.15);
}

/* spacing like the Text Creator section */
.bab-step-names .bab-meta-fields{
  margin-top: 12px;
  display: grid;
  gap: 12px;
}

/* Make labels match Text Creator labels (small + muted) */
.bab-step-names .bab-meta-fields label,
.bab-step-names label{
  font-size: 12px;
  font-weight: 600;
  color: #6b7280;
  margin-bottom: 6px;
  display: block;
  text-transform: none;   /* IMPORTANT: stops the uppercase look */
  letter-spacing: 0;
}
.bab-text-prev{
    font-size: 13px;
    font-weight: 600;
    margin: 14px 0 6px;
}
.ajax_add_to_cart.add_to_cart_button, .product form.cart .button {
    position: relative;
    border-radius: 999px;
}

/* Step 3 – force 2-up on desktop, 1-up on mobile */
.bab-step-3 .bab-customisation-options{
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

/* Make sure buttons don’t claim full width */
.bab-step-3 .bab-customisation-options .bab-customisation-option{
  width: 100% !important;
  margin: 0 !important;          /* kills margin-right from earlier rule */
  justify-content: center;
}

/* Mobile: stack */
@media (max-width: 520px){
  .bab-step-3 .bab-customisation-options{
    grid-template-columns: 1fr;
  }
}
#bab-my-designs .bab-design-tile .name {
  display: none !important;
}
/* ===============================
   GRID
=============================== */
#bab-my-designs.bab-design-grid{
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 16px;
  align-items: start;
  margin-top: 10px;
}

/* ===============================
   TILE CARD
=============================== */
#bab-my-designs .bab-design-tile{
  position: relative;
  background: #fff;
  border: 1px solid #e9e9e9;
  border-radius: 14px;
  overflow: hidden;
  cursor: pointer;
  transition: 
    transform .18s ease,
    box-shadow .18s ease,
    border-color .18s ease;
}

/* Hover = subtle lift like product cards */
#bab-my-designs .bab-design-tile:hover{
  transform: translateY(-3px);
  border-color: #dcdcdc;
  box-shadow: 0 10px 24px rgba(0,0,0,.08);
}

/* ===============================
   THUMBNAIL
=============================== */
#bab-my-designs .bab-design-tile img{
  display: block;
  width: 100%;
  height: 140px;
  object-fit: contain;
  padding: 16px;
  background: linear-gradient(#fafafa, #f6f6f6);
}

#bab-my-designs .bab-design-tile .bab-design-file-preview{
  display: flex;
  width: 100%;
  height: 140px;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: linear-gradient(#fafafa, #f6f6f6);
  color: #ea375d;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0;
}

/* ===============================
   FILENAME
=============================== */
#bab-my-designs .bab-design-tile .name{
  font-size: 13px;
  font-weight: 500;
  padding: 10px 14px;
  border-top: 1px solid #f0f0f0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: #2a2a2a;
  background: #fff;
}

/* ===============================
   ACTIVE / SELECTED STATE
=============================== */
#bab-my-designs .bab-design-tile.active{
  border-color: #111;
  box-shadow: 0 0 0 2px rgba(0,0,0,.08);
}

/* ===============================
   DELETE BUTTON (modern)
=============================== */
.bab-design-delete{
  position: absolute;
  top: 8px;
  right: 8px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1px solid rgba(0,0,0,.08);
  background: #ea375d;
  backdrop-filter: blur(6px);
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: 
    background .15s ease,
    color .15s ease,
    transform .15s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Show delete softly on hover only */
.bab-design-delete{
  opacity: 0;
}

.bab-design-tile:hover .bab-design-delete{
  opacity: 1;
}

.bab-design-delete:hover{
  background: #ea375d;
  color: #fff;
  transform: scale(1.05);
}

.bab-design-delete:disabled{
  opacity: .4;
  cursor: not-allowed;
}

/* ===============================
   UNDO TOAST (modern minimal)
=============================== */
#bab-undo-toast{
  padding: 14px 16px;
  border-radius: 14px;
  background: #ea375d;
  color: #fff;
  font-size: 14px;
  display: flex;
  gap: 12px;
  align-items: center;
  box-shadow: 0 12px 30px rgba(0,0,0,.25);
  animation: babSlideUp .25s ease;
}

#bab-undo-toast .bab-undo-btn{
  border: 0;
  background: #fff;
  color: #ea375d;
  padding: 6px 12px;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: background .15s ease;
}

#bab-undo-toast .bab-undo-btn:hover{
  background: #f1f1f1;
}

#bab-undo-toast .bab-dismiss-btn{
  border: 0;
  background: transparent;
  color: rgba(255,255,255,.7);
  font-size: 16px;
  cursor: pointer;
  transition: color .15s ease;
}

#bab-undo-toast .bab-dismiss-btn:hover{
  color: #fff;
}

@keyframes babSlideUp{
  from{
    transform: translateY(10px);
    opacity: 0;
  }
  to{
    transform: translateY(0);
    opacity: 1;
  }
}


.bab-price-breakdown{
  margin-top:10px;
  font-size:14px;
  display:grid;
  gap:4px;
}

.bab-tier-vat-note{
  font-size:12px;
  opacity:.75;
  margin-top:4px;
}

/* BAB bundle product mode */
.bab-cart-bundle-note{margin-top:4px;opacity:.72;}
