/* The blue action is the next step. Supporting actions use a quieter surface. */
:root {
  --support-action-fill: #385466;
  --support-action-ink: #eff7fa;
  --support-action-edge: #6d8b9b;
  --support-action-hover: #466779;
  --choice-active: color-mix(in srgb, var(--accent) 36%, var(--paper));
}
html:root body main .button.primary {
  background: var(--accent);
  color: var(--on-accent);
}
html:root body :is(.mobile-bar, main) :is(.button.secondary, .request-edit-trigger, .sf-photo-remove, .contact-map, .boat-type-toggle):not(:disabled,[aria-disabled=true]),
html:root body main input[type="file"]:not(:disabled)::file-selector-button {
  background: var(--support-action-fill);
  color: var(--support-action-ink);
  border: 1px solid var(--support-action-edge);
  border-radius: 24px;
}
html:root body main :is(.request-edit-trigger, .sf-photo-remove, .contact-map) {
  min-height: 44px;
  max-width: 100%;
  box-sizing: border-box;
  padding: 10px 18px;
  border-radius: 24px;
  font-weight: 600;
  line-height: 1.35;
  text-align: center;
}
html:root body main :is(.request-edit-trigger, .sf-photo-remove, .contact-map):not([hidden]) {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
html:root body main input[type="file"]::file-selector-button {
  min-height: 44px;
  margin-inline-end: 10px;
  padding: 6px 12px;
  font: inherit;
  cursor: pointer;
}
html:root body main input[type="file"]:focus-visible,
html:root body main .boat-type-toggle:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
}
#top .request-edit-trigger:focus-visible,
body[data-page="request"] #top .mp-sidebar .button[href="contacts.html"]:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
}
html:root body main :is(.bc-cover-types .bc-choice, .sf-engine-type):has(input:checked),
html:root body main .service-forms .sf-engine-catalog-choice[aria-pressed=true] {
  background: var(--choice-active);
  color: var(--ink);
  box-shadow: none;
  font-weight: 650;
}
/* Use the checkmark as the selected state for both work lists. */
html:root body main [data-config-works] .bc-choice {
  background: transparent;
}
html:root body main [data-config-works] .bc-work-group:has(> .bc-choice input:checked) {
  background: transparent;
  border-color: var(--line, #b9cbc5);
}
html:root body main :is([data-config-works] .bc-choice, .request-edit-work) > span {
  font-weight: inherit;
}
html:root body main :is([data-config-works], .request-edit-works) input[type="checkbox"]:focus-visible {
  outline: 2px solid var(--focus) !important;
  outline-offset: 3px;
}
html:root body main .configurator-views button[aria-pressed=true] {
  background: var(--accent);
  color: var(--on-accent);
}
@media (hover:hover) {
  html:root body main .button.primary:not(:disabled,[aria-disabled=true]):hover {
    background: var(--accent-hover);
    color: var(--on-accent);
  }
  html:root body :is(.mobile-bar, main) :is(.button.secondary, .request-edit-trigger, .sf-photo-remove, .contact-map, .boat-type-toggle):not(:disabled,[aria-disabled=true]):hover,
  html:root body main input[type="file"]:not(:disabled)::file-selector-button:hover {
    background: var(--support-action-hover);
    color: var(--support-action-ink);
  }
}
html:root body main :is(.button,button):is(:disabled,[aria-disabled=true]) {
  background: var(--soft);
  color: var(--muted);
  box-shadow: none;
  cursor: not-allowed;
}

html:root body main .boat-type-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) clamp(7rem, 30%, 10rem);
  align-items: end;
  gap: 10px;
  min-width: 0;
}
html:root body main .boat-type-row:has(> .boat-type-toggle[hidden]) {
  grid-template-columns: minmax(0, 1fr);
}
html:root body #top .boat-type-row > label {
  min-width: 0;
  margin: 0;
  grid-column: auto;
}
html:root body #top .boat-type-row select {
  appearance: none;
  box-sizing: border-box;
  min-width: 0;
  height: 58px;
  min-height: 58px;
  padding-inline: 14px 36px;
  text-overflow: ellipsis;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none'%3E%3Cpath d='m3 6 5 5 5-5' stroke='%23e3eef4' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-position: right 15px center;
  background-repeat: no-repeat;
  background-size: 15px;
}
html:root body #top .boat-type-row > .boat-type-toggle {
  box-sizing: border-box;
  width: 100%;
  min-height: 58px;
  padding: 8px 6px;
  border-radius: 12px;
  font: inherit;
  font-size: .875rem;
  font-weight: 600;
  line-height: 1.2;
  cursor: pointer;
}
body main .boat-type-toggle[hidden] { display: none; }
.request-edit-fields > .boat-type-row { grid-column: 1 / -1; }
@media (max-width: 350px) {
  html:root body main .boat-type-row { grid-template-columns: minmax(0, 1fr); }
  html:root body #top .boat-type-row > .boat-type-toggle { width: fit-content; min-height: 44px; }
}
@media (forced-colors: active) {
  html:root body #top .boat-type-row select {
    appearance: auto;
    background-image: none;
  }
}

/* Let the length hint span the full calculator, including the trailer column. */
.service-forms .sf-note:is([data-storage-length-help], [data-request-storage-help]) {
  grid-column: 1 / -1;
  max-width: none;
  text-wrap: wrap;
  overflow-wrap: normal;
}

/* The discussion block shares the two action colours used in forms. */
.mp-discuss-actions {
  display: flex;
  gap: .75rem;
  flex-wrap: wrap;
  align-items: center;
}
body.inner-page #top .mp-discuss-actions .button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  max-width: 100%;
  box-sizing: border-box;
  padding: .6rem 1.25rem;
  border-radius: 2rem;
  text-align: center;
  line-height: 1.35;
}
@media (max-width: 600px) {
  .mp-discuss-actions { flex-direction: column; align-items: stretch; }
}
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .mp-discuss-actions .button { transition: transform 160ms ease-out, background-color 160ms ease-out; }
  .mp-discuss-actions .button:hover { transform: translateY(-2px); }
  .mp-discuss-actions .button:active { transform: translateY(0); }
}
