.wd-annuller-ordre {
  --wd-annuller-border: #d8dee8;
  --wd-annuller-danger: #b42318;
  --wd-annuller-focus: #2457c5;
  --wd-annuller-muted: #5d6678;
  --wd-annuller-success: #147a4b;
  --wd-annuller-surface: #ffffff;
  --wd-annuller-text: #172033;
  --wd-annuller-warning: #9a5b00;

  color: var(--wd-annuller-text);
  font-size: 16px;
  line-height: 1.5;
  max-width: 640px;
}

.wd-annuller-ordre *,
.wd-annuller-ordre *::before,
.wd-annuller-ordre *::after {
  box-sizing: border-box;
}

.wd-annuller-ordre__panel {
  background: var(--wd-annuller-surface);
  border: 1px solid var(--wd-annuller-border);
  border-radius: 8px;
  padding: clamp(20px, 4vw, 32px);
}

.wd-annuller-ordre h2,
.wd-annuller-ordre h3,
.wd-annuller-ordre p {
  margin-top: 0;
}

.wd-annuller-ordre h2 {
  font-size: clamp(1.45rem, 2vw, 1.8rem);
  line-height: 1.2;
  margin-bottom: 20px;
}

.wd-annuller-ordre h3 {
  font-size: 1.1rem;
  line-height: 1.3;
  margin-bottom: 6px;
}

.wd-annuller-ordre p {
  color: var(--wd-annuller-muted);
  margin-bottom: 0;
}

.wd-annuller-ordre__form,
.wd-annuller-ordre__actions {
  display: grid;
  gap: 18px;
}

.wd-annuller-ordre__actions {
  margin-top: 20px;
}

.wd-annuller-ordre__form label {
  display: grid;
  gap: 7px;
}

.wd-annuller-ordre__form label span {
  font-weight: 700;
}

.wd-annuller-ordre__form input {
  appearance: none;
  background: #ffffff;
  border: 1px solid var(--wd-annuller-border);
  border-radius: 6px;
  color: var(--wd-annuller-text);
  font: inherit;
  min-height: 46px;
  padding: 10px 12px;
  width: 100%;
}

.wd-annuller-ordre__form input:focus {
  border-color: var(--wd-annuller-focus);
  box-shadow: 0 0 0 3px rgba(36, 87, 197, 0.14);
  outline: none;
}

.wd-annuller-ordre__button {
  align-items: center;
  background: var(--wd-annuller-text);
  border: 1px solid var(--wd-annuller-text);
  border-radius: 6px;
  color: #ffffff;
  cursor: pointer;
  display: inline-flex;
  font: inherit;
  font-weight: 700;
  justify-content: center;
  min-height: 46px;
  padding: 10px 18px;
  text-align: center;
  text-decoration: none;
  width: fit-content;
}

.wd-annuller-ordre__button:hover,
.wd-annuller-ordre__button:focus {
  background: #2b3548;
  border-color: #2b3548;
  color: #ffffff;
  text-decoration: none;
}

.wd-annuller-ordre__button:focus {
  box-shadow: 0 0 0 3px rgba(36, 87, 197, 0.2);
  outline: none;
}

.wd-annuller-ordre__button--danger {
  background: var(--wd-annuller-danger);
  border-color: var(--wd-annuller-danger);
}

.wd-annuller-ordre__button--danger:hover,
.wd-annuller-ordre__button--danger:focus {
  background: #8f1c14;
  border-color: #8f1c14;
}

.wd-annuller-ordre__button--secondary {
  background: #ffffff;
  border-color: var(--wd-annuller-border);
  color: var(--wd-annuller-text);
  margin-top: 20px;
}

.wd-annuller-ordre__button--secondary:hover,
.wd-annuller-ordre__button--secondary:focus {
  background: #f5f7fb;
  border-color: #b9c2d1;
  color: var(--wd-annuller-text);
}

.wd-annuller-ordre__link {
  align-self: center;
  color: var(--wd-annuller-text);
  font-weight: 700;
  text-decoration: underline;
  width: fit-content;
}

.wd-annuller-ordre__message,
.wd-annuller-ordre__notice {
  border: 1px solid var(--wd-annuller-border);
  border-radius: 8px;
  margin-bottom: 20px;
  padding: 16px;
}

.wd-annuller-ordre__notice {
  font-weight: 700;
}

.wd-annuller-ordre__message--success {
  background: #ecfdf4;
  border-color: #a8e7c6;
}

.wd-annuller-ordre__message--success h3,
.wd-annuller-ordre__notice--success {
  color: var(--wd-annuller-success);
}

.wd-annuller-ordre__message--warning {
  background: #fff7e8;
  border-color: #ffd99a;
}

.wd-annuller-ordre__message--warning h3 {
  color: var(--wd-annuller-warning);
}

.wd-annuller-ordre__message--error,
.wd-annuller-ordre__notice--error {
  background: #fff1f0;
  border-color: #ffbeb8;
  color: var(--wd-annuller-danger);
}

.wd-annuller-ordre__summary {
  border: 1px solid var(--wd-annuller-border);
  border-radius: 8px;
  display: grid;
  margin: 20px 0 0;
  overflow: hidden;
}

.wd-annuller-ordre__summary div {
  display: grid;
  gap: 4px;
  padding: 14px 16px;
}

.wd-annuller-ordre__summary div + div {
  border-top: 1px solid var(--wd-annuller-border);
}

.wd-annuller-ordre__summary dt {
  color: var(--wd-annuller-muted);
  font-size: 0.9rem;
  font-weight: 700;
  margin: 0;
}

.wd-annuller-ordre__summary dd {
  font-weight: 700;
  margin: 0;
}

@media (min-width: 560px) {
  .wd-annuller-ordre__actions {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
  }

  .wd-annuller-ordre__summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .wd-annuller-ordre__summary div + div {
    border-top: 0;
  }

  .wd-annuller-ordre__summary div:nth-child(odd) {
    border-right: 1px solid var(--wd-annuller-border);
  }

  .wd-annuller-ordre__summary div:nth-child(n + 3) {
    border-top: 1px solid var(--wd-annuller-border);
  }
}
