.enquiry-page:has([data-quote-worktops]) {
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(14px, 2vw, 24px);
}

.quote-page-title h1 {
  margin-bottom: 0;
}

.quote-form:has([data-quote-worktops]) {
  width: 100%;
  min-width: 0;
}

.quote-form .quote-project-details {
  margin-block: 28px 22px;
}

.quote-worktops-bar {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  flex-wrap: wrap;
  gap: 10px 18px;
}

.quote-worktops-bar h2,
.quote-contact-heading,
.quote-project-details h3 {
  font-size: clamp(21px, 2vw, 26px);
  margin: 0 0 8px;
}

.quote-worktops-bar h2 {
  margin: 0;
}

.quote-contact-heading {
  margin-top: 28px;
}

.quote-form .quote-worktops > .form-note {
  text-align: left;
}

.quote-worktop {
  min-inline-size: 0;
  margin: 18px 0 12px;
  padding: 12px clamp(12px, 2vw, 22px) 10px;
  background: #fff;
  border: 1px solid #ded3e7;
  border-radius: 6px;
}

.quote-worktop legend {
  padding: 0 7px;
  color: var(--purple, #4d1984);
  font-weight: 700;
}

.quote-worktop-fields {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.quote-worktop-fields label {
  min-width: 0;
}

.quote-worktop-fields input {
  min-width: 0;
}

.quote-form .quote-worktop-control {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 5px 14px;
  border: 1px solid #cbbbd9;
  border-radius: 4px;
  background: #fff;
  color: #4d1984;
  font: inherit;
  font-weight: 650;
  cursor: pointer;
}

.quote-form .quote-worktop-control span {
  font-size: 21px;
  line-height: 1;
}

.quote-form .quote-worktop-control:hover:not(:disabled) {
  border-color: currentColor;
  color: #007013;
}

.quote-form .quote-worktop-control:disabled {
  cursor: default;
}

.quote-form [data-add-worktop] {
  background: #4d1984;
  border-color: #4d1984;
  color: #fff;
}

.quote-form [data-add-worktop]:hover:not(:disabled) {
  background: #3a1164;
  border-color: #3a1164;
  color: #fff;
}

.quote-worktops [data-worktop-status]:empty {
  margin: 0;
}

.quote-chat-launch {
  position: fixed;
  right: max(16px, env(safe-area-inset-right));
  bottom: max(16px, env(safe-area-inset-bottom));
  z-index: 1000;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 8px 14px;
  border: 1px solid #4d1984;
  border-radius: 24px;
  background: #fff;
  color: #4d1984;
  font: inherit;
  font-weight: 650;
  text-decoration: none;
  box-shadow: 0 4px 20px #24103222;
  cursor: pointer;
}

.quote-chat-launch:hover:not(:disabled) {
  background: #4d1984;
  color: #fff;
}

.quote-chat-launch:disabled {
  cursor: wait;
}

@media (max-width: 560px) {
  .quote-worktop-fields {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 10px;
  }

  .quote-worktop-fields label:first-child {
    grid-column: 1 / -1;
  }

  .quote-form:has([data-quote-worktops]) .form-row {
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
  }
}
