.site-quote.quote-app {
  width: 1200px;
  max-width: 1200px;
  margin: 0 auto;
}

/* quote.css uses border-box for its standalone page; restore the site's
   original content-box sizing for the shared header on the embedded page. */
.head_main,
.head_main *,
.top_main,
.top_main *,
.nav_main,
.nav_main * {
  box-sizing: content-box;
}

.site-quote .partner-picker {
  display: grid;
  grid-template-columns: 88px minmax(260px, 420px) 1fr;
  align-items: center;
  gap: 14px;
  margin: 0 0 22px;
  padding: 16px 18px;
  border: 1px solid #e5e8f1;
  border-radius: 8px;
  background: #f7f8fc;
}

.site-quote .partner-picker label {
  font-size: 16px;
  font-weight: 700;
}

.site-quote .partner-picker select {
  width: 100%;
  height: 44px;
  padding: 0 38px 0 12px;
  border: 1px solid #d9ddea;
  border-radius: 6px;
  background: #fff;
  color: #333;
  font-size: 15px;
}

.site-quote #partnerCompany {
  color: #777;
  font-size: 14px;
}

.site-quote .quote-section {
  margin-top: 20px;
  padding: 0 0 18px;
  border-bottom: 1px solid #eceef4;
}

.site-quote .quote-section:last-child {
  border-bottom: 0;
}

.site-quote .quote-group {
  margin-top: 18px;
}

.site-quote .quote-group h3 {
  margin: 0 0 10px;
  color: #333;
  font-size: 16px;
  font-weight: 700;
}

.site-quote .quote-field {
  display: block;
}

.site-quote .quote-field > span {
  display: block;
  margin: 0 0 6px 2px;
  color: #555;
  font-size: 14px;
}

.site-quote .quote-field select,
.site-quote .quote-choice {
  width: 100%;
  height: 49px;
  padding: 0 12px;
  border: 1px solid #dfe2e9;
  border-radius: 7px;
  background: #fff;
  color: #444;
  font-size: 15px;
}

.site-quote .quote-choice {
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  text-align: left;
}

.site-quote .quote-choice i {
  width: 8px;
  height: 8px;
  margin: -4px 3px 0 16px;
  border-right: 1px solid #777;
  border-bottom: 1px solid #777;
  transform: rotate(45deg);
}

.site-quote .quote-choice-value {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.site-quote .quote-choice-value.is-placeholder {
  color: #aaa;
}

.site-quote .quote-field select:disabled,
.site-quote .quote-choice:disabled {
  color: #999;
  background: #f6f6f6;
  cursor: not-allowed;
}

.site-quote .quote-tabs {
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

body.quote-picker-open {
  overflow: hidden;
}

.quote-picker {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.quote-picker.is-hidden {
  display: none;
}

.quote-picker-mask {
  position: absolute;
  inset: 0;
  background: rgba(18, 22, 34, .56);
}

.quote-picker-panel {
  position: relative;
  display: flex;
  flex-direction: column;
  width: min(900px, 92vw);
  max-height: min(720px, 88vh);
  overflow: hidden;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 18px 60px rgba(20, 28, 56, .22);
}

.quote-picker-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 58px;
  padding: 0 20px;
  border-bottom: 1px solid #e8eaf0;
}

.quote-picker-head h3 {
  margin: 0;
  font-size: 18px;
}

.quote-picker-head button {
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 50%;
  background: #f0f2f7;
  color: #7d8495;
  font-size: 22px;
  cursor: pointer;
}

.quote-picker-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  overflow-y: auto;
  padding: 18px 20px;
  background: #f5f6fa;
}

.quote-picker-item {
  position: relative;
  display: grid;
  grid-template-columns: 132px 1fr 24px;
  align-items: center;
  gap: 14px;
  min-height: 112px;
  padding: 10px;
  border: 2px solid transparent;
  border-radius: 9px;
  background: #fff;
  color: #333;
  cursor: pointer;
  text-align: left;
}

.quote-picker-item:hover,
.quote-picker-item.selected {
  border-color: #5368b7;
  background: #f1f4ff;
}

.picker-image {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 132px;
  height: 92px;
  overflow: hidden;
  border-radius: 6px;
  background: #eef0f5;
}

.picker-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.picker-image-empty {
  color: #a0a5b1;
  font-size: 13px;
}

.picker-copy strong,
.picker-copy em,
.picker-copy small {
  display: block;
}

.picker-copy strong {
  font-size: 16px;
}

.picker-copy em {
  margin-top: 7px;
  color: #777;
  font-style: normal;
}

.picker-copy small {
  margin-top: 8px;
  color: #777;
}

.picker-copy small b {
  color: #e43e38;
  font-size: 16px;
}

.picker-check {
  color: transparent;
  font-size: 23px;
  font-weight: 700;
}

.quote-picker-item.selected .picker-check {
  color: #4c60ad;
}

.quote-picker-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  padding: 14px 20px;
  border-top: 1px solid #e8eaf0;
}

.quote-picker-actions button {
  min-width: 112px;
  height: 42px;
  border-radius: 6px;
  font-size: 15px;
  cursor: pointer;
}

.picker-cancel {
  border: 1px solid #d7dbe5;
  background: #fff;
  color: #555;
}

.picker-confirm {
  border: 1px solid #4c60ad;
  background: #4c60ad;
  color: #fff;
}

.picker-confirm:disabled {
  border-color: #aeb6d7;
  background: #aeb6d7;
  cursor: not-allowed;
}

@media (max-width: 760px) {
  .site-quote.quote-app {
    width: auto;
    padding-right: 12px;
    padding-left: 12px;
  }

  .site-quote .partner-picker {
    grid-template-columns: 72px 1fr;
  }

  .site-quote #partnerCompany {
    display: none;
  }

  .site-quote .section-grid,
  .site-quote .custom-row {
    grid-template-columns: 1fr 1fr;
  }

  .quote-picker {
    align-items: flex-end;
    padding: 0;
  }

  .quote-picker-panel {
    width: 100%;
    max-height: 82vh;
    border-radius: 14px 14px 0 0;
  }

  .quote-picker-options {
    grid-template-columns: 1fr;
    padding: 10px 12px;
  }

  .quote-picker-item {
    grid-template-columns: 138px 1fr 24px;
    min-height: 116px;
  }
}
