/* ═══════════════════════════════════════════════════════
   HB PET BOWL PERSONALISER v2 — hbpb.css
   Matches screenshot: white preview canvas top,
   flat label+field rows below, confirm checkbox at end.
   ═══════════════════════════════════════════════════════ */

/* ── WRAPPER ── */
#hbpb-wrapper {
  margin-top: 24px;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 14px;
  color: #222;
}

/* ── TOP NOTE ── */
.hbpb-note {
  font-size: 13px;
  color: #444;
  line-height: 1.55;
  margin: 0 0 16px;
  font-weight: 400;
}

/* ════════════════════════════════════════════════════════
   LIVE PREVIEW BOX
   Mimics screenshot: large white area, big bold name,
   elements each side, band text row below.
   ════════════════════════════════════════════════════════ */
.hbpb-preview-box {
  width: 100%;
  min-height: 210px;
  background: #fff;
  border: 1.5px solid #e0e0e0;
  border-radius: 4px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 32px 20px 28px;
  box-sizing: border-box;
  margin-bottom: 22px;
  gap: 18px;
  position: relative;
  overflow: hidden;
}

/* TOP ROW — left-el  NAME  right-el */
.hbpb-prev-top-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  width: 100%;
}

/* Pet name text */
.hbpb-prev-name {
  font-family: 'Oswald', sans-serif; /* updated live via JS */
  font-size: clamp(36px, 8vw, 68px);
  font-weight: 700;
  color: #111;
  letter-spacing: 0.06em;
  line-height: 1;
  text-align: center;
  transition: font-family 0.2s;
  word-break: break-all;
  max-width: 70%;
  -webkit-font-smoothing: antialiased;
}

/* Line engraving mode — both lines fixed 23px */
.hbpb-line-mode #hbpb-prev-name,
.hbpb-line-mode #hbpb-prev-line2 {
  font-size: 23px !important;
  letter-spacing: 0.04em;
}

#hbpb-prev-line2-row {
  margin-top: 4px;
}

/* Element emojis */
.hbpb-prev-el {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: 'Apple Color Emoji', 'Segoe UI Emoji', 'Noto Color Emoji', sans-serif;
  font-size: clamp(28px, 6vw, 52px);
  line-height: 1;
  min-width: 1ch;
  text-align: center;
  transition: opacity 0.2s;
}
.hbpb-prev-el:empty {
  opacity: 0;
}

/* BAND ROW — wrap-around pattern */
.hbpb-prev-band {
  font-size: clamp(18px, 4vw, 28px);
  color: #222;
  letter-spacing: 0.08em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
  min-height: 1.4em;
  text-align: center;
  line-height: 1.4;
  transition: opacity 0.2s;
}
.hbpb-prev-band:empty {
  display: none;
}

/* ════════════════════════════════════════════════════════
   FLAT FIELDS
   ════════════════════════════════════════════════════════ */
.hbpb-flat-field {
  margin-bottom: 14px;
}

.hbpb-flat-label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13.5px;
  font-weight: 500;
  color: #111;
  margin-bottom: 6px;
  line-height: 1.3;
}

/* text input */
.hbpb-flat-input {
  display: block;
  width: 100%;
  box-sizing: border-box;
  padding: 10px 12px;
  border: 1px solid #c8c8c8;
  border-radius: 4px;
  font-size: 14px;
  font-weight: 600;
  color: #111;
  background: #fff;
  transition: border-color 0.18s, box-shadow 0.18s;
  letter-spacing: 0.05em;
}
.hbpb-flat-input:focus {
  outline: none;
  border-color: #b8962e;
  box-shadow: 0 0 0 2px rgba(184,150,46,0.18);
}

/* select wrapper — adds chevron */
.hbpb-select-wrap {
  position: relative;
}
.hbpb-select-wrap::after {
  content: '▾';
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
  font-size: 13px;
  color: #555;
}

.hbpb-flat-select {
  display: block;
  width: 100%;
  box-sizing: border-box;
  padding: 10px 36px 10px 12px;
  border: 1px solid #c8c8c8;
  border-radius: 4px;
  font-size: 14px;
  color: #111;
  background: #fff;
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
  transition: border-color 0.18s, box-shadow 0.18s;
}
.hbpb-flat-select:focus {
  outline: none;
  border-color: #b8962e;
  box-shadow: 0 0 0 2px rgba(184,150,46,0.18);
}

/* help bubble */
.hbpb-help {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 17px;
  height: 17px;
  border-radius: 50%;
  background: #555;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  cursor: help;
  flex-shrink: 0;
  line-height: 1;
  user-select: none;
}

/* ── CONFIRM NOTE ── */
.hbpb-confirm-note {
  font-size: 13px;
  font-weight: 600;
  color: #111;
  line-height: 1.55;
  margin: 18px 0 12px;
}

/* ── CONFIRM CHECKBOX ── */
.hbpb-confirm-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  cursor: pointer;
  font-size: 13.5px;
  color: #111;
  line-height: 1.45;
  margin-bottom: 6px;
  user-select: none;
}
.hbpb-confirm-row input[type="checkbox"] {
  margin-top: 2px;
  width: 15px;
  height: 15px;
  flex-shrink: 0;
  accent-color: #b8962e;
  cursor: pointer;
}

/* ── RESPONSIVE ── */
@media (max-width: 520px) {
  .hbpb-preview-box {
    min-height: 160px;
    padding: 22px 12px 18px;
  }
}

/* ══ v2.1 ADDITIONS — Toggle button + collapsible panel ══ */

/* PERSONALISE ME / REMOVE toggle button */
.hbpb-toggle-btn {
  display: block;
  width: 100%;
  margin-top: 18px;
  padding: 12px 18px;
  background: #b8962e;
  color: #fff;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.04em;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  text-align: center;
  transition: background 0.2s, transform 0.12s;
}
.hbpb-toggle-btn:hover {
  background: #9e7e22;
}
.hbpb-toggle-btn:active {
  transform: scale(0.99);
}
/* "Remove" state */
.hbpb-toggle-btn.hbpb-is-open {
  background: #666;
}
.hbpb-toggle-btn.hbpb-is-open:hover {
  background: #444;
}

/* COLLAPSIBLE PANEL — hidden by default, slides open */
.hbpb-panel {
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  transition: max-height 0.38s ease, opacity 0.28s ease, padding 0.28s ease;
  padding-top: 0;
}
.hbpb-panel.hbpb-panel-open {
  max-height: 3000px;
  opacity: 1;
  padding-top: 18px;
}

/* error message */
.hbpb-confirm-err {
  font-size: 12.5px;
  color: #c0392b;
  font-weight: 600;
  margin-top: 6px;
}

/* Optional Add Ons image preview */
.hbpb-prev-el img {
  display: block;
  width: clamp(34px, 7vw, 64px);
  height: clamp(34px, 7vw, 64px);
  object-fit: contain;
}
.hbpb-prev-el img {
  pointer-events: none;
}


/* Custom image-capable dropdown for Optional Add Ons */
.hbpb-addon-select {
  position: relative;
}

.hbpb-addon-native {
  position: absolute !important;
  left: -9999px !important;
  width: 1px !important;
  height: 1px !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

.hbpb-addon-trigger {
  width: 100%;
  min-height: 42px;
  box-sizing: border-box;
  padding: 9px 36px 9px 12px;
  border: 1px solid #c8c8c8;
  border-radius: 4px;
  background: #fff;
  color: #111;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  text-align: left;
  font-size: 14px;
  line-height: 1.2;
}

.hbpb-addon-trigger-content,
.hbpb-addon-selected-inline,
.hbpb-addon-option {
  display: flex;
  align-items: center;
  gap: 8px;
}

.hbpb-addon-arrow {
  position: absolute;
  right: 14px;
  color: #555;
  font-size: 13px;
  pointer-events: none;
}

.hbpb-addon-options {
  display: none;
  position: absolute;
  z-index: 9999;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  max-height: 260px;
  overflow-y: auto;
  background: #fff;
  border: 1px solid #d7d7d7;
  border-radius: 4px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.12);
}

.hbpb-addon-select.is-open .hbpb-addon-options {
  display: block;
}

.hbpb-addon-option {
  width: 100%;
  border: 0;
  border-bottom: 1px solid #eee;
  background: #fff;
  color: #111;
  padding: 10px 12px;
  cursor: pointer;
  text-align: left;
  font-size: 14px;
}

.hbpb-addon-option:hover,
.hbpb-addon-option.is-selected {
  background: #f3f3f3;
}

.hbpb-addon-label-img {
  width: 18px;
  height: 18px;
  object-fit: contain;
  flex: 0 0 18px;
  display: inline-block;
}

/* v2.4.8 fix: compact image + text labels inside Optional Add Ons dropdown */
.hbpb-addon-options .hbpb-addon-option {
  appearance: none !important;
  -webkit-appearance: none !important;
  width: 100% !important;
  min-height: 42px !important;
  height: auto !important;
  box-sizing: border-box !important;
  border: 0 !important;
  border-bottom: 1px solid #eee !important;
  border-radius: 0 !important;
  background: #fff !important;
  color: #111 !important;
  padding: 9px 12px !important;
  margin: 0 !important;
  cursor: pointer !important;
  text-align: left !important;
  font-size: 14px !important;
  line-height: 1.25 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: flex-start !important;
  gap: 8px !important;
  box-shadow: none !important;
}

.hbpb-addon-options .hbpb-addon-option:hover,
.hbpb-addon-options .hbpb-addon-option.is-selected {
  background: #f3f3f3 !important;
}

.hbpb-addon-label-img,
.hbpb-addon-trigger-content .hbpb-addon-label-img,
.hbpb-addon-options .hbpb-addon-label-img {
  width: 18px !important;
  height: 18px !important;
  max-width: 18px !important;
  max-height: 18px !important;
  min-width: 18px !important;
  min-height: 18px !important;
  object-fit: contain !important;
  display: inline-block !important;
  flex: 0 0 18px !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  vertical-align: middle !important;
}

.hbpb-addon-label-text,
.hbpb-addon-selected-inline span {
  display: inline-block !important;
  line-height: 1.25 !important;
  white-space: nowrap !important;
}

/* ── EST. Date — below name, right-aligned ── */
.hbpb-prev-date {
  display: none;
  text-align: right;
  align-self: flex-end;
  font-size: 13px;
  font-weight: 400;
  color: #111;
  letter-spacing: 0.12em;
  line-height: 1;
  pointer-events: none;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  padding-right: 18px;
  margin-top: -8px;
}

/* ── Name Field Mode: prefix+name left, icon right ── */
.hbpb-prev-name-block {
  display: none; /* shown by JS when name_field is active */
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: 50%;
  margin: 0 auto;
}
.hbpb-prev-name-stack {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
}
/* "Chef" prefix text */
.hbpb-prev-prefix {
  font-size: clamp(28px, 5.5vw, 52px);
  font-weight: 700;
  color: #111;
  letter-spacing: 0.04em;
  line-height: 1.1;
  -webkit-font-smoothing: antialiased;
}
/* Customer name below prefix — uses same .hbpb-prev-name style */
#hbpb-prev-name-nf {
  font-size: clamp(28px, 5.5vw, 52px);
  font-weight: 700;
  color: #111;
  letter-spacing: 0.04em;
  line-height: 1.15;
  -webkit-font-smoothing: antialiased;
  white-space: nowrap;
  max-width: 100%;
}
/* Icon in name-field mode */
.hbpb-prev-icon-img {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.hbpb-prev-icon-img img,
#hbpb-prev-icon-img-nf img {
  width: clamp(60px, 10vw, 110px);
  height: clamp(60px, 10vw, 110px);
  object-fit: contain;
  display: block;
}

/* ── Image Icon swatch selector ── */
.hbpb-image-icon-swatches {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.hbpb-icon-swatch {
  width: 56px;
  height: 56px;
  padding: 6px;
  border: 2px solid #e0e0e0;
  border-radius: 6px;
  background: #fafafa;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color .15s, background .15s;
}
.hbpb-icon-swatch img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}
.hbpb-icon-swatch:hover {
  border-color: #b8962e;
}
.hbpb-icon-swatch-active {
  border-color: #b8962e;
  background: #fff8ea;
}

/* ── Name field placeholder text in preview ── */
.hbpb-prev-name-placeholder {
  opacity: 0.4;
}

/* ── Font Colour Swatches ── */
.hbpb-color-swatches {
  display: flex !important;
  gap: 8px !important;
  flex-wrap: wrap !important;
  padding: 4px 0 !important;
}
.hbpb-color-swatch {
  width: 28px !important;
  height: 28px !important;
  border-radius: 6px !important;
  border: 2px solid transparent !important;
  cursor: pointer !important;
  padding: 0 !important;
  box-shadow: 0 1px 4px rgba(0,0,0,0.18) !important;
  outline: none !important;
  transition: transform .15s, border-color .15s, box-shadow .15s !important;
  display: inline-block !important;
  background-clip: padding-box !important;
}
.hbpb-color-swatch:hover {
  transform: scale(1.12) !important;
  box-shadow: 0 3px 10px rgba(0,0,0,0.22) !important;
}
.hbpb-color-swatch.hbpb-swatch-active {
  border-color: #333 !important;
  transform: scale(1.08) !important;
  box-shadow: 0 0 0 3px rgba(0,0,0,0.15), 0 2px 8px rgba(0,0,0,0.2) !important;
}
.single-product #hbpb-wrapper .hbpb-addon-options{
	max-height: 120px !important;
}
#hbpb-band-select div#hbpb-band-options {
    max-height: 110px !important;
}
.hbpb-prev-top-row #hbpb-prev-name[style*="hbpb-molly-uppercase"] {
    text-transform: uppercase !important;
}
button.hbpb-color-swatch {
    height: 28px !important;
    width: 28px !important;
	margin-left: 10px;
}
.postid-1738 input#hbpb_pet_name {
    text-transform: uppercase;
}

.postid-1738 div#hbpb-prev-top-row #hbpb-prev-name {
    text-transform: uppercase !important;
    margin-top: 44px;
    font-size: 32px;
    font-weight: bold !important;
}
.advances-flied span {
    color: #000;
}
span#hbpb-prev-el-right-bottom {
    width: 74%;
}
#hbpb-prev-el-right-bottom img {
    width: 78px !important;
    height: 78px !important;
}
.hbpb-prev-date {
    text-align: center !Important;
    align-self: flex-center !important;
    font-size: 19px;
    font-weight: 600;
    margin-right: 234px;
}