/* UP Makine v2 teklif modalı — uydu siteler */
html.up-scroll-lock {
  overflow: hidden;
}

html.up-scroll-lock body {
  overflow: hidden;
}

.product-detail__quote {
  --pd-accent: var(--up-green, #9fc040);
  --pd-accent-hover: var(--up-green-dark, #8aad36);
  position: fixed;
  inset: 0;
  width: 100%;
  max-width: 100%;
  height: 100%;
  max-height: 100dvh;
  margin: 0;
  border: none;
  padding: max(0.5rem, env(safe-area-inset-top, 0px)) 0.5rem max(0.5rem, env(safe-area-inset-bottom, 0px));
  box-sizing: border-box;
  background: transparent;
  overflow: hidden;
  overscroll-behavior: contain;
}

.product-detail__quote[open] {
  z-index: 10000;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.product-detail__quote::backdrop {
  background: rgba(15, 23, 42, 0.5);
  backdrop-filter: blur(4px);
}

@media (max-width: 1023px) {
  .product-detail__quote::backdrop {
    backdrop-filter: none;
    background: rgba(15, 23, 42, 0.58);
  }
}

.product-detail__quote-panel {
  display: flex;
  flex-direction: column;
  width: min(32rem, 100%);
  height: auto;
  max-height: min(88dvh, 40rem);
  min-height: 0;
  background: #fff;
  border-radius: 1.125rem;
  border: 1px solid #e2e8f0;
  box-shadow: 0 28px 60px -24px rgba(15, 23, 42, 0.35);
  overflow: hidden;
}

.product-detail__quote-scroll {
  flex: 0 1 auto;
  min-height: 0;
  max-height: calc(min(88dvh, 40rem) - 8.75rem);
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  touch-action: pan-y;
  scrollbar-width: thin;
  scrollbar-color: #94a3b8 #f1f5f9;
}

.product-detail__quote[data-quote-mode="sales"] .product-detail__quote-panel {
  width: min(28rem, 100%);
  max-height: min(94dvh, 42rem);
}

.product-detail__quote-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: flex-end;
  align-items: center;
  flex-shrink: 0;
  padding: 0.75rem 1rem;
  border-top: 1px solid #e2e8f0;
  background: #f8fafc;
}

.product-detail__quote-field--full {
  grid-column: 1 / -1;
}

.product-detail__quote-date-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
}

.product-detail__quote-date-col {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  min-width: 0;
}

.product-detail__quote-date-sublabel {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #64748b;
}

.product-detail__quote-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 1rem 1rem 0.75rem;
  border-bottom: 1px solid #f1f5f9;
  flex-shrink: 0;
}

.product-detail__quote-head-text {
  min-width: 0;
}

.product-detail__quote-title {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 800;
  color: #0f172a;
  letter-spacing: -0.02em;
  line-height: 1.25;
}

.product-detail__quote-lead {
  margin: 0.35rem 0 0;
  font-size: 0.8rem;
  line-height: 1.45;
  color: #64748b;
}

.product-detail__quote-grid {
  display: grid;
  gap: 0.65rem;
}

.product-detail__quote-grid--2 {
  grid-template-columns: 1fr;
}

@media (min-width: 480px) {
  .product-detail__quote-grid--2 {
    grid-template-columns: 1fr 1fr;
  }
}

.product-detail__quote-x {
  flex-shrink: 0;
  width: 2.25rem;
  height: 2.25rem;
  border: none;
  border-radius: 0.5rem;
  background: #f1f5f9;
  color: #475569;
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.product-detail__quote-x:hover {
  background: #e2e8f0;
  color: #0f172a;
}

.product-detail__quote-form {
  padding: 0.85rem 1rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.product-detail__quote-field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.product-detail__quote-label {
  font-size: 0.8125rem;
  font-weight: 700;
  color: #334155;
}

.product-detail__quote-input {
  width: 100%;
  box-sizing: border-box;
  border-radius: 0.6rem;
  border: 1px solid #e5e7eb;
  background: #fafafa;
  padding: 0.62rem 0.75rem;
  font-size: 0.9375rem;
  color: #0f172a;
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
  font-family: inherit;
}

.product-detail__quote-input::placeholder {
  color: #94a3b8;
}

.product-detail__quote-input:focus {
  border-color: var(--pd-accent);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(159, 192, 64, 0.18);
}

.product-detail__quote-input--textarea {
  resize: vertical;
  min-height: 4.5rem;
}

.product-detail__quote-input--select {
  cursor: pointer;
  min-height: 2.65rem;
  padding-right: 2rem;
}

.product-detail__quote-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.55rem;
  padding: 0 1.1rem;
  border-radius: 0.6rem;
  font-size: 0.875rem;
  font-weight: 800;
  cursor: pointer;
  border: 1px solid transparent;
  font-family: inherit;
}

.product-detail__quote-btn--ghost {
  background: #fff;
  border-color: #e5e7eb;
  color: #334155;
}

.product-detail__quote-btn--ghost:hover {
  border-color: var(--pd-accent);
  color: var(--pd-accent-hover);
  background: #f8fafc;
}

.product-detail__quote-btn--primary {
  min-width: min(100%, 12rem);
  padding: 0 1.75rem;
  background: var(--pd-accent);
  border-color: rgba(159, 192, 64, 0.35);
  color: #fff;
  box-shadow: 0 8px 22px -12px rgba(159, 192, 64, 0.45);
}

.product-detail__quote-btn--primary:hover {
  background: var(--pd-accent-hover);
  border-color: rgba(138, 173, 54, 0.45);
}

.product-detail__quote-btn--primary:disabled {
  opacity: 0.65;
  cursor: not-allowed;
}

/* v2 */
.product-detail__quote--sales-v2 .product-detail__quote-panel {
  width: auto;
  border: none;
  box-shadow: none;
}

.product-detail__quote--sales-v2 .product-detail__quote-panel--v2-grid {
  display: flex;
  flex-direction: column;
  width: min(32rem, 100%);
  max-width: 100%;
  height: auto;
  max-height: min(92dvh, 42rem);
  min-height: 0;
  padding: 0;
  overflow: hidden;
  border-radius: 1.25rem;
  background: #fff;
  border: 1px solid #e2e8f0;
  box-shadow: 0 28px 60px -24px rgba(15, 23, 42, 0.35);
}

.product-detail__quote--sales-v2 .product-detail__quote-main {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  background: #fff;
}

.product-detail__quote-head--v2 {
  flex-shrink: 0;
  align-items: flex-start;
  padding: 1.1rem 1.15rem 0.85rem;
  border-bottom: 1px solid #f1f5f9;
  gap: 0.75rem;
}

.product-detail__quote-head-brand {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  flex: 1;
  min-width: 0;
  text-align: left;
}

.product-detail__quote-head--v2 .product-detail__quote-head-text {
  flex: 1;
  min-width: 0;
  text-align: left;
  padding-top: 0;
}

.product-detail__quote-head-icon {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 0.85rem;
  background: rgba(159, 192, 64, 0.12);
  color: var(--pd-accent);
}

.product-detail__quote-head-icon--img {
  width: 4.25rem;
  height: 4.25rem;
  background: transparent;
  border-radius: 0;
}

.product-detail__quote-head-icon--img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.product-detail__quote--sales-v2 .product-detail__quote-head--v2 .product-detail__quote-title {
  font-size: 1.35rem;
  color: #0f172a;
  text-align: left;
}

.product-detail__quote-title-main {
  color: var(--pd-accent);
}

.product-detail__quote-title-suffix {
  color: #0f172a;
}

.product-detail__quote--sales-v2 .product-detail__quote-head--v2 .product-detail__quote-lead {
  text-align: left;
  color: #0f172a;
}

.product-detail__quote-head--v2 .product-detail__quote-x {
  margin-left: auto;
  flex-shrink: 0;
}

.product-detail__quote--sales-v2 .product-detail__quote-scroll {
  flex: 1 1 auto;
  min-height: 0;
  max-height: none;
  overflow-x: hidden;
  overflow-y: auto;
}

.product-detail__quote-form--v2 {
  padding-top: 0.65rem;
  gap: 0.85rem;
}

.product-detail__quote-input-wrap {
  position: relative;
  display: flex;
  align-items: stretch;
}

.product-detail__quote-input-icon {
  position: absolute;
  left: 0.85rem;
  top: 50%;
  transform: translateY(-50%);
  display: inline-flex;
  color: #94a3b8;
  pointer-events: none;
  z-index: 1;
}

.product-detail__quote-input--icon {
  padding-left: 2.65rem !important;
  min-height: 2.85rem;
  border-radius: 0.75rem !important;
  background: #fff !important;
}

.product-detail__quote-input-wrap--select .product-detail__quote-input--select {
  appearance: none;
  width: 100%;
  padding-left: 0.85rem;
  padding-right: 2.5rem;
  min-height: 2.85rem;
  border-radius: 0.75rem;
  background: #f8fafc;
  font-size: 0.875rem;
  font-weight: 700;
  color: #0f172a;
}

.product-detail__quote-input-chevron {
  position: absolute;
  right: 0.85rem;
  top: 50%;
  transform: translateY(-50%);
  display: inline-flex;
  color: #94a3b8;
  pointer-events: none;
  z-index: 1;
}

.product-detail__quote-product--v2 {
  display: flex;
  align-items: center;
  width: 100%;
  min-height: 2.85rem;
  padding: 0.7rem 2.5rem 0.7rem 0.85rem;
  border-radius: 0.75rem;
  border: 1px solid #e5e7eb;
  background: #f8fafc;
  font-size: 0.875rem;
  font-weight: 700;
  color: #0f172a;
  box-sizing: border-box;
}

.product-detail__quote-optional {
  font-weight: 600;
  color: #94a3b8;
  text-transform: none;
  letter-spacing: 0;
  font-size: 0.78rem;
}

.product-detail__quote-date-pair--v2 {
  align-items: end;
  grid-template-columns: 1fr auto 1fr;
}

.product-detail__quote-date-sep {
  padding-bottom: 0.75rem;
  color: #94a3b8;
  font-weight: 700;
}

.product-detail__quote-privacy {
  display: flex;
  align-items: flex-start;
  gap: 0.45rem;
  margin: 0 1rem 0.85rem;
  padding: 0.55rem 0.65rem;
  border-radius: 0.55rem;
  background: #f8fafc;
  font-size: 0.72rem;
  line-height: 1.45;
  color: #64748b;
}

.product-detail__quote-privacy svg {
  flex-shrink: 0;
  margin-top: 0.1rem;
  color: #94a3b8;
}

.product-detail__quote-status {
  margin: 0 1rem 0.85rem;
  padding: 0.55rem 0.75rem;
  border-radius: 0.55rem;
  font-size: 0.8125rem;
  line-height: 1.45;
  background: rgba(159, 192, 64, 0.12);
  color: #4d5f1a;
}

.product-detail__quote-status.is-err {
  background: rgba(239, 68, 68, 0.1);
  color: #dc2626;
}

.product-detail__quote-footer--v2 {
  flex-shrink: 0;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.85rem 1rem max(1rem, env(safe-area-inset-bottom, 0px));
  background: #fff;
  border-top: 1px solid #f1f5f9;
}

.product-detail__quote-btn--send {
  flex: 1;
  min-height: 2.85rem;
  gap: 0.45rem;
  border-radius: 0.75rem;
  font-size: 0.95rem;
}

.product-detail__quote--sales-v2[open] .product-detail__quote-panel--v2-grid {
  width: min(32rem, calc(100vw - 1rem));
}

@media (max-width: 767px) {
  .product-detail__quote--sales-v2 .product-detail__quote-panel--v2-grid {
    width: 100%;
    max-height: calc(100dvh - 1rem - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px));
  }

  .product-detail__quote--sales-v2 .product-detail__quote-scroll {
    flex: 1 1 auto;
    min-height: 0;
    max-height: none;
    padding-bottom: 0.25rem;
  }

  .product-detail__quote-head-icon {
    width: 3rem;
    height: 3rem;
  }

  .product-detail__quote-head-icon--img {
    width: 3.5rem;
    height: 3.5rem;
  }

  .product-detail__quote-footer--v2 {
    flex-direction: column-reverse;
  }

  .product-detail__quote-footer--v2 .product-detail__quote-btn--ghost,
  .product-detail__quote-footer--v2 .product-detail__quote-btn--send {
    width: 100%;
  }

  .product-detail__quote input:not([type="hidden"]),
  .product-detail__quote textarea,
  .product-detail__quote select {
    font-size: 16px;
  }
}
