:root { --layout-unit: 1vw; --header-unit: 1vw; --site-header-height: 72px; --site-font: "Noto Sans SC", "Noto Sans", sans-serif; }
/* Product inquiry and quote actions share the PSD's orange and navy palette. */
.detail-product-actions {
  position: absolute;
  left: -0.052083vw;
  left: calc(-.052083vw);
  left: calc(-.052083 * var(--layout-unit));
  top: 30.829792vw;
  top: calc(30.82979vw);
  top: calc(30.82979 * var(--layout-unit));
  display: flex;
  flex-wrap: wrap;
  gap: 0.833333vw;
  gap: calc(.83333vw);
  gap: calc(.83333 * var(--layout-unit));
}

.detail-product-actions .detail-contact-button {
  position: static;
  left: auto;
  top: auto;
  flex-shrink: 0;
}

.detail-product-actions .detail-quote-button {
  width: 14.583333vw;
  width: calc(14.58333vw);
  width: calc(14.58333 * var(--layout-unit));
  border: 1px solid #ee8301;
  background: transparent;
  color: #d97600;
}

.detail-product-actions .detail-quote-button:hover {
  background: #fff1df;
}

.orps-inquiry-dialog {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  width: 560px;
  max-width: calc(100vw - 32px);
  max-height: calc(100vh - 40px);
  max-height: calc(100dvh - 40px);
  margin: auto;
  padding: 32px;
  overflow: auto;
  border: 0;
  border-top: 4px solid #ee8301;
  border-radius: 12px;
  background: #fff;
  color: #333;
  box-shadow: 0 18px 80px rgba(0,26,61,0.2);
  font: 400 15px / 1.6 "Noto Sans SC", 'Microsoft YaHei', sans-serif;
}

.orps-inquiry-dialog::-ms-backdrop {
  background: rgba(2, 20, 42, 0.65);
}

.orps-inquiry-dialog::backdrop {
  background: rgba(2, 20, 42, 0.65);
}

.orps-inquiry-dialog h2 {
  margin: 0 32px 24px 0;
  color: #023b80;
  font-size: 26px;
}

.orps-inquiry-dialog .orps-dialog-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #59636f;
  font: 30px / 1 sans-serif;
  cursor: pointer;
}

.orps-inquiry-product {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 24px;
  padding-bottom: 20px;
  border-bottom: 1px solid #e5e9ef;
}

.orps-inquiry-product img {
  flex: 0 0 96px;
  width: 96px;
  height: 96px;
  object-fit: cover;
}

.orps-inquiry-product h3 {
  margin: 0 0 8px;
  font-size: 18px;
}

.orps-inquiry-product p {
  margin: 0;
  color: #777;
  font-size: 14px;
}

.orps-inquiry-dialog label {
  display: block;
  margin-bottom: 18px;
}

.orps-inquiry-dialog label>span {
  display: block;
  margin-bottom: 7px;
}

.orps-inquiry-dialog input,
.orps-inquiry-dialog textarea {
  display: block;
  width: 100%;
  padding: 11px 12px;
  border: 1px solid #ccd3dd;
  border-radius: 5px;
  background: #fff;
  color: #333;
  font: inherit;
}

.orps-inquiry-dialog textarea {
  min-height: 120px;
  resize: vertical;
}

.orps-action-primary,
.orps-action-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 22px;
  border: 1px solid #ee8301;
  border-radius: 5px;
  background: #ee8301;
  color: #fff;
  font: inherit;
  cursor: pointer;
  -webkit-text-decoration: none;
  text-decoration: none;
}

.orps-action-secondary {
  border-color: #ccd3dd;
  background: #fff;
  color: #555;
}

.orps-dialog-actions {
  display: flex;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.orps-preview-note,
.orps-inquiry-status {
  font-size: 13px;
  color: #777;
}

.orps-quote-row {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 20px;
  padding-bottom: 20px;
  border-bottom: 1px solid #e5e9ef;
}

.orps-quote-row img {
  width: 72px;
  height: 72px;
  object-fit: cover;
}

.orps-quote-row .orps-quote-info {
  flex: 1;
  min-width: 0;
}

.orps-quote-row input {
  width: 80px;
  margin-top: 8px;
}

.orps-quote-remove {
  border: 0;
  background: transparent;
  color: #777;
  -webkit-text-decoration: underline;
  text-decoration: underline;
  cursor: pointer;
}

@media(max-width:1199px) {
  .detail-product-actions {
    position: static;
    gap: 12px;
    margin-top: 28px;
  }

  .detail-product-actions .detail-contact-button {
    flex: 1 1 190px;
    width: auto;
    margin: 0;
  }

  .detail-product-actions .detail-quote-button {
    flex-basis: 220px;
  }
}

@media(max-width:575px) {
  .orps-inquiry-dialog {
    padding: 24px 20px;
  }

  .orps-inquiry-product {
    gap: 14px;
  }
}

/* Refined inquiry controls and a clipped dialog surface on all screen sizes. */
.detail-product-actions .detail-contact-button {
  gap: 0.572917vw;
  gap: calc(.57292vw);
  gap: calc(.57292 * var(--layout-unit));
  border: 1px solid transparent;
  font-size: 1.09375vw;
  font-size: calc(1.09375vw);
  font-size: calc(1.09375 * var(--layout-unit));
  font-weight: 500;
  letter-spacing: 0.04em;
  box-shadow: 0 5px 16px rgba(238, 131, 1, 0.14);
  background: linear-gradient(135deg, #f69b19, #ee8301);
  transition: box-shadow 220ms ease, transform 220ms ease, background-color 220ms ease;
}

.detail-product-actions .detail-contact-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(238, 131, 1, 0.24);
}

.detail-product-actions .detail-contact-button:active {
  transform: translateY(0);
}

.detail-product-actions .detail-quote-button {
  border-color: #e7a44e;
  background: #fffaf3;
  box-shadow: none;
  color: #b96500;
}

.detail-product-actions .detail-quote-button:hover {
  background: #fff1de;
  box-shadow: 0 6px 16px rgba(74, 47, 13, 0.08);
}

.orps-inquiry-dialog {
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  width: 580px;
  height: -webkit-fit-content;
  height: fit-content;
  max-width: calc(100vw - 32px);
  max-height: calc(820px);
  max-height: calc(min(820px, 100vh - 48px));
  max-height: calc(820px);
  max-height: calc(min(820px, 100dvh - 48px));
  padding: 0;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: 16px;
  background: #fff;
  background-clip: padding-box;
  box-shadow: 0 24px 90px rgba(0, 15, 38, 0.28);
  isolation: isolate;
}

.orps-inquiry-dialog[open] {
  display: flex;
  flex-direction: column;
}

.orps-inquiry-dialog::-ms-backdrop {
  background: rgba(3, 18, 37, 0.58);
}

.orps-inquiry-dialog::backdrop {
  background: rgba(3, 18, 37, 0.58);
}

.orps-dialog-content {
  min-width: 0;
  min-height: 0;
  max-height: calc(818px);
  max-height: calc(min(818px, 100vh - 50px));
  max-height: calc(818px);
  max-height: calc(min(818px, 100dvh - 50px));
  padding: 30px 32px;
  overflow-x: hidden;
  overflow-y: auto;
  -ms-scroll-chaining: none;
      overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: #ced6e0 transparent;
  border-radius: inherit;
  background: #fff;
}

.orps-inquiry-dialog h2 {
  margin: 0 36px 22px 0;
  color: #143657;
  font-size: 25px;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: 0.02em;
}

.orps-inquiry-dialog .orps-dialog-close {
  z-index: 3;
  top: 17px;
  right: 18px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #f2f5f8;
  color: #667383;
  font-size: 24px;
  transition: background-color 180ms ease, color 180ms ease;
}

.orps-inquiry-dialog .orps-dialog-close:hover {
  background: #e7edf3;
  color: #143657;
}

.orps-inquiry-product {
  gap: 16px;
  margin: 0 0 23px;
  padding: 14px;
  border: 1px solid #e9edf2;
  border-radius: 10px;
  background: #f7f9fc;
}

.orps-inquiry-product img {
  flex: 0 0 76px;
  width: 76px;
  height: 76px;
  border-radius: 7px;
}

.orps-inquiry-product>div {
  min-width: 0;
  overflow: hidden;
}

.orps-inquiry-product h3 {
  margin: 0 0 6px;
  font-size: 17px;
  font-weight: 500;
  line-height: 1.5;
  word-wrap: anywhere;
}

.orps-inquiry-product p {
  display: -webkit-box;
  max-height: 42px;
  margin: 0;
  overflow: hidden;
  font-size: 13px;
  line-height: 21px;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.orps-inquiry-dialog label {
  margin-bottom: 17px;
  color: #485769;
  font-size: 14px;
}

.orps-inquiry-dialog label>span {
  margin-bottom: 8px;
}

.orps-inquiry-dialog input,
.orps-inquiry-dialog textarea {
  max-width: 100%;
  padding: 11px 13px;
  border-color: #dce2ea;
  border-radius: 7px;
  color: #263c52;
  font-size: 15px;
  line-height: 1.6;
  transition: border-color 180ms ease, box-shadow 180ms ease;
}

.orps-inquiry-dialog input:focus,
.orps-inquiry-dialog textarea:focus {
  outline: 0;
  border-color: #eea144;
  box-shadow: 0 0 0 3px rgba(238, 131, 1, 0.09);
}

.orps-inquiry-dialog textarea {
  height: 116px;
  min-height: 100px;
  resize: vertical;
}

.orps-inquiry-dialog .orps-action-primary {
  min-height: 46px;
  border: 0;
  border-radius: 7px;
  background: linear-gradient(135deg, #f69b19, #ee8301);
  font-size: 15px;
  font-weight: 500;
  transition: -webkit-filter 180ms ease;
  transition: filter 180ms ease;
  transition: filter 180ms ease, -webkit-filter 180ms ease;
}

.orps-inquiry-dialog .orps-action-primary:hover {
  -webkit-filter: brightness(1.04);
          filter: brightness(1.04);
}

.orps-inquiry-dialog form>.orps-action-primary {
  width: 100%;
  margin-top: 7px;
}

.orps-preview-note {
  margin: 0 0 12px;
  color: #8993a0;
  font-size: 12px;
  line-height: 1.6;
}

.orps-inquiry-status:empty {
  display: none;
}

@media(max-width: 1199px) {
  .detail-product-actions .detail-contact-button {
    gap: 10px;
    font-size: 18px;
  }
}

@media(max-width: 575px) {
  .orps-inquiry-dialog {
    max-width: calc(100vw - 24px);
    max-height: calc(100vh - 24px);
    max-height: calc(100dvh - 24px);
    border-radius: 12px;
  }

  .orps-dialog-content {
    max-height: calc(100vh - 26px);
    max-height: calc(100dvh - 26px);
    padding: 24px 20px;
  }

  .orps-inquiry-dialog h2 {
    font-size: 22px;
  }

  .orps-inquiry-product img {
    flex-basis: 64px;
    width: 64px;
    height: 64px;
  }
}

@media(prefers-reduced-motion: reduce) {

  .detail-product-actions .detail-contact-button,
  .orps-inquiry-dialog input,
  .orps-inquiry-dialog textarea {
    transition: none;
  }
}

