/**
 * Lamilka Tour 0.6.14
 * Focused footer, Private Tours image, transfer-pill and WhatsApp-card fixes.
 *
 * Scope:
 * - add the official TikTok profile to the established footer social row;
 * - preserve the full Private Tours image area on every supported phone width;
 * - keep the cancellation statement on one line with its checkmark adjacent;
 * - center the existing two-line WhatsApp notice as two balanced groups.
 */

/* TikTok uses the standard social control geometry with a slightly taller mark. */
.lamilka-social-icon--tiktok {
  height: 19px !important;
  width: 19px !important;
}

/* --------------------------------------------------------------------------
   Private Tours mobile cards: copy height may grow, but the 5:6 source image
   keeps its complete, non-shrinking display area on every phone.
   -------------------------------------------------------------------------- */
@media (max-width: 767px) {
  body.lamilka-private-tours-page
  .lamilka-private__ideas
  [data-lamilka-private-ideas] > .lamilka-private__idea-card {
    aspect-ratio: auto !important;
    grid-template-rows: auto auto !important;
    height: auto !important;
  }

  body.lamilka-private-tours-page
  .lamilka-private__ideas
  .lamilka-private__idea-card > img {
    aspect-ratio: 5 / 6 !important;
    flex: none !important;
    height: auto !important;
    min-height: 0 !important;
    object-fit: cover !important;
    object-position: center center !important;
    width: 100% !important;
  }
}

/* --------------------------------------------------------------------------
   Transfer cancellation pill: one centered row at every phone width. The
   type decreases only at the breakpoints where the complete sentence needs it.
   -------------------------------------------------------------------------- */
@media (max-width: 767px) {
  html body.lamilka-transfers-page
  [data-lamilka-trust-contract="v063"].lamilka-transfer__benefits
  > li.lamilka-transfer__benefit--cancellation {
    align-items: center !important;
    display: flex !important;
    flex-wrap: nowrap !important;
    gap: 6px !important;
    justify-content: center !important;
    min-height: 38px !important;
    overflow: visible !important;
    padding: 7px 8px !important;
    white-space: nowrap !important;
  }

  html body.lamilka-transfers-page
  [data-lamilka-trust-contract="v063"].lamilka-transfer__benefits
  > li.lamilka-transfer__benefit--cancellation
  > .lamilka-transfer__benefit-check {
    align-self: center !important;
    display: inline-flex !important;
    flex: 0 0 14px !important;
    height: 14px !important;
    margin: 0 !important;
    position: static !important;
    transform: none !important;
    width: 14px !important;
  }

  html body.lamilka-transfers-page
  [data-lamilka-trust-contract="v063"].lamilka-transfer__benefits
  > li.lamilka-transfer__benefit--cancellation
  > span:not(.lamilka-transfer__benefit-check) {
    display: inline-block !important;
    flex: 0 1 auto !important;
    font-size: 12px !important;
    line-height: 1.2 !important;
    margin: 0 !important;
    max-width: none !important;
    min-width: 0 !important;
    overflow: visible !important;
    text-align: center !important;
    text-wrap: nowrap !important;
    white-space: nowrap !important;
    width: auto !important;
  }
}

@media (max-width: 430px) {
  html body.lamilka-transfers-page
  [data-lamilka-trust-contract="v063"].lamilka-transfer__benefits
  > li.lamilka-transfer__benefit--cancellation
  > span:not(.lamilka-transfer__benefit-check) {
    font-size: 11.5px !important;
  }
}

@media (max-width: 390px) {
  html body.lamilka-transfers-page
  [data-lamilka-trust-contract="v063"].lamilka-transfer__benefits
  > li.lamilka-transfer__benefit--cancellation
  > span:not(.lamilka-transfer__benefit-check) {
    font-size: 10.5px !important;
  }
}

@media (max-width: 350px) {
  html body.lamilka-transfers-page
  [data-lamilka-trust-contract="v063"].lamilka-transfer__benefits
  > li.lamilka-transfer__benefit--cancellation {
    gap: 5px !important;
    padding-inline: 6px !important;
  }

  html body.lamilka-transfers-page
  [data-lamilka-trust-contract="v063"].lamilka-transfer__benefits
  > li.lamilka-transfer__benefit--cancellation
  > span:not(.lamilka-transfer__benefit-check) {
    font-size: 9.5px !important;
  }
}

/* --------------------------------------------------------------------------
   Transfer WhatsApp notice: retain the exact two lines and center each line.
   The icon and second sentence form one centered, browser-stable flex group.
   -------------------------------------------------------------------------- */
body.lamilka-transfers-page .lamilka-transfer__group {
  align-items: center !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 7px !important;
  justify-content: center !important;
  min-height: 0 !important;
  padding: 17px 20px !important;
  text-align: center !important;
}

body.lamilka-transfers-page .lamilka-transfer__group-question {
  display: block !important;
  line-height: 1.25 !important;
  margin: 0 !important;
  text-align: center !important;
  width: 100% !important;
}

body.lamilka-transfers-page .lamilka-transfer__group-answer-row {
  align-items: center !important;
  display: inline-flex !important;
  gap: 8px !important;
  justify-content: center !important;
  margin: 0 auto !important;
  max-width: 100% !important;
}

body.lamilka-transfers-page .lamilka-transfer__group-answer {
  display: inline !important;
  line-height: 1.25 !important;
  margin: 0 !important;
  text-align: center !important;
  white-space: nowrap !important;
}

body.lamilka-transfers-page .lamilka-transfer__group .lamilka-message-bubble-icon {
  align-self: center !important;
  flex: 0 0 24px !important;
  height: 24px !important;
  margin: 0 !important;
  position: static !important;
  transform: none !important;
  width: 24px !important;
}

body.lamilka-transfers-page .lamilka-transfer__group-break {
  display: none !important;
}

@media (max-width: 767px) {
  body.lamilka-transfers-page .lamilka-transfer__group {
    gap: 6px !important;
    padding: 14px 12px !important;
  }

  body.lamilka-transfers-page .lamilka-transfer__group-question,
  body.lamilka-transfers-page .lamilka-transfer__group-answer {
    font-size: 14px !important;
  }

  body.lamilka-transfers-page .lamilka-transfer__group .lamilka-message-bubble-icon {
    flex-basis: 22px !important;
    height: 22px !important;
    width: 22px !important;
  }
}

@media (max-width: 380px) {
  body.lamilka-transfers-page .lamilka-transfer__group-question,
  body.lamilka-transfers-page .lamilka-transfer__group-answer {
    font-size: 13px !important;
  }

  body.lamilka-transfers-page .lamilka-transfer__group-answer-row {
    gap: 6px !important;
  }

  body.lamilka-transfers-page .lamilka-transfer__group .lamilka-message-bubble-icon {
    flex-basis: 20px !important;
    height: 20px !important;
    width: 20px !important;
  }
}
