/* Phase 4 — Clipboard Customizer styles
   Scoped under #clipboard-customizer-root */
  
  #clipboard-customizer-root {
    font-family: inherit;
  }
  
  /* ---- Select Color ---- */
  
  #clipboard-customizer-root .cc-group-static {
    margin-bottom: 20px;
  }
  #clipboard-customizer-root .cc-group-static .cc-group-title {
    color: #48464D;
    font-size: 16px;
    margin-bottom: 12px;
  }
  
  #clipboard-customizer-root .cc-swatch-row {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
  }
  
  #clipboard-customizer-root .cc-swatch {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    box-sizing: border-box;
    border: 1px solid rgba(169, 169, 169, 0.25);
    box-shadow: 0 3px 3px rgba(155, 155, 155, 0.5);
    cursor: pointer;
    transition: transform 0.1s ease, border-color 0.15s ease, box-shadow 0.15s ease;
    position: relative;
  }
  
  #clipboard-customizer-root .cc-swatch:hover {
    transform: scale(1.12);
    border-color: #B28FFF;
    box-shadow: 0 3px 3px rgba(178, 143, 255, 0.4);
  }
  #clipboard-customizer-root .cc-swatch-mint:hover {
    border-color: #D1BCFF;
    box-shadow: 0 3px 3px rgba(209, 188, 255, 0.4);
  }
  
  #clipboard-customizer-root .cc-swatch.is-selected {
    border-color: #D1BCFF;
    box-shadow: 0 3px 3px rgba(209, 188, 255, 0.4);
  }
  
  #clipboard-customizer-root .cc-swatch.is-selected::after {
    content: "";
    position: absolute;
    inset: 0;
    margin: auto;
    width: 55%;
    height: 55%;
    background-color: #F0E9FF;
    -webkit-mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'><polyline points='4 12 10 18 20 6'/></svg>");
    mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'><polyline points='4 12 10 18 20 6'/></svg>");
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-position: center;
    mask-position: center;
    -webkit-mask-size: contain;
    mask-size: contain;
  }
  
  #clipboard-customizer-root .cc-swatch-light.is-selected::after {
    background-color: #9362FF;
  }
  
  /* ---- Trigger grid ---- */
  
  #clipboard-customizer-root .cc-trigger-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 16px;
  }
  
  #clipboard-customizer-root .cc-trigger[data-trigger="Upgrade Clipboard Clip"] { order: 1; }
  #clipboard-customizer-root .cc-trigger[data-trigger="Metal Durability"]      { order: 2; }
  #clipboard-customizer-root .cc-trigger[data-trigger="Engraving Fonts"]      { order: 3; }
  #clipboard-customizer-root .cc-trigger[data-trigger="Custom Engraving"]     { order: 4; }
  
  /* Option / trigger buttons — default */
  #clipboard-customizer-root .cc-trigger {
    display: inline-flex;
    padding: 8px;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    border-radius: 10px;
    border: 1.75px solid transparent; /* keeps size stable vs selected */
    background: var(--White, #FFF);
    box-shadow: 0 0 5px 0 rgba(166, 171, 189, 0.60);
    box-sizing: border-box;
    cursor: pointer;
    transition: background 0.15s ease, border-color 0.15s ease;
  }

  /* Hover (not selected) */
  #clipboard-customizer-root .cc-trigger:hover:not(.is-open):not(.is-selected) {
    background: var(--Secondary-5, #F0E9FF);
    box-shadow: 0 0 5px 0 rgba(166, 171, 189, 0.60);
  }
    
  /* Selected / open panel */
  #clipboard-customizer-root .cc-trigger.is-open,
  #clipboard-customizer-root .cc-trigger.is-selected {
    border: 1.75px solid var(--Secondary-2, #9362FF);
    background: var(--White, #FFF);
    box-shadow: 0 0 5px 0 rgba(166, 171, 189, 0.60);
  }
  
  #clipboard-customizer-root .cc-trigger-title {
    font-weight: 700;
    color: #48464D;
  }
  
  #clipboard-customizer-root .cc-trigger-price {
    font-size: 0.85em;
    color: #888;
    margin-top: 2px;
  }
  
  #clipboard-customizer-root .cc-panel-area:not(:empty) {
    border-radius: 10px;
    box-shadow: 0 0 5px 0 rgba(166, 171, 189, 0.60);
    padding: 24px 12px;
    margin-bottom: 16px;
  }
  
  #clipboard-customizer-root .cc-panel-area:empty {
    display: none;
  }
  
  /* ---- Clip panel ---- */
  
  #clipboard-customizer-root .cc-clip-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 14px;
  }
  
  #clipboard-customizer-root .cc-clip-tab {
    display: flex;
    padding: 8px;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    flex: 1 0 0;
    border-radius: 10px;
    border: 1.75px solid transparent;
    background: #FFF;
    box-shadow: 0 0 5px 0 rgba(166, 171, 189, 0.60);
    cursor: pointer;
  }
  
  #clipboard-customizer-root .cc-clip-tab:hover:not(.is-selected):not(.is-expanded),
  #clipboard-customizer-root .cc-standard-button:hover:not(.is-selected) {
    background: var(--Secondary-5, #F0E9FF);
    box-shadow: 0 0 5px 0 rgba(166, 171, 189, 0.60);
  }
  
  #clipboard-customizer-root .cc-clip-tab.is-selected,
  #clipboard-customizer-root .cc-clip-tab.is-expanded,
  #clipboard-customizer-root .cc-standard-button.is-selected {
    border: 1.75px solid var(--Secondary-2, #9362FF);
    background: var(--White, #FFF);
    box-shadow: 0 0 5px 0 rgba(166, 171, 189, 0.60);
  }
  
  #clipboard-customizer-root .cc-clip-tab-title {
    font-weight: 600;
    color: #48464D;
    font-size: 0.95em;
  }
  #clipboard-customizer-root .cc-clip-tab-price {
    font-size: 0.8em;
    color: #888;
  }
  
  #clipboard-customizer-root .cc-clip-preview-row {
    display: flex;
    max-width: 100%;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 8px;
    background: #fff;
  }
  
  #clipboard-customizer-root .cc-clip-preview-row.is-colors {
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 43px;
    padding: 8px 12px;
  }
  
  #clipboard-customizer-root .cc-clip-preview-image {
    max-width: 100%;
    max-height: 180px;
    object-fit: contain;
    display: block;
  }
  
  #clipboard-customizer-root .cc-clip-preview-row.is-colors .cc-clip-preview-image {
    object-fit: contain;
    flex-shrink: 0;
  }
  
  #clipboard-customizer-root .cc-clip-color-swatches {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: flex-start;
    align-content: flex-start;
    justify-content: flex-end;
    gap: 8px; /* or 15px to match Select Color */
    max-width: 168px;
  }
  
  /* Inherit default / hover / selected / checkmark from .cc-swatch */
  #clipboard-customizer-root .cc-clip-color-swatches .cc-swatch {
    flex-shrink: 0;
  }
  
  #clipboard-customizer-root .cc-standard-button {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    flex: 1 0 0;
    align-self: stretch;
    width: 100%;
    padding: 10px 8px;
    border-radius: 10px;
    border: 1.75px solid transparent;
    background: #FFF;
    box-shadow: 0 0 5px 0 rgba(166, 171, 189, 0.60);
    cursor: pointer;
    color: #54565A;
    text-align: center;
    font-family: "DM Sans", inherit;
    font-size: 16px;
    font-weight: 700;
    line-height: normal;
  }
  
  /* Logo preview shell (same 361×140 as text mode) */
#clipboard-customizer-root .cc-engraving-preview--logo {
  position: relative;
  width: 361px;
  height: 140px;
  max-width: 100%;
  border-radius: 6px;
  overflow: hidden;
  background: #6b4a8a;
}

#clipboard-customizer-root .cc-engraving-preview--logo .cc-engraving-bg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Centered guide layer */
#clipboard-customizer-root .cc-logo-guide {
  position: absolute;
  inset: 0;
  display: flex;
  justify-content: center;
  pointer-events: none;
}

/* Spec box */
#clipboard-customizer-root .cc-logo-guide-box {
  position: relative;
  width: 252px;
  height: 81px;
  border-radius: 5px;
  border: 3px solid #154CB8;
  background: rgba(146, 183, 255, 0.50);
  box-sizing: border-box;
}

/* Vertical 2cm (left side of box) */
#clipboard-customizer-root .cc-logo-guide-v {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}

/* Horizontal 8cm (bottom of box) */
#clipboard-customizer-root .cc-logo-guide-h {
  position: absolute;
  left: 40%;
  bottom: 8px;
  transform: translateX(-50%);
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 6px;
  bottom: 0px;
}

#clipboard-customizer-root .cc-logo-guide-label,
#clipboard-customizer-root .cc-logo-guide-label2 {
  color: #fff;
  font-family: "DM Sans", inherit;
  font-size: 16px;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
}

#clipboard-customizer-root .cc-logo-guide-label { position: relative; left: 5px; }
#clipboard-customizer-root .cc-logo-guide-label2 { position: relative; left: -5px; }

#clipboard-customizer-root .cc-logo-arrow {
  object-fit: contain;
  position: relative;
  display: block;
  left: -6px;
}

  /* ---- Quality panel ---- */
/* ---- Quality panel ---- */

#clipboard-customizer-root .cc-quality-panel {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 8px;
  align-self: stretch;
}

#clipboard-customizer-root .cc-quality-panel-inner {
  display: flex;
  align-items: flex-start;
  gap: 23px;
  width: 100%;
}

#clipboard-customizer-root .cc-quality-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  flex: 1 1 0;
  min-width: 0;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  cursor: pointer;
  text-align: left;
}

#clipboard-customizer-root .cc-quality-card:hover,
#clipboard-customizer-root .cc-quality-card.is-selected {
  border: 0;
  box-shadow: none;
}

#clipboard-customizer-root .cc-quality-card img.cc-quality-card-image {
  width: 184px;
  max-width: 100%;
  height: 150px;
  object-fit: contain;
  border-radius: 10px;
  display: block;
}

#clipboard-customizer-root .cc-quality-card-label {
  display: flex;
  align-items: center;
  margin: 0;
  text-align: left;
}

/* Radio icon wrapper */
#clipboard-customizer-root .cc-radio {
  display: flex;
  width: 24px;
  height: 24px;
  justify-content: center;
  align-items: center;
  flex-shrink: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  padding: 0;
}

/* Title */
#clipboard-customizer-root .cc-quality-card-text {
  color: var(--Grey-2, #77797C);
  font-family: "DM Sans", inherit;
  font-size: 13px;
  font-style: normal;
  font-weight: 400;
  line-height: normal;
  text-align: left;
}
  
  /* ---- List panels ---- */
  
  #clipboard-customizer-root .cc-list {
    display: flex;
    flex-direction: column;
    gap: 4px;
  }
  
  #clipboard-customizer-root .cc-list-item {
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.15s ease, border-color 0.15s ease;
    display: flex;
    justify-content: space-between;
  }
  
  #clipboard-customizer-root .cc-list-item:hover {
    background-color: #f5f5f5;
    border-color: #bbb;
  }
  
  #clipboard-customizer-root .cc-list-item.is-selected {
    background-color: #eef4ff;
    border-color: #9362FF;
    font-weight: 600;
  }
  
  #clipboard-customizer-root .cc-list-item .cc-item-price {
    color: #666;
    font-weight: 400;
  }
  
  /* ---- Custom Image stub ---- */
  
  #clipboard-customizer-root .cc-custom-image-stub {
    color: #888;
    font-style: italic;
    padding: 8px 0;
  }
  
  /* ---- Your Order badges ---- */
  
  #clipboard-your-order .cc-your-order-title {
    font-family: "DM Sans", sans-serif;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 8px;
    color: #333;
  }
  
  #clipboard-your-order .cc-badges {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    align-self: stretch;
    flex-wrap: wrap;
  }

  #clipboard-customizer-root .cc-logo-file-chip {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    width: 100%;
    max-width: 361px;
    margin-top: 4px;
    margin-left: auto;
    margin-right: auto;
    box-sizing: border-box;
  }
  
  #clipboard-customizer-root .cc-logo-file-name {
    color: var(--Grey-2, #77797C);
    font-family: "DM Sans", inherit;
    font-size: 16px;
    font-style: normal;
    font-weight: 400;
    line-height: normal;
    letter-spacing: -0.08px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    text-align: right;
  }
  
  #clipboard-customizer-root .cc-logo-file-remove {
    display: inline-flex;
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    padding: 0;
    border: 0;
    background: transparent
      url("/catalog/view/theme/mdpocket/image/remove.png")
      center / contain no-repeat;
    cursor: pointer;
    font-size: 0;
    line-height: 0;
    color: transparent;
  }
  
  /* Default + hover cell (same surface) */
  #clipboard-your-order .cc-badge {
    display: flex;
    padding: 8px;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    flex: 1 0 0;
    position: relative;
    box-sizing: border-box;
    min-width: 0;
    max-width: 130px;
  
    border-radius: 5px;
    border: 1px solid var(--Secondary-3, #B28FFF);
    background: var(--Secondary-5, #F0E9FF);
    box-shadow: 0 0 4px 0 rgba(151, 71, 255, 0.50);
  }
  
  #clipboard-your-order .cc-badge-text,
  #clipboard-your-order .cc-badge-price {
    color: var(--Secondary-1, #651FFF);
    font-family: "DM Sans", sans-serif;
    font-size: 14px;
    font-style: normal;
    font-weight: 400;
    line-height: normal;
    text-align: center;
  }
  
  /* Remove chip — top right, only on badge hover */
  #clipboard-your-order .cc-badge-remove {
    position: absolute;
    top: -6px;
    right: -6px;
  
    display: flex;
    width: 16px;
    height: 16px;
    padding: 2px;
    justify-content: center;
    align-items: center;
    gap: 10px;
    box-sizing: border-box;
  
    border-radius: 10px;
    border: 1px solid var(--Secondary-4, #D1BCFF);
    box-shadow: 1px 1px 2px 0 rgba(166, 171, 189, 0.40);
    background: transparent url("/catalog/view/theme/mdpocket/image/customizer/clipboard/remove.png")
    center / contain no-repeat;
    cursor: pointer;
    font-size: 0;
    line-height: 0;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.15s ease;
  }
  
  #clipboard-your-order .cc-badge-remove::before {
    content: "";
    display: block;
    width: 10px;
    height: 10px;
    background: transparent url("/catalog/view/theme/mdpocket/image/customizer/clipboard/remove.png")
      center / contain no-repeat;
  }
  
  #clipboard-your-order .cc-badge:hover .cc-badge-remove {
    opacity: 1;
    pointer-events: auto;
  }
  /* ---- Price / CTA ---- */
  
  #clipboard-customizer-root .cc-price-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 16px;
  }
  
  #clipboard-customizer-root .cc-price {
    font-size: 1.4em;
    font-weight: 700;
  }
  
  /* ---- Fonts ---- */
  
  @font-face {
    font-family: 'CC Narkisim';
    src: url('/catalog/view/theme/mdpocket/lib/customizer/narkisim.ttf') format('truetype');
  }
  @font-face {
    font-family: 'CC Cherokee';
    src: url('/catalog/view/theme/mdpocket/lib/customizer/cherokee.ttf') format('truetype');
  }
  @font-face {
    font-family: 'CC Segoe Script';
    src: url('/catalog/view/theme/mdpocket/lib/customizer/segoesc.ttf') format('truetype');
  }
  @font-face {
    font-family: 'CC Calgary';
    src: url('/catalog/view/theme/mdpocket/lib/customizer/calgary.ttf') format('truetype');
  }
  
  /* ---- Engraving panel ---- */
  
  #clipboard-customizer-root .cc-engraving-panel {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 16px;
    border-radius: 10px;
    box-sizing: border-box;
  }
  
  #clipboard-customizer-root .cc-engraving-help {
    margin: 0;
    max-width: 361px;
    text-align: left;
    color: #48464D;
    font-size: 14px;
    line-height: 1.4;
  }
  
  #clipboard-customizer-root .cc-engraving-preview {
    position: relative;
    width: 361px;
    height: 140px;
    max-width: 100%;
    border-radius: 6px;
    overflow: hidden;
    background: #6b4a8a;
  }
  
  #clipboard-customizer-root .cc-engraving-bg {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
  }

  #clipboard-customizer-root .cc-engraving-field--sample {
    width: 100%;
    max-width: 361px;
  }
  
  /* Outer field chrome */
  #clipboard-customizer-root .cc-engraving-input-shell {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 2px;
    width: 100%;
    padding: 10px 16px;
    box-sizing: border-box;
  
    border: 1px solid #ececf0;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 2px 8px rgba(166, 171, 189, 0.18);
  }
  
  #clipboard-customizer-root .cc-engraving-input-shell:focus-within {
    border-color: #d1bcff;
    box-shadow: 0 2px 10px rgba(147, 98, 255, 0.2);
  }
  
  /* Label inside the field */
  #clipboard-customizer-root .cc-engraving-field--sample .cc-engraving-label {
    display: block;
    margin: 0;
    padding: 0;
    color: #6b6b70;
    font-family: "DM Sans", inherit;
    font-size: 12px;
    font-weight: 500;
    line-height: 1.2;
    pointer-events: none;
  }
  
  /* Textarea — no second border/shadow */
  #clipboard-customizer-root .cc-engraving-field--sample .cc-engraving-input {
    display: block;
    width: 100%;
    min-height: 24px;
    height: auto;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    resize: none;
  
    color: #48464d;
    font-family: "DM Sans", inherit;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.4;
    outline: none;
  }
  
  #clipboard-customizer-root .cc-engraving-field--sample .cc-engraving-input::placeholder {
    color: #a0a0a8;
  }
  
  #clipboard-customizer-root .cc-engraving-charcount {
    margin-top: 6px;
    padding-right: 4px;
    font-size: 12px;
    color: #a0a0a8;
    text-align: right;
  }
  
  #clipboard-customizer-root .cc-engraving-text {
    display: flex;
    width: 247px;
    flex-direction: column;
    justify-content: center;
    position: absolute;
    left: 55.5px;
    top: 32px;
    color: var(--Grey-3, #DADDE7);
    text-align: center;
    font-size: 34px;
    font-style: normal;
    font-weight: 400;
    line-height: normal;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    pointer-events: none;
  }
  
  #clipboard-customizer-root .cc-engraving-text.font-narkisim { font-family: 'CC Narkisim', serif; }
  #clipboard-customizer-root .cc-engraving-text.font-cherokee { font-family: 'CC Cherokee', sans-serif; }
  #clipboard-customizer-root .cc-engraving-text.font-segoe { font-family: 'CC Segoe Script', cursive; }
  #clipboard-customizer-root .cc-engraving-text.font-calgary { font-family: 'CC Calgary', serif; }
  
  #clipboard-customizer-root .cc-engraving-field {
    width: 100%;
    max-width: 361px;
  }
  
  #clipboard-customizer-root .cc-engraving-label {
    display: block;
    margin: 0 0 6px 4px;
    color: #6b6b70;
    font-family: "DM Sans", inherit;
    font-size: 12px;
    font-weight: 500;
    line-height: normal;
  }
  
  #clipboard-customizer-root .cc-engraving-input {
    width: 100%;
    height: 48px;
    padding: 12px 16px;
    box-sizing: border-box;
    border: 1px solid #ececf0;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 2px 8px rgba(166, 171, 189, 0.18);
    color: #48464d;
    font-family: "DM Sans", inherit;
    font-size: 14px;
    font-weight: 400;
    line-height: normal;
    outline: none;
    appearance: none;
    -webkit-appearance: none;
  }

  #clipboard-customizer-root .cc-engraving-font-select {
    display: flex;
    width: 100%;
    max-width: 361px;
    padding: 8px 12px;
    justify-content: space-between;
    align-items: center;
    align-self: stretch;
    box-sizing: border-box;
  
    border: 1px solid #ececf0;
    border-radius: 12px;
    background: #fff
      url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'><path d='M1 1.5L6 6.5L11 1.5' stroke='%23888' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round' fill='none'/></svg>")
      no-repeat right 12px center;
    box-shadow: 0 2px 8px rgba(166, 171, 189, 0.18);
  
    color: #48464d;
    font-family: "DM Sans", inherit;
    font-size: 14px;
    appearance: none;
    -webkit-appearance: none;
    cursor: pointer;
  }
  
  /* Selected font — purple surface + checkmark on the right */
  #clipboard-customizer-root .cc-engraving-font-select.has-selection {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    align-self: stretch;

    background-color: var(--Secondary-5, #F0E9FF);
    background-image:
      url("/catalog/view/theme/mdpocket/image/checkmark.png"),
      url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'><path d='M1 1.5L6 6.5L11 1.5' stroke='%23651FFF' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round' fill='none'/></svg>");
    background-repeat: no-repeat, no-repeat;
    background-position: right 36px center, right 12px center;
    background-size: 16px 16px, 12px 8px;

    border-color: #d1bcff;
    color: var(--Secondary-1, #651FFF);
  }

  /* Limited: selected <option> text (checkmark inside list not supported in most browsers) */
  #clipboard-customizer-root .cc-engraving-font-select option:checked {
    background: var(--Secondary-5, #F0E9FF);
    color: var(--Secondary-1, #651FFF);
  }

  /* Closed field — chevron only, no checkmark */
  #clipboard-customizer-root .cc-font-dd {
    position: relative;
    width: 100%;
    max-width: 361px;
  }

  #clipboard-customizer-root .cc-font-dd-toggle {
    display: flex;
    width: 100%;
    padding: 8px 12px;
    justify-content: space-between;
    align-items: center;
    box-sizing: border-box;

    border: 1px solid #ececf0;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 2px 8px rgba(166, 171, 189, 0.18);

    color: #48464d;
    font-family: "DM Sans", inherit;
    font-size: 14px;
    cursor: pointer;
    text-align: left;
  }

  #clipboard-customizer-root .cc-font-dd-toggle::after {
    content: "";
    width: 12px;
    height: 8px;
    flex-shrink: 0;
    margin-left: 8px;
    background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'><path d='M1 1.5L6 6.5L11 1.5' stroke='%23888' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round' fill='none'/></svg>")
      center / contain no-repeat;
  }

  #clipboard-customizer-root .cc-font-dd.is-open .cc-font-dd-toggle {
    border-color: #d1bcff;
  }

  /* Dropdown panel */
  #clipboard-customizer-root .cc-font-dd-menu {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: calc(100% + 4px);
    z-index: 20;
    max-height: 220px;
    overflow-y: auto;
    padding: 4px 0;
    border-radius: 12px;
    border: 1px solid #ececf0;
    background: #fff;
    box-shadow: 0 4px 16px rgba(166, 171, 189, 0.25);
  }

  #clipboard-customizer-root .cc-font-dd.is-open .cc-font-dd-menu {
    display: block;
  }

  /* Option row */
  #clipboard-customizer-root .cc-font-dd-item {
    display: flex;
    padding: 8px 12px;
    justify-content: space-between;
    align-items: center;
    align-self: stretch;
    cursor: pointer;
    color: #48464d;
    font-family: "DM Sans", inherit;
    font-size: 14px;
  }

  #clipboard-customizer-root .cc-font-dd-item:hover {
    background: #f7f5fc;
  }

  /* Selected option — purple + checkmark (list only) */
  #clipboard-customizer-root .cc-font-dd-item.is-selected {
    background: var(--Secondary-5, #F0E9FF);
    color: var(--Secondary-1, #651FFF);
  }

  #clipboard-customizer-root .cc-font-dd-item.is-selected::after {
    content: "";
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    background: url("/catalog/view/theme/mdpocket/image/checkmark.png")
      center / contain no-repeat;
  }

  #clipboard-customizer-root .cc-engraving-font-select:focus,
  #clipboard-customizer-root .cc-engraving-input:focus {
    border-color: #d1bcff;
    box-shadow: 0 2px 10px rgba(147, 98, 255, 0.2);
  }
  
  #clipboard-customizer-root .cc-engraving-input::placeholder {
    color: #a0a0a8;
  }
  
  #clipboard-customizer-root .cc-engraving-font-select {
    padding-right: 40px;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8' fill='none'><path d='M1 1.5L6 6.5L11 1.5' stroke='%23888' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/></svg>");
    background-repeat: no-repeat;
    background-position: right 16px center;
    cursor: pointer;
  }
  
  #clipboard-customizer-root .cc-engraving-panel .cc-engraving-field + .cc-engraving-field {
    margin-top: 12px;
  }
  
  #clipboard-customizer-root .cc-engraving-charcount {
    margin-top: 6px;
    padding-right: 4px;
    font-size: 12px;
    color: #a0a0a8;
    text-align: right;
  }
  
  /* Mode buttons — selected switches to black */
  #clipboard-customizer-root .cc-engraving-mode-row {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 16px;
    width: 100%;
    max-width: 361px;
    margin-left: auto;
    margin-right: auto;
    align-self: center;
    box-sizing: border-box;
  }

  #clipboard-customizer-root .cc-engraving-mode-btn {
    display: flex;
    flex-direction: column;
    padding: 8px 10px;
    justify-content: center;
    align-items: center;
    gap: 2px;
    flex: 1 0 0;
    width: 178px;
    height: 53px;
    box-sizing: border-box;
    border: 0;
    border-radius: 3px;
    background: #5c5c5e; /* unselected */
    color: #fff;
    cursor: pointer;
    font-family: "DM Sans", inherit;
    font-size: 14px;
    font-weight: 600;
    line-height: normal;
    text-align: center;
  }
  
  #clipboard-customizer-root .cc-engraving-mode-btn.is-selected {
    background: #111112; /* selected */
  }
  
  #clipboard-customizer-root .cc-mode-price {
    font-weight: 400;
    font-size: 12px;
    opacity: 0.9;
  }
  
  /* Logo mode */
  #clipboard-customizer-root .cc-logo-actions {
    display: flex;
    gap: 12px;
    width: 100%;
    max-width: 361px;
  }
  
  #clipboard-customizer-root .cc-logo-btn {
    flex: 1;
    height: 44px;
    border-radius: 8px;
    border: 1.5px solid #cfcfd4;
    background: #fff;
    color: #48464d;
    font-family: "DM Sans", inherit;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(166, 171, 189, 0.15);
  }
  
  #clipboard-customizer-root .cc-logo-btn:hover {
    border-color: #9362FF;
  }
  
  #clipboard-customizer-root .cc-engraving-logo-input {
    display: none;
  }
  
  /* ---- Responsive ---- */
  
  @media (max-width: 767px) {
    #clipboard-customizer-root .cc-swatch { width: 28px; height: 28px; }
    #clipboard-customizer-root .cc-trigger-grid { grid-template-columns: 1fr 1fr; gap: 8px; }
    #clipboard-customizer-root .cc-price { font-size: 1.2em; }
    #clipboard-customizer-root .cc-clip-tabs { flex-direction: column; }
    #clipboard-customizer-root .cc-engraving-mode-row { flex-direction: column; align-items: stretch; }
    #clipboard-customizer-root .cc-engraving-mode-btn { width: 100%; }
  }

  .clipboard-builder-stage {
    position: relative;
    width: 100%;
    max-width: 100%;
  }
  
  .clipboard-builder-stage .cbs-stack {
    position: relative;
    width: 100%;
    /* match your product image aspect; adjust if needed */
    aspect-ratio: 1 / 1;
    max-width: 800px;
    margin: 0 auto;
  }
  
  .clipboard-builder-stage .cbs-layer,
  .clipboard-builder-stage .cbs-engrave-layer,
  .clipboard-builder-stage #engraving {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    pointer-events: none;
    display: block;
  }

  .clipboard-builder-stage .cbs-engrave-layer {
    position: absolute;
    inset: 0;
    z-index: 5;
    pointer-events: none;
  }
  
  .clipboard-builder-stage #engraving {
    display: none !important;
  }
  
  .clipboard-builder-stage #engraving-text {
    position: absolute;
    left: 50%;
    top: 12%;
    transform: translateX(-50%);
    width: 42%;
    text-align: center;
    color: #DADDE7;
    font-size: 22px;
    line-height: 1.1;
    white-space: pre-wrap;
    word-break: break-word;
  }
  
  .clipboard-builder-stage #engraving-text.font-narkisim { font-family: "Narkisim", serif; }
  .clipboard-builder-stage #engraving-text.font-cherokee { font-family: "Cherokee", serif; }
  .clipboard-builder-stage #engraving-text.font-segoe    { font-family: "Segoe Script", cursive; }
  .clipboard-builder-stage #engraving-text.font-calgary  { font-family: "Calgary", serif; }
  
  /* OC2-style placement — adjust top/left/width to match old customizer */
  .clipboard-builder-stage #engraving {
    position: absolute;
    /* typical upper clip area; tune to match OC2 */
    top: 6%;
    left: 50%;
    transform: translateX(-50%);
    width: 42%;
    height: auto;
    max-height: 18%;
    object-fit: contain;
    inset: auto; /* override full-bleed from .cbs-layer rules */
  }
  .clipboard-builder-stage #engraving {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    transform: none;
  }
  /* Stack order (bottom → top) */
  .clipboard-builder-stage #Background  { z-index: 1; }
  .clipboard-builder-stage #Topboard    { z-index: 2; }
  .clipboard-builder-stage #Rivet       { z-index: 3; }
  .clipboard-builder-stage #Label       { z-index: 4; }
  .clipboard-builder-stage #Clip        { z-index: 5; }
  .clipboard-builder-stage #engraveLayer { z-index: 6; }

  .clipboard-builder-stage #engraveLayer {
    position: absolute;
    inset: 0;
    z-index: 6;
    pointer-events: none;
  }
  .clipboard-builder-stage #engraving {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
  }
  
  .clipboard-builder-stage[hidden] {
    display: none !important;
  }
  
  /* When builder is active, hide normal main image */
  .product-info.has-clipboard-builder #product-main-image-wrap {
    display: none;
  }