.container-layout {
  max-width: 600px;
  padding: 30px;
  position: relative;
  transition: box-shadow 0.25s, -webkit-box-shadow 0.25s;
  border-radius: 2px;
  box-shadow: 0 2px 2px 0 rgba(0, 0, 0, 0.14),
    0 3px 1px -2px rgba(0, 0, 0, 0.12), 0 1px 5px 0 rgba(0, 0, 0, 0.2);
  margin: 80px auto;
}
.header .title-heading {
  font-size: 26px;
  text-align: center;
  margin-bottom: 0.5rem;
  font-weight: 600;
  line-height: 1.5;
}
.header .description p {
  color: #6c757d;
  font-size: 16px;
  text-align: center;
  font-weight: 600;
  line-height: 1.7;
}
.form-control {
  margin-bottom: 1.5rem;
  font-size: 14px;
  position: relative;
  padding: 0 5px;
  width: 100%;
}
.form-control label {
  display: block;
  margin-bottom: 4px;
  font-weight: 600;
  line-height: 20px;
  text-transform: initial;
  letter-spacing: initial;
  cursor: pointer;
  font-size: 14px;
}
.form-phone {
  display: flex;
}
.globo-form-icon {
  width: 41px;
  padding: 0 5px;
  background: #f1f1f1;
  border-radius: 2px 0 0 2px;
  box-shadow: 0 1px 3px rgba(50, 50, 93, 0.15), 0 1px 0 rgba(0, 0, 0, 0.02);
  display: inherit;
  align-items: center;
  justify-content: center;
}
.globo-form-icon svg {
  width: 20px;
  height: 20px;
  opacity: 0.5;
}
.globo-form-control .globo-form-input {
  display: flex;
}
.form-phone .iti {
  display: block !important;
  width: 100% !important;
}
.form-phone input,
.form-phone textarea,
.form-phone select {
  display: block;
  height: 41px;
  padding: 10px 12px;
  color: #000;
  background-color: #f1f1f1;
  border-radius: 2px;
  font-size: 14px;
  position: relative;
  flex: 1 1 auto;
  margin-bottom: 0;
  width: 100%;
  box-shadow: 0 1px 3px rgba(50, 50, 93, 0.15), 0 1px 0 rgba(0, 0, 0, 0.02);
  transition: box-shadow 0.15s ease;
  outline: none;
  background-image: none !important;
}

.help-text.globo-description {
  color: #6c757d;
  margin-top: 0.25rem;
  font-size: 12px;
  font-weight: 600;
}
.globo-form-input {
  display: flex;
}
.flex-wrap {
  display: flex;
  flex-wrap: wrap;
}
.globo-list-control {
  padding: 0 5px;
  position: relative;
  width: 100%;
}
.radio-wrapper {
  position: relative;
  display: block;
  min-height: 24px;
  padding-left: 28px;
  text-align: left;
}
.radio-wrapper .radio-input {
  display: none;
}
.radio-wrapper .radio-label {
  font-weight: 600;
  line-height: 24px;
  text-align: left;
  box-sizing: border-box;
  display: inline-block;
  position: relative;
  margin-bottom: 0;
  cursor: pointer;
  font-size: 14px;
}
.radio-input ~ .radio-label:before,
.radio-input ~ .radio-label:after {
  position: absolute;
  top: 1px;
  left: -28px;
  display: block;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  content: "";
  border: 1px solid;
  box-sizing: border-box;
}
.radio-input ~ .radio-label:before {
  pointer-events: none;
  user-select: none;
  background-color: #fff;
  box-shadow: none;
  box-shadow: 0 1px 3px rgba(50, 50, 93, 0.15), 0 1px 0 rgba(0, 0, 0, 0.02);
  transition: all 0.2s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}
.radio-wrapper .radio-input:checked ~ .radio-label:after {
  background: rgba(0, 0, 0, 1);
  background: radial-gradient(rgba(0, 0, 0, 1) 40%, #fff 45%);
  border-color: rgba(0, 0, 0, 1);
}
.dropzone {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 150px;
  width: 100%;
  position: relative;
  overflow: hidden;
  padding: 12px;
  border-radius: 4px;
  border: 1px dashed color-mix(in srgb, rgba(0, 0, 0, 1) 80%, transparent);
  background-color: #f1f1f1;
  transition: all 0.3s;
}
.form-control .has-error {
  border-color: #dc3545;
  border-width: 1px;
  border-style: solid;
}
.dropzone--content {
  display: flex;
  -webkit-box-align: center;
  align-items: center;
}
.dropzone--placeholder {
  display: flex;
  justify-content: center;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}
.dropzone--placeholder--description {
  font-size: 12px;
}
.dropzone--placeholder--button {
  background: #fff;
  padding: 6px 12px;
  border: 1px solid #ccc;
  border-radius: 4px;
  cursor: pointer;
  overflow: visible;
  color: #222;
}
.dropzone--placeholder--button:hover {
  background: #fff;
  border: 1px solid #ccc;
}

.globo-form-input textarea {
  resize: none;
  display: block;
  height: initial;
  padding: 10px 12px;
  color: #000;
  background-color: #f1f1f1;
  border-radius: 2px;
  font-size: 14px;
  position: relative;
  flex: 1 1 auto;
  margin-bottom: 0;
  width: 100%;
  box-shadow: 0 1px 3px rgba(50, 50, 93, 0.15), 0 1px 0 rgba(0, 0, 0, 0.02);
  transition: box-shadow 0.15s ease;
  outline: none;
  background-image: none !important;
}

.gfb__footer [type="button"],
.gfb__footer [type="submit"] {
  text-transform: none;
  display: inline-block;
  text-align: center;
  vertical-align: middle;
  user-select: none;
  transition: all 0.25s ease-in-out;
  font-weight: 600;
  font-size: 14px;
  line-height: 14px;
  border-radius: 2px;
  padding: 11px 22px;
  min-width: 100px;
  background-color: rgba(0, 0, 0, 1);
  color: #ffffff;
  cursor: pointer;
  position: relative;
  border: 1px solid rgba(0, 0, 0, 1);
  width: 100%;
  box-sizing: border-box;
}
.show-block {
  display: none;
}
.messages {
  color: #dc3545;
  width: 100%;
  margin-top: 0.25rem;
  font-size: 12px;
}
.dropzone--preview--area{
  max-width: 150px;
  display: none;
  position: relative;
}

.dropzone--preview--area .img-preview {
  width: 100%;
  max-width: 150px;
  height: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.dropzone--preview--area .img-preview img {
  width: 100%;
  height: auto;
  max-width: 150px;
  max-height: 150px;
  object-fit: contain;
  border-radius: 4px;
}

.couplepix-close.t4s-drawer__close{
  position: absolute;
  top: 0;
  right: 0;
  background: white;
  width: 40px;
  height: 40px;
}
.globo-form-app:disabled{
  cursor: default;
}

/* CSS */
.spinner {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 3px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  border-top-color: #ffffff;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* button {
  all: initial;
}


button:hover {
  background-color: #f0f0f0;
}

button:active {
  border-color: #999;
  background-color: #e6e6e6;
} */


.modal {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background-color: white;
  z-index: 10000;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.couplepix-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  z-index: 9999;
}

.couplepix-modal-actions {
  display: flex;
  gap: 10px;
  justify-content: center;
  margin-top: 10px;
}
.couplepix-modal-actions .dropzone--placeholder--button {
  min-width: 80px;
  padding: 8px 16px;
}
.couplepix-modal-ok {
  background: #111 !important;
  color: #fff !important;
  border-color: #111 !important;
}
.couplepix-modal-ok:disabled {
  opacity: 0.6;
  cursor: default;
}
.couplepix-zoom-controls {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin: 8px 0;
}

.dropzone.is-dragover {
  border-color: #111;
  background: #eef0f3;
}

.croppie-container .cr-boundary,
.couplepix-cropper .cr-boundary {
  background-color: black;
}

/* ===== Quick-add by SKU (v3c) ===== */
.sku-quickadd {
  margin: 8px 0 10px;
  padding: 12px 14px;
  background: #f7f8fa;
  border: 1px solid #e2e6ee;
  border-radius: 10px;
}
.sku-quickadd-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: #222;
  margin-bottom: 6px;
}
.sku-quickadd-row {
  display: flex;
  gap: 8px;
}
.sku-quickadd-input {
  flex: 1 1 auto;
  min-width: 0;
  height: 42px;
  padding: 0 12px;
  border: 1px solid #d8d8d8;
  border-radius: 8px;
  font-size: 15px;
  font-family: ui-monospace, Menlo, monospace;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  background: #fff;
  color: #222;
}
.sku-quickadd-input:focus {
  outline: none;
  border-color: #111;
  box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.06);
}
.sku-quickadd-btn {
  height: 42px;
  padding: 0 16px;
  background: #111;
  color: #fff;
  border: 1px solid #111;
  border-radius: 8px;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  white-space: nowrap;
}
.sku-quickadd-btn:hover {
  background: #000;
}
.sku-quickadd-msg {
  display: block;
  margin-top: 6px;
  font-size: 12px;
}
.sku-quickadd-msg--error { color: #dc3545; }
.sku-quickadd-msg--ok    { color: #2e7d32; }

/* ===== Empty-state prompt (v3c) ===== */
.product-picker-prompt {
  /* JS toggles display to "flex" when there's no active filter/search. */
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 28px 16px;
  margin-top: 6px;
  background: #fafbfc;
  border: 1px dashed #d8d8d8;
  border-radius: 10px;
  text-align: center;
  color: #555;
}
.product-picker-prompt .prompt-icon {
  font-size: 34px;
  line-height: 1;
}
.product-picker-prompt .prompt-title {
  font-size: 15px;
  font-weight: 600;
  color: #222;
}
.product-picker-prompt .prompt-text {
  font-size: 13px;
  color: #666;
  max-width: 340px;
  line-height: 1.45;
}

/* ===== Product picker (v2) ===== */
.product-picker-loading {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #555;
  padding: 8px 4px;
  font-size: 13px;
}
.spinner-dark {
  width: 16px;
  height: 16px;
  border: 2px solid rgba(0, 0, 0, 0.15);
  border-top-color: #333;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}
.product-picker {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
  gap: 8px;
  margin-top: 6px;
}
.type-tabs {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  margin: 8px 0 6px;
  padding-bottom: 4px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}
.type-tab {
  flex: 0 0 auto;
  padding: 8px 14px;
  height: 36px;
  background: #fff;
  border: 1px solid #d8d8d8;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 500;
  color: #333;
  cursor: pointer;
  white-space: nowrap;
  line-height: 1;
}
.type-tab:hover {
  border-color: #111;
}
.type-tab.is-active {
  background: #111;
  border-color: #111;
  color: #fff;
}
.product-tile {
  position: relative;
  padding: 0;
  margin: 0;
  background: #f3f4f6;
  border: 1px solid transparent;
  border-radius: 10px;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  cursor: pointer;
  transition: border-color 0.15s;
}
.product-tile > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.product-tile--placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
}
.product-tile-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  font-size: 28px;
  color: #9aa0a6;
}
.product-tile:hover {
  border-color: #111;
}
.product-tile:focus-visible {
  outline: 2px solid #111;
  outline-offset: 2px;
}
.product-tile.is-expanded {
  border-color: #111;
}
.tile-detail {
  grid-column: 1 / -1;
  margin: 4px 0 8px;
  padding: 14px;
  background: #fafbfc;
  border: 1px solid #e2e6ee;
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.product-filter-bar {
  display: flex;
  gap: 8px;
  margin: 8px 0 6px;
  flex-wrap: wrap;
  position: sticky;
  top: 0;
  z-index: 5;
  background: #fff;
  padding: 8px 0;
}
.product-search {
  flex: 1 1 220px;
  min-width: 180px;
  height: 40px;
  padding: 0 12px;
  border: 1px solid #d8d8d8;
  border-radius: 8px;
  background: #fff;
  font-size: 14px;
  color: #222;
}
.product-search:focus,
.product-filter:focus {
  outline: none;
  border-color: #111;
  box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.06);
}
.product-filter {
  flex: 1 1 150px;
  min-width: 140px;
  height: 40px;
  padding: 0 12px;
  border: 1px solid #d8d8d8;
  border-radius: 8px;
  background: #fff;
  font-size: 14px;
  color: #222;
  cursor: pointer;
}
.product-picker-count {
  font-size: 12px;
  color: #666;
  margin: 2px 2px 8px;
}
.product-picker-empty {
  padding: 18px 14px;
  text-align: center;
  color: #777;
  background: #f8f9fa;
  border: 1px dashed #d8d8d8;
  border-radius: 8px;
  font-size: 14px;
}
.product-card-name {
  font-size: 15px;
  font-weight: 600;
  color: #222;
  line-height: 1.35;
}
.product-card-meta {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  align-items: center;
  margin-top: 2px;
}
.product-card-sku {
  font-family: ui-monospace, Menlo, monospace;
  font-size: 11px;
  color: #666;
  background: #f1f1f1;
  padding: 2px 6px;
  border-radius: 4px;
}
.product-card-tag {
  font-size: 11px;
  color: #333;
  background: #eef2ff;
  padding: 2px 8px;
  border-radius: 10px;
  border: 1px solid #dbe3ff;
}
.product-card-badge {
  font-size: 11px;
  color: #fff;
  background: #111;
  padding: 2px 8px;
  border-radius: 10px;
  font-weight: 600;
}
.product-card-hint {
  font-size: 12px;
  color: #777;
  margin-top: 2px;
}
.product-card-qty {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 8px;
  justify-content: flex-end;
}
.qty-btn {
  height: 38px;
  min-width: 38px;
  padding: 0 10px;
  border: 1px solid #ccc;
  background: #fff;
  border-radius: 8px;
  cursor: pointer;
  font-size: 15px;
  font-weight: 600;
  color: #222;
  line-height: 1;
}
.qty-btn:hover {
  background: #f1f1f1;
}
.qty-plus--primary {
  background: #111;
  border-color: #111;
  color: #fff;
  padding: 0 14px;
}
.qty-plus--primary:hover {
  background: #000;
}
.qty-input {
  width: 40px;
  text-align: center;
  border: 1px solid #ddd;
  background: #fff;
  border-radius: 8px;
  height: 38px;
  font-size: 15px;
  font-weight: 700;
  color: #222;
}

/* Roomier tiles as viewport widens */
@media (min-width: 480px) {
  .product-picker {
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 10px;
  }
}
@media (min-width: 720px) {
  .product-picker {
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 12px;
  }
}

/* ===== Same-photo toggle ===== */
.same-photo-control {
  background: #fffbe6;
  border: 1px solid #f0e6a4;
  border-radius: 8px;
  padding: 12px 14px;
}
.same-photo-wrapper {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  margin: 0;
}
.same-photo-wrapper input[type="checkbox"] {
  width: 18px;
  height: 18px;
  cursor: pointer;
}
.same-photo-label {
  font-size: 14px;
  font-weight: 600;
  color: #7a5f00;
}

/* ===== Dynamic slots ===== */
.slots-container {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 8px;
  margin-bottom: 16px;
}
.slot-card {
  margin-bottom: 0 !important;
  padding: 12px 12px 14px;
  background: #fff;
  border: 1px solid #ececec;
  border-radius: 8px;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.slot-card.has-image {
  border-color: #2e7d32;
  box-shadow: 0 0 0 2px rgba(46, 125, 50, 0.08);
}
.slot-card.has-error {
  border-color: #dc3545;
  box-shadow: 0 0 0 2px rgba(220, 53, 69, 0.12);
}
.slot-card.slot-hidden {
  display: none !important;
}
.slot-label {
  display: block !important;
  margin-bottom: 4px !important;
  font-weight: 600;
  color: #222;
  font-size: 14px;
}
.slot-title {
  display: inline;
}
.slot-hint {
  margin: 0 0 8px;
  color: #777;
  font-size: 12px;
}

@media (max-width: 480px) {
  .product-search {
    flex: 1 1 100%;
    width: 100%;
  }
  .product-filter {
    flex: 1 1 calc(50% - 4px);
  }
  .sku-quickadd-row {
    flex-direction: column;
  }
  .sku-quickadd-btn {
    width: 100%;
  }
}

/* Mobile Optimization */
@media (max-width: 768px) {
  .container-layout {
    max-width: 100%;
    padding: 20px 16px;
    margin: 40px auto 20px;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.14),
      0 2px 1px -2px rgba(0, 0, 0, 0.12), 0 1px 3px 0 rgba(0, 0, 0, 0.2);
  }

  .header .title-heading {
    font-size: 22px;
    margin-bottom: 0.75rem;
  }

  .header .description p {
    font-size: 15px;
  }

  .form-control {
    margin-bottom: 1.25rem;
    padding: 0 2px;
  }

  .form-control label {
    font-size: 13px;
  }

  .globo-form-icon {
    width: 38px;
  }

  .form-phone input,
  .form-phone textarea,
  .form-phone select {
    height: 38px;
    padding: 9px 11px;
    font-size: 14px;
  }

  .globo-form-input textarea {
    padding: 9px 11px;
    font-size: 14px;
  }

  .dropzone {
    min-height: 130px;
    padding: 10px;
  }

  .dropzone--placeholder--description {
    font-size: 11px;
  }

  .dropzone--placeholder--button {
    padding: 5px 10px;
    font-size: 13px;
  }

  .dropzone--preview--area {
    max-width: 120px;
  }

  .dropzone--preview--area .img-preview {
    max-width: 120px;
  }

  .dropzone--preview--area .img-preview img {
    max-width: 120px;
    max-height: 120px;
  }

  .gfb__footer [type="button"],
  .gfb__footer [type="submit"] {
    font-size: 14px;
    padding: 10px 18px;
  }

  .modal {
    width: 90%;
    max-width: 400px;
    padding: 16px;
  }
}

/* Extra small mobile devices */
@media (max-width: 480px) {
  .container-layout {
    padding: 16px 12px;
    margin: 20px auto 16px;
  }

  .header .title-heading {
    font-size: 20px;
  }

  .header .description p {
    font-size: 14px;
  }

  .form-control {
    margin-bottom: 1rem;
  }

  .form-control label {
    font-size: 12px;
  }

  .globo-form-icon {
    width: 36px;
  }

  .globo-form-icon svg {
    width: 18px;
    height: 18px;
  }

  .form-phone input,
  .form-phone textarea,
  .form-phone select {
    height: 36px;
    padding: 8px 10px;
    font-size: 14px;
  }

  .globo-form-input textarea {
    padding: 8px 10px;
    font-size: 14px;
  }

  .help-text.globo-description {
    font-size: 11px;
  }

  .radio-wrapper {
    min-height: 22px;
    padding-left: 26px;
  }

  .radio-wrapper .radio-label {
    font-size: 13px;
    line-height: 22px;
  }

  .radio-input ~ .radio-label:before,
  .radio-input ~ .radio-label:after {
    width: 18px;
    height: 18px;
    left: -26px;
  }

  .dropzone {
    min-height: 110px;
    padding: 8px;
  }

  .dropzone--placeholder--description {
    font-size: 11px;
  }

  .dropzone--placeholder--button {
    padding: 4px 8px;
    font-size: 12px;
  }

  .dropzone--preview--area {
    max-width: 100px;
  }

  .dropzone--preview--area .img-preview {
    max-width: 100px;
  }

  .dropzone--preview--area .img-preview img {
    max-width: 100px;
    max-height: 100px;
  }

  .gfb__footer [type="button"],
  .gfb__footer [type="submit"] {
    font-size: 13px;
    padding: 9px 16px;
  }

  .messages {
    font-size: 11px;
  }

  .modal {
    width: 95%;
    padding: 14px;
  }

  .couplepix-close.t4s-drawer__close {
    width: 36px;
    height: 36px;
  }
}
