/* CatCode Quick Order — storefront modal. Self-contained, no framework needed. */

.cc-qo-wrap {
  display: block;
  margin-top: 10px;
}

.cc-qo-open {
  max-width: 100%;
}

.cc-qo-backdrop {
  position: fixed;
  inset: 0;
  z-index: 10500;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: rgba(17, 20, 24, .55);
  overflow-y: auto;
}

.cc-qo-backdrop[hidden] {
  display: none;
}

body.cc-qo-lock {
  overflow: hidden;
}

.cc-qo-dialog {
  position: relative;
  width: 100%;
  max-width: 420px;
  padding: 26px 24px 24px;
  border-radius: 14px;
  background: #fff;
  color: #23272b;
  box-shadow: 0 18px 48px rgba(0, 0, 0, .28);
  font-size: 15px;
  line-height: 1.45;
}

.cc-qo-close {
  position: absolute;
  top: 8px;
  right: 10px;
  width: 34px;
  height: 34px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: #8d949c;
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
}

.cc-qo-close:hover {
  background: #f1f3f5;
  color: #23272b;
}

.cc-qo-title {
  margin: 0 0 6px;
  padding-right: 28px;
  font-size: 20px;
  font-weight: 700;
}

.cc-qo-note {
  margin: 0 0 16px;
  color: #6c757d;
  font-size: 14px;
}

.cc-qo-field {
  margin-bottom: 14px;
}

.cc-qo-label {
  display: block;
  margin-bottom: 5px;
  font-size: 14px;
  font-weight: 600;
}

.cc-qo-req {
  color: #d9534f;
}

.cc-qo-input {
  display: block;
  width: 100%;
  min-height: 44px;
  padding: 9px 12px;
  border: 1px solid #ced4da;
  border-radius: 8px;
  background: #fff;
  color: inherit;
  font: inherit;
}

.cc-qo-input:focus {
  border-color: #6ea8fe;
  outline: 0;
  box-shadow: 0 0 0 3px rgba(110, 168, 254, .25);
}

.cc-qo-input--invalid {
  border-color: #d9534f;
}

textarea.cc-qo-input {
  min-height: 72px;
  resize: vertical;
}

.cc-qo-error {
  min-height: 16px;
  margin-top: 4px;
  color: #d9534f;
  font-size: 13px;
}

.cc-qo-alert {
  margin-bottom: 14px;
  padding: 10px 12px;
  border-radius: 8px;
  background: #fdecea;
  color: #a12622;
  font-size: 14px;
}

.cc-qo-alert[hidden] {
  display: none;
}

.cc-qo-submit {
  display: block;
  width: 100%;
  min-height: 46px;
  padding: 11px 16px;
  border: 0;
  border-radius: 8px;
  background: #f0ad4e;
  color: #23272b;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.cc-qo-submit:hover {
  background: #ec9c2d;
}

.cc-qo-submit:disabled {
  opacity: .65;
  cursor: default;
}

.cc-qo-done {
  padding: 18px 4px 6px;
  color: #1e7e34;
  font-size: 16px;
  text-align: center;
}

.cc-qo-done[hidden] {
  display: none;
}

/* Honeypot: reachable for a bot parsing the DOM, invisible to a human. */
.cc-qo-hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

@media (max-width: 480px) {
  .cc-qo-dialog {
    padding: 22px 16px 18px;
  }

  .cc-qo-title {
    font-size: 18px;
  }
}

/* OpenCart 3 default theme: the listing card button sits under .button-group. */
.product-thumb .cc-qo-wrap {
  margin-top: 0;
  padding: 0 10px 10px;
}

.cc-qo-open--card {
  width: 100%;
}
