/* Banana Friends · Confirmación final de publicación · 30/10/2026.
   Estilos aislados para no modificar otros modales de Planes o Grupos. */
body.bf-page-planes .plan-published-backdrop[hidden],
body.bf-page-planes .plan-published-dialog[hidden],
body.bf-page-planes .plan-published-dialog [hidden] { display: none !important; }

body.bf-page-planes .plan-published-backdrop {
  position: fixed; inset: 0; z-index: 2147483000;
  background: rgba(11,11,12,.43);
  -webkit-backdrop-filter: blur(7px); backdrop-filter: blur(7px);
  opacity: 0; transition: opacity 260ms ease;
}
body.bf-page-planes .plan-published-dialog {
  box-sizing: border-box; position: fixed; z-index: 2147483001;
  left: 50%; top: 50%; transform: translate(-50%, -48%) scale(.97);
  opacity: 0;
  transition: transform 320ms cubic-bezier(.23,1,.32,1), opacity 220ms ease;
  will-change: transform;
  display: block; width: min(450px, calc(100vw - 32px));
  max-height: 92vh; overflow-x: hidden; overflow-y: auto;
  overscroll-behavior: contain; -webkit-overflow-scrolling: touch;
  border: 1px solid #e8e8e8; border-radius: 24px;
  margin: 0; padding: 0; background: #fff; color: #171717;
  box-shadow: 0 24px 90px rgba(0,0,0,.22);
}
@supports (height: 100dvh) {
  body.bf-page-planes .plan-published-dialog { max-height: 92dvh; }
}
body.bf-page-planes .plan-published-backdrop.is-visible { opacity: 1; }
body.bf-page-planes .plan-published-dialog.is-visible { transform: translate(-50%, -50%) scale(1); opacity: 1; }
body.bf-page-planes .plan-published-dialog *,
body.bf-page-planes .plan-published-dialog *::before,
body.bf-page-planes .plan-published-dialog *::after { box-sizing: border-box; }
body.bf-page-planes .plan-published-shell { padding: 25px; }
body.bf-page-planes .plan-published-handle { display: none; }
body.bf-page-planes .plan-published-header { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 22px; }
body.bf-page-planes .plan-published-success-icon {
  flex: 0 0 38px; width: 38px; height: 38px;
  display: grid; place-items: center; border-radius: 13px;
  background: #181818; color: #fff;
}
body.bf-page-planes .plan-published-success-icon svg {
  width: 20px; height: 20px; stroke: currentColor; fill: none;
  stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round;
}
body.bf-page-planes .plan-published-heading { min-width: 0; flex: 1; }
body.bf-page-planes .plan-published-heading h2 {
  margin: 0 0 6px; font: 750 20px/1.2 Inter, system-ui, sans-serif;
  letter-spacing: -.035em; color: #161616;
}
body.bf-page-planes .plan-published-heading p {
  margin: 0; font: 400 12.5px/1.5 Inter, system-ui, sans-serif; color: #686868;
}
body.bf-page-planes .plan-published-close {
  appearance: none; flex: 0 0 30px; width: 30px; height: 30px;
  display: grid; place-items: center; border-radius: 50%;
  background: #f5f5f5; color: #444; border: 1px solid #ececec;
  cursor: pointer; padding: 0;
}
body.bf-page-planes .plan-published-close:hover { background: #ebebeb; }
body.bf-page-planes .plan-published-close svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
body.bf-page-planes .plan-published-plan {
  display: flex; gap: 13px; align-items: center;
  border: 1px solid #eee; border-radius: 15px; padding: 10px;
  background: #fff;
}
body.bf-page-planes .plan-published-plan > img {
  flex: 0 0 84px; width: 84px; height: 84px; object-fit: cover;
  border-radius: 11px; background: #f2f2f2;
}
body.bf-page-planes .plan-published-details { flex: 1; min-width: 0; }
body.bf-page-planes .plan-published-visibility {
  display: inline-flex; padding: 3px 8px; margin-bottom: 7px;
  border-radius: 5px; background: #f2f2f2; color: #575757;
  font: 650 10px/1.2 Inter, system-ui, sans-serif;
}
body.bf-page-planes .plan-published-details h3 {
  margin: 0 0 4px; font: 740 15px/1.28 Inter, system-ui, sans-serif;
  letter-spacing: -.01em; color: #1a1a1a; overflow-wrap: anywhere;
}
body.bf-page-planes .plan-published-date,
body.bf-page-planes .plan-published-recurrence {
  margin: 0; color: #696969; font: 420 11.5px/1.5 Inter, system-ui, sans-serif;
}
body.bf-page-planes .plan-published-recurrence { margin-top: 5px; }
body.bf-page-planes .plan-published-group {
  display: flex; gap: 11px; align-items: flex-start;
  margin-top: 13px; padding: 15px; border-radius: 15px;
  border: 1px solid #e7e7e7; background: #f8f8f8;
}
body.bf-page-planes .plan-published-group-icon {
  flex: 0 0 44px; display: grid; place-items: center;
  width: 44px; height: 44px; border-radius: 14px;
  background: #fff; border: 1px solid #e5e5e7; color: #222;
  box-shadow: 0 1px 3px rgba(15,15,15,.03);
}
body.bf-page-planes .plan-published-group-icon svg {
  width: 22px; height: 22px; stroke: currentColor; fill: none;
  stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round;
}
body.bf-page-planes .plan-published-group-copy { flex: 1; min-width: 0; }
body.bf-page-planes .plan-published-group-copy > strong {
  display: block; margin: 1px 0 5px;
  color: #1b1b1b; font: 720 13px/1.3 Inter, system-ui, sans-serif;
}
body.bf-page-planes .plan-published-group-copy > p {
  margin: 0; color: #626262; font: 400 11.5px/1.5 Inter, system-ui, sans-serif;
}
body.bf-page-planes .plan-published-period {
  display: flex; align-items: flex-end; flex-wrap: wrap; gap: 8px;
  margin-top: 13px; padding: 11px 0 0; border-top: 1px solid #e5e5e5;
}
body.bf-page-planes .plan-published-period-date { flex: 1; min-width: 112px; }
body.bf-page-planes .plan-published-period-date > span {
  display: block; margin-bottom: 3px; color: #858585;
  font: 650 10px/1.25 Inter, system-ui, sans-serif;
}
body.bf-page-planes .plan-published-period-date time {
  display: block; font: 640 11.5px/1.4 Inter, system-ui, sans-serif; color: #202020;
}
body.bf-page-planes .plan-published-period-separator { align-self: center; color: #a1a1a1; font-size: 14px; }
body.bf-page-planes .plan-published-actions { display: flex; flex-direction: column; gap: 9px; margin-top: 18px; }
body.bf-page-planes .plan-published-actions a,
body.bf-page-planes .plan-published-actions button {
  appearance: none; display: inline-flex; gap: 10px; align-items: center; justify-content: center;
  width: 100%; min-height: 50px; padding: 12px 16px;
  border-radius: 14px; text-decoration: none; cursor: pointer;
  font: 650 14px/1.3 Inter, system-ui, sans-serif; text-align: center;
  transition: background .16s ease;
}
body.bf-page-planes .plan-published-primary,
body.bf-page-planes .plan-published-primary:visited {
  display: grid; grid-template-columns: 22px minmax(0,1fr) 22px; gap: 10px;
  background: #171717; border: 1px solid #171717; color: #fff;
}
body.bf-page-planes .plan-published-primary:hover { background: #343434; color: #fff; }
body.bf-page-planes .plan-published-primary .plan-published-button-chat {
  width: 21px; height: 21px; stroke: currentColor; stroke-width: 1.8;
}
body.bf-page-planes .plan-published-primary .plan-published-button-chevron {
  width: 18px; height: 18px; stroke: currentColor; stroke-width: 1.8; justify-self: end;
}
body.bf-page-planes .plan-published-primary-label { justify-self: center; }
body.bf-page-planes .plan-published-secondary,
body.bf-page-planes .plan-published-secondary:visited { background: #fff; color: #292929; border: 1px solid #dedede; }
body.bf-page-planes .plan-published-secondary:hover { background: #f6f6f6; color: #111; }
body.bf-page-planes .plan-published-feedback { margin: 9px 2px 0; color: #555; font: 500 11px/1.5 Inter, system-ui, sans-serif; }
body.bf-page-planes .plan-published-dialog :focus-visible { outline: 2px solid #161616; outline-offset: 3px; }

/* Hoja inferior inspirada en iOS: mismo patrón móvil que «Crear plan». */
@media (max-width: 760px) {
  body.bf-page-planes .plan-published-dialog {
    left: 0; right: 0; top: auto; bottom: 0;
    width: 100%; max-width: none; max-height: 95vh;
    margin: 0; border-radius: 26px 26px 0 0; border-bottom: 0;
    padding: 0; overflow-x: hidden; overflow-y: auto;
    transform: translate3d(0, 105%, 0); opacity: 1;
    transition: transform 380ms cubic-bezier(.23,1,.32,1);
    box-shadow: 0 -15px 55px rgba(0,0,0,.16);
    overscroll-behavior-y: contain; -webkit-overflow-scrolling: touch;
  }
  body.bf-page-planes .plan-published-dialog.is-visible {
    transform: translate3d(0, 0, 0); opacity: 1;
  }
  @supports (height: 100dvh) {
    body.bf-page-planes .plan-published-dialog { max-height: calc(100dvh - 10px); }
  }
  body.bf-page-planes .plan-published-shell {
    padding: 0 18px max(18px, env(safe-area-inset-bottom, 0px));
  }
  body.bf-page-planes .plan-published-handle {
    display: block; width: 35px; height: 5px; margin: 10px auto 20px;
    border-radius: 10px; background: #d6d6d9;
  }
  body.bf-page-planes .plan-published-header { gap: 12px; margin-bottom: 18px; }
  body.bf-page-planes .plan-published-heading h2 { font-size: 20px; }
  body.bf-page-planes .plan-published-group { padding: 14px; margin-top: 12px; }
  body.bf-page-planes .plan-published-plan > img {
    width: 74px; height: 74px; flex-basis: 74px;
  }
  body.bf-page-planes .plan-published-period { gap: 6px; }
  body.bf-page-planes .plan-published-actions {
    position: sticky; bottom: 0; z-index: 1;
    margin: 12px -18px 0; padding: 14px 18px max(12px, env(safe-area-inset-bottom, 0px));
    background: #fff; border-top: 1px solid #f0f0f1;
  }
  body.bf-page-planes .plan-published-actions a,
  body.bf-page-planes .plan-published-actions button { min-height: 52px; }
}
@media (max-width: 360px) {
  body.bf-page-planes .plan-published-shell { padding-inline: 15px; }
  body.bf-page-planes .plan-published-actions { margin-inline: -15px; padding-inline: 15px; }
  body.bf-page-planes .plan-published-group { gap: 10px; padding: 12px; }
  body.bf-page-planes .plan-published-group-icon { width: 39px; height: 39px; flex-basis: 39px; }
  body.bf-page-planes .plan-published-period { flex-direction: column; align-items: flex-start; gap: 8px; }
  body.bf-page-planes .plan-published-period-date { flex: 0 0 auto; width: 100%; min-width: 0; }
  body.bf-page-planes .plan-published-period-separator { display: none; }
  body.bf-page-planes .plan-published-heading h2 { font-size: 18px; }
}
@media (prefers-reduced-motion: reduce) {
  body.bf-page-planes .plan-published-dialog,
  body.bf-page-planes .plan-published-backdrop,
  body.bf-page-planes .plan-published-dialog * { transition: none !important; }
}
