.wf-service {
  max-width: 1440px;
  padding-inline: clamp(18px, 4vw, 56px);
  background: var(--wf-canvas);
}

.wf-service__header {
  min-height: 168px;
  align-items: center;
  border-bottom: 1px solid var(--wf-border);
}

.wf-service__header > div {
  display: grid;
  gap: 8px;
}

.wf-service__eyebrow {
  color: #778188;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
}

.wf-service__header h1 {
  font-size: 44px;
  font-weight: 600;
}

.wf-service__header p {
  max-width: 540px;
  line-height: 1.7;
  text-align: right;
}

[data-service-root] {
  display: flex;
  min-width: 0;
  flex-direction: column;
}

[data-service-loading],
[data-service-error],
[data-service-state] {
  order: 1;
}

.wf-service__authenticated,
.wf-service__anonymous {
  order: 2;
}

.wf-service__notices {
  order: 3;
}

.wf-service__authenticated {
  display: block;
  padding: 0;
}

.wf-service__account-strip {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  margin-bottom: 24px;
  padding: 14px 0;
  border-block: 1px solid var(--wf-border);
}

.wf-service__account-level {
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  border-radius: 50%;
  background: #171a1d;
  color: #fff;
  font-size: 12px;
  font-weight: 800;
}

.wf-service__account-strip div {
  display: grid;
  min-width: 0;
  gap: 2px;
}

.wf-service__account-strip small {
  color: var(--wf-text-muted);
  font-size: 11px;
}

.wf-service__account-strip strong {
  font-size: 14px;
}

.wf-service__availability {
  display: inline-flex;
  min-height: 30px;
  align-items: center;
  padding: 5px 10px;
  border-radius: 999px;
  background: var(--wf-green-soft);
  color: var(--wf-green);
  font-size: 11px;
  font-weight: 700;
}

.wf-service__action-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}

.wf-service__action {
  position: relative;
  display: grid;
  min-height: 240px;
  grid-template-columns: minmax(0, 1fr) 128px;
  align-items: end;
  overflow: hidden;
  padding: 34px 36px;
  border: 1px solid #d7dce0;
  border-radius: 8px;
  background: #fff;
  color: #171a1d;
  text-align: left;
  cursor: pointer;
  transition:
    border-color var(--wf-motion-fast) var(--wf-ease-standard),
    background-color var(--wf-motion-fast) var(--wf-ease-standard),
    transform var(--wf-motion-base) var(--wf-ease-out);
}

.wf-service__action--feedback {
  border-color: #171a1d;
  background: #171a1d;
  color: #fff;
}

.wf-service__action--report {
  border-color: #e8c6c7;
}

.wf-service__action-copy {
  position: relative;
  z-index: 2;
  display: grid;
  min-width: 0;
  align-content: end;
  gap: 12px;
}

.wf-service__action-copy small {
  color: #879198;
  font-size: 11px;
  font-weight: 700;
}

.wf-service__action-copy strong {
  font-size: clamp(25px, 3vw, 36px);
  font-weight: 700;
  line-height: 1.15;
}

.wf-service__action-copy > span {
  max-width: 430px;
  color: #69737a;
  font-size: 13px;
  line-height: 1.65;
}

.wf-service__action--feedback .wf-service__action-copy > span {
  color: #b9c0c5;
}

.wf-service__action > img {
  position: absolute;
  right: 30px;
  bottom: 24px;
  width: 132px;
  height: 132px;
  object-fit: contain;
  opacity: 0.14;
  transition:
    opacity var(--wf-motion-base) var(--wf-ease-standard),
    transform var(--wf-motion-panel) var(--wf-ease-out);
}

.wf-service__action--feedback > img {
  filter: brightness(2.4);
}

.wf-service__action-arrow {
  position: absolute;
  top: 28px;
  right: 30px;
  z-index: 2;
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 1px solid currentColor;
  border-radius: 50%;
  transition: transform var(--wf-motion-base) var(--wf-ease-out);
}

.wf-service__action-arrow svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

@media (hover: hover) and (pointer: fine) {
  .wf-service__action:hover {
    transform: translateY(-3px);
  }

  .wf-service__action:hover > img {
    opacity: 0.22;
    transform: translateY(-2px) scale(1.025);
  }

  .wf-service__action:hover .wf-service__action-arrow {
    transform: translateX(4px);
  }
}

.wf-service__notices {
  margin-top: 72px;
  padding: 0 0 52px;
  border-bottom: 0;
}

.wf-service__notices .wf-service__section-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 18px;
}

.wf-service__notices .wf-service__section-header h2 {
  font-size: 28px;
}

.wf-service__notices > ul {
  counter-reset: wf-service-notice;
}

.wf-service__notices > ul > li {
  position: relative;
  grid-template-columns: 72px minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  min-height: 92px;
  padding: 20px 0;
}

.wf-service__notices > ul > li::before {
  counter-increment: wf-service-notice;
  content: counter(wf-service-notice, decimal-leading-zero);
  color: #aeb6bb;
  font-size: 25px;
  font-weight: 700;
}

.wf-service__notices > ul > li h3,
.wf-service__notices > ul > li p {
  grid-column: 2;
}

.wf-service__notices > ul > li a {
  grid-column: 3;
  grid-row: 1 / span 2;
  align-self: center;
  color: #59646b;
}

.wf-service__dialog-close {
  position: sticky;
  top: 16px;
  z-index: 3;
  float: right;
  margin: 16px 16px -56px 0;
}

.wf-service__dialog-close svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
}

.wf-service__dialog .wf-service__panel {
  padding: 38px 42px 42px;
  border: 0;
  border-radius: 0;
}

.wf-service__dialog .wf-service__section-header {
  max-width: 660px;
  padding-right: 46px;
}

.wf-service__dialog .wf-service__section-header h2 {
  font-size: 25px;
}

.wf-service__dialog .wf-service__form-layout {
  display: grid;
  gap: 14px;
  margin-top: 22px;
}

.wf-service__form-layout > .wf-portal__button {
  justify-self: start;
}

body.wf-service-dialog-open {
  overflow: hidden;
}

@media (max-width: 760px) {
  .wf-service {
    padding-inline: 14px;
  }

  .wf-service__header {
    min-height: 148px;
    align-items: flex-start;
    padding-top: 36px;
  }

  .wf-service__header p {
    max-width: none;
    text-align: left;
  }

  .wf-service__account-strip {
    grid-template-columns: 42px minmax(0, 1fr);
  }

  .wf-service__availability {
    grid-column: 2;
    width: fit-content;
  }

  .wf-service__action-grid {
    grid-template-columns: 1fr;
  }

  .wf-service__action {
    min-height: 210px;
    padding: 28px 24px;
  }

  .wf-service__action > img {
    right: 18px;
    bottom: 18px;
    width: 104px;
    height: 104px;
  }

  .wf-service__notices {
    margin-top: 52px;
  }

  .wf-service__notices .wf-service__section-header {
    display: grid;
  }

  .wf-service__notices > ul > li {
    grid-template-columns: 48px minmax(0, 1fr);
  }

  .wf-service__notices > ul > li h3,
  .wf-service__notices > ul > li p {
    grid-column: 2;
  }

  .wf-service__notices > ul > li a {
    grid-column: 2;
    grid-row: auto;
  }

  .wf-service__dialog .wf-service__panel {
    padding: 30px 20px 28px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .wf-service__action:is(:hover, :active),
  .wf-service__action:hover > img,
  .wf-service__action:hover .wf-service__action-arrow,
  .wf-service__dialog-panel {
    transform: none;
  }
}
