.ptm-product-elevation-block {
  margin: 1.1rem 0 0;
}

.ptm-trail-effort {
  margin: 1rem 0 0;
}

.ptm-trail-effort__inner {
  display: flex;
  flex-direction: column;
  gap: 0.88rem;
  padding: 1rem 1rem 1.05rem;
  border: 1px solid rgba(0, 0, 0, 0.07);
  border-radius: 12px;
  background: #f7f4ea;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.6) inset;
}

.ptm-trail-effort__heading {
  min-width: 0;
}

.ptm-trail-effort__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.ptm-trail-effort__title {
  margin: 0;
  font-size: 1.08rem;
  line-height: 1.2;
  color: #3d2a0f;
  font-weight: 700;
}

.ptm-trail-effort__title-note {
  margin: 0.38rem 0 0;
  max-width: 44rem;
  color: #746b60;
  font-size: 0.8rem;
  line-height: 1.42;
}

.ptm-trail-effort__badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 30px;
  padding: 0.22rem 0.78rem;
  border-radius: 999px;
  border: 1px solid rgba(107, 101, 92, 0.16);
  background: rgba(125, 120, 111, 0.1);
  color: #5c5449;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  white-space: nowrap;
}

.ptm-trail-effort__scale-wrap {
  padding: 0.1rem 0 0.2rem;
}

.ptm-trail-effort__scale {
  display: flex;
  gap: 3px;
}

.ptm-trail-effort__step {
  flex: 1 1 0;
  height: 8px;
  border-radius: 3px;
  background: rgba(125, 120, 111, 0.18);
  box-shadow: inset 0 0 0 1px rgba(92, 87, 79, 0.06);
}

.ptm-trail-effort__step.is-filled {
  box-shadow: inset 0 0 0 1px rgba(92, 87, 79, 0.08);
}

.ptm-trail-effort__step.is-filled:nth-child(1) {
  background: #6baf6b;
}

.ptm-trail-effort__step.is-filled:nth-child(2) {
  background: #c8d96b;
}

.ptm-trail-effort__step.is-filled:nth-child(3) {
  background: #f4b942;
}

.ptm-trail-effort__step.is-filled:nth-child(4) {
  background: #fb8405;
}

.ptm-trail-effort__step.is-filled:nth-child(5) {
  background: #d64545;
}

.ptm-trail-effort--level-1 .ptm-trail-effort__badge {
  border-color: rgba(107, 175, 107, 0.28);
  background: rgba(107, 175, 107, 0.14);
  color: #4f7c4f;
}

.ptm-trail-effort--level-2 .ptm-trail-effort__badge {
  border-color: rgba(200, 217, 107, 0.34);
  background: rgba(200, 217, 107, 0.18);
  color: #75722f;
}

.ptm-trail-effort--level-3 .ptm-trail-effort__badge {
  border-color: rgba(244, 185, 66, 0.32);
  background: rgba(244, 185, 66, 0.16);
  color: #8c641f;
}

.ptm-trail-effort--level-4 .ptm-trail-effort__badge {
  border-color: rgba(251, 132, 5, 0.3);
  background: rgba(251, 132, 5, 0.14);
  color: #995116;
}

.ptm-trail-effort--level-5 .ptm-trail-effort__badge {
  border-color: rgba(214, 69, 69, 0.28);
  background: rgba(214, 69, 69, 0.14);
  color: #983535;
}

.ptm-trail-effort--placeholder .ptm-trail-effort__badge {
  border-color: rgba(125, 120, 111, 0.18);
  background: rgba(125, 120, 111, 0.1);
  color: #535353;
}

.ptm-trail-effort--placeholder .ptm-trail-effort__step {
  background: rgba(150, 150, 150, 0.16);
}

.ptm-trail-effort--placeholder .ptm-trail-effort__step.is-filled {
  background: linear-gradient(180deg, rgba(184, 184, 184, 0.66), rgba(132, 132, 132, 0.82));
}

.ptm-trail-effort__details {
  padding-top: 0.15rem;
}

.ptm-trail-effort__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.22rem 0.45rem;
  color: #6b655d;
}

.ptm-trail-effort__meta-item {
  display: inline-flex;
  align-items: baseline;
  gap: 0.28rem;
  min-width: 0;
  font-size: 0.82rem;
  line-height: 1.4;
  color: inherit;
}

.ptm-trail-effort__meta-item strong {
  color: #756e64;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
  flex: 0 0 auto;
}

.ptm-trail-effort__meta-item span:last-child {
  min-width: 0;
}

.ptm-trail-effort__meta-separator {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: rgba(107, 101, 92, 0.7);
  font-size: 0.78rem;
  line-height: 1;
}

.ptm-trail-effort__sentence {
  margin: 0.1rem 0 0;
  padding-top: 0.82rem;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
  color: #4f493f;
  font-size: 0.91rem;
  line-height: 1.48;
}

.product-description #table-short-desc td:first-child {
  white-space: nowrap;
}

.ptm-inline-icon {
  width: 16px;
  height: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-right: 0.35rem;
  vertical-align: -2px;
  color: #7a6030;
  flex: 0 0 16px;
}

.ptm-inline-icon svg {
  width: 16px;
  height: 16px;
  display: block;
}

.ptm-inline-label {
  display: inline;
}

.ptm-product-elevation-block__inner {
  padding: 1rem 1rem 0.95rem;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 12px;
  background: #f7f4ea;
  position: relative;
}

.ptm-product-elevation-block__badge {
  position: absolute;
  top: 0.9rem;
  right: 0.9rem;
}

.ptm-product-elevation-block__title {
  margin: 0 0 0.7rem;
  font-size: 1.15rem;
  line-height: 1.2;
  color: #3d2a0f;
}

.ptm-product-elevation-block__chart {
  margin: 0;
  position: relative;
  cursor: crosshair;
}

.ptm-product-elevation-block__placeholder {
  width: 100%;
  height: 190px;
  display: block;
  object-fit: cover;
  border-radius: 10px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  background: linear-gradient(180deg, #f3f0e8 0%, #ede7da 100%);
  filter: blur(1.8px) grayscale(0.18) saturate(0.78);
  opacity: 0.88;
}

.ptm-product-elevation-block__profile {
  margin: 0.55rem 0 0;
  font-size: 0.9rem;
  line-height: 1.45;
  color: #4b463d;
}

.ptm-product-elevation-block__canvas {
  width: 100%;
  height: 190px;
  display: block;
  pointer-events: none;
  border-radius: 10px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  background: linear-gradient(180deg, #f3f0e8 0%, #ede7da 100%);
}

.ptm-product-elevation-block__canvas.is-placeholder {
  filter: blur(1.2px) saturate(0.82);
  opacity: 0.82;
}

.ptm-product-elevation-block__overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  cursor: crosshair;
  background: transparent;
  pointer-events: auto;
}

.ptm-product-elevation-block__overlay.is-placeholder {
  cursor: default;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.22));
}

.ptm-product-elevation-block__summary {
  margin-top: 0.55rem;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.4rem;
  font-size: 0.78rem;
  color: #3a3a3a;
}

.ptm-product-elevation-block__summary > span {
  display: inline-flex;
  flex-direction: column;
  gap: 0.12rem;
  padding: 0.42rem 0.45rem;
  border-radius: 8px;
  border: 1px solid rgba(0, 0, 0, 0.07);
  background: rgba(255, 255, 255, 0.72);
}

.ptm-product-elevation-block__summary strong {
  display: inline-flex;
  align-items: center;
  gap: 0.22rem;
  font-size: 0.7rem;
  font-weight: 700;
  color: #6a6a6a;
}

.ptm-product-elevation-block__summary .ptm-metric__icon {
  width: 16px;
  height: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 16px;
  margin-right: 0.02rem;
  color: #6f5530;
  opacity: 1;
  vertical-align: -1px;
  background-repeat: no-repeat;
  background-position: center;
  background-size: 16px 16px;
}

.ptm-product-elevation-block__summary .ptm-metric__icon--distance {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M4 17.5 9.5 6.5l5 11 5-7.5M4 6.8h3.2M16.8 17.2H20' fill='none' stroke='%236f5530' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

.ptm-product-elevation-block__summary .ptm-metric__icon--ascent {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m6 16 6-8 6 8M12 8v10' fill='none' stroke='%236f5530' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

.ptm-product-elevation-block__summary .ptm-metric__icon--descent {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m6 8 6 8 6-8M12 6v10' fill='none' stroke='%236f5530' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

.ptm-product-elevation-block__summary .ptm-metric__icon--min {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 16.5h14M12 7.5v9' fill='none' stroke='%236f5530' stroke-width='1.8' stroke-linecap='round'/%3E%3C/svg%3E");
}

.ptm-product-elevation-block__summary .ptm-metric__icon--max {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 7.5h14M12 7.5v9' fill='none' stroke='%236f5530' stroke-width='1.8' stroke-linecap='round'/%3E%3C/svg%3E");
}

.ptm-product-elevation-block__teaser {
  margin-top: 0.65rem;
  padding: 0.7rem 0.8rem;
  border-radius: 10px;
  border: 1px solid rgba(125, 97, 48, 0.16);
  background: rgba(255, 255, 255, 0.72);
}

.ptm-product-elevation-block__teaser p {
  margin: 0 0 0.5rem;
  font-size: 0.88rem;
  line-height: 1.45;
  color: #332e25;
}

.ptm-product-elevation-block__cta {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.88rem;
  font-weight: 700;
  color: #6d4a14;
  text-decoration: none;
}

.ptm-product-elevation-block__cta:hover,
.ptm-product-elevation-block__cta:focus {
  text-decoration: underline;
}

.ptm-product-elevation-block__status {
  margin: 0.5rem 0 0;
  font-size: 0.78rem;
  color: #5d564b;
}

.ptm-product-conversion {
  margin-top: 0.95rem;
  padding: 1rem;
  border: 1px solid rgba(67, 83, 45, 0.14);
  border-radius: 14px;
  background: linear-gradient(180deg, #f4f1e8 0%, #eeeadf 100%);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
  gap: 1rem;
}

.ptm-product-conversion--reduced {
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.25fr);
}

.ptm-product-conversion__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.45rem;
}

.ptm-product-conversion__item {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  color: #3f382d;
  font-size: 0.9rem;
  line-height: 1.35;
}

.ptm-product-conversion__dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #7f8c64;
  box-shadow: 0 0 0 4px rgba(127, 140, 100, 0.12);
  flex: 0 0 8px;
}

.ptm-product-conversion__content {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.ptm-product-conversion__title {
  margin: 0;
  color: var(--pt-text-main, #2f2f2f);
  font-size: 1.05rem;
  line-height: 1.25;
}

.ptm-product-conversion__body {
  margin: 0;
  color: var(--pt-text-muted, #6f6a63);
  font-size: 0.9rem;
  line-height: 1.5;
}

.ptm-product-conversion__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 0.1rem;
}

.ptm-product-conversion__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
  min-height: var(--pt-btn-height-md, 46px);
  padding: 0.72rem 1.2rem;
  border-radius: var(--pt-btn-radius, 14px);
  font-size: 0.92rem;
  font-weight: 700;
  text-decoration: none;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.ptm-product-conversion--field-use {
  grid-template-columns: 1fr;
  gap: 0.7rem;
  padding: 0.9rem 1rem;
  background: linear-gradient(180deg, var(--pt-brown-soft, #F2EDE7) 0%, var(--pt-bg-main, #F7F5F2) 100%);
}

.ptm-product-conversion__body--field-use {
  max-width: 60ch;
  margin-bottom: 0.05rem;
}

.ptm-field-use__actions {
  align-items: center;
  gap: 0.6rem;
}

.ptm-field-use__icon {
  width: 16px;
  height: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 16px;
}

.ptm-field-use__icon svg {
  width: 16px;
  height: 16px;
  display: block;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.ptm-product-conversion__cta--locked {
  background: rgba(255, 255, 255, 0.58);
  border: 1px dashed var(--pt-border, #E2DED7);
  color: var(--pt-text-muted, #6F6A63);
  cursor: not-allowed;
  pointer-events: none;
  box-shadow: none;
  transform: none;
  gap: 0.42rem;
  min-height: 56px;
  justify-content: flex-start;
  text-align: left;
  padding: 1rem 3.6rem 0.96rem 1rem;
}

.ptm-field-use__actions--upgrade {
  margin-top: 0.45rem;
  padding-top: 0.7rem;
  border-top: 1px solid rgba(67, 83, 45, 0.1);
}

.ptm-field-use__actions--video {
  margin-top: 0.35rem;
  padding-top: 0.62rem;
  border-top: 1px solid rgba(67, 83, 45, 0.1);
}

.ptm-field-use__video-button {
  cursor: pointer;
  border: 1px solid var(--pt-border, #E2DED7);
  background: rgba(255, 255, 255, 0.72);
  color: var(--pt-text-main, #2f2f2f);
}

.ptm-trail-video-modal[hidden] {
  display: none;
}

.ptm-trail-video-modal {
  position: fixed;
  inset: 0;
  z-index: 10050;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.ptm-trail-video-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(28, 24, 18, 0.72);
}

.ptm-trail-video-modal__dialog {
  position: relative;
  z-index: 1;
  width: min(980px, 94vw);
  max-height: 88vh;
  padding: 0.7rem;
  border-radius: 18px;
  background: #111;
  box-shadow: 0 22px 70px rgba(0, 0, 0, 0.38);
}

.ptm-trail-video-modal__player {
  display: block;
  width: 100%;
  max-height: calc(88vh - 1.4rem);
  border-radius: 12px;
  background: #000;
}

.ptm-trail-video-modal__close {
  position: absolute;
  top: -0.85rem;
  right: -0.85rem;
  z-index: 2;
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 999px;
  background: #fff;
  color: #2f2a22;
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.24);
}

.ptm-field-use__plan {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 20px;
  margin-left: 0;
  padding: 0.08rem 0.42rem;
  border-radius: 999px;
  background: var(--pt-green-soft, #EAF4E2);
  color: var(--pt-green-hover, #5A9733);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  position: absolute;
  top: -6px;
  right: 0;
}

@media (max-width: 767px) {
  .ptm-trail-effort__inner {
    gap: 0.72rem;
    padding: 0.82rem 0.84rem 0.88rem;
  }

  .ptm-trail-effort__header {
    align-items: flex-start;
    gap: 0.55rem;
    flex-wrap: wrap;
  }

  .ptm-trail-effort__title {
    font-size: 1rem;
  }

  .ptm-trail-effort__title-note {
    font-size: 0.78rem;
  }

  .ptm-trail-effort__badge {
    min-height: 28px;
    padding: 0.2rem 0.68rem;
    font-size: 0.77rem;
  }

  .ptm-trail-effort__scale {
    gap: 2px;
  }

  .ptm-trail-effort__details {
    padding-top: 0.05rem;
  }

  .ptm-trail-effort__meta {
    gap: 0.24rem 0.42rem;
  }

  .ptm-trail-effort__meta-item {
    font-size: 0.79rem;
  }

  .ptm-trail-effort__meta-item strong {
    font-size: 0.78rem;
  }

  .ptm-trail-effort__sentence {
    margin-top: 0.16rem;
    padding-top: 0.78rem;
    font-size: 0.9rem;
  }

  .ptm-product-elevation-block__inner {
    padding: 0.85rem 0.85rem 0.8rem;
  }

  .ptm-product-elevation-block__canvas {
    height: 170px;
  }

  .ptm-product-elevation-block__placeholder {
    height: 170px;
  }

  .ptm-product-elevation-block__summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ptm-product-conversion,
  .ptm-product-conversion--reduced {
    grid-template-columns: 1fr;
    gap: 0.85rem;
    padding: 0.9rem;
  }

  .ptm-product-conversion__actions {
    flex-direction: column;
  }

  .ptm-field-use__actions--upgrade {
    padding-top: 0;
    border-top: 0;
  }

  .ptm-product-conversion__cta {
    width: 100%;
  }
}

@media (max-width: 480px) {
  .ptm-trail-effort__inner {
    gap: 0.68rem;
    padding: 0.78rem 0.78rem 0.84rem;
  }

  .ptm-trail-effort__header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.42rem;
  }

  .ptm-trail-effort__title {
    font-size: 0.96rem;
    line-height: 1.24;
  }

  .ptm-trail-effort__badge {
    min-height: 27px;
    padding: 0.18rem 0.62rem;
    font-size: 0.75rem;
  }

  .ptm-trail-effort__scale-wrap {
    padding: 0.08rem 0 0.18rem;
  }

  .ptm-trail-effort__scale {
    gap: 2px;
  }

  .ptm-trail-effort__meta {
    line-height: 1.45;
  }

  .ptm-trail-effort__meta-item {
    font-size: 0.77rem;
  }

  .ptm-trail-effort__meta-item strong {
    font-size: 0.76rem;
  }

  .ptm-trail-effort__meta-separator {
    margin-right: 0.08rem;
  }

  .ptm-trail-effort__sentence {
    margin-top: 0.2rem;
    padding-top: 0.8rem;
    font-size: 0.88rem;
    line-height: 1.5;
  }
}

.ptk-gpx-terms-modal[hidden] {
  display: none !important;
}

.ptk-gpx-terms-modal {
  position: fixed;
  inset: 0;
  z-index: 10050;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.ptk-gpx-terms-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(35, 30, 24, 0.48);
  backdrop-filter: blur(2px);
}

.ptk-gpx-terms-modal__dialog {
  position: relative;
  z-index: 1;
  width: min(520px, 100%);
  padding: 1.25rem;
  border: 1px solid rgba(109, 89, 55, 0.16);
  border-radius: 18px;
  background: rgba(255, 253, 246, 0.98);
  box-shadow: 0 18px 50px rgba(44, 35, 24, 0.2);
  color: #2f2a22;
}

.ptk-gpx-terms-modal__close {
  position: absolute;
  top: 0.65rem;
  right: 0.65rem;
  width: 32px;
  height: 32px;
  border: 1px solid rgba(109, 89, 55, 0.14);
  border-radius: 999px;
  background: #fff;
  color: #2f2a22;
  font-size: 1.15rem;
  line-height: 1;
  cursor: pointer;
}

.ptk-gpx-terms-modal__title {
  margin: 0 2rem 0.6rem 0;
  font-size: 1.08rem;
  line-height: 1.28;
  color: #2f2a22;
}

.ptk-gpx-terms-modal__text {
  margin: 0 0 0.8rem;
  color: rgba(47, 42, 34, 0.82);
  font-size: 0.95rem;
  line-height: 1.55;
}

.ptk-gpx-terms-modal__link {
  display: inline-flex;
  margin-bottom: 0.9rem;
  color: #587d30;
  font-weight: 700;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.ptk-gpx-terms-modal__check {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  margin: 0;
  padding: 0.72rem 0.78rem;
  border-radius: 14px;
  background: rgba(214, 169, 120, 0.16);
  color: rgba(47, 42, 34, 0.9);
  font-size: 0.9rem;
  line-height: 1.42;
  cursor: pointer;
}

.ptk-gpx-terms-modal__check input {
  flex: 0 0 auto;
  margin-top: 0.12rem;
}

.ptk-gpx-terms-modal__error {
  margin: 0.55rem 0 0;
  color: #8f3f35;
  font-size: 0.84rem;
  font-weight: 700;
}

.ptk-gpx-terms-modal__actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.65rem;
  margin-top: 1rem;
}

.ptk-gpx-terms-modal__button {
  min-height: 40px;
  padding: 0.52rem 0.9rem;
  border-radius: 999px;
  font-weight: 700;
  cursor: pointer;
}

.ptk-gpx-terms-modal__button--ghost {
  border: 1px solid rgba(109, 89, 55, 0.18);
  background: rgba(255, 255, 255, 0.78);
  color: rgba(47, 42, 34, 0.78);
}

.ptk-gpx-terms-modal__button--primary {
  border: 1px solid rgba(93, 137, 49, 0.18);
  background: #6bae3b;
  color: #fff;
  box-shadow: 0 8px 18px rgba(77, 120, 42, 0.18);
}

.ptk-gpx-terms-modal__button--primary:disabled {
  opacity: 0.48;
  cursor: not-allowed;
  box-shadow: none;
}

body.ptk-gpx-terms-modal-open {
  overflow: hidden;
}

@media (max-width: 520px) {
  .ptk-gpx-terms-modal {
    align-items: flex-end;
    padding: 0.75rem;
  }

  .ptk-gpx-terms-modal__dialog {
    padding: 1.1rem;
    border-radius: 17px;
  }

  .ptk-gpx-terms-modal__actions {
    flex-direction: column-reverse;
  }

  .ptk-gpx-terms-modal__button {
    width: 100%;
  }
}

.ptm-field-use__legal-note {
  margin: 0.42rem 0 0;
  color: rgba(74, 79, 66, 0.68);
  font-size: 0.74rem;
  line-height: 1.45;
}

.ptm-field-use__legal-note a {
  color: rgba(70, 104, 42, 0.86);
  font-weight: 700;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.ptm-field-use__legal-note a:hover,
.ptm-field-use__legal-note a:focus {
  color: #46682a;
}

.ptk-legal-modal[hidden] {
  display: none !important;
}

.ptk-legal-modal {
  position: fixed;
  inset: 0;
  z-index: 10060;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.ptk-legal-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(34, 31, 25, 0.48);
  backdrop-filter: blur(2px);
}

.ptk-legal-modal__dialog {
  position: relative;
  z-index: 1;
  width: min(760px, 100%);
  max-height: min(78vh, 760px);
  overflow: auto;
  padding: 1.35rem 1.45rem;
  border: 1px solid rgba(109, 89, 55, 0.16);
  border-radius: 18px;
  background: rgba(255, 253, 246, 0.98);
  box-shadow: 0 18px 50px rgba(44, 35, 24, 0.22);
  color: #2f2a22;
}

.ptk-legal-modal__close {
  position: sticky;
  top: 0;
  float: right;
  width: 32px;
  height: 32px;
  margin: -0.35rem -0.35rem 0.2rem 0.75rem;
  border: 1px solid rgba(109, 89, 55, 0.14);
  border-radius: 999px;
  background: #fff;
  color: #2f2a22;
  font-size: 1.15rem;
  line-height: 1;
  cursor: pointer;
}

.ptk-legal-modal__title {
  margin: 0 0 0.85rem;
  font-size: 1.18rem;
  line-height: 1.28;
  color: #2f2a22;
}

.ptk-legal-modal__body {
  color: rgba(47, 42, 34, 0.86);
  font-size: 0.94rem;
  line-height: 1.58;
}

.ptk-legal-modal__body > *:first-child {
  margin-top: 0;
}

.ptk-legal-modal__body > *:last-child {
  margin-bottom: 0;
}

body.ptk-legal-modal-open {
  overflow: hidden;
}

@media (max-width: 640px) {
  .ptk-legal-modal {
    align-items: flex-end;
    padding: 0.72rem;
  }

  .ptk-legal-modal__dialog {
    max-height: 82vh;
    padding: 1.15rem;
    border-radius: 17px;
  }
}
