/* /establishment/: keep comparison columns aligned across both cost tables on desktop. */
@media screen and (min-width: 768px) {
  .tablePlan__table--establishment-corporation,
  .tablePlan__table--establishment-llc {
    table-layout: fixed;
    width: 100%;
  }

  .tablePlan__table--establishment-corporation .tablePlan__col--item {
    width: 40%;
  }

  .tablePlan__table--establishment-llc .tablePlan__col--category {
    width: 16%;
  }

  .tablePlan__table--establishment-llc .tablePlan__col--item {
    width: 24%;
  }

  .tablePlan__table--establishment-corporation .tablePlan__col--office,
  .tablePlan__table--establishment-corporation .tablePlan__col--self,
  .tablePlan__table--establishment-llc .tablePlan__col--office,
  .tablePlan__table--establishment-llc .tablePlan__col--self {
    width: 30%;
  }
}

@media screen and (max-width: 767px) {
  .tablePlan__table--establishment-corporation {
    table-layout: fixed;
    width: 549px;
  }

  .tablePlan__table--establishment-llc {
    table-layout: fixed;
    width: 660px;
  }

  .tablePlan__table--establishment-corporation .tablePlan__col--item {
    width: 147px;
  }

  .tablePlan__table--establishment-llc .tablePlan__col--category {
    width: 93px;
  }

  .tablePlan__table--establishment-llc .tablePlan__col--item {
    width: 165px;
  }

  .tablePlan__table--establishment-corporation .tablePlan__col--office,
  .tablePlan__table--establishment-corporation .tablePlan__col--self,
  .tablePlan__table--establishment-llc .tablePlan__col--office,
  .tablePlan__table--establishment-llc .tablePlan__col--self {
    width: 201px;
  }

  .tablePlan .tablePlan__table th,
  .tablePlan .tablePlan__table td {
    white-space: nowrap;
  }
}

.tablePlanScrollCue__hint,
.tablePlanScrollCue__edge {
  display: none;
}

@media screen and (max-width: 767px) {
  .tablePlanScrollCue__hint {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    min-height: 34px;
    margin: 0 0 6px;
    color: #6f4800;
    font-size: 12px;
    font-weight: bold;
    line-height: 1.5;
    text-align: right;
  }

  .tablePlanScrollCue__hintArrow {
    display: inline-block;
    font-size: 18px;
    animation: tablePlanScrollCueNudge 1.25s ease-in-out infinite;
  }

  .tablePlanScrollCue__viewport {
    position: relative;
  }

  .tablePlanScrollCue__edge {
    position: absolute;
    z-index: 2;
    top: 0;
    bottom: 0;
    display: block;
    width: 42px;
    pointer-events: none;
    transition: opacity 160ms ease;
  }

  .tablePlanScrollCue__edge--right {
    right: 0;
    background: linear-gradient(90deg, transparent, rgba(154, 107, 21, 0.28));
  }

  .tablePlanScrollCue__edge--right::after {
    position: absolute;
    top: 50%;
    right: 6px;
    color: #6f4800;
    content: "\2192";
    font-size: 22px;
    font-weight: bold;
    transform: translateY(-50%);
  }

  .tablePlanScrollCue__edge--left {
    left: 0;
    opacity: 0;
    background: linear-gradient(270deg, transparent, rgba(154, 107, 21, 0.22));
  }

  .tablePlanScrollCue__edge--left::after {
    position: absolute;
    top: 50%;
    left: 6px;
    color: #6f4800;
    content: "\2190";
    font-size: 22px;
    font-weight: bold;
    transform: translateY(-50%);
  }

  .tablePlanScrollCue.is-scrolled .tablePlanScrollCue__edge--left {
    opacity: 1;
  }

  .tablePlanScrollCue.is-at-end .tablePlanScrollCue__edge--right,
  .tablePlanScrollCue.is-no-overflow .tablePlanScrollCue__edge,
  .tablePlanScrollCue.is-no-overflow .tablePlanScrollCue__hint {
    opacity: 0;
  }
}

@keyframes tablePlanScrollCueNudge {
  0%,
  100% {
    transform: translateX(0);
  }
  50% {
    transform: translateX(5px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .tablePlanScrollCue__hintArrow {
    animation: none;
  }
}