.websin-order-form {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(400px, 1fr);
  gap: 28px;
  align-items: start;
  max-width: 1600px;
  margin: 0 auto;
  color: #1a3a4a;
}

.websin-order-stepper {
  grid-column: 1 / -1;
  padding: 12px;
  border: 1px solid rgba(26, 58, 74, 0.14);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 10px 28px rgba(26, 58, 74, 0.05);
  scroll-margin-top: 96px;
}

.websin-order-stepper ol {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.websin-order-stepper li {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  padding: 11px 13px;
  border: 1px solid transparent;
  border-radius: 9px;
  background: #f5f7f8;
  color: #697980;
  font-size: 0.92rem;
  font-weight: 600;
  transition: border-color 150ms ease, background-color 150ms ease, color 150ms ease;
}

.websin-order-stepper li.is-active {
  border-color: rgba(31, 158, 216, 0.32);
  background: #eaf6fb;
  color: #1a3a4a;
}

.websin-order-stepper li.is-complete {
  color: #315d70;
}

.websin-order-step-number {
  display: inline-grid;
  flex: 0 0 auto;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #dce4e8;
  color: #52646d;
  font-size: 0.85rem;
  font-weight: 700;
}

.websin-order-stepper li.is-active .websin-order-step-number,
.websin-order-stepper li.is-complete .websin-order-step-number {
  background: #1f9ed8;
  color: #fff;
}

.websin-order-main {
  display: grid;
  gap: 24px;
  min-width: 0;
}

.websin-order-step-actions {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.websin-order-step[hidden],
.websin-order-step-button[hidden],
.websin-order-submit[hidden] {
  display: none;
}

.websin-order-step-button {
  min-height: 48px;
  padding: 0 22px;
  border-radius: 7px;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.websin-order-step-back {
  border: 1px solid rgba(26, 58, 74, 0.24);
  background: #fff;
  color: #1a3a4a;
}

.websin-order-step-next {
  margin-left: auto;
  border: 1px solid #1f9ed8;
  background: #1f9ed8;
  color: #fff;
}

.websin-order-step-button:hover:not(:disabled) {
  border-color: #0e92e6;
}

.websin-order-step-next:hover:not(:disabled) {
  background: #0e92e6;
}

.websin-order-step-button:focus-visible {
  outline: 3px solid rgba(31, 158, 216, 0.24);
  outline-offset: 2px;
}

.websin-order-step-button:disabled {
  border-color: #aeb9be;
  background: #dfe5e8;
  color: #74838a;
  cursor: not-allowed;
}

.websin-order-step-validation {
  margin: 0;
  padding: 12px 14px;
  border-left: 3px solid #b42318;
  border-radius: 7px;
  background: #fdecec;
  color: #7a1c1c;
  font-size: 0.92rem;
  line-height: 1.45;
}

.websin-order-field input[aria-invalid="true"],
.websin-order-field select[aria-invalid="true"] {
  border-color: #b42318;
  box-shadow: 0 0 0 3px rgba(180, 35, 24, 0.12);
}

.websin-order-check input[aria-invalid="true"] {
  outline: 2px solid #b42318;
  outline-offset: 2px;
}

.websin-order-section {
  display: grid;
  gap: 20px;
  padding: 26px;
  border: 1px solid rgba(26, 58, 74, 0.14);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 12px 34px rgba(26, 58, 74, 0.06);
}

.websin-order-section h2,
.websin-order-section h3 {
  margin: 0;
}

.websin-order-section h2 {
  color: #1a3a4a;
  font-size: clamp(1.35rem, 2vw, 1.65rem);
}

.websin-order-bundle-details {
  overflow: hidden;
  border: 1px solid rgba(26, 58, 74, 0.14);
  border-radius: 8px;
  background: #f4f9fc;
}

.websin-order-bundle-details summary {
  padding: 14px 16px;
  color: #263f4b;
  font-weight: 650;
  cursor: pointer;
}

.websin-order-bundle-details summary::marker {
  color: #1f9ed8;
}

.websin-order-bundle-details[open] summary {
  border-bottom: 1px solid rgba(26, 58, 74, 0.12);
}

.websin-order-bundle-details summary:focus-visible {
  outline: 2px solid #1f9ed8;
  outline-offset: -3px;
}

[data-bundle-description]:not(:empty) {
  display: grid;
  gap: 8px;
  padding: 16px 18px;
  border-left: 3px solid #1f9ed8;
  background: #fff;
  color: #52646d;
  line-height: 1.55;
}

[data-bundle-description] > :first-child {
  margin-top: 0;
}

[data-bundle-description] > :last-child {
  margin-bottom: 0;
}

[data-bundle-description] ul,
[data-bundle-description] ol {
  display: grid;
  gap: 5px;
  margin: 0;
  padding-left: 1.2rem;
}

.websin-order-plan-grid,
.websin-order-term-grid,
.websin-order-addon-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
}

.websin-order-addon-grid {
  grid-template-columns: 1fr;
}

.websin-order-plan-card,
.websin-order-term-option,
.websin-order-addon {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 52px;
  padding: 12px 14px;
  border: 1px solid rgba(26, 58, 74, 0.2);
  border-radius: 8px;
  background: #fff;
  cursor: pointer;
}

.websin-order-addon {
  align-items: flex-start;
}

.websin-order-addon input {
  margin-top: 0.2em;
}

.websin-order-addon-copy {
  display: grid;
  gap: 4px;
}

.websin-order-addon-title {
  font-weight: 700;
}

.websin-order-addon-description,
.websin-order-included-users {
  color: #5d6a70;
  font-size: 0.9rem;
  line-height: 1.4;
}

.websin-order-plan-title {
  font-weight: 700;
}

.websin-order-users {
  display: grid;
  grid-template-columns: minmax(160px, 1fr) minmax(220px, 3fr) 120px;
  gap: 12px;
  align-items: center;
}

.websin-order-included-users {
  grid-column: 1 / -1;
}

.websin-order-field-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 16px;
}

.websin-order-fieldsets {
  display: grid;
  gap: 24px;
}

.websin-order-fieldset {
  display: grid;
  gap: 16px;
  min-width: 0;
  margin: 0;
  padding: 0 0 22px;
  border: 0;
  border-bottom: 1px solid rgba(26, 58, 74, 0.12);
}

.websin-order-fieldset:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.websin-order-product-copy {
  display: grid;
  gap: 5px;
}

.websin-order-product-title {
  font-weight: 600;
}

.websin-order-product-description {
  color: #5d6a70;
  font-size: 0.9rem;
  font-weight: 400;
  line-height: 1.5;
}

.websin-order-product-description > :first-child {
  margin-top: 0;
}

.websin-order-product-description > :last-child {
  margin-bottom: 0;
}

.websin-order-bundle-group,
.websin-order-bundle-group:last-child {
  gap: 14px;
  padding: 18px;
  border: 1px solid rgba(26, 58, 74, 0.14);
  border-radius: 10px;
  background: #f8fafb;
}

.websin-order-fieldset legend {
  margin: 0 0 2px;
  padding: 0;
  color: #1a3a4a;
  font-weight: 700;
}

.websin-order-field,
.websin-order-check {
  display: grid;
  gap: 6px;
  align-content: start;
}

.websin-order-field > span {
  color: #263f4b;
  font-size: 0.92rem;
  font-weight: 650;
}

.websin-order-field small {
  color: #61727a;
  font-size: 0.82rem;
  line-height: 1.4;
}

.websin-order-slug-status {
  min-height: 1.4em;
}

.websin-order-slug-status[data-state="checking"] {
  color: #5d6a70;
}

.websin-order-slug-status[data-state="success"] {
  color: #14552c;
  font-weight: 650;
}

.websin-order-slug-status[data-state="error"] {
  color: #7a1c1c;
  font-weight: 650;
}

.websin-order-field-full {
  grid-column: span 6;
}

.websin-order-field-wide {
  grid-column: span 4;
}

.websin-order-field-medium {
  grid-column: span 3;
}

.websin-order-field-small {
  grid-column: span 2;
}

.websin-order-field-row-medium {
  grid-column: 1 / span 3;
}

.websin-order-label-row {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
}

.websin-order-help-wrap {
  position: relative;
  display: inline-flex;
  flex: 0 0 auto;
}

.websin-order-help-trigger {
  display: inline-grid;
  place-items: center;
  width: 18px;
  height: 18px;
  padding: 0;
  border: 1px solid rgba(26, 58, 74, 0.32);
  border-radius: 50%;
  background: #fff;
  color: #1a3a4a;
  font-family: inherit;
  font-size: 0.75rem;
  font-weight: 700;
  line-height: 1;
  cursor: help;
}

.websin-order-help-trigger:focus-visible {
  outline: 2px solid #1fa7ff;
  outline-offset: 2px;
}

.websin-order-tooltip {
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  z-index: 20;
  width: max-content;
  max-width: min(280px, calc(100vw - 48px));
  padding: 8px 10px;
  border-radius: 6px;
  background: #1a3a4a;
  box-shadow: 0 10px 26px rgba(26, 58, 74, 0.22);
  color: #fff;
  font-size: 0.85rem;
  font-weight: 400;
  line-height: 1.35;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 4px);
  transition: opacity 120ms ease, transform 120ms ease, visibility 120ms ease;
  visibility: hidden;
}

.websin-order-tooltip::after {
  position: absolute;
  top: 100%;
  left: 50%;
  width: 8px;
  height: 8px;
  background: #1a3a4a;
  content: "";
  transform: translate(-50%, -4px) rotate(45deg);
}

.websin-order-help-wrap:hover .websin-order-tooltip,
.websin-order-help-trigger:focus + .websin-order-tooltip,
.websin-order-help-trigger:focus-visible + .websin-order-tooltip {
  opacity: 1;
  transform: translate(-50%, 0);
  visibility: visible;
}

.websin-order-check {
  grid-template-columns: auto 1fr;
  align-items: start;
  gap: 12px;
  padding: 14px 16px;
  border: 1px solid rgba(26, 58, 74, 0.14);
  border-radius: 10px;
  background: #fff;
  line-height: 1.45;
  transition: border-color 150ms ease, box-shadow 150ms ease, background-color 150ms ease;
}

.websin-order-check input {
  margin-top: 0.2em;
  width: 18px;
  height: 18px;
  accent-color: #1f9ed8;
}

.websin-order-check:focus-within {
  border-color: #1f9ed8;
  box-shadow: 0 0 0 3px rgba(31, 158, 216, 0.14);
}

.websin-order-addon-required {
  border-color: rgba(31, 158, 216, 0.3);
  background: #f1f8fb;
  cursor: default;
}

.websin-order-addon-required input:disabled {
  opacity: 1;
}

.websin-order-confirmation-section {
  gap: 16px;
}

.websin-order-confirmation-list {
  display: grid;
  gap: 10px;
}

.websin-order-field input,
.websin-order-field select,
.websin-order-users input[type="number"],
.websin-order-group-select,
.websin-order-quantity {
  width: 100%;
  min-height: 48px;
  padding: 11px 13px;
  border: 1px solid rgba(26, 58, 74, 0.24);
  border-radius: 8px;
  background: #fff;
  color: #1d3541;
  font: inherit;
  transition: border-color 150ms ease, box-shadow 150ms ease, background-color 150ms ease;
}

.websin-order-field input:focus,
.websin-order-field select:focus,
.websin-order-users input[type="number"]:focus,
.websin-order-group-select:focus,
.websin-order-quantity:focus {
  border-color: #1f9ed8;
  box-shadow: 0 0 0 3px rgba(31, 158, 216, 0.14);
  outline: 0;
}

.websin-order-selection-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(100px, 128px);
  gap: 12px;
}

.websin-order-quantity {
  text-align: right;
}

.websin-order-group-select:disabled,
.websin-order-quantity:disabled {
  background: #eef2f4;
  color: #697980;
  cursor: not-allowed;
}

.websin-order-field input[readonly] {
  background: #f3f6f7;
  color: #40525b;
}

.websin-order-iban-status {
  grid-column: 1 / -1;
  min-height: 1.4em;
  margin: 0;
  color: #5d6a70;
  font-size: 0.9rem;
}

.websin-order-iban-notice {
  grid-column: 1 / -1;
  margin: 0;
  color: #5d6a70;
  font-size: 0.85rem;
}

.websin-order-iban-status[data-state="success"] {
  color: #14552c;
}

.websin-order-iban-status[data-state="error"],
.websin-order-iban-status[data-state="manual"] {
  color: #7a1c1c;
}

.websin-order-discount-field {
  max-width: none;
}

.websin-order-summary {
  position: relative;
  display: grid;
  gap: 16px;
  padding: 16px;
  border: 1px solid rgba(26, 58, 74, 0.18);
  border-radius: 8px;
  background: #fff;
}

.websin-order-summary > .websin-order-message {
  max-width: none;
  margin: 0;
}

.websin-order-summary-updating > * {
  opacity: 0.58;
  transition: opacity 120ms ease;
}

.websin-order-summary-updating::after {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 18px;
  height: 18px;
  border: 2px solid rgba(31, 158, 216, 0.22);
  border-top-color: #1f9ed8;
  border-radius: 50%;
  content: "";
  animation: websin-order-spin 700ms linear infinite;
}

.websin-order-summary-stale > :not([data-quote-status]) {
  opacity: 0.58;
}

@keyframes websin-order-spin {
  to {
    transform: rotate(360deg);
  }
}

.websin-order-cost-section {
  display: grid;
  gap: 10px;
}

.websin-order-cost-section + .websin-order-cost-section {
  padding-top: 16px;
  border-top: 1px solid rgba(26, 58, 74, 0.16);
}

.websin-order-cost-section h3 {
  margin: 0;
}

.websin-order-cost-total {
  display: grid;
  gap: 8px;
  padding-top: 12px;
  border-top: 1px solid rgba(26, 58, 74, 0.16);
}

.websin-order-cost-total h4 {
  margin: 0;
  color: #1a3a4a;
  font-size: 1rem;
}

.websin-order-cost-section .websin-order-discount-row strong {
  color: #14552c;
}

.websin-order-summary-section {
  position: sticky;
  top: 96px;
}

.websin-order-summary-section .websin-order-discount-field {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid rgba(26, 58, 74, 0.16);
}

.websin-order-summary-table {
  width: 100%;
  border-collapse: collapse;
}

.websin-order-summary-table th {
  padding: 0 0 7px;
  border-bottom: 1px solid rgba(26, 58, 74, 0.16);
  color: #5d6a70;
  font-size: 0.78rem;
  font-weight: 600;
  text-align: left;
}

.websin-order-summary-table td {
  padding: 8px 0;
  border-bottom: 1px solid rgba(26, 58, 74, 0.12);
  vertical-align: top;
}

.websin-order-summary-table th:first-child,
.websin-order-summary-table td:first-child {
  width: 100%;
  padding-right: 12px;
}

.websin-order-summary-table td:first-child {
  font-weight: 600;
}

.websin-order-summary-table th:nth-child(2),
.websin-order-summary-table th:nth-child(3),
.websin-order-summary-table td:nth-child(2),
.websin-order-summary-table td:nth-child(3) {
  width: 1%;
  padding-left: 10px;
  text-align: right;
  white-space: nowrap;
}

.websin-order-total-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  margin: 0;
  padding: 10px 8px;
  border-radius: 6px;
  background: #f6f8f9;
}

.websin-order-total-grid div {
  display: grid;
  gap: 4px;
  min-width: 0;
  padding: 0 8px;
  text-align: right;
}

.websin-order-total-grid div + div {
  border-left: 1px solid rgba(26, 58, 74, 0.12);
}

.websin-order-total-grid dt,
.websin-order-muted {
  color: #5d6a70;
  font-size: 0.92rem;
}

.websin-order-total-grid dd {
  margin: 0;
  color: #1a3a4a;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.websin-order-message {
  max-width: 1040px;
  margin: 0 auto 18px;
  padding: 14px 16px;
  border-radius: 6px;
}

.websin-order-message-success {
  background: #e7f7ed;
  color: #14552c;
}

.websin-order-message-error {
  background: #fdecec;
  color: #7a1c1c;
}

.websin-order-honeypot {
  position: absolute;
  left: -9999px;
}

@media (max-width: 1100px) {
  .websin-order-form {
    grid-template-columns: 1fr;
  }

  .websin-order-summary-section {
    position: static;
    max-height: none;
    overflow: visible;
  }
}

@media (max-width: 720px) {
  .websin-order-stepper {
    padding: 8px;
  }

  .websin-order-stepper ol {
    gap: 6px;
  }

  .websin-order-stepper li {
    flex-direction: column;
    gap: 5px;
    padding: 9px 5px;
    text-align: center;
    font-size: 0.74rem;
  }

  .websin-order-step-number {
    width: 25px;
    height: 25px;
    font-size: 0.78rem;
  }

  .websin-order-step-button {
    flex: 1 1 0;
  }

  .websin-order-section {
    padding: 20px;
  }

  .websin-order-users {
    grid-template-columns: 1fr;
  }

  .websin-order-selection-row {
    grid-template-columns: 1fr;
  }

  .websin-order-field-grid {
    grid-template-columns: 1fr;
  }

  .websin-order-field-full,
  .websin-order-field-wide,
  .websin-order-field-medium,
  .websin-order-field-row-medium,
  .websin-order-field-small {
    grid-column: auto;
  }
}

@media (max-width: 420px) {
  .websin-order-total-grid {
    padding: 9px 4px;
  }

  .websin-order-total-grid div {
    padding: 0 5px;
  }

  .websin-order-total-grid dt {
    font-size: 0.78rem;
  }

  .websin-order-total-grid dd {
    font-size: 0.88rem;
  }
}
