.clc-configurator {
  --clc-primary: #4f7fb8;
  --clc-primary-dark: #355071;
  --clc-border: #dfe5ec;
  margin: 1.5rem 0;
  padding: 1rem;
  border: 1px solid #ddd;
  border-radius: 12px;
  background: #fafafa;
}

.clc-configurator,
.clc-configurator * {
  box-sizing: border-box;
}

.clc-configurator__grid {
  display: block;
}

.clc-configurator__preview {
  width: 100%;
  max-width: 100%;
  margin: 0 0 1rem;
  border: 1px solid #e8e8e8;
  border-radius: 8px;
  background: #fff;
}

.clc-configurator__preview[hidden] {
  display: none !important;
}

.clc-configurator__controls {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  background: #fff;
  padding: 1rem;
  border-radius: 12px;
  border: 1px solid #e8e8e8;
  overflow: hidden;
}

.clc-logo-list {
  display: grid;
  gap: 0.9rem;
  width: 100%;
  min-width: 0;
}

.clc-logo-block {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  padding: 0.9rem;
  border: 1px solid #dfe5ec;
  border-radius: 8px;
  background: #fff;
  cursor: pointer;
  overflow: hidden;
}

.clc-logo-block.is-active {
  border-color: var(--clc-primary);
  box-shadow: 0 0 0 2px rgba(79, 127, 184, 0.12);
}

.clc-logo-block.is-collapsed {
  padding-bottom: 0.75rem;
}

.clc-logo-block.is-collapsed .clc-logo-block__header {
  margin-bottom: 0;
}

.clc-logo-block.is-collapsed .clc-logo-block__header::after {
  content: "Vis valg";
  flex: 0 0 auto;
  color: var(--clc-primary);
  font-size: 0.86rem;
  font-weight: 700;
}

.clc-logo-block.is-collapsed .clc-logo-field,
.clc-logo-block.is-collapsed .clc-text-editor,
.clc-logo-block.is-collapsed .clc-status {
  display: none !important;
}

.clc-logo-block__header {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.75rem;
  min-width: 0;
  flex-wrap: wrap;
  cursor: pointer;
}

.clc-logo-title {
  min-width: 0;
  overflow-wrap: anywhere;
}

.clc-logo-active-label {
  margin-left: auto;
  color: #2c6b3f;
  font-size: 0.85rem;
  font-weight: 600;
}

.clc-remove-logo:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.clc-logo-field {
  min-width: 0;
  margin-bottom: 0.85rem;
}

.clc-configurator .form-row {
  float: none;
  width: 100%;
  padding: 0;
}

.clc-configurator input,
.clc-configurator select,
.clc-configurator textarea,
.clc-configurator button {
  min-width: 0;
  max-width: 100%;
}

.clc-configurator .button,
.clc-configurator button {
  font-family: Arial, Helvetica, sans-serif !important;
  font-size: 0.95rem !important;
  text-transform: none;
  letter-spacing: 0;
}

.clc-configurator #clc_add_logo,
.clc-configurator #clc_upload_button,
.clc-configurator #clc_save_all_designs,
.clc-configurator #clc_delete_design,
.clc-configurator .clc-upload-logo-button {
  width: auto;
  min-height: 2.35rem;
  padding: 0.5rem 0.85rem;
  border: 1px solid var(--clc-primary);
  border-radius: 6px;
  background: var(--clc-primary);
  color: #fff;
  font-family: Arial, Helvetica, sans-serif !important;
  font-size: 0.95rem !important;
  font-weight: 700;
  line-height: 1.15;
}

.clc-configurator #clc_add_logo:hover,
.clc-configurator #clc_upload_button:hover,
.clc-configurator #clc_save_all_designs:hover,
.clc-configurator #clc_delete_design:hover,
.clc-configurator .clc-upload-logo-button:hover {
  border-color: var(--clc-primary-dark);
  background: var(--clc-primary-dark);
  color: #fff;
}

.clc-save-all-designs {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  width: auto !important;
  max-width: 100% !important;
  margin: 1rem 0 0.65rem !important;
  text-align: center;
}

.clc-delete-design {
  display: block !important;
  width: 100% !important;
  margin: 0 0 0.65rem !important;
  border-color: #d9a6b4 !important;
  background: #fff !important;
  color: #b42350 !important;
  text-align: center;
}

.clc-delete-design:hover {
  border-color: #b42350 !important;
  background: #fff1f4 !important;
  color: #8f1d40 !important;
}

.clc-delete-design.disabled,
.clc-delete-design:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.clc-configurator-product form.cart {
  display: block;
}

.clc-configurator-product form.cart::after {
  content: "";
  display: block;
  clear: both;
}

.clc-configurator-product form.cart .quantity {
  float: none !important;
  display: inline-flex;
  align-items: stretch;
  width: auto;
  margin: 0 0 0.85rem;
  vertical-align: top;
}

.clc-configurator-product form.cart #clc_save_all_designs,
.clc-configurator-product form.cart button.single_add_to_cart_button,
.clc-configurator-product form.cart .clc-cart-readiness {
  float: none !important;
  clear: both;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  margin-left: 0 !important;
  margin-right: 0 !important;
}

.clc-configurator-product form.cart #clc_save_all_designs {
  width: auto !important;
  clear: none;
  margin-top: 0.35rem !important;
  margin-bottom: 0.55rem !important;
}

.clc-configurator-product form.cart #clc_delete_design {
  width: 100%;
  clear: both;
  margin-bottom: 0.65rem !important;
}

.clc-configurator-product form.cart button.single_add_to_cart_button {
  display: block !important;
  margin-top: 0 !important;
  margin-bottom: 0.85rem !important;
  text-align: center;
}

.clc-save-all-designs.disabled,
.clc-save-all-designs:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.clc-configurator .clc-remove-logo {
  width: auto;
  max-width: 100%;
  min-height: 1.9rem;
  padding: 0.3rem 0.55rem;
  border: 1px solid #e6a5b9;
  border-radius: 6px;
  background: #fff;
  color: #c9275d;
  font-family: Arial, Helvetica, sans-serif !important;
  font-size: 0.86rem !important;
  font-weight: 600;
  line-height: 1.15 !important;
  text-decoration: none;
}

.clc-configurator .clc-remove-logo,
.clc-configurator #clc_add_logo {
  white-space: normal;
}

.clc-engraving-toggle {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin: 0 0 0.85rem;
  padding: 0.65rem 0.75rem;
  border: 1px solid #d8e0ea;
  border-radius: 8px;
  background: #f7f9fc;
  color: #1f2933;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.2;
}

.clc-engraving-toggle input {
  flex: 0 0 auto;
}

.clc-configurator.is-engraving-disabled .clc-logo-list,
.clc-configurator.is-engraving-disabled .clc-addon-options,
.clc-configurator.is-engraving-disabled #clc_add_logo,
.clc-configurator.is-engraving-disabled #clc_save_all_designs,
.clc-configurator.is-engraving-disabled #clc_delete_design,
.clc-configurator.is-engraving-disabled .clc-cart-readiness {
  display: none !important;
}

.clc-preview-stage {
  position: relative;
  overflow: hidden;
}

.clc-surface-tabs {
  display: none !important;
  gap: 0.45rem;
  margin: 0 0 0.65rem;
  flex-wrap: wrap;
}

.clc-surface-sync-status {
  display: none !important;
}

.clc-surface-arrows {
  align-items: center;
  justify-content: space-between;
  flex-wrap: nowrap;
}

.clc-surface-arrow {
  width: 2.5rem;
  min-width: 2.5rem;
  height: 2.5rem;
  padding: 0;
  border: 1px solid #ccd6e2;
  border-radius: 999px;
  background: #fff;
  color: #1f2933;
  cursor: pointer;
  font-size: 1.7rem;
  font-weight: 700;
  line-height: 1;
}

.clc-surface-arrow:hover {
  border-color: #4f7fb8;
  background: #eef5ff;
}

.clc-surface-current {
  flex: 1 1 auto;
  min-width: 0;
  color: #1f2933;
  font-weight: 700;
  text-align: center;
  overflow-wrap: anywhere;
}

.clc-surface-tab {
  padding: 0.45rem 0.75rem;
  border: 1px solid #ccd6e2;
  border-radius: 8px;
  background: #fff;
  color: #1f2933;
  cursor: pointer;
}

.clc-surface-tab.is-active {
  border-color: #4f7fb8;
  background: #eef5ff;
  font-weight: 600;
}

.clc-surface-sync-status {
  margin: -0.15rem 0 0.75rem;
  color: #2c6b3f;
  font-size: 0.85rem;
  font-weight: 600;
}

.clc-configurator-product .woocommerce-product-gallery__trigger {
  display: none !important;
}

.clc-configurator-product .woocommerce-product-gallery .zoomImg {
  display: none !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

.clc-configurator-product .woocommerce-product-gallery__image,
.clc-configurator-product .woocommerce-product-gallery__image a,
.clc-configurator-product .woocommerce-product-gallery__wrapper img {
  cursor: default !important;
}

.clc-configurator-product .woocommerce-product-gallery__image img,
.clc-configurator-product .woocommerce-product-gallery__image:hover img,
.clc-configurator-product .woocommerce-product-gallery__wrapper img,
.clc-configurator-product .woocommerce-product-gallery__wrapper img:hover {
  transform: none !important;
  scale: 1 !important;
}

.clc-base-image,
.clc-overlay img {
  display: block;
  max-width: 100%;
}

.clc-base-image {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.clc-overlay {
  position: absolute;
  top: 30%;
  left: 50%;
  width: 100px;
  z-index: 20;
  cursor: move;
  transform: none;
  user-select: none;
  touch-action: none;
}

.clc-overlay.is-dragging {
  opacity: 0.9;
}

.clc-overlay.is-resizing {
  opacity: 0.92;
}

.clc-overlay.is-rotating {
  opacity: 0.92;
}

.clc-overlay.is-active {
  outline: 2px solid rgba(79, 127, 184, 0.85);
  outline-offset: 3px;
}

.clc-overlay-content {
  display: block;
  width: 100%;
  height: 100%;
  transform: rotate(0deg);
  transform-origin: center center;
}

.clc-overlay img {
  width: 100%;
  height: auto;
  pointer-events: none;
}

.clc-overlay.is-text img {
  display: none !important;
}

.clc-overlay-resize {
  position: absolute;
  right: -0.65rem;
  bottom: -0.65rem;
  width: 1.25rem;
  height: 1.25rem;
  min-width: 1.25rem;
  padding: 0;
  border: 2px solid #fff;
  border-radius: 50%;
  background: #4f7fb8;
  box-shadow: 0 1px 4px rgba(31, 41, 51, 0.35);
  cursor: nwse-resize;
  pointer-events: auto;
  touch-action: none;
  z-index: 3;
}

.clc-overlay-rotate {
  position: absolute;
  right: -0.65rem;
  top: -0.65rem;
  width: 1.25rem;
  height: 1.25rem;
  min-width: 1.25rem;
  padding: 0;
  border: 2px solid #fff;
  border-radius: 50%;
  background: #d82b65;
  box-shadow: 0 1px 4px rgba(31, 41, 51, 0.35);
  cursor: grab;
  pointer-events: auto;
  touch-action: none;
  z-index: 3;
}

.clc-overlay-rotate:active,
.clc-overlay.is-rotating .clc-overlay-rotate {
  cursor: grabbing;
}

.clc-overlay-rotate::before {
  content: "↻";
  position: absolute;
  inset: 0;
  color: #fff;
  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1.05rem;
  text-align: center;
}

.clc-overlay-resize::before {
  content: "";
  position: absolute;
  right: 0.23rem;
  bottom: 0.23rem;
  width: 0.42rem;
  height: 0.42rem;
  border-right: 2px solid #fff;
  border-bottom: 2px solid #fff;
}

.clc-overlay:not(.is-active) .clc-overlay-resize,
.clc-overlay:not(.is-active) .clc-overlay-rotate {
  opacity: 0.72;
}

.clc-overlay-move-hint,
.clc-overlay-resize::after,
.clc-overlay-rotate::after {
  position: absolute;
  z-index: 4;
  padding: 0.28rem 0.45rem;
  border-radius: 4px;
  background: rgba(31, 41, 51, 0.92);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.12s ease;
}

.clc-overlay-move-hint {
  left: 50%;
  top: -2rem;
  transform: translateX(-50%);
}

.clc-overlay-resize::after {
  content: "Ændre størrelse";
  right: 0;
  bottom: -2rem;
}

.clc-overlay-rotate::after {
  content: "Drej";
  right: 0;
  top: -2rem;
}

.clc-overlay:hover .clc-overlay-move-hint {
  opacity: 1;
}

.clc-overlay-resize:hover::after,
.clc-overlay-rotate:hover::after {
  opacity: 1;
}

.clc-overlay-resize:hover ~ .clc-overlay-move-hint,
.clc-overlay-rotate:hover ~ .clc-overlay-move-hint,
.clc-overlay.is-dragging .clc-overlay-move-hint,
.clc-overlay.is-resizing .clc-overlay-move-hint,
.clc-overlay.is-rotating .clc-overlay-move-hint,
.clc-overlay.is-resizing .clc-overlay-resize::after,
.clc-overlay.is-rotating .clc-overlay-rotate::after {
  opacity: 0;
}

.clc-overlay-text {
  display: block;
  white-space: pre;
  width: 100%;
  height: 100%;
  box-sizing: border-box;
  color: #111827;
  line-height: 1.1;
  overflow-wrap: normal;
  word-break: normal;
  overflow: hidden;
  pointer-events: none;
  text-align: center;
  text-shadow: 0 1px 1px rgba(255, 255, 255, 0.55);
}

.clc-overlay-text__inner {
  display: inline-block;
  width: auto;
  min-height: 1px;
  transform-origin: top left;
}

.clc-overlay-text__inner div,
.clc-overlay-text__inner p {
  width: auto;
  margin: 0;
}

.clc-overlay-text[hidden],
.clc-overlay img[hidden],
.clc-upload-field[hidden] {
  display: none;
}

.clc-meta {
  margin-top: 1rem;
  font-size: 1rem;
  line-height: 1.45;
}

.clc-meta p {
  margin: 0.35rem 0;
}

.clc-meta strong {
  font-size: 1rem;
}

.clc-total-price {
  font-size: 1.08rem;
  font-weight: 700;
  color: #1f2933;
}

.clc-help {
  margin: 0.75rem 0 0;
  color: #666;
  font-size: 0.95rem;
}

.clc-preview-modal-open {
  overflow: hidden;
}

.clc-preview-modal {
  position: fixed;
  inset: 0;
  z-index: 999999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  background: rgba(0, 0, 0, 0.76);
}

.clc-preview-modal__inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: min(92vw, 980px);
  height: min(88vh, 880px);
  padding: 1.25rem;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.35);
}

.clc-preview-modal__image {
  display: block;
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
}

.clc-preview-modal__close {
  position: absolute;
  top: 0.65rem;
  right: 0.65rem;
  z-index: 2;
  width: 2.25rem;
  height: 2.25rem;
  min-width: 2.25rem;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(31, 41, 51, 0.88);
  color: #fff;
  font-size: 1.7rem;
  line-height: 2.1rem;
  cursor: pointer;
}

.clc-preview-modal__status {
  color: #1f2933;
  font-weight: 700;
}

.clc-configurator.is-uploading {
  opacity: 0.7;
  pointer-events: none;
}

@media (max-width: 800px) {
  .clc-configurator__grid {
    grid-template-columns: 1fr;
  }

  .clc-overlay-resize,
  .clc-overlay-rotate {
    width: 2rem;
    height: 2rem;
    min-width: 2rem;
  }

  .clc-overlay-resize {
    right: -1rem;
    bottom: -1rem;
  }

  .clc-overlay-rotate {
    right: -1rem;
    top: -1rem;
  }

  .clc-overlay-resize::before {
    right: 0.55rem;
    bottom: 0.55rem;
  }

  .clc-overlay-rotate::before {
    font-size: 1.1rem;
    line-height: 1.75rem;
  }

  .clc-text-editor__title {
    padding: 0.35rem 0.5rem 0.15rem;
    font-size: 0.85rem;
  }

  .clc-text-toolbar {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, auto));
    gap: 0.3rem;
    padding: 0.35rem;
    align-items: center;
  }

  .clc-configurator .clc-text-toolbar select {
    grid-column: 1 / -1;
    width: 100%;
    min-width: 0;
    height: 1.9rem;
    min-height: 1.9rem;
    max-height: 1.9rem;
    font-size: 0.86rem !important;
  }

  .clc-configurator .clc-text-toolbar .button {
    min-width: 2rem;
    height: 1.9rem;
    min-height: 1.9rem;
    padding: 0 0.45rem;
    font-size: 0.82rem !important;
  }

  .clc-text-align-button {
    min-width: 3.8rem !important;
  }

  .clc-text-wysiwyg {
    min-height: 3rem;
    max-height: 5rem;
    padding: 0.5rem 0.6rem;
    font-size: 0.95rem;
  }
}

.clc-configurator #clc_save_all_designs,
.clc-configurator #clc_add_logo,
.clc-configurator #clc_upload_button,
.clc-configurator .clc-upload-logo-button,
.clc-configurator .clc-remove-logo,
.clc-configurator .clc-icon-choice {
  font-family: Arial, Helvetica, sans-serif !important;
  text-transform: none !important;
  letter-spacing: 0 !important;
}

.clc-configurator #clc_save_all_designs,
.clc-configurator #clc_add_logo,
.clc-configurator #clc_upload_button,
.clc-configurator .clc-upload-logo-button {
  min-height: 2.35rem !important;
  padding: 0.5rem 0.85rem !important;
  border-radius: 6px !important;
  font-size: 0.95rem !important;
  line-height: 1.15 !important;
}

.clc-configurator .clc-remove-logo {
  min-height: 1.9rem !important;
  padding: 0.3rem 0.55rem !important;
  font-size: 0.86rem !important;
  line-height: 1.15 !important;
}


.clc-status {
  margin-top: 0.75rem;
  padding: 0.75rem 0.9rem;
  border-radius: 10px;
  font-size: 0.95rem;
  line-height: 1.4;
  border: 1px solid #d9d9d9;
  background: #f8f8f8;
}

.clc-status[hidden] {
  display: none;
}

.clc-status.is-success {
  background: #eef9f0;
  border-color: #b8dfbf;
}

.clc-status.is-error {
  background: #fff1f1;
  border-color: #f0b8b8;
}

.clc-status.is-warning {
  background: #fff8e8;
  border-color: #ead39a;
}

.clc-status.is-info {
  background: #eef5ff;
  border-color: #bdd0f1;
}

.clc-detected-colors {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  margin-top: 0.75rem;
  padding: 0.75rem;
  border: 1px solid #d8dee8;
  border-radius: 6px;
  background: #f7f9fc;
}

.clc-detected-colors[hidden] {
  display: none;
}

.clc-detected-colors__title {
  margin-bottom: 0.55rem;
  font-size: 0.86rem;
  font-weight: 700;
  color: #1f2933;
}

.clc-detected-colors__note {
  margin: 0;
  color: #52606d;
  font-size: 0.9rem;
  line-height: 1.35;
}

.clc-detected-colors__list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.55rem;
  min-width: 0;
}

.clc-detected-color {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: stretch;
  gap: 0;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  min-height: 2rem;
  box-sizing: border-box;
  padding: 0;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  background: #fff;
  color: #1f2933 !important;
  font-size: 0.86rem;
  line-height: 1.1;
  overflow: hidden;
}

.clc-detected-color:hover {
  border-color: #7aa7df;
}

.clc-detected-color__toggle,
.clc-detected-color__edit {
  appearance: none;
  -webkit-appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  min-height: 2rem;
  min-width: 0 !important;
  box-sizing: border-box;
  margin: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  color: inherit !important;
  cursor: pointer;
  font: inherit !important;
  line-height: 1.1 !important;
  letter-spacing: 0 !important;
  text-align: left;
  text-decoration: none !important;
  text-transform: none !important;
}

.clc-detected-color__toggle {
  width: 100%;
  justify-self: stretch;
  justify-content: flex-start;
  min-width: 0;
  padding: 0.42rem 0.55rem;
  overflow: hidden;
  text-align: left !important;
}

.clc-detected-color__edit {
  align-self: stretch;
  justify-self: stretch;
  width: 2.1rem !important;
  min-width: 2.1rem !important;
  padding: 0;
  border-left: 1px solid rgba(82, 96, 109, 0.18) !important;
  color: #52606d !important;
  font-weight: 700;
  font-size: 0 !important;
  line-height: 1 !important;
  text-align: center;
}

.clc-detected-color__edit:hover {
  background: rgba(82, 96, 109, 0.08) !important;
}

.clc-detected-color__edit::before {
  content: "";
  display: block;
  width: 0.95rem;
  height: 0.95rem;
  flex: 0 0 auto;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%2352606d' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 20h9'/%3E%3Cpath d='M16.5 3.5a2.12 2.12 0 0 1 3 3L7 19l-4 1 1-4Z'/%3E%3C/svg%3E") center / contain no-repeat;
}

.clc-detected-color__select {
  grid-column: 1 / -1;
  width: calc(100% - 0.9rem) !important;
  max-width: calc(100% - 0.9rem);
  box-sizing: border-box;
  margin: 0 0.45rem 0.45rem;
  font-size: 0.86rem;
}

.clc-detected-color__select[hidden] {
  display: none;
}

.clc-detected-color.is-selected.is-extra {
  border-color: #b9cfec;
  background: #eef5ff;
}

.clc-detected-color.is-muted {
  background: #fff;
  color: #6b7280 !important;
  opacity: 0.62;
}

.clc-detected-color.is-muted .clc-detected-color__swatch {
  opacity: 0.45;
}

.clc-detected-color__swatch {
  display: inline-block;
  width: 1rem;
  height: 1rem;
  min-width: 1rem;
  border: 1px solid rgba(31, 41, 51, 0.28);
  border-radius: 50%;
  flex: 0 0 auto;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.55);
}

.clc-detected-color__label,
.clc-detected-color__meta {
  display: inline-block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.clc-detected-color__label {
  flex: 0 1 auto;
}

.clc-detected-color__meta {
  flex: 0 0 auto;
  font-weight: 700;
  color: #52606d !important;
}


.clc-upload-row {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  flex-wrap: wrap;
}

.clc-upload-row input[type="file"] {
  flex: 1 1 240px;
}

.clc-rotation-field {
  display: none !important;
}

.clc-rotation-field label {
  display: block;
  margin-bottom: 0.35rem;
  font-weight: 600;
}

.clc-rotation-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 3.5rem;
  gap: 0.65rem;
  align-items: center;
}

.clc-logo-rotation {
  width: 100%;
}

.clc-rotation-value {
  color: #52606d;
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  text-align: right;
}

.clc-text-field textarea {
  width: 100%;
  min-height: 5.5rem;
  resize: vertical;
}

.clc-text-source[hidden] {
  display: none;
}

.clc-logo-block.is-logo-mode .clc-text-field,
.clc-logo-block.is-logo-mode .clc-text-editor,
.clc-logo-block.is-icon-mode .clc-text-field,
.clc-logo-block.is-icon-mode .clc-text-editor {
  display: none !important;
}

.clc-logo-block.is-icon-mode .clc-upload-field {
  display: none !important;
}

.clc-upload-field.is-text-save > label,
.clc-upload-field.is-text-save .clc-upload-row,
.clc-upload-field.is-text-save .clc-upload-row input[type="file"],
.clc-upload-field.is-text-save input[type="file"],
.clc-upload-field.is-text-save small {
  display: none !important;
}

.clc-upload-field.is-text-save {
  margin-top: 0.85rem;
}

.clc-upload-field.is-text-save .clc-upload-row {
  justify-content: flex-start;
}

.clc-upload-field.is-text-save .clc-upload-logo-button,
.clc-upload-field.is-text-save #clc_upload_button {
  opacity: 1;
  cursor: pointer;
}

.clc-text-editor {
  overflow: hidden;
  border: 1px solid #2f3640;
  border-radius: 6px;
  background: #20242a;
  color: #f5f7fa;
  font-family: Arial, Helvetica, sans-serif;
}

.clc-text-editor[hidden] {
  display: none !important;
}

.clc-text-editor__title {
  padding: 0.45rem 0.65rem 0.2rem;
  color: #f5f7fa;
  font-size: 0.92rem;
  font-weight: 700;
}

.clc-icon-library {
  padding: 0.75rem;
  border: 1px solid #d8e0ea;
  border-radius: 8px;
  background: #f7f9fc;
}

.clc-icon-library[hidden] {
  display: none !important;
}

.clc-icon-library__title {
  margin-bottom: 0.45rem;
  color: #1f2933;
  font-size: 0.95rem;
  font-weight: 700;
}

.clc-icon-search {
  width: 100%;
  margin-bottom: 0.65rem;
}

.clc-icon-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(86px, 1fr));
  gap: 0.5rem;
}

.clc-configurator .clc-icon-choice,
.clc-configurator button.clc-icon-choice {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-width: 0;
  min-height: 88px;
  height: 88px;
  padding: 0.45rem 0.35rem;
  border: 1px solid #d4dde8;
  border-radius: 8px;
  background: #fff;
  color: #1f2933;
  cursor: pointer;
  font-family: Arial, Helvetica, sans-serif !important;
  font-size: 0.72rem !important;
  font-weight: 600 !important;
  line-height: 1.12 !important;
  text-align: center;
  text-transform: none !important;
  letter-spacing: 0 !important;
  overflow: hidden;
}

.clc-configurator .clc-icon-choice:hover,
.clc-configurator .clc-icon-choice[aria-pressed="true"] {
  border-color: #4f7fb8;
  box-shadow: 0 0 0 2px rgba(79, 127, 184, 0.16);
}

.clc-configurator .clc-icon-choice img {
  display: block;
  flex: 0 0 auto;
  width: 30px;
  height: 30px;
  margin: 0 0 0.3rem;
  object-fit: contain;
}

.clc-configurator .clc-icon-choice span {
  display: -webkit-box;
  max-width: 100%;
  max-height: 2.4em;
  overflow: hidden;
  overflow-wrap: anywhere;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.clc-icon-empty {
  grid-column: 1 / -1;
  padding: 0.75rem;
  color: #52606d;
  text-align: center;
}

.clc-addon-options {
  margin-top: 0.85rem;
  padding: 0.75rem;
  border: 1px solid #d8e0ea;
  border-radius: 8px;
  background: #f7f9fc;
}

.clc-addon-options__title {
  margin-bottom: 0.55rem;
  color: #1f2933;
  font-size: 0.95rem;
  font-weight: 700;
}

.clc-addon-group {
  margin-bottom: 0.6rem;
}

.clc-addon-group label {
  display: block;
  margin-bottom: 0.25rem;
  font-size: 0.88rem;
  font-weight: 700;
}

.clc-addon-select {
  width: 100%;
}

.clc-addon-checkbox {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  min-height: 2.15rem;
  margin: 0.4rem 0 0;
  padding: 0.45rem 0.55rem;
  border: 1px solid #d4dde8;
  border-radius: 6px;
  background: #fff;
  color: #1f2933;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.9rem;
  line-height: 1.2;
}

.clc-addon-checkbox input {
  flex: 0 0 auto;
}

.clc-addon-checkbox span {
  flex: 1 1 auto;
}

.clc-addon-checkbox strong {
  flex: 0 0 auto;
  font-size: 0.86rem;
  font-weight: 700;
}

.clc-text-wysiwyg {
  width: 100%;
  min-height: 4.5rem;
  max-height: 8rem;
  padding: 0.65rem 0.75rem;
  border: 0;
  border-top: 1px solid #dfe5ec;
  border-radius: 0;
  background: #fff;
  color: #111827;
  line-height: 1.35;
  overflow: auto;
}

.clc-text-wysiwyg:focus {
  box-shadow: inset 0 0 0 2px #4f7fb8;
  outline: none;
}

.clc-text-wysiwyg:empty::before {
  content: attr(data-placeholder);
  color: #767676;
}

.clc-text-wysiwyg div,
.clc-text-wysiwyg p {
  width: 100%;
  min-height: 1.35em;
  margin: 0;
}

.clc-text-toolbar {
  display: flex;
  gap: 0.35rem;
  align-items: center;
  flex-wrap: wrap;
  padding: 0.35rem 0.55rem 0.45rem;
  background: #20242a;
  font-family: Arial, Helvetica, sans-serif;
}

.clc-configurator .clc-text-toolbar select {
  min-width: 7.5rem;
  height: 2rem;
  min-height: 2rem;
  max-height: 2rem;
  border-color: #505967;
  background-color: #2b3038;
  color: #f5f7fa;
  font-family: Arial, Helvetica, sans-serif !important;
  font-size: 0.92rem !important;
  line-height: 1.2 !important;
}

.clc-text-toolbar select[hidden] {
  display: none !important;
}

.clc-configurator .clc-text-toolbar .button {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  width: auto !important;
  min-width: 2rem;
  max-width: none;
  min-height: 2rem;
  height: 2rem;
  padding: 0 0.55rem;
  border-color: #505967;
  border-radius: 4px;
  background: #2b3038 !important;
  color: #f5f7fa !important;
  font-family: Arial, Helvetica, sans-serif !important;
  font-size: 0.9rem !important;
  line-height: 1 !important;
  text-transform: none !important;
  letter-spacing: 0 !important;
}

.clc-configurator .clc-text-toolbar .button.is-active,
.clc-configurator .clc-text-toolbar .button[aria-pressed="true"] {
  border-color: #8ab4f8;
  background: #355071 !important;
  color: #fff !important;
}

.clc-text-align-button {
  flex: 0 1 auto;
  font-size: 0.85rem;
}

.clc-text-color {
  display: none;
}

.clc-text-color-list {
  display: flex;
  flex: 1 1 100%;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-top: 0.25rem;
  padding-top: 0.35rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.clc-color-choice {
  display: inline-flex;
  gap: 0.55rem;
  align-items: center;
  justify-content: center;
  min-height: 2.35rem;
  min-width: 5.3rem;
  padding: 0.4rem 0.85rem;
  border: 1px solid #505967;
  border-radius: 999px;
  background: #2b3038;
  color: #f5f7fa;
  cursor: pointer;
  line-height: 1.1;
}

.clc-color-choice:hover {
  border-color: #8ab4f8;
}

.clc-color-choice[aria-pressed="true"] {
  border-color: #8ab4f8;
  background: #eef5ff;
  color: #172033;
  box-shadow: 0 0 0 2px rgba(138, 180, 248, 0.25);
}

.clc-color-choice__swatch {
  display: inline-block;
  width: 0.95rem;
  height: 0.95rem;
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: 50%;
  flex: 0 0 auto;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.18);
}

.clc-color-choice__label {
  display: inline-block;
  line-height: 1;
  white-space: nowrap;
}

#clc_upload_button {
  white-space: nowrap;
}

#clc_decoration_type,
#clc_decoration_product_id,
#clc_content_type,
#clc_text_font,
#clc_text_align,
#clc_text_scale,
.clc-logo-field select,
.clc-text-toolbar select {
  width: 100%;
}

button.single_add_to_cart_button.disabled,
button.single_add_to_cart_button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.clc-cart-readiness {
  margin-top: 0.85rem;
  padding: 0.85rem 0.95rem;
  border: 1px solid #d9d9d9;
  border-radius: 10px;
  background: #f8f8f8;
  font-size: 0.95rem;
  line-height: 1.45;
}

.clc-cart-readiness.is-pending {
  background: #fff8e8;
  border-color: #ead39a;
}

.clc-cart-readiness.is-ready {
  background: #eef9f0;
  border-color: #b8dfbf;
}

.clc-cart-readiness p,
.clc-cart-readiness ul {
  margin: 0;
}

.clc-cart-readiness ul {
  margin-top: 0.45rem;
  padding-left: 1.2rem;
}

.clc-cart-readiness li + li {
  margin-top: 0.2rem;
}

@media (max-width: 800px) {
  .clc-overlay-resize,
  .clc-overlay-rotate {
    width: 2rem;
    height: 2rem;
    min-width: 2rem;
  }

  .clc-overlay-resize {
    right: -1rem;
    bottom: -1rem;
  }

  .clc-overlay-rotate {
    right: -1rem;
    top: -1rem;
  }

  .clc-overlay-resize::before {
    right: 0.55rem;
    bottom: 0.55rem;
  }

  .clc-overlay-rotate::before {
    font-size: 1.1rem;
    line-height: 1.75rem;
  }

  .clc-text-editor__title {
    padding: 0.35rem 0.5rem 0.15rem;
    font-size: 0.85rem;
  }

  .clc-text-toolbar {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, auto));
    gap: 0.3rem;
    padding: 0.35rem;
    align-items: center;
  }

  .clc-configurator .clc-text-toolbar select {
    grid-column: 1 / -1;
    width: 100%;
    min-width: 0;
    height: 1.9rem;
    min-height: 1.9rem;
    max-height: 1.9rem;
    font-size: 0.86rem !important;
  }

  .clc-configurator .clc-text-toolbar .button {
    min-width: 2rem;
    height: 1.9rem;
    min-height: 1.9rem;
    padding: 0 0.45rem;
    font-size: 0.82rem !important;
  }

  .clc-text-align-button {
    min-width: 3.8rem !important;
  }

  .clc-text-wysiwyg {
    min-height: 3rem;
    max-height: 5rem;
    padding: 0.5rem 0.6rem;
    font-size: 0.95rem;
  }
}
