/* Japan-only feature layout for 2024/PDR/pricing-draft.jsp. */

.JPN .card > .jpn-card-feature {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: flex-start !important;
  gap: 8px !important;
  min-height: 38px;
  padding: 8px 22px;
  margin: 0;
  background: #fff !important;
  color: #191919;
  font-family: "Inter", system-ui, sans-serif;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.35;
  text-align: left;
}

.JPN .card > .jpn-card-feature.shade {
  background: #f4f4f4 !important;
}

.JPN .card > p.jpn-card-feature:nth-of-type(odd) {
  background: #f4f4f4 !important;
}

.JPN .card > p.jpn-card-feature:nth-of-type(even) {
  background: #fff !important;
}

.JPN .jpn-card-feature.check::before {
  content: "✔";
  flex: 0 0 auto;
  font-weight: 700;
}

.JPN .jpn-card-feature > span:not(.jpn-info-tooltip, .product-reveal) {
  display: inline;
  align-self: auto;
}

.JPN .jpn-card-feature strong {
  font-weight: 700;
}

.JPN .jpn-card-feature a {
  color: inherit;
}

.JPN .jpn-card-feature .product-link {
  position: relative;
  z-index: 1;
  font-weight: 400;
  /* color: #4900a0; */
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* .JPN .jpn-card-feature .product-link[data-clt-product="PhotoDirector"] {
  color: #be3a4f;
} */

.JPN .jpn-card-feature .product-reveal {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 5px;
  width: 100%;
  height: 100%;
  padding: 0 22px;
  clip-path: polygon(0 0, -5% 0, 0 50%, -5% 100%, 0 100%);
  color: #000;
  font-weight: 700;
  white-space: nowrap;
  transition: clip-path 0.4s ease-in-out;
  pointer-events: none;
}

.JPN .jpn-card-feature .product-reveal.photo {
  background: linear-gradient(242.51deg, #ffcb1e 0%, #ff7e00 100%);
}

.JPN .jpn-card-feature .product-reveal.audio {
  background: linear-gradient(243.07deg, #ab89ff 0%, #601ddf 89.45%);
  color: #fff;
}

.JPN .jpn-card-feature .product-reveal img {
  flex: 0 0 auto;
  width: 24px;
  height: 24px;
  transition: transform 0.5s ease-in-out;
  transform: rotateY(0.6turn);
}

.JPN .jpn-card-feature.product-row:hover > .product-reveal,
.JPN .jpn-card-feature.product-row:focus-within > .product-reveal {
  clip-path: polygon(0 0, 75% 0, 80% 50%, 75% 100%, 0 100%);
}

.JPN .jpn-card-feature.product-row:hover > .product-reveal img,
.JPN .jpn-card-feature.product-row:focus-within > .product-reveal img {
  transform: rotateY(1turn);
}

.JPN .jpn-scroll-to-gen-ai {
  color: #000;
  font-weight: 400;
  text-decoration: underline !important;
  text-underline-offset: 2px;
  transition: padding 0.5s, color 0.5s, background-color 0.5s, border-radius 0.5s;
}

.JPN .jpn-scroll-to-gen-ai:hover,
.JPN .jpn-scroll-to-gen-ai:focus-visible {
  color: #fff !important;
  background-color: blue;
  padding: 0 0.5rem;
  border-radius: 4px;
  text-decoration: none !important;
}

.JPN .jpn-card-feature.product-row {
  z-index: 1;
}

.JPN .jpn-card-feature.product-row:has(.jpn-info-tooltip:hover),
.JPN .jpn-card-feature.product-row:has(.jpn-info-tooltip:focus-within),
.JPN .jpn-card-feature.product-row:has(.jpn-info-tooltip.is-open) {
  z-index: 20;
}

.JPN .jpn-info-tooltip {
  position: relative;
  display: inline-flex;
  flex: 0 0 auto;
  margin-left: auto;
  z-index: 3;
}

.JPN .jpn-info-tooltip > .info-trigger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #050505;
  color: #fff;
  font-family: Georgia, serif;
  font-size: 13px;
  font-style: italic;
  font-weight: 700;
  line-height: 1;
  cursor: help;
}

.JPN .jpn-info-tooltip > .info-trigger:focus-visible {
  outline: 3px solid #7557ff;
  outline-offset: 2px;
}

.JPN .jpn-info-tooltip > .info-panel {
  position: absolute;
  top: calc(100% + 12px);
  right: -8px;
  display: block;
  width: min(440px, calc(100vw - 40px));
  padding: 14px 16px;
  background: #fff;
  box-shadow: 0 4px 12px rgb(0 0 0 / 28%);
  color: #111;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.45;
  text-align: left;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-4px);
  transition:
    opacity 150ms ease,
    transform 150ms ease,
    visibility 150ms;
  pointer-events: none;
  z-index: 30;
  border-radius: 10px;
}

.JPN .jpn-info-tooltip > .info-panel::before,
.JPN .jpn-info-tooltip > .info-panel::after {
  content: "";
  position: absolute;
  right: 9px;
  bottom: 100%;
  border: 8px solid #ffffff00;
  border-bottom-color: #d9d9d9;
}

.JPN .jpn-info-tooltip > .info-panel::after {
  right: 10px;
  border-width: 7px;
  border-bottom-color: #fff;
}

.JPN .jpn-info-tooltip:hover .info-panel,
.JPN .jpn-info-tooltip:focus-within .info-panel,
.JPN .jpn-info-tooltip.is-open .info-panel {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}

.JPN .jpn-info-tooltip.is-dismissed .info-panel {
  opacity: 0;
  visibility: hidden;
  transform: translateY(-4px);
  pointer-events: none;
}

.JPN .info-panel > .info-title {
  display: block;
  margin-bottom: 4px;
}

.JPN .info-panel > .info-list {
  display: grid;
  gap: 2px;
}

.JPN .info-panel > .info-list > span {
  position: relative;
  display: block;
  padding-left: 1.25em;
}

.JPN .info-panel > .info-list > span::before {
  content: "•";
  position: absolute;
  left: 0.2em;
  font-weight: 700;
}

.JPN .card > p:is(.show-plan, .hide-plan) {
  margin: 0;
  background: transparent !important;
  bottom: 0.32rem !important;
}

.JPN .card > p:is(.show-plan, .hide-plan) button {
  text-underline-offset: 2px;
}

.mask-underflow {
  top: 6px;
}

.mask-underflow span {
  justify-self: center;
  padding-top: 2rem;
}

.mask-underflow span a {
  color: #3d6cfd;
}

.mask-underflow span a:hover {
  color: #9806cf !important;
}

@media (min-width: 1286px) {
  .JPN .cards > .card {
    padding-bottom: 56px;
  }

  .JPN .card > .jpn-card-feature {
    border-radius: 0 !important;
  }
}

@media (max-width: 1285px) {
  .JPN .cards > .card {
    padding-bottom: 24px;
  }

  .JPN .card > .jpn-card-feature {
    border-radius: 0 !important;
  }
}

@media (max-width: 1000px) {
  .JPN .cards > .card {
    min-height: 0;
  }
}

@media (max-width: 780px) {
  .JPN .card > .jpn-card-feature {
    min-height: 42px;
    font-size: 13px;
  }

  .JPN .jpn-info-tooltip > .info-panel {
    position: fixed;
    top: 50%;
    right: auto;
    left: 50%;
    width: min(440px, calc(100vw - 32px));
    max-height: calc(100vh - 40px);
    overflow-y: auto;
    transform: translate(-50%, calc(-50% - 4px));
  }

  .JPN .jpn-info-tooltip > .info-panel::before,
  .JPN .jpn-info-tooltip > .info-panel::after {
    display: none;
  }

  .JPN .jpn-info-tooltip:hover .info-panel,
  .JPN .jpn-info-tooltip:focus-within .info-panel,
  .JPN .jpn-info-tooltip.is-open .info-panel {
    transform: translate(-50%, -50%);
  }

  .JPN .jpn-info-tooltip.is-dismissed .info-panel {
    transform: translate(-50%, calc(-50% - 4px));
  }
}

@media (prefers-reduced-motion: reduce) {
  .JPN .jpn-info-tooltip > .info-panel,
  .JPN .jpn-card-feature .product-reveal,
  .JPN .jpn-card-feature .product-reveal img {
    transition: none;
  }
}
