/* Shared dimensions within each action group, including translated labels. */
.mp-actions:has(> .lp-btn + .lp-btn),
.lp-simple__actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-auto-rows: 1fr;
  align-items: stretch;
  gap: 12px;
  width: 100%;
  max-width: 800px;
  min-width: 0;
}

.mp-actions > .lp-btn,
.lp-simple__actions > .lp-btn,
.cookie-banner-v2__actions > .lp-btn {
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
  min-height: 48px;
  height: auto;
  padding: 12px 18px;
  line-height: 1.5;
  white-space: normal;
  text-align: center;
}

/* Keep single actions compact and centre the groups in centred heroes. */
.mp-actions > .lp-btn {
  display: inline-flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 52px;
  padding-inline: 16px;
  font-size: .875rem;
}
.mp-actions .lp-btn__label { min-width: 0; text-wrap: balance; }
.mp-actions .lp-btn__arrow { flex: 0 0 auto; }
.mp-actions > .lp-btn:only-child { width: auto; }
.mp-hero--center .mp-actions { margin-inline: auto; }
.mp-site-cta__inner { flex-wrap: wrap; }
.mp-site-cta__inner > div:first-child { flex: 1 1 380px; }
.mp-site-cta .mp-actions { flex: 1 1 480px; }
.mp-site-cta__inner > div { min-width: 0; }
.mp-beta-paths > article { display: flex; flex-direction: column; }
.mp-beta-paths > article > .lp-btn { width: 100%; min-height: 52px; margin-top: auto; padding: 12px 18px; }

.lp-hero__actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-auto-rows: 1fr;
  width: 100%;
  gap: 10px;
}
.lp-hero__actions > .lp-hero-cta,
.lp-hero__actions > .lp-film-hero-trigger {
  width: 100%;
  min-width: 0;
  height: auto;
  min-height: 52px;
  white-space: normal;
  grid-column: auto;
}
.lp-hero__actions > .lp-film-hero-trigger {
  grid-template-columns: 24px minmax(0, 1fr) auto;
  padding: 10px;
}
.lp-hero__actions > .lp-hero-cta--primary {
  justify-content: center;
  gap: 10px;
  padding-inline: 16px;
}
.lp-hero-cta--primary i {
  position: relative;
  inset: auto;
  transform: none;
}
.lp-film-hero-trigger__copy { min-width: 0; }
.lp-hero__actions .lp-film-hero-trigger__icon { width: 24px; height: 24px; }

.cookie-banner-v2__actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-auto-rows: 1fr;
  min-width: 0;
}
.cookie-banner-v2__actions .lp-btn { grid-column: auto; }

/* Content-sized actions retain a comfortable touch target without stretching. */
.cookie-dialog__head { gap: 12px; }
.cookie-dialog__head > div { min-width: 0; }
.cookie-dialog__head h2 { overflow-wrap: break-word; }
.cookie-dialog__close { flex: 0 0 36px; }
.cookie-dialog__panel { max-height: calc(100dvh - 40px); overflow-y: auto; }
.cookie-dialog__actions {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}
.cookie-dialog__actions > .lp-btn,
.lp-form .lp-form-submit,
.lp-legal-actions > .lp-btn {
  flex: 0 1 auto;
  width: fit-content;
  max-width: 100%;
  min-height: 44px;
  height: auto;
  padding: 12px 20px;
  font-size: .875rem;
  line-height: 1.4;
  gap: 10px;
  justify-content: center;
}
.cookie-dialog__actions > .lp-btn { white-space: nowrap; }
.lp-form .lp-form-submit { display: flex; margin-inline: auto; }

@media (max-width: 760px) {
  .mp-actions:has(> .lp-btn + .lp-btn),
  .lp-simple__actions,
  .lp-hero__actions {
    grid-template-columns: 1fr;
  }
  .mp-site-cta .mp-actions { flex: none; }
  .mp-site-cta__inner > div:first-child { flex: none; }
}
@media (max-width: 480px) {
  .cookie-banner-v2__actions { grid-template-columns: 1fr; }
  .cookie-dialog__actions { flex-direction: column; align-items: stretch; }
  .cookie-dialog__actions > .lp-btn { width: 100%; white-space: normal; }
}
