/* Load after the existing site and Spry stylesheets. Scoped to the basket. */
.hv-basket {
  --hv-basket-accent: #245c43;
  --hv-basket-border: #bac5be;
  width: 100%; max-width: 850px;
  color: #202923; line-height: 1.5;
}
.hv-basket, .hv-basket * { box-sizing: border-box; }
.hv-basket .hv-basket-card {
  margin: 0 0 24px; padding: 26px;
  border: 1px solid #dce3de; border-radius: 12px; background: #fff;
}
.hv-basket .hv-basket-card h3 {
  margin: 0 0 16px; font-family: inherit; font-size: 1.2rem;
  font-weight: 600; font-style: normal; line-height: 1.4; color: inherit;
}
.hv-basket p { margin: 0 0 18px; }
.hv-basket a { text-underline-offset: 3px; }
.hv-basket .hv-basket-entry {
  display: grid; grid-template-columns: 1.4fr 1.2fr 1.2fr auto;
  gap: 14px 20px; padding: 20px 0; border-bottom: 1px solid #e1e7e2;
}
.hv-basket .hv-basket-entry:first-child { padding-top: 0; }
.hv-basket .hv-basket-entry > div { min-width: 0; overflow-wrap: anywhere; }
.hv-basket .hv-basket-caption {
  display: block; margin-bottom: 6px; font-size: 0.85rem; font-weight: 600; color: #536258;
}
.hv-basket .hv-basket-date { display: block; margin-top: 6px; color: #536258; }
.hv-basket .hv-basket-entry-price { text-align: right; white-space: nowrap; }
.hv-basket .hv-basket-entry-remove { grid-column: 1 / -1; }
.hv-basket .hv-basket-remove {
  display: inline-block; padding: 5px 0;
  color: #9b3030; text-decoration: underline; cursor: pointer;
}
.hv-basket .hv-basket-remove:hover { color: #6d1919; }
.hv-basket .hv-basket-summary-line,
.hv-basket .hv-basket-extra,
.hv-basket .hv-basket-discount {
  display: flex; align-items: flex-start; justify-content: space-between;
  gap: 20px; padding: 15px 0; border-bottom: 1px solid #e1e7e2;
}
.hv-basket .hv-basket-summary-line > :last-child,
.hv-basket .hv-basket-extra > :last-child,
.hv-basket .hv-basket-discount > :last-child { white-space: nowrap; flex-shrink: 0; }
.hv-basket .hv-basket-empty-action { margin: 8px 0 16px; }
.hv-basket .hv-basket-card .hv-basket-subheading { margin: 22px 0 0; font-size: 1rem; }
.hv-basket .hv-basket-muted { color: #536258; font-size: 0.9rem; }
.hv-basket .hv-basket-total {
  margin-top: 8px; padding: 18px 14px; border: 0; border-radius: 6px;
  background: #edf3ef; font-size: 1.15rem;
}
.hv-basket .hv-basket-discount {
  margin-top: 12px; color: #245c43; border-bottom: 0;
}
.hv-basket .hv-basket-discount small { display: block; margin-top: 4px; }
.hv-basket form { margin: 0; }
.hv-basket .hv-basket-field { margin: 0 0 20px; max-width: 620px; min-width: 0; }
.hv-basket .hv-basket-field label {
  display: block; margin: 0 0 7px; font-weight: 600; overflow-wrap: anywhere;
}
.hv-basket .hv-basket-field > span { display: block; }
.hv-basket .hv-basket-input {
  display: block; width: 100%; min-width: 0; min-height: 46px;
  margin: 0; padding: 10px 12px;
  border: 1px solid var(--hv-basket-border); border-radius: 6px;
  background: #fff; color: #202923; box-shadow: none;
  font: inherit; font-size: 16px; line-height: 1.4;
}
.hv-basket .hv-basket-login-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 16px; max-width: 620px;
}
.hv-basket .hv-basket-login p:last-child { margin: 18px 0 0; }
.hv-basket .hv-basket-preferences {
  min-width: 0; margin: 28px 0 0; padding: 0; border: 0;
}
.hv-basket .hv-basket-preferences legend { margin: 0 0 8px; padding: 0; font-weight: 600; }
.hv-basket .hv-basket-check {
  display: flex; align-items: flex-start; gap: 12px;
  margin: 0 0 12px; padding: 13px 14px;
  border: 1px solid #dce3de; border-radius: 6px; background: #f6f8f6; cursor: pointer;
}
.hv-basket .hv-basket-check input[type='checkbox'] {
  flex: 0 0 20px; width: 20px; height: 20px; min-height: 0;
  margin: 2px 0 0; padding: 0; accent-color: var(--hv-basket-accent); cursor: pointer;
}
.hv-basket .hv-basket-check span { min-width: 0; overflow-wrap: anywhere; }
.hv-basket .hv-basket-actions { margin-top: 24px; padding-top: 22px; border-top: 1px solid #e1e7e2; }
.hv-basket button.hv-basket-button {
  min-height: 48px; width: auto; margin: 0; padding: 12px 22px;
  border: 1px solid var(--hv-basket-accent); border-radius: 6px;
  font: inherit; font-weight: 600; line-height: 1.4; white-space: normal;
  cursor: pointer !important;
}
.hv-basket .hv-basket-button-primary { background: var(--hv-basket-accent); color: #fff; }
.hv-basket .hv-basket-button-secondary { background: #fff; color: var(--hv-basket-accent); }
.hv-basket .hv-basket-button-primary:hover { background: #194631; }
.hv-basket .hv-basket-button-secondary:hover { background: #edf3ef; }
.hv-basket input:focus-visible,
.hv-basket button:focus-visible,
.hv-basket a:focus-visible { outline: 3px solid #397bb5; outline-offset: 3px; }
/* Spry controls visibility; these rules only change message appearance. */
.hv-basket .textfieldRequiredMsg,
.hv-basket .textfieldInvalidFormatMsg { color: #a02121; font-size: 0.9rem; }
.hv-basket .textfieldRequiredState input,
.hv-basket .textfieldInvalidFormatState input { border-color: #b52c2c; background: #fff8f8; }
@media (max-width: 650px) {
  .hv-basket .hv-basket-card { padding: 20px 16px; }
  .hv-basket .hv-basket-entry { grid-template-columns: 1fr auto; }
  .hv-basket .hv-basket-event,
  .hv-basket .hv-basket-class,
  .hv-basket .hv-basket-entry-details { grid-column: 1 / -1; }
  .hv-basket .hv-basket-entry-price { grid-column: 2; grid-row: 4; }
  .hv-basket .hv-basket-entry-remove { grid-column: 1; grid-row: 4; align-self: end; }
  .hv-basket .hv-basket-login-grid { grid-template-columns: 1fr; gap: 0; }
  .hv-basket .hv-basket-actions .hv-basket-button { width: 100%; }
}
