/**
 * JKPTG footer regions.
 */

.jkptg-agency {
  position: relative;
  z-index: 2;
  width: 100%;
}

.jkptg-agency__inner {
  box-sizing: border-box;
  width: min(
    calc(
      100% - var(--jkptg-layout-page-gutter, 24px) -
        var(--jkptg-layout-page-gutter, 24px)
    ),
    var(--jkptg-layout-container-max-width, 1200px)
  );
  max-width: 1200px;
  min-height: 142px;
  margin-inline: auto;
  padding: 0;
  overflow: hidden;
  background-color: var(--jkptg-surface-primary, #fcfcfc);
  border-radius: 12px;
  transform: translateY(72px);
}

.jkptg-agency-carousel {
  width: 100%;
  height: 142px;
}

.jkptg-agency-carousel {
  position: relative;
  box-sizing: border-box;
  padding: 20px 35px;
  --jkptg-agency-viewport-inset: 60px;
}

.jkptg-agency-carousel__viewport {
  width: calc(100% - var(--jkptg-agency-viewport-inset));
  height: 102px;
  margin-inline: calc(var(--jkptg-agency-viewport-inset) / 2);
  overflow: hidden;
  cursor: grab;
  touch-action: pan-y;
}

.jkptg-agency-carousel.is-static .jkptg-agency-carousel__viewport {
  cursor: default;
}

.jkptg-agency-carousel.is-static .jkptg-agency-carousel__control--previous {
  left: var(--jkptg-agency-control-start, 35px);
}

.jkptg-agency-carousel__viewport.is-dragging {
  cursor: grabbing;
  user-select: none;
}

.jkptg-agency-carousel__viewport.is-dragging .jkptg-agency-card__link {
  pointer-events: none;
}

.jkptg-agency-carousel .field--name-field-agency-items.field__items {
  display: flex;
  gap: 10px;
  width: max-content;
  min-width: 100%;
  height: 102px;
  margin: 0;
  padding: 0;
}

.jkptg-agency-carousel.is-static .field--name-field-agency-items.field__items {
  position: relative;
  width: 100%;
  justify-content: space-evenly;
}

.jkptg-agency-carousel
  .field--name-field-agency-items.field__items
  > .field__item {
  flex: 0 0 170px;
  width: 170px;
  height: 102px;
}

.jkptg-agency-card,
.jkptg-agency-card__link {
  width: 170px;
  height: 102px;
}

.jkptg-agency-card__link {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  color: var(--jkptg-text-primary, #090909);
  font-family: var(--jkptg-font-family-title, "Inter", sans-serif);
  font-size: 12px;
  font-weight: 400;
  line-height: 14.4px;
  text-align: center;
  text-decoration: none;
}

.jkptg-agency-card__logo,
.jkptg-agency-card__logo .field,
.jkptg-agency-card__logo .field__item {
  display: block;
  width: 63px;
  height: 63px;
}

.jkptg-agency-card__logo img {
  display: block;
  width: 63px;
  height: 63px;
  object-fit: contain;
  user-select: none;
  -webkit-user-drag: none;
}

.jkptg-agency-card__label {
  display: block;
  width: 170px;
  min-height: 29px;
}

.jkptg-agency-carousel__control {
  position: absolute;
  z-index: 1;
  top: 61px;
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  padding: 0;
  overflow: hidden;
  color: var(--jkptg-text-inverse, #fcfcfc);
  background-color: var(--jkptg-surface-control, #535353);
  border: 0;
  border-radius: 50%;
  cursor: pointer;
}

.jkptg-agency-carousel__control--previous {
  top: 61px;
  left: 55px;
}

.jkptg-agency-carousel__control--next {
  right: 35px;
}

.jkptg-agency-carousel__control img {
  display: block;
  width: 6px;
  height: 12px;
}

.jkptg-agency-carousel__control--previous img {
  transform: scaleX(-1);
}

.jkptg-agency-carousel__control:disabled {
  cursor: default;
  opacity: 0.5;
}

.jkptg-agency-carousel__control:hover {
  background-color: var(--jkptg-text-primary, #090909);
}

.jkptg-agency-carousel__control:focus-visible {
  outline: 2px solid var(--jkptg-text-primary, #090909);
  outline-offset: 3px;
}

.jkptg-agency-carousel__status {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.jkptg-agency-card__link:hover,
.jkptg-agency-card__link:focus-visible {
  color: var(--jkptg-text-primary, #090909);
  text-decoration: none;
}

.jkptg-agency-card__link:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 3px;
}

.jkptg-footer-main {
  position: relative;
  z-index: 1;
  width: 100%;
  border-bottom: 1px solid
    var(--jkptg-border-neutral-on-dark-15, rgba(255, 255, 255, 0.15));
  color: var(--jkptg-text-inverse, #fcfcfc);
  background-color: var(--jkptg-surface-dark, #00122a);
}

.jkptg-footer-main__inner,
.jkptg-footer-bottom__inner {
  box-sizing: border-box;
  width: min(
    calc(
      100% - var(--jkptg-layout-page-gutter, 24px) -
        var(--jkptg-layout-page-gutter, 24px)
    ),
    var(--jkptg-layout-container-max-width, 1200px)
  );
  max-width: 1200px;
  margin-inline: auto;
  padding-inline: 0;
}

.jkptg-footer-main__row {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 3fr);
  align-items: center;
  width: 100%;
  min-height: 319px;
  padding-block: 85px 30px;
}

.jkptg-footer-main__column {
  min-width: 0;
  width: 100%;
}

.jkptg-footer-main__column > .block,
.jkptg-footer-bottom__column > .block {
  width: 100%;
}

.jkptg-footer-main__column--right {
  text-align: right;
}

#block-jkptg-footer-address {
  max-width: 820px;
  color: var(--jkptg-text-inverse, #fcfcfc);
  font-family: var(--jkptg-font-family-body, "Inter", sans-serif);
  font-size: 16px;
  font-weight: 400;
  line-height: 25px;
}

#block-jkptg-footer-address .field,
#block-jkptg-footer-address .field__item,
#block-jkptg-footer-address p {
  margin: 0;
}

.jkptg-footer-address {
  display: flex;
  align-items: start;
  gap: 10px;
  width: 100%;
}

.jkptg-footer-address__logo {
  display: block;
  flex: 0 0 82px;
  width: 82px;
  height: 65px;
  object-fit: cover;
}

.jkptg-footer-address__info {
  display: flex;
  flex: 1 1 auto;
  min-width: 0;
  flex-direction: column;
  justify-content: center;
  gap: 10px;
}

.jkptg-footer-address__agency {
  display: block;
  width: 100%;
  font-weight: 700;
  line-height: 25px;
}

.jkptg-footer-address__agency span {
  display: block;
}

@media (min-width: 768px) {
  .jkptg-footer-address__agency span {
    white-space: nowrap;
  }
}

.jkptg-footer-address__detail {
  display: flex;
  width: 100%;
  align-items: flex-start;
  gap: 10px;
}

.jkptg-footer-address__detail > img {
  display: block;
  flex: 0 0 15px;
  width: 20px;
  height: 20px;
}

.jkptg-footer-address__detail address {
  color: var(--text-inverse, #fcfcfc);
  font-family: Inter;
  font-size: var(--font-size-md, 16px);
  font-style: normal;
  font-weight: 400;
  line-height: 25px; /* 156.25% */
}

.jkptg-footer-address__detail--phone {
  align-items: center;
}

#block-jkptg-footer-address .jkptg-footer-address__detail a {
  color: inherit;
  text-decoration: none;
}

#block-jkptg-footer-address .jkptg-footer-address__detail a:hover,
#block-jkptg-footer-address .jkptg-footer-address__detail a:focus-visible {
  text-decoration: none;
  text-underline-offset: 3px;
}

#block-jkptg-footer-address .jkptg-footer-address__detail a:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 3px;
}

#block-jkptg-footer-visitor {
  width: 100%;
  color: var(--jkptg-text-inverse, #fcfcfc);
  text-align: right;
}

#block-jkptg-footer-visitor .field,
#block-jkptg-footer-visitor .field__item,
#block-jkptg-footer-visitor p {
  margin: 0;
}

.jkptg-footer-visitor {
  display: flex;
  width: 100%;
  flex-direction: column;
  align-items: flex-end;
  gap: 15px;
}

.jkptg-footer-visitor__counter {
  display: flex;
  /* width: 136px; */
  flex-direction: column;
  align-items: end;
  /* justify-content: center; */
  gap: 5px;
}

.jkptg-footer-visitor__label {
  display: flex;
  /* width: 136px; */
  /* height: 24px; */
  /* align-items: center; */
  font-family: var(--jkptg-font-family-body, "Inter", sans-serif);
  font-size: 14px;
  font-weight: 500;
  line-height: 11.67px;
  /* text-align: left; */
}

.jkptg-footer-visitor__value {
  display: flex;
  box-sizing: border-box;
  width: 136px;
  align-items: center;
  gap: 5px;
  padding: 2px 5px;
  color: var(--text-inverse, #fcfcfc);
  /* background-color: var(--jkptg-surface-primary, #fcfcfc); */
  justify-content: right;
}

.jkptg-footer-visitor__value img {
  display: block;
  flex: 0 0 20px;
  width: 20px;
  height: 20px;
}

.jkptg-footer-visitor__value strong {
  font-family: "Source Sans 3", sans-serif;
  font-size: 20px;
  font-weight: 700;
  line-height: normal;
  text-align: right;
  white-space: nowrap;
}

.jkptg-footer-visitor__updated {
  width: max-content;
  min-width: 320px;
  min-height: 20px;
  font-family: "Source Sans 3", sans-serif;
  font-size: 15px;
  font-weight: 400;
  line-height: normal;
  text-align: right;
  white-space: nowrap;
}

.jkptg-footer-visitor__qr {
  display: block;
  width: 93px;
  height: 93px;
  object-fit: cover;
}

.jkptg-footer-bottom {
  width: 100%;
  color: var(--jkptg-text-inverse, #fcfcfc);
  background-color: var(--jkptg-surface-dark, #00122a);
}

.jkptg-footer-bottom__row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: center;
  width: 100%;
  min-height: 38px;
  padding-block: 10px;
}

:lang(en) .jkptg-footer-bottom__row {
	grid-template-columns: 55% 1fr;
}

.jkptg-footer-bottom__column {
  min-width: 0;
  width: 100%;
}

.jkptg-footer-bottom__column--right {
  text-align: right;
}

#block-jkptg-footer-copyright,
#block-jkptg-footer-copyright .field,
#block-jkptg-footer-copyright .field__item {
  color: var(--jkptg-text-inverse, #fcfcfc);
  font-family: var(--jkptg-font-family-body, "Inter", sans-serif);
  font-size: 15px;
  font-weight: 400;
  line-height: normal;
  overflow-wrap: anywhere;
}

#block-jkptg-footer-copyright .field,
#block-jkptg-footer-copyright p {
  margin: 0;
}

#block-jkptg-footer-link,
.jkptg-footer-legal-links {
  width: 100%;
}

#block-jkptg-footer-link .field--name-field-footer-links.field__items {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 25px;
  margin: 0;
  padding: 0;
  white-space: nowrap;
}

.jkptg-footer-legal-link,
.jkptg-footer-legal-link a {
  color: var(--jkptg-text-inverse, #fcfcfc);
  font-family: var(--jkptg-font-family-body, "Inter", sans-serif);
  font-size: 15px;
  font-weight: 500;
  line-height: 11.67px;
  text-decoration: none;
}

.jkptg-footer-legal-link a:hover,
.jkptg-footer-legal-link a:focus-visible {
  color: var(--jkptg-text-action-default, #2d9bd3);
  text-decoration: none;
  text-underline-offset: 3px;
}

.jkptg-footer-legal-link a:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 3px;
}

@media (max-width: 991.98px) {
  .jkptg-footer-main__row {
    grid-template-columns: minmax(0, 1fr);
    gap: 32px;
    min-height: 0;
    padding-block: 85px 32px;
  }

  .jkptg-footer-main__column--right {
    text-align: left;
  }

  #block-jkptg-footer-visitor,
  .jkptg-footer-visitor__value strong,
  .jkptg-footer-visitor__updated {
    text-align: left;
  }

  .jkptg-footer-visitor {
    align-items: flex-start;
  }

  .jkptg-footer-visitor__updated {
    width: auto;
    min-width: 0;
    max-width: 100%;
  }
}

@media (max-width: 767.98px) {
  .jkptg-agency {
    transform: translateY(24px);
  }

  .jkptg-agency__inner {
    border-radius: 8px;
  }

  .jkptg-agency-carousel {
    padding-inline: 25px;
    --jkptg-agency-viewport-inset: 40px;
    --jkptg-agency-control-start: 15px;
  }

  .jkptg-agency-carousel__control--previous {
    top: 61px;
    left: 15px;
  }

  .jkptg-agency-carousel__control--next {
    right: 15px;
  }

  .jkptg-footer-bottom__row {
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
    padding-block: 18px;
  }

  .jkptg-footer-main__row {
    gap: 28px;
    padding-block: 56px 32px;
  }

  .jkptg-footer-bottom__column--right {
    text-align: left;
  }

  #block-jkptg-footer-address {
    max-width: none;
    font-size: 14px;
    line-height: 22px;
  }

  .jkptg-footer-address {
    gap: 8px;
  }

  .jkptg-footer-address__logo {
    flex-basis: 68px;
    width: 68px;
    height: 54px;
    object-fit: contain;
  }

  .jkptg-footer-address__info,
  .jkptg-footer-address__detail {
    gap: 8px;
  }

  .jkptg-footer-address__agency,
  .jkptg-footer-address__detail address {
    line-height: 22px;
  }

  .jkptg-footer-visitor__updated {
    font-size: 13px;
  }

  #block-jkptg-footer-link .field--name-field-footer-links.field__items {
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: 10px 20px;
    white-space: normal;
  }

  #block-jkptg-footer-copyright,
  #block-jkptg-footer-copyright .field,
  #block-jkptg-footer-copyright .field__item,
  .jkptg-footer-legal-link,
  .jkptg-footer-legal-link a {
    font-size: 14px;
    line-height: 1.4;
  }

  .jkptg-agency__inner {
    transform: translateY(-25px);
  }
}

@media (max-width: 399.98px) {
  .jkptg-agency-carousel {
    padding-inline: 20px;
    --jkptg-agency-viewport-inset: 30px;
    --jkptg-agency-control-start: 8px;
  }

  .jkptg-agency-carousel__control--previous {
    left: 8px;
  }

  .jkptg-agency-carousel__control--next {
    right: 8px;
  }

  #block-jkptg-footer-address {
    font-size: 13px;
  }

  .jkptg-footer-address__logo {
    flex-basis: 60px;
    width: 60px;
    height: 48px;
  }

  .jkptg-footer-visitor__updated {
    font-size: clamp(10px, 3vw, 12px);
  }
}

@media (min-width: 768px) and (max-width: 1199.98px) {
  .jkptg-agency-carousel__control--previous {
    top: 61px;
    left: 35px;
  }
}
