/*
 * Bespoke Configurator — configurator.css
 *
 * Brand: Badger & Brown
 * Font:  Josefin Sans (Google Fonts) + custom web fonts from badgerandbrown.co.uk
 * Colours sourced from Elementor global tokens on badgerandbrown.co.uk
 */

/* ==========================================================================
   Custom web fonts (hosted on badgerandbrown.co.uk)
   Google Fonts (Josefin Sans, Pinyon Script, Playball) are enqueued via PHP.
   ========================================================================== */

@font-face {
    font-family: 'Poor Richard';
    src: url('https://www.badgerandbrown.co.uk/fonts/poor-richard.woff2') format('woff2');
    font-weight: normal;
    font-style: normal;
    font-display: block;
}

@font-face {
    font-family: 'Really Awesome';
    src: url('https://www.badgerandbrown.co.uk/fonts/really-awesome.woff2') format('woff2');
    font-weight: normal;
    font-style: normal;
    font-display: block;
}

@font-face {
    font-family: 'Champagne Limousines';
    src: url('https://www.badgerandbrown.co.uk/fonts/champagne-limousines.woff2') format('woff2');
    font-weight: normal;
    font-style: normal;
    font-display: block;
}

@font-face {
    font-family: 'Rounded Elegance';
    src: url('https://www.badgerandbrown.co.uk/fonts/rounded-elegance.woff2') format('woff2');
    font-weight: normal;
    font-style: normal;
    font-display: block;
}

@font-face {
    font-family: 'Yellow Butterflies';
    src: url('https://www.badgerandbrown.co.uk/fonts/yellow-butterflies.woff2') format('woff2');
    font-weight: normal;
    font-style: normal;
    font-display: block;
}

@font-face {
    font-family: 'Harrington';
    src: url('https://www.badgerandbrown.co.uk/fonts/harrington.woff2') format('woff2');
    font-weight: normal;
    font-style: normal;
    font-display: block;
}

@font-face {
    font-family: 'Silent Reaction';
    src: url('https://www.badgerandbrown.co.uk/fonts/silent-reaction.woff2') format('woff2');
    font-weight: normal;
    font-style: normal;
    font-display: block;
}

/* ==========================================================================
   CSS Custom Properties
   ========================================================================== */
.bc-configurator {
    --bc-primary:       #505152;
    --bc-primary-hover: #3a3b3c;
    --bc-accent:        #5E3E1C;
    --bc-accent-hover:  #4a3116;
    --bc-dark:          #0E1311;
    --bc-border:        #d8d8d8;
    --bc-border-focus:  #505152;
    --bc-bg:            #F9F9F9;
    --bc-card-header:   #ededed;   /* gray header band on cards */
    --bc-white:         #ffffff;
    --bc-text:          #1a1a1a;
    --bc-text-light:    #777777;
    --bc-error:         #c0392b;
    --bc-success:       #00B579;
    --bc-radius:        6px;
    --bc-radius-card:   8px;
    --bc-shadow:        0 2px 10px rgba( 0, 0, 0, 0.07 );
    --bc-font:          'Josefin Sans', sans-serif;
}

/* ==========================================================================
   Base wrapper
   ========================================================================== */

.bc-configurator {
    font-family: var( --bc-font );
    font-size: 15px;
    letter-spacing: 0.01em;
    color: var( --bc-text );
    max-width: 1140px;   /* matches Elementor boxed max-width */
    margin: 0 auto;
    padding: 0 16px 48px;
    box-sizing: border-box;
}

.bc-configurator *,
.bc-configurator *::before,
.bc-configurator *::after {
    box-sizing: inherit;
}

/* ==========================================================================
   Page header
   ========================================================================== */

.bc-page-header {
    margin: 0 0 36px;
    padding: 24px 0;
    border-bottom: 1px solid var( --bc-border );
}

.bc-page-header .bc-page-subtitle {
    font-size: 0.95rem;
    font-weight: 300;
    line-height: 1.8;
    color: var( --bc-text-light );
    margin: 0;
    letter-spacing: 0.02em;
}

/* ==========================================================================
   Section header
   ========================================================================== */

.bc-section-header {
    margin: 0 0 28px;
}

.bc-section-header h2 {
    font-size: 1.5rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var( --bc-dark );
    margin: 0 0 4px;
    line-height: 1.25;
}

/* ==========================================================================
   Field-group cards — two-tone card matching the screenshot
   ========================================================================== */

.bc-field-group {
    border: 1px solid var( --bc-border );
    border-radius: var( --bc-radius-card );
    overflow: hidden;
    margin-bottom: 16px;
    background: var( --bc-white );
    box-shadow: var( --bc-shadow );
}

/* Gray header band */
.bc-field-group > .bc-field-label,
.bc-field-group > .bc-field-group__header {
    display: block;
    width: 100%;
    background: var( --bc-card-header );
    padding: 14px 20px;
    font-size: 0.92rem;
    font-weight: 400;
    font-family: var( --bc-font );
    letter-spacing: 0.04em;
    text-transform: none;
    color: var( --bc-text );
    text-align: center;
    border-bottom: 1px solid var( --bc-border );
    margin-bottom: 0;
}

/* White body area */
.bc-field-group > .bc-input,
.bc-field-group > .bc-textarea,
.bc-field-group > .bc-select-wrap,
.bc-field-group > .bc-upload-area,
.bc-field-group > .bc-tab-intro,
.bc-field-group > p {
    display: block;
    padding: 18px 20px;
    margin: 0;
}

.bc-field-group > .bc-input,
.bc-field-group > .bc-textarea {
    border: none;
    border-radius: 0;
    font-size: 1rem;
    padding: 16px 20px;
    min-height: 56px;
}

.bc-field-group > .bc-input:focus,
.bc-field-group > .bc-textarea:focus {
    outline: 2px solid var( --bc-border-focus );
    outline-offset: -2px;
}

.bc-field-group > .bc-select-wrap {
    padding: 14px 20px;
}

/* Arrow sits inside the select — account for the 20px wrapper padding */
.bc-field-group > .bc-select-wrap::after {
    right: 32px;
}

.bc-field-group > .bc-select-wrap .bc-select {
    border: 1px solid var( --bc-border );
    border-radius: var( --bc-radius );
    padding: 12px 36px 12px 14px;
    font-size: 0.95rem;
    min-height: 48px;
}

.bc-field-group > .bc-swatches {
    display: flex;
    padding: 16px 20px;
    gap: 10px;
    flex-wrap: wrap;
}

/* Wrapping swatch rows inside a card: restore padding */
.bc-field-group > .bc-swatches--inline {
    padding: 16px 20px;
    margin: 0;
    flex-wrap: wrap;
    overflow-x: visible;
}

.bc-field-group > .bc-upload-area {
    padding: 16px 20px;
}

.bc-field-group > .bc-tab-intro,
.bc-field-group > p {
    font-size: 0.9rem;
    line-height: 1.75;
    color: var( --bc-text );
    text-align: center;
    padding: 18px 24px;
}

/* Two-column input layout inside a card (e.g. Initials 1 / Initials 2) */
.bc-field-group--cols {
    display: grid;
    grid-template-columns: 1fr;
    overflow: hidden;
}

.bc-field-group--cols > .bc-field-label {
    grid-column: 1 / -1;
}

.bc-field-group--cols > .bc-cols {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    border-top: 1px solid var( --bc-border );
}

.bc-field-group--cols > .bc-cols > .bc-col-item {
    padding: 4px 20px 18px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.bc-field-group--cols > .bc-cols > .bc-col-item:first-child {
    border-right: 1px solid var( --bc-border );
}

.bc-field-group--cols > .bc-cols > .bc-col-item > label {
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var( --bc-text-light );
    margin-top: 12px;
}

.bc-field-group--cols > .bc-cols > .bc-col-item > .bc-input {
    border: none;
    border-bottom: 1px solid var( --bc-border );
    border-radius: 0;
    padding: 10px 0;
    font-size: 1rem;
    min-height: 48px;
    background: transparent;
}

.bc-field-group--cols > .bc-cols > .bc-col-item > .bc-input:focus {
    outline: none;
    border-bottom-color: var( --bc-border-focus );
}

/* Char counter placement inside cards */
.bc-field-group > .bc-char-counter {
    padding: 0 20px 10px;
    text-align: right;
    font-size: 0.72rem;
    color: var( --bc-text-light );
}

/* Hide the old required asterisk from card-style labels */
.bc-field-group > .bc-field-label .bc-required {
    margin-left: 4px;
}

/* ==========================================================================
   Type selection cards (Step 1)
   ========================================================================== */

.bc-type-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin-bottom: 40px;
}

@media ( max-width: 600px ) {
    .bc-type-cards {
        grid-template-columns: 1fr;
    }
}

.bc-type-card {
    border: 2px solid var( --bc-border );
    border-radius: var( --bc-radius );
    padding: 28px 24px 24px;
    cursor: pointer;
    transition: border-color 0.2s, box-shadow 0.2s;
    background: var( --bc-white );
}

.bc-type-card:hover {
    border-color: var( --bc-primary );
    box-shadow: var( --bc-shadow );
}

.bc-type-card__image {
    width: 100%;
    aspect-ratio: 4 / 3;
    border-radius: var( --bc-radius );
    margin-bottom: 16px;
}

.bc-type-card h3 {
    font-size: 1.05rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var( --bc-dark );
    margin: 0 0 8px;
}

.bc-type-card p {
    font-size: 0.9rem;
    color: var( --bc-text-light );
    margin: 0;
    line-height: 1.6;
}

/* ==========================================================================
   Placeholder boxes (image areas before real images are added)
   ========================================================================== */

.bc-placeholder {
    background: #e8e8e8;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var( --bc-text-light );
    font-size: 0.8rem;
    text-align: center;
    padding: 8px;
}

.bc-placeholder--dark {
    background: var( --bc-dark );
    color: #ffffff;
}

/* ==========================================================================
   Examples grid
   ========================================================================== */

.bc-examples-label {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 12px;
    color: var( --bc-text-light );
}

.bc-examples-grid {
    display: grid;
    grid-template-columns: repeat( 3, 1fr );
    gap: 8px;
    margin-bottom: 32px;
}

.bc-example-thumb {
    aspect-ratio: 1;
    border-radius: var( --bc-radius );
}

/* ==========================================================================
   Configure layout (product image + tabs)
   ========================================================================== */

.bc-configure-layout {
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 40px;
    align-items: start;
    margin-bottom: 32px;
}

.bc-configure-left {
    position: sticky;
    top: 130px; /* clears the fixed site header + a little breathing room */
}

@media ( max-width: 860px ) {
    .bc-configure-layout {
        grid-template-columns: 1fr;
    }

    .bc-configure-left {
        position: static;
    }
}

/* Product image preview */
.bc-product-image--preview {
    width: 100%;
    aspect-ratio: 1;
    border-radius: var( --bc-radius );
    border: 1px solid var( --bc-border );
    font-size: 0.85rem;
}

.bc-image-note {
    font-size: 0.78rem;
    color: var( --bc-text-light );
    margin-top: 8px;
    text-align: center;
}

.bc-scroll-note {
    margin-top: 12px;
    padding: 10px 14px;
    background: var( --bc-bg );
    border-radius: var( --bc-radius );
    font-size: 0.82rem;
    color: var( --bc-text-light );
}

.bc-scroll-note p {
    margin: 0;
}

/* Font swatch decorative block at top-right */
.bc-font-swatch {
    border: 1px solid var( --bc-border );
    border-radius: var( --bc-radius );
    padding: 14px 16px;
    margin-bottom: 20px;
    background: var( --bc-white );
}

.bc-font-swatch__label {
    display: block;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var( --bc-text-light );
    margin-bottom: 8px;
}

.bc-font-swatch__preview {
    font-size: 1.1rem;
    font-style: italic;
    color: var( --bc-text-light );
    min-height: 32px;
}

.bc-font-swatch__note {
    font-size: 0.78rem;
    color: var( --bc-text-light );
    margin-top: 6px;
}

/* ==========================================================================
   Tabs
   ========================================================================== */

.bc-tabs {
    border: 1px solid var( --bc-border );
    border-radius: var( --bc-radius );
    background: var( --bc-white );
    overflow: hidden;
}

.bc-tab-nav {
    display: flex;
    border-bottom: 1px solid var( --bc-border );
    background: var( --bc-bg );
}

.bc-tab-btn {
    flex: 1;
    padding: 12px 10px;
    font-size: 0.75rem;
    font-weight: 700;
    font-family: var( --bc-font );
    text-transform: uppercase;
    letter-spacing: 0.07em;
    color: var( --bc-text-light );
    background: transparent;
    border: none;
    border-right: 1px solid var( --bc-border );
    cursor: pointer;
    transition: background 0.15s, color 0.15s;
    text-align: center;
}

.bc-tab-btn:last-child {
    border-right: none;
}

.bc-tab-btn:hover {
    background: var( --bc-white );
    color: var( --bc-primary );
}

.bc-tab-btn--active {
    background: var( --bc-white );
    color: var( --bc-accent );
    box-shadow: inset 0 -2px 0 var( --bc-accent );
}

.bc-tab-panel {
    display: none;
    padding: 24px;
}

.bc-tab-panel--active {
    display: block;
}

.bc-tab-panel-nav {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-top: 20px;
    margin-top: 8px;
    border-top: 1px solid var( --bc-border );
}

.bc-tab-intro {
    font-size: 0.88rem;
    color: var( --bc-text-light );
    margin: 0 0 16px;
    line-height: 1.6;
}

/* ==========================================================================
   Form fields (standalone — outside tab panels)
   ========================================================================== */

.bc-field-group--standalone {
    margin-bottom: 18px;
}

.bc-field-label {
    display: block;
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var( --bc-dark );
    margin-bottom: 6px;
}

.bc-field-label--inline {
    display: inline-block;
    width: 120px;
    vertical-align: middle;
    margin-bottom: 0;
}

.bc-required {
    color: var( --bc-error );
    font-size: 0.9em;
}

.bc-input,
.bc-textarea,
.bc-select {
    width: 100%;
    padding: 11px 14px;
    font-size: 0.95rem;
    font-family: inherit;
    color: var( --bc-text );
    background: var( --bc-white );
    border: 1px solid var( --bc-border );
    border-radius: var( --bc-radius );
    outline: none;
    transition: border-color 0.15s;
    appearance: none;
}

.bc-input:focus,
.bc-textarea:focus,
.bc-select:focus {
    border-color: var( --bc-border-focus );
}

.bc-input.bc-field--error,
.bc-textarea.bc-field--error,
.bc-select.bc-field--error {
    border-color: var( --bc-error );
    background: #fff5f5;
}

.bc-textarea {
    resize: vertical;
    min-height: 96px;
}

.bc-select-wrap {
    position: relative;
}

.bc-select-wrap::after {
    content: '';
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY( -50% );
    width: 0;
    height: 0;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 6px solid var( --bc-text-light );
    pointer-events: none;
}

.bc-size-note {
    font-size: 0.8rem;
    color: var( --bc-text-light );
    margin-top: 6px;
}

/* ==========================================================================
   Swatches (shape / material)
   ========================================================================== */

.bc-swatches {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 4px;
}

/* Wrapping swatches — used for shape + material */
.bc-swatches--inline {
    flex-wrap: wrap;
    overflow-x: visible;
    overflow-y: visible;
    padding: 16px 20px;
    gap: 8px;
}

.bc-swatches--inline .bc-swatch {
    min-width: 64px;
    padding: 8px 10px;
    font-size: 0.68rem;
}

.bc-swatches--inline .bc-swatch__shape {
    width: 28px;
    height: 28px;
}

.bc-swatches--inline .bc-swatch__shape--rectangle { width: 38px; height: 22px; }
.bc-swatches--inline .bc-swatch__shape--oval       { width: 34px; height: 22px; }
.bc-swatches--inline .bc-swatch__shape--bar        { width: 44px; height: 10px; }

.bc-swatches--inline .bc-swatch__colour {
    width: 34px;
    height: 34px;
}

.bc-swatch {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 10px 14px;
    border: 2px solid var( --bc-border );
    border-radius: var( --bc-radius );
    background: var( --bc-white );
    cursor: pointer;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var( --bc-text-light );
    transition: border-color 0.15s, color 0.15s;
    min-width: 72px;
    text-align: center;
}

.bc-swatch:hover {
    border-color: var( --bc-accent );
    color: var( --bc-accent );
}

.bc-swatch--active {
    border-color: var( --bc-accent );
    color: var( --bc-accent );
    background: #fdf8f4;
}

/* Shape geometry swatches — gray to stay neutral */
.bc-swatch__shape {
    width: 36px;
    height: 36px;
    background: #d0d0d0;
}

.bc-swatch__shape--square    { border-radius: 2px; }
.bc-swatch__shape--circle    { border-radius: 50%; }
.bc-swatch__shape--rectangle { width: 50px; height: 28px; border-radius: 2px; }
.bc-swatch__shape--oval      { width: 44px; height: 28px; border-radius: 50%; }
.bc-swatch__shape--bar       { width: 54px; height: 14px; border-radius: 2px; }
.bc-swatch__shape--hexagon   {
    clip-path: polygon( 25% 0%, 75% 0%, 100% 50%, 75% 100%, 25% 100%, 0% 50% );
    border-radius: 0;
}
.bc-swatch__shape--shield    {
    clip-path: polygon( 15% 0%, 85% 0%, 100% 60%, 50% 100%, 0% 60% );
    border-radius: 0;
}
.bc-swatch__shape--round     { border-radius: 50%; }
.bc-swatch__shape--custom    {
    background: none;
    border: 2px dashed var( --bc-border );
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: var( --bc-text-light );
}

/* Material colour swatches — rounded squares matching the screenshot */
.bc-swatch__colour {
    width: 44px;
    height: 44px;
    border-radius: 6px;
    border: 1px solid rgba( 0,0,0,0.12 );
}

.bc-swatch__colour--silver                      { background: linear-gradient( 135deg, #e0e0e0, #a8a8a8 ); }
.bc-swatch__colour--silver-plated               { background: linear-gradient( 135deg, #e8e8e8, #b0b0b0 ); }
.bc-swatch__colour--silver-plated-rhodium       { background: linear-gradient( 135deg, #e8e8e8, #b0b0b0 ); }
.bc-swatch__colour--gold-plated                 { background: linear-gradient( 135deg, #f5d87a, #c8a43c ); }
.bc-swatch__colour--gold-plated-rhodium         { background: linear-gradient( 135deg, #f5d87a, #c8a43c ); }
.bc-swatch__colour--gold-plated-sterling-silver { background: linear-gradient( 135deg, #f5d87a, #c8a43c ); }
.bc-swatch__colour--sterling-silver-plated      { background: linear-gradient( 135deg, #ececec, #b8b8b8 ); }
.bc-swatch__colour--sterling-silver-plated-rhodium { background: linear-gradient( 135deg, #ebebeb, #b4b4b4 ); }
.bc-swatch__colour--sterling-silver             { background: linear-gradient( 135deg, #f0f0f0, #c0c0c0 ); }
.bc-swatch__colour--rose-gold-plated-rhodium    { background: linear-gradient( 135deg, #f2c4b0, #c47c5e ); }
.bc-swatch__colour--lapis                       { background: linear-gradient( 135deg, #3a6acc, #0e2266 ); }
.bc-swatch__colour--mother-of-pearl             { background: linear-gradient( 135deg, #faf5ff, #d8d0f8 ); }
.bc-swatch__colour--onyx                        { background: linear-gradient( 135deg, #4a4a4a, #0e0e0e ); }
.bc-swatch__colour--wood                        { background: linear-gradient( 135deg, #b8784a, #6b3e1c ); }

/* Personalisation type tiles (Engraved / Photo / Something Else) */
.bc-swatches--personalisation {
    display: grid;
    grid-template-columns: repeat( 3, 1fr );
    gap: 16px;
    padding: 16px 20px;
}

.bc-field-group > .bc-swatches--personalisation {
    display: grid;
}

.bc-swatch--tile {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 24px 16px;
    text-align: center;
    min-width: 0;
    font-size: 0.85rem;
    text-transform: none;
    letter-spacing: 0;
}

.bc-swatch--tile strong {
    display: block;
    font-size: 0.95rem;
    font-weight: 700;
    color: var( --bc-text );
}

.bc-swatch--tile.bc-swatch--active strong {
    color: var( --bc-accent );
}

.bc-swatch__tile-icon {
    font-size: 2rem;
    line-height: 1;
    color: var( --bc-text-light );
    transition: color 0.15s;
}

.bc-swatch--tile.bc-swatch--active .bc-swatch__tile-icon {
    color: var( --bc-accent );
}

.bc-swatch__tile-desc {
    font-size: 0.78rem;
    color: var( --bc-text-light );
    font-weight: 400;
    margin-top: 2px;
}

/* ==========================================================================
   Upload area
   ========================================================================== */

.bc-upload-area {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
}

.bc-upload-status {
    font-size: 0.82rem;
    color: var( --bc-text-light );
}

.bc-upload-area--uploaded .bc-upload-status {
    color: var( --bc-success );
}

.bc-upload-remove-btn {
    margin-top: 6px;
    font-size: 0.78rem;
    padding: 4px 10px;
    border-color: var( --bc-error );
    color: var( --bc-error );
    background: transparent;
}

.bc-upload-remove-btn:hover {
    background: #fef9f9;
}

.bc-upload-preview {
    display: block;
    max-width: 120px;
    max-height: 120px;
    border-radius: var( --bc-radius );
    border: 1px solid var( --bc-border );
    object-fit: contain;
    margin-bottom: 6px;
}

.bc-upload-preview__name {
    display: block;
    font-size: 0.8rem;
    color: var( --bc-success );
    word-break: break-all;
}

/* ==========================================================================
   Layered cufflink preview
   ========================================================================== */

.bc-preview-stack {
    position: relative;
    width: 100%;
    aspect-ratio: 1;
    min-height: 200px; /* fallback if aspect-ratio isn't honoured */
    background: #f5f5f5;
    border: 1px solid var( --bc-border );
    border-radius: var( --bc-radius );
    overflow: hidden;
}

/* Post (stem) — hidden; replaced by clasp overlay */
.bc-preview-stack::before,
.bc-preview-stack::after {
    content: none;
}


/* Clasp overlay — hidden by default, fills stack when on clasp tab */
.bc-preview-clasp-overlay {
    position: absolute;
    inset: 0;
    display: none;
    z-index: 6;
    /* Subtle domed back-plate look */
    background: radial-gradient( ellipse at 50% 44%, #f2f2f2 10%, #d6d6d6 65%, #c4c4c4 100% );
}

.bc-preview-stack--clasp .bc-preview-clasp-overlay {
    display: block;
}

.bc-preview-stack--clasp .bc-preview-face,
.bc-preview-stack--clasp .bc-preview-logo-layer,
.bc-preview-stack--clasp .bc-preview-text-layer {
    opacity: 0;
    pointer-events: none;
}

/* Horizontal T-bar — positioned at ~44% down so the post fits below */
.bc-preview-clasp-bar {
    position: absolute;
    left: 14%;
    right: 14%;
    top: 44%;
    transform: translateY( -50% );
    height: 14%;
    background: linear-gradient( to bottom, #e8e8e8 0%, #a4a4a4 50%, #d2d2d2 100% );
    border-radius: 100px;
    box-shadow:
        0 5px 16px rgba( 0, 0, 0, 0.30 ),
        inset 0 2px 5px rgba( 255, 255, 255, 0.75 ),
        inset 0 -2px 4px rgba( 0, 0, 0, 0.20 );
    overflow: hidden;
}

/* Engraved text centred along the bar */
.bc-preview-clasp-text {
    position: absolute;
    left: 10%;
    right: 10%;
    top: 50%;
    transform: translateY( -50% );
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 0.6rem;
    font-weight: 500;
    color: rgba( 60, 40, 10, 0.7 );
    letter-spacing: 0.12em;
    text-transform: uppercase;
    text-shadow: 0 1px 1px rgba( 255, 255, 255, 0.5 );
}

/* Connecting pivot post — the stem that joins the bar to the front face */
.bc-preview-clasp-pivot {
    position: absolute;
    left: 50%;
    /* bar bottom = 44% + 7% = 51% → start 1% below */
    top: 52%;
    transform: translateX( -50% );
    width: 8%;
    height: 10%;
    background: linear-gradient( to bottom, #d2d2d2 0%, #989898 60%, #787878 100% );
    border-radius: 2px 2px 5px 5px;
    box-shadow:
        0 3px 8px rgba( 0, 0, 0, 0.25 ),
        inset 0 1px 2px rgba( 255, 255, 255, 0.5 );
}

/* Small screw/rivet detail on the pivot face */
.bc-preview-clasp-pivot::after {
    content: '';
    position: absolute;
    top: 18%;
    left: 50%;
    transform: translateX( -50% );
    width: 40%;
    aspect-ratio: 1;
    border-radius: 50%;
    background: radial-gradient( circle at 38% 32%, #e0e0e0, #909090 );
    box-shadow: inset 0 1px 2px rgba( 0, 0, 0, 0.3 );
}

/* Cufflink face — material layer */
.bc-preview-face {
    position: absolute;
    /* 5% inset gives a visible ring for drop-shadow on ALL shapes,
       including ones whose clip-path touches the container edge (hexagon, bar, oval) */
    inset: 5%;
    border-radius: 50%;
    background: linear-gradient( to bottom, #f0f0f0, #b0b0b0, #e0e0e0 );
    filter:
        drop-shadow( 0 6px 16px rgba( 0, 0, 0, 0.32 ) )
        drop-shadow( 0 2px 4px rgba( 0, 0, 0, 0.18 ) );
    z-index: 2;
    transition: background 0.3s, clip-path 0.25s, border-radius 0.25s, filter 0.3s,
                transform 0.4s cubic-bezier( 0.34, 1.56, 0.64, 1 );
}

/* Inset highlight/shadow overlay — follows the face's shape via parent clip-path */
.bc-preview-face::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    /* clip-path is intentionally NOT inherited here:
       the parent's clip-path already clips this child,
       and without its own clip-path the border-radius transition fires correctly */
    background: linear-gradient(
        to bottom,
        rgba( 255, 255, 255, 0.55 ) 0%,
        rgba( 255, 255, 255, 0 ) 45%,
        rgba( 0, 0, 0, 0 ) 55%,
        rgba( 0, 0, 0, 0.12 ) 100%
    );
    pointer-events: none;
    z-index: 3;
    transition: border-radius 0.25s;
}

/* Logo layer */
.bc-preview-logo-layer {
    position: absolute;
    inset: 5%;
    border-radius: 50%;
    display: none;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    z-index: 4;
    transition: clip-path 0.25s, border-radius 0.25s,
                transform 0.4s cubic-bezier( 0.34, 1.56, 0.64, 1 );
    /* Multiply blends the artwork against the metal face:
       white pixels vanish (white × metal = metal), dark pixels
       darken the surface to simulate a recessed engraving. */
    mix-blend-mode: multiply;
}

.bc-preview-logo-layer.bc-preview-active {
    display: flex;
}

.bc-preview-logo-img {
    /* Default: fill the shape (no text present) */
    width: 82%;
    height: 82%;
    object-fit: contain;
    /* Desaturate + boost contrast so the artwork reads as
       a crisp metal engraving regardless of original colours. */
    filter: grayscale( 1 ) contrast( 1.6 ) brightness( 0.78 );
    transition: width 0.25s, height 0.25s;
}

/* Shrink when text is also showing to share the face */
.bc-preview-stack--has-text .bc-preview-logo-img {
    width: 44%;
    height: 44%;
}

/* Text layer */
.bc-preview-text-layer {
    position: absolute;
    inset: 5%;
    border-radius: 50%;
    display: none;
    align-items: center;
    justify-content: center;
    text-align: center;
    z-index: 5;
    padding: 15%;
    box-sizing: border-box;
    transition: clip-path 0.25s, border-radius 0.25s,
                transform 0.4s cubic-bezier( 0.34, 1.56, 0.64, 1 );
}

.bc-preview-text-layer.bc-preview-active {
    display: flex;
}

/* Spring-pop keyframe — compresses then overshoots back to natural size.
   Applied on every shape change to mask the CSS clip-path snap. */
@keyframes bc-shape-pop {
    0%   { transform: scale( 0.86 ); }
    55%  { transform: scale( 1.05 ); }
    100% { transform: scale( 1 ); }
}

.bc-preview-face.is-morphing,
.bc-preview-logo-layer.is-morphing,
.bc-preview-text-layer.is-morphing {
    animation: bc-shape-pop 0.42s cubic-bezier( 0.34, 1.56, 0.64, 1 ) both;
}

.bc-preview-text-content {
    font-size: 1.4rem; /* JS overrides dynamically based on text length */
    color: rgba( 0, 0, 0, 0.55 );
    line-height: 1.4;
    word-break: break-word;
    white-space: pre-line;
    text-shadow: 0 1px 1px rgba( 255, 255, 255, 0.6 );
    letter-spacing: 0.04em;
    max-width: 100%;
    transition: font-size 0.2s;
}

/* When logo + text are both active: logo anchors top, text anchors bottom, tighter gap */
.bc-preview-stack--has-logo.bc-preview-stack--has-text .bc-preview-logo-layer {
    align-items: flex-start;
    padding-top: 8%;
    justify-content: center;
}

.bc-preview-stack--has-logo.bc-preview-stack--has-text .bc-preview-text-layer {
    align-items: flex-end;
    justify-content: center;
    padding-bottom: 8%;
}

.bc-preview-hint {
    font-size: 0.78rem;
    color: var( --bc-text-light );
    text-align: center;
    margin-top: 8px;
    font-style: italic;
}

.bc-preview-disclaimer {
    font-size: 0.65rem;
    color: var( --bc-text-light );
    text-align: center;
    line-height: 1.4;
    padding: 0 8px;
    font-style: italic;
    margin-top: 4px;
    opacity: 0.85;
}

.bc-configure-something-else {
    grid-column: 1 / -1;
    max-width: 600px;
    margin: 0 auto;
    width: 100%;
}

.bc-btn--reset-design {
    display: block;
    width: 100%;
    margin-top: 12px;
    font-size: 0.78rem;
    padding: 8px 16px;
    opacity: 0.7;
}

.bc-btn--reset-design:hover {
    opacity: 1;
}

/* ==========================================================================
   Engraving style description
   ========================================================================== */

.bc-engraving-help {
    padding: 8px 12px 10px;
    font-size: 0.68rem;
    color: var( --bc-text-light );
    line-height: 1.5;
    border-top: 1px solid var( --bc-border );
}

.bc-engraving-help p {
    margin: 0 0 6px;
}

.bc-engraving-help p:last-child {
    margin-bottom: 0;
}

/* ==========================================================================
   Final combined cufflink preview (quote step)
   ========================================================================== */

.bc-final-combined-preview {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 32px 0 24px;
    gap: 0;
}

.bc-final-face {
    width: 55%;
    max-width: 260px;
}

/* The cloned .bc-preview-stack inside the quote step must not be sticky */
.bc-final-face .bc-preview-stack {
    position: relative !important;
    top: auto !important;
}

.bc-final-connector {
    width: 10px;
    height: 28px;
    background: linear-gradient( to bottom, #c8c8c8, #848484 );
    border-radius: 0 0 4px 4px;
    box-shadow: 0 2px 6px rgba( 0, 0, 0, 0.2 );
    flex-shrink: 0;
}

.bc-final-clasp {
    display: none; /* shown by JS when there is clasp text */
}

.bc-final-clasp-bar {
    width: 180px;
    height: 28px;
    background: linear-gradient( to bottom, #e8e8e8, #a4a4a4, #d2d2d2 );
    border-radius: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow:
        0 4px 12px rgba( 0, 0, 0, 0.25 ),
        inset 0 2px 4px rgba( 255, 255, 255, 0.7 ),
        inset 0 -2px 3px rgba( 0, 0, 0, 0.18 );
}

.bc-final-clasp-text {
    font-size: 0.62rem;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba( 60, 40, 10, 0.7 );
    text-shadow: 0 1px 1px rgba( 255, 255, 255, 0.5 );
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 90%;
}

/* ==========================================================================
   Textile product previews (ties, pocket squares)
   ========================================================================== */

/* Hide the metallic hardware pseudo-elements */
.bc-preview-stack[data-preview="ties"]::before,
.bc-preview-stack[data-preview="ties"]::after,
.bc-preview-stack[data-preview="pocket_square"]::before,
.bc-preview-stack[data-preview="pocket_square"]::after {
    content: none;
}

/* Tie — tall tapered rectangle */
.bc-preview-stack[data-preview="ties"] .bc-preview-face {
    border-radius: 8px 8px 35% 35% / 8px 8px 20% 20%;
    aspect-ratio: 1 / 3;
    width: 30%;
    top: 3%;
    background: linear-gradient( 160deg, #e8e4dc, #c0bdb8 );
}

.bc-preview-stack[data-preview="ties"] .bc-preview-logo-layer,
.bc-preview-stack[data-preview="ties"] .bc-preview-text-layer {
    border-radius: 8px 8px 35% 35% / 8px 8px 20% 20%;
    aspect-ratio: 1 / 3;
    width: 30%;
    top: 3%;
}

/* Pocket square — soft square */
.bc-preview-stack[data-preview="pocket_square"] .bc-preview-face {
    border-radius: 4px;
    width: 72%;
    aspect-ratio: 1;
    top: 10%;
    background: linear-gradient( 135deg, #f5f3ee, #dedad2 );
}

.bc-preview-stack[data-preview="pocket_square"] .bc-preview-logo-layer,
.bc-preview-stack[data-preview="pocket_square"] .bc-preview-text-layer {
    border-radius: 4px;
    width: 72%;
    aspect-ratio: 1;
    top: 10%;
}

/* ==========================================================================
   Tab progress indicator
   ========================================================================== */

.bc-tab-progress {
    font-size: 0.72rem;
    color: var( --bc-text-light );
    font-style: italic;
    flex: 1;
}

/* ==========================================================================
   Character counter for engraving text fields
   ========================================================================== */

.bc-char-counter {
    display: block;
    font-size: 0.72rem;
    color: var( --bc-text-light );
    text-align: right;
    margin-top: 2px;
}

.bc-char-counter--over {
    color: #c0392b;
    font-weight: 600;
}

/* ==========================================================================
   Field error state
   ========================================================================== */

.bc-field--error {
    border-color: #c0392b !important;
    box-shadow: 0 0 0 3px rgba( 192, 57, 43, 0.12 );
}

/* ==========================================================================
   Buttons
   ========================================================================== */

.bc-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 11px 28px;
    font-size: 0.9rem;
    font-weight: 600;
    font-family: inherit;
    border-radius: var( --bc-radius );
    cursor: pointer;
    border: 2px solid transparent;
    text-decoration: none;
    transition: background 0.15s, border-color 0.15s, color 0.15s;
    white-space: nowrap;
}

.bc-btn--primary {
    background: var( --bc-accent );
    color: var( --bc-white );
    border-color: var( --bc-accent );
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 0.82rem;
}

.bc-btn--primary:hover {
    background: var( --bc-accent-hover );
    border-color: var( --bc-accent-hover );
}

.bc-btn--primary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.bc-btn--secondary {
    background: transparent;
    color: var( --bc-accent );
    border-color: var( --bc-accent );
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 0.82rem;
}

.bc-btn--secondary:hover {
    background: var( --bc-accent );
    color: var( --bc-white );
}

.bc-btn--upload {
    background: var( --bc-bg );
    color: var( --bc-primary );
    border-color: var( --bc-border );
    font-size: 0.85rem;
    padding: 9px 20px;
}

.bc-btn--upload:hover {
    border-color: var( --bc-primary );
}

/* ==========================================================================
   Step navigation footer
   ========================================================================== */

.bc-step-nav {
    display: flex;
    align-items: center;
    gap: 16px;
    padding-top: 24px;
    border-top: 1px solid var( --bc-border );
}

/* ==========================================================================
   Quote step (Step 3)
   ========================================================================== */

.bc-step--quote {
    padding-top: 32px;
}

.bc-step--quote .bc-section-header h2 {
    font-size: 1.3rem;
}

/* Final product image summary */
.bc-product-image--final {
    width: 260px;
    aspect-ratio: 1;
    border-radius: var( --bc-radius );
    border: 1px solid var( --bc-border );
    font-size: 0.85rem;
    margin: 0 auto 24px;
    display: flex;
}

.bc-get-quote-btn {
    display: block;
    width: fit-content;
    margin: 0 auto 24px;
}

/* Quote form inner (revealed on Get a Quote click) */
.bc-quote-form-wrap,
.bc-quote-form-inner {
    display: none;
    max-width: 580px;
    margin: 0 auto;
}

.bc-quote-form .bc-field-group {
    margin-bottom: 0;
    border-radius: var( --bc-radius-card );
    overflow: hidden;
    /* stacked cards touch each other — merge with gap */
    margin-bottom: 16px;
}

.bc-quote-form .bc-field-label {
    display: block;
    width: 100%;
    background: var( --bc-card-header );
    padding: 12px 20px;
    font-size: 0.88rem;
    font-weight: 400;
    text-transform: none;
    letter-spacing: 0.03em;
    color: var( --bc-text );
    text-align: center;
    border-bottom: 1px solid var( --bc-border );
    margin-bottom: 0;
}

.bc-quote-form .bc-input,
.bc-quote-form .bc-textarea {
    border: none;
    border-radius: 0;
    min-height: 52px;
    font-size: 1rem;
    padding: 14px 20px;
    display: block;
    width: 100%;
}

.bc-quote-form .bc-input:focus,
.bc-quote-form .bc-textarea:focus {
    outline: 2px solid var( --bc-border-focus );
    outline-offset: -2px;
}

.bc-form-messages {
    display: none;
    padding: 14px 18px;
    border-radius: var( --bc-radius );
    font-size: 0.9rem;
    margin-bottom: 20px;
}

.bc-form-messages p {
    margin: 0;
}

.bc-form-messages--success {
    background: #eafaf1;
    color: var( --bc-success );
    border: 1px solid #a9dfbf;
}

.bc-form-messages--error {
    background: #fef9f9;
    color: var( --bc-error );
    border: 1px solid #e6b0aa;
}

.bc-submit-btn {
    width: 100%;
    padding: 14px;
    font-size: 1rem;
}

.bc-form-row--submit {
    margin-top: 8px;
}

/* ==========================================================================
   Admin styles — quote list table
   ========================================================================== */

.bc-admin-wrap {
    margin: 20px 0;
}

.bc-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
    align-items: center;
}

.bc-filters select,
.bc-filters input[type="search"] {
    height: 30px;
    padding: 0 8px;
    font-size: 0.85rem;
    border: 1px solid #ccc;
    border-radius: 3px;
}

.bc-filters button {
    height: 30px;
    padding: 0 12px;
    font-size: 0.85rem;
}

/* Admin quote list table */
.bc-quote-table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    box-shadow: 0 1px 3px rgba( 0,0,0,0.08 );
}

.bc-quote-table th {
    background: var( --bc-bg );
    padding: 10px 12px;
    text-align: left;
    font-size: 0.85rem;
    font-weight: 600;
    border-bottom: 2px solid var( --bc-border );
}

.bc-quote-table td {
    padding: 10px 12px;
    font-size: 0.85rem;
    border-bottom: 1px solid #f0f0f0;
    vertical-align: middle;
}

.bc-quote-table tr:last-child td {
    border-bottom: none;
}

.bc-quote-table tr:hover td {
    background: #fafafa;
}

/* Status badges */
.bc-status-badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 20px;
    font-family: var( --bc-font );
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.bc-status-badge--new        { background: #d6eaf8; color: #1a5276; }
.bc-status-badge--in-review  { background: #fdf6d4; color: #7d6608; }
.bc-status-badge--quoted     { background: #d5f5e3; color: #1e8449; }
.bc-status-badge--ordered    { background: #e8daef; color: #6c3483; }
.bc-status-badge--cancelled  { background: #fadbd8; color: #922b21; }

/* ==========================================================================
   Admin quote single view
   ========================================================================== */

.bc-quote-layout {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 32px;
    max-width: 1200px;
    margin-top: 24px;
}

@media ( max-width: 900px ) {
    .bc-quote-layout {
        grid-template-columns: 1fr;
    }
}

.bc-meta-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}

.bc-meta-table th,
.bc-meta-table td {
    padding: 8px 0;
    border-bottom: 1px solid #f0f0f0;
    vertical-align: top;
}

.bc-meta-table th {
    width: 38%;
    font-weight: 600;
    color: var( --bc-text-light );
    padding-right: 12px;
}

.bc-meta-table tr:last-child th,
.bc-meta-table tr:last-child td {
    border-bottom: none;
}

.bc-action-box {
    background: var( --bc-white );
    border: 1px solid var( --bc-border );
    border-radius: var( --bc-radius );
    padding: 20px;
}

.bc-action-box h3 {
    font-size: 1rem;
    font-weight: 700;
    margin: 0 0 16px;
    padding-bottom: 10px;
    border-bottom: 1px solid var( --bc-border );
}

.bc-action-box label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 4px;
}

.bc-action-box input[type="number"],
.bc-action-box select,
.bc-action-box textarea {
    width: 100%;
    padding: 8px 10px;
    font-size: 0.9rem;
    border: 1px solid var( --bc-border );
    border-radius: var( --bc-radius );
    margin-bottom: 12px;
    font-family: inherit;
}

.bc-action-box .button {
    width: 100%;
    text-align: center;
    padding: 8px;
    margin-top: 4px;
}

/* Checkout link in admin */
.bc-checkout-link-box {
    word-break: break-all;
    background: #f9f9f9;
    border: 1px solid var( --bc-border );
    border-radius: var( --bc-radius );
    padding: 10px 12px;
    font-size: 0.82rem;
    margin-top: 12px;
}

/* ==========================================================================
   Responsive tweaks
   ========================================================================== */

@media ( max-width: 600px ) {
    .bc-tab-nav {
        flex-wrap: wrap;
    }

    .bc-tab-btn {
        flex-basis: 50%;
        border-right: none;
        border-bottom: 1px solid var( --bc-border );
    }

    .bc-step-nav {
        flex-direction: column-reverse;
    }

    .bc-step-nav .bc-btn {
        width: 100%;
    }

    .bc-product-image--final {
        width: 180px;
    }
}

/* ==========================================================================
   Tie pattern tile swatches
   ========================================================================== */

.bc-swatches--tie-patterns {
    display: grid;
    grid-template-columns: repeat( auto-fill, minmax( 68px, 1fr ) );
    gap: 10px;
    padding: 10px 0;
}

.bc-swatch--tie-pattern {
    flex-direction: column;
    align-items: center;
    gap: 5px;
    padding: 6px 4px 8px;
    font-size: 0.6rem;
    letter-spacing: 0;
    text-transform: none;
    min-width: 0;
}

/* Tie silhouette shape shared by all pattern tiles */
.bc-swatch__tie-face {
    display: block;
    width: 34px;
    height: 82px;
    background: #b8b4b0;
    clip-path: polygon( 30% 0%, 70% 0%, 76% 13%, 88% 40%, 90% 68%, 50% 100%, 10% 68%, 12% 40%, 24% 13% );
    flex-shrink: 0;
}

/* Pattern stripe overlays — dark semi-transparent so ground colour shows through */
.bc-swatch__tie-face--thin-stripe {
    background-image: repeating-linear-gradient( 45deg,
        rgba( 20, 20, 20, 0.45 ) 0, rgba( 20, 20, 20, 0.45 ) 2px,
        transparent 2px, transparent 10px );
}
.bc-swatch__tie-face--stripe {
    background-image: repeating-linear-gradient( 45deg,
        rgba( 20, 20, 20, 0.45 ) 0, rgba( 20, 20, 20, 0.45 ) 5px,
        transparent 5px, transparent 16px );
}
.bc-swatch__tie-face--wide-stripe {
    background-image: repeating-linear-gradient( 45deg,
        rgba( 20, 20, 20, 0.45 ) 0, rgba( 20, 20, 20, 0.45 ) 10px,
        transparent 10px, transparent 24px );
}
.bc-swatch__tie-face--club-stripe {
    background-image: repeating-linear-gradient( 45deg,
        rgba( 20, 20, 20, 0.45 ) 0, rgba( 20, 20, 20, 0.45 ) 14px,
        transparent 14px, transparent 44px );
}
.bc-swatch__tie-face--hairline {
    background-image: repeating-linear-gradient( 45deg,
        rgba( 20, 20, 20, 0.5 ) 0, rgba( 20, 20, 20, 0.5 ) 1px,
        transparent 1px, transparent 7px );
}
.bc-swatch__tie-face--double-stripe {
    background-image: repeating-linear-gradient( 45deg,
        rgba( 20, 20, 20, 0.45 ) 0, rgba( 20, 20, 20, 0.45 ) 3px,
        transparent 3px, transparent 8px,
        rgba( 20, 20, 20, 0.45 ) 8px, rgba( 20, 20, 20, 0.45 ) 11px,
        transparent 11px, transparent 24px );
}
.bc-swatch__tie-face--regimental {
    background-image: repeating-linear-gradient( 45deg,
        rgba( 20, 20, 20, 0.4 ) 0, rgba( 20, 20, 20, 0.4 ) 8px,
        transparent 8px, transparent 20px );
}
.bc-swatch__tie-face--rep-stripe {
    background-image: repeating-linear-gradient( 45deg,
        rgba( 20, 20, 20, 0.45 ) 0, rgba( 20, 20, 20, 0.45 ) 6px,
        rgba( 255, 255, 255, 0.25 ) 6px, rgba( 255, 255, 255, 0.25 ) 8px,
        rgba( 20, 20, 20, 0.45 ) 8px, rgba( 20, 20, 20, 0.45 ) 14px,
        transparent 14px, transparent 26px );
}
.bc-swatch__tie-face--horizontal {
    background-image: repeating-linear-gradient( 0deg,
        rgba( 20, 20, 20, 0.42 ) 0, rgba( 20, 20, 20, 0.42 ) 4px,
        transparent 4px, transparent 14px );
}
.bc-swatch__tie-face--thick-thin {
    background-image: repeating-linear-gradient( 45deg,
        rgba( 20, 20, 20, 0.45 ) 0, rgba( 20, 20, 20, 0.45 ) 8px,
        transparent 8px, transparent 12px,
        rgba( 20, 20, 20, 0.45 ) 12px, rgba( 20, 20, 20, 0.45 ) 14px,
        transparent 14px, transparent 28px );
}
.bc-swatch__tie-face--pencil-stripe {
    background-image: repeating-linear-gradient( 45deg,
        rgba( 20, 20, 20, 0.5 ) 0, rgba( 20, 20, 20, 0.5 ) 1px,
        transparent 1px, transparent 14px );
}
.bc-swatch__tie-face--block-stripe {
    background-image: repeating-linear-gradient( 45deg,
        rgba( 20, 20, 20, 0.45 ) 0, rgba( 20, 20, 20, 0.45 ) 12px,
        transparent 12px, transparent 24px );
}
.bc-swatch__tie-face--check {
    background-image:
        repeating-linear-gradient( 45deg, rgba( 20, 20, 20, 0.3 ) 0, rgba( 20, 20, 20, 0.3 ) 4px, transparent 4px, transparent 16px ),
        repeating-linear-gradient( -45deg, rgba( 20, 20, 20, 0.3 ) 0, rgba( 20, 20, 20, 0.3 ) 4px, transparent 4px, transparent 16px );
}
.bc-swatch__tie-face--custom {
    clip-path: none;
    border-radius: var( --bc-radius );
    background: none;
    border: 2px dashed var( --bc-border );
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    color: var( --bc-text-light );
}
.bc-swatch__tie-face--custom::after {
    content: '✏';
}

/* ==========================================================================
   Colour palette swatches (ground colour / stripe colour)
   ========================================================================== */

.bc-swatches--colour {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    padding: 6px 0 2px;
}

.bc-swatch--colour {
    width: 29px;
    height: 29px;
    min-width: 0;
    padding: 0;
    border-radius: 50%;
    border: 2px solid rgba( 0, 0, 0, 0.18 );
    flex-shrink: 0;
    transition: transform 0.1s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}

.bc-swatch--colour:hover {
    transform: scale( 1.2 );
    border-color: var( --bc-accent );
}

.bc-swatch--colour.bc-swatch--active {
    border-color: var( --bc-accent );
    box-shadow: 0 0 0 2px #fff, 0 0 0 4px var( --bc-accent );
    transform: scale( 1.1 );
}
