.bp-wrapper {
  width: 100%;
  margin-bottom: 10px;
  box-sizing: border-box;
}

.bp-field-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 700;
  text-transform: uppercase;
  color: #232323;
  margin-bottom: 6px;
  letter-spacing: 0.05em;
}

.bp-select {
  width: 100% !important;
  max-width: 100% !important;
  padding: 8px 12px;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 16px;
  background: #fff;
  cursor: pointer;
  transition: border-color 0.2s;
  box-sizing: border-box !important;
  display: block !important;
}

.bp-select:focus {
  outline: none;
  border-color: #232323;
}

.bp-swatch {
  display: inline-block;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  flex-shrink: 0;
}

/* --- Simpel "ved siden af"-preview --- */
.bp-preview-side {
  margin-top: 14px;
  padding: 18px 16px;
  background: #f3f1ec;
  border: 1px dashed #b9b2a1;
  border-radius: 6px;
  text-align: center;
  min-height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.bp-preview-side-text {
  font-size: 28px;
  line-height: 1.2;
  word-break: break-word;
  transition: color 0.15s;
}

.bp-preview-side-placeholder {
  font-size: 13px;
  color: #999;
  font-style: italic;
}

/* --- Overlay-preview ovenpå produktbillede --- */
.bp-image-relative-wrap {
  position: relative;
}

.bp-overlay-text {
  position: absolute;
  transform: translate(-50%, -50%);
  white-space: normal;
  overflow-wrap: break-word;
  word-break: break-word;
  overflow: hidden;
  pointer-events: none;
  text-align: center;
  line-height: 1.05;
  transition: color 0.15s;
  z-index: 5;
}

.bp-overlay-badge {
  white-space: nowrap;
  overflow: visible;
  background: rgba(255, 255, 255, 0.92);
  padding: 5px 12px;
  border-radius: 999px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
  pointer-events: auto;
}

.bp-color-note {
  font-size: 11px;
  color: #888;
  font-style: italic;
  margin-top: -2px;
  margin-bottom: 10px;
}

.bp-error {
  color: #c0392b;
  font-size: 12px;
  margin-top: 5px;
}

/* --- Blødt tegn-loft med opt-in --- */
.bp-charcap-msg {
  display: none;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px;
  font-size: 12px;
  color: #8a6d00;
  background: #fff7e0;
  border: 1px solid #f0dfa0;
  border-radius: 6px;
  padding: 6px 10px;
  margin-top: -2px;
  margin-bottom: 8px;
}

.bp-charcap-msg-visible {
  display: flex;
}

.bp-charcap-msg label {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  cursor: pointer;
  font-weight: 600;
}

/* --- Popup til skriftprøve-billede --- */
.bp-modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  z-index: 9999;
  align-items: center;
  justify-content: center;
  padding: 24px;
  box-sizing: border-box;
}

.bp-modal-overlay.bp-modal-open {
  display: flex;
}

.bp-modal-box {
  position: relative;
  background: #fff;
  border-radius: 8px;
  padding: 16px;
  max-width: 90vw;
  max-height: 90vh;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.3);
}

.bp-modal-img {
  display: block;
  max-width: 100%;
  max-height: 80vh;
  border-radius: 4px;
}

.bp-modal-close {
  position: absolute;
  top: -14px;
  right: -14px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: none;
  background: #232323;
  color: #fff;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

.bp-modal-close:hover {
  background: #4caf7d;
}

/* --- "Andet - vælg fra billedet" --- */
.bp-fontchart-link {
  display: inline-block;
  font-size: 12px;
  color: #232323;
  text-decoration: underline;
  margin-top: -2px;
  margin-bottom: 8px;
  cursor: pointer;
}

.bp-fontchart-link:hover {
  color: #4caf7d;
}

.bp-other-font-wrap {
  margin-bottom: 10px;
  padding: 10px 12px;
  background: #f8f9fa;
  border: 1px dashed #b9b2a1;
  border-radius: 6px;
}

.bp-other-font-label {
  display: block;
  font-size: 12px;
  color: #555;
  margin-bottom: 6px;
}

.bp-other-font-input {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  padding: 8px 12px;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 15px;
  background: #fff;
}

.bp-other-font-input:focus {
  outline: none;
  border-color: #232323;
}

@media (max-width: 768px) {
  .bp-wrapper {
    width: 100% !important;
    float: none !important;
    clear: both;
    margin-top: 10px;
  }
  .bp-select {
    width: 100% !important;
    max-width: 100% !important;
  }
  .bp-preview-side-text {
    font-size: 22px;
  }
}
