/* =========================
   Design Tokens
   ========================= */
:root{
  --fwe-radius: 18px;
  --fwe-radius-sm: 14px;

  --fwe-border: rgba(0,0,0,.10);
  --fwe-soft: rgba(0,0,0,.03);

  --fwe-blue: #0b3a73;
  --fwe-red: #c21d2e;

  --fwe-text: rgba(0,0,0,.88);
  --fwe-muted: rgba(0,0,0,.70);

  --fwe-shadow: 0 10px 28px rgba(0,0,0,.08);
  --fwe-headline: #0B3C5D;

  --fwe-bg: #ffffff;
  --fwe-ink: var(--fwe-text);
  --fwe-accent: var(--fwe-red);
  --fwe-accent2: var(--fwe-blue);

  --fwe-success-bg: rgba(11,58,115,.06);
  --fwe-success-border: rgba(11,58,115,.20);

  --fwe-error-bg: rgba(194,29,46,.06);
  --fwe-error-border: rgba(194,29,46,.20);
}

/* =========================
   Basis
   ========================= */
.fwe-inv-box,
.fwe-inv-box *,
.fwe-invitation-page,
.fwe-invitation-page *{
  box-sizing:border-box;
}

.fwe-inv-box,
.fwe-invitation-page,
.fwe-inv-publiclist{
  max-width:1100px;
  margin:0 auto 24px;
  background:#fff;
  border:1px solid var(--fwe-border);
  border-radius:var(--fwe-radius);
  box-shadow:var(--fwe-shadow);
  color:var(--fwe-text);
  overflow:hidden;
}

.fwe-inv-box,
.fwe-invitation-page{
  padding:22px !important;
}

.fwe-inv-publiclist{
  padding:22px !important;
}

.fwe-inv-box h1,
.fwe-inv-box h2,
.fwe-inv-box h3,
.fwe-invitation-page h1,
.fwe-invitation-page h2,
.fwe-invitation-page h3,
.fwe-inv-publiclist h1,
.fwe-inv-publiclist h2,
.fwe-inv-publiclist h3{
  margin:0 0 12px;
  line-height:1.12;
  letter-spacing:-.2px;
  color:var(--fwe-blue);
  font-weight:900;
}

.fwe-inv-box h1,
.fwe-invitation-page h1{
  font-size:clamp(22px, 2.3vw, 30px);
}

.fwe-inv-box h2,
.fwe-invitation-page h2,
.fwe-inv-publiclist h2{
  font-size:24px;
}

.fwe-inv-box h3,
.fwe-invitation-page h3,
.fwe-inv-publiclist h3{
  font-size:18px;
  margin-top:20px;
}

.fwe-inv-box p,
.fwe-invitation-page p,
.fwe-inv-publiclist p,
.fwe-inv-box li,
.fwe-invitation-page li,
.fwe-inv-publiclist li{
  color:var(--fwe-text);
  line-height:1.65;
}

.fwe-inv-box a,
.fwe-invitation-page a,
.fwe-inv-publiclist a{
  color:var(--fwe-blue);
  font-weight:900;
  text-decoration:none;
}

.fwe-inv-box a:hover,
.fwe-invitation-page a:hover,
.fwe-inv-publiclist a:hover{
  text-decoration:underline;
}

@keyframes fweFadeUp{
  from{
    opacity:0;
    transform:translateY(10px);
  }
  to{
    opacity:1;
    transform:translateY(0);
  }
}

/* =========================
   Notices
   ========================= */
.fwe-inv-notice{
  margin:0 0 18px;
  padding:14px 16px;
  border-radius:var(--fwe-radius-sm);
  border:1px solid var(--fwe-border);
  background:var(--fwe-soft);
  box-shadow:0 6px 18px rgba(0,0,0,.04);
}

.fwe-inv-notice p{
  margin:0;
  font-weight:700;
}

.fwe-inv-notice-success{
  background:var(--fwe-success-bg);
  border-color:var(--fwe-success-border);
}

.fwe-inv-notice-error{
  background:var(--fwe-error-bg);
  border-color:var(--fwe-error-border);
}

/* =========================
   Formulare
   ========================= */
.fwe-inv-box form{
  margin-top:12px;
}

.fwe-inv-box form p{
  margin:0 0 14px;
}

.fwe-inv-box label{
  display:inline-block;
  margin-bottom:6px;
  color:var(--fwe-blue);
  font-weight:900;
}

.fwe-inv-box input[type="text"],
.fwe-inv-box input[type="password"],
.fwe-inv-box input[type="email"],
.fwe-inv-box input[type="url"],
.fwe-inv-box input[type="date"],
.fwe-inv-box input[type="time"],
.fwe-inv-box input[type="number"],
.fwe-inv-box input[type="file"],
.fwe-inv-box select,
.fwe-inv-box textarea{
  width:100%;
  max-width:100%;
  border:1px solid rgba(0,0,0,.12);
  border-radius:16px;
  background:#fff;
  color:var(--fwe-text);
  padding:12px 14px;
  outline:none;
  box-shadow:0 10px 26px rgba(0,0,0,.06);
  transition:box-shadow .18s ease, border-color .18s ease, transform .18s ease, background .18s ease;
}

.fwe-inv-box textarea{
  min-height:120px;
  resize:vertical;
}

.fwe-inv-box input[type="file"]{
  padding:10px 12px;
}

.fwe-inv-box input:focus,
.fwe-inv-box select:focus,
.fwe-inv-box textarea:focus{
  border-color:rgba(11,58,115,.32);
  box-shadow:0 14px 34px rgba(11,58,115,.10);
  transform:translateY(-1px);
}

.fwe-inv-box ::placeholder{
  color:var(--fwe-muted);
  opacity:1;
}

/* =========================
   Buttons
   ========================= */

.fwe-inv-box button,
.fwe-inv-box input[type="submit"],
.fwe-invitation-page .fwe-inv-btn,
.fwe-inv-box .button,
.fwe-inv-box .button-primary,
.fwe-inv-publicfilters__button,
.fwe-inv-publiccard__button,
.fwe-inv-actionlinks > a,
.fwe-invitation-page > p > a{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:42px;
  padding:10px 16px;

  border-radius:999px !important;

  border:1px solid rgba(11,58,115,.22);
  background:rgba(11,58,115,.08);

  color:var(--fwe-blue) !important;

  transform:none !important;

  font-weight:900 !important;
  line-height:1;

  text-decoration:none !important;

  box-shadow:0 8px 18px rgba(0,0,0,.05);

  transition:
    transform .15s ease,
    box-shadow .15s ease,
    border-color .15s ease,
    background .15s ease,
    opacity .15s ease,
    color .15s ease;
}

.fwe-inv-box button:hover,
.fwe-inv-box input[type="submit"]:hover,
.fwe-invitation-page .fwe-inv-btn:hover,
.fwe-inv-box .button:hover,
.fwe-inv-box .button-primary:hover,
.fwe-inv-publicfilters__button:hover,
.fwe-inv-publiccard__button:hover,
.fwe-inv-actionlinks > a:hover,
.fwe-invitation-page > p > a:hover{
  transform:translateY(-1px) !important;

  box-shadow:0 12px 24px rgba(0,0,0,.07);

  border-color:rgba(11,58,115,.30);
  background:rgba(11,58,115,.12);

  color:var(--fwe-blue) !important;

  text-decoration:none !important;
}

/* =========================
   Tabellen
   ========================= */
.fwe-inv-box table{
  width:100%;
  border-collapse:separate;
  border-spacing:0;
  margin-top:14px;
  overflow:hidden;
  border:1px solid var(--fwe-border);
  border-radius:var(--fwe-radius);
  background:#fff;
  box-shadow:0 6px 18px rgba(0,0,0,.04);
}

.fwe-inv-box thead th{
  text-align:left;
  padding:14px 14px;
  background:rgba(11,58,115,.05);
  color:var(--fwe-blue);
  font-weight:900;
  border-bottom:1px solid var(--fwe-border);
  vertical-align:top;
}

.fwe-inv-box tbody td{
  padding:14px 14px;
  border-bottom:1px solid var(--fwe-border);
  vertical-align:top;
}

.fwe-inv-box tbody tr:last-child td{
  border-bottom:none;
}

.fwe-inv-box tbody tr:hover{
  background:rgba(11,58,115,.03);
}

.fwe-inv-box td strong{
  color:var(--fwe-blue);
}

/* =========================
   Toolbar / Filter / Status
   ========================= */
.fwe-inv-toolbar{
  display:flex;
  flex-direction:column;
  gap:16px;
  margin-bottom:18px;
}

.fwe-inv-toolbar__head{
  display:flex;
  justify-content:space-between;
  align-items:flex-start;
  gap:14px;
}

.fwe-inv-toolbar__links{
  margin:4px 0 0;
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  align-items:center;
}

.fwe-inv-toolbar__links span{
  color:var(--fwe-muted);
}

.fwe-inv-filterbar{
  margin:0 !important;
  border:1px solid var(--fwe-border);
  border-radius:var(--fwe-radius);
  background:#fff;
  box-shadow:0 6px 18px rgba(0,0,0,.04);
  padding:14px;
}

.fwe-inv-filterbar__grid{
  display:grid;
  grid-template-columns:repeat(4, minmax(0, 1fr));
  gap:12px;
  align-items:end;
}

.fwe-inv-filterbar__actions{
  margin:0 !important;
}

.fwe-inv-statuschip{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:7px 11px;
  border-radius:999px;
  border:1px solid var(--fwe-border);
  background:#fff;
  font-weight:900;
  color:var(--fwe-text);
  font-size:12px;
  line-height:1;
  white-space:nowrap;
}

.fwe-inv-statuschip--draft{
  background:var(--fwe-soft);
}

.fwe-inv-statuschip--published{
  border-color:rgba(11,58,115,.35);
  background:rgba(11,58,115,.08);
}

.fwe-inv-statuschip--sent{
  border-color:rgba(11,58,115,.35);
  background:rgba(11,58,115,.10);
}

.fwe-inv-statuschip--updated{
  border-color:rgba(194,29,46,.35);
  background:rgba(194,29,46,.06);
}

.fwe-inv-statuschip--archived{
  background:rgba(0,0,0,.05);
  border-color:rgba(0,0,0,.12);
}

/* =========================
   Aktionsspalte
   ========================= */
.fwe-inv-actiongroup{
  display:flex;
  flex-direction:column;
  gap:12px;
}

.fwe-inv-actiongroup--v2{
  gap:14px;
  min-width:0;
}

.fwe-inv-submeta{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  color:var(--fwe-muted);
  font-size:13px;
  font-weight:700;
}

.fwe-inv-submeta--stack{
  flex-direction:column;
  align-items:flex-start;
  gap:4px;
}

.fwe-inv-actionsection{
  border-top:1px solid var(--fwe-border);
  padding-top:12px;
}

.fwe-inv-actionsection:first-child{
  border-top:none;
  padding-top:0;
}

.fwe-inv-actionsection__title{
  margin:0 0 8px;
  color:var(--fwe-blue);
  font-size:13px;
  font-weight:900;
  letter-spacing:.02em;
  text-transform:uppercase;
}

.fwe-inv-actionlinks{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  align-items:center;
  margin:0;
}

/* =========================
   Modal
   ========================= */
.fwe-inv-modal-open{
  overflow:hidden;
}

.fwe-inv-modal{
  position:fixed;
  inset:0;
  z-index:9999;
  display:none;
  align-items:center;
  justify-content:center;
  padding:24px;
  background:rgba(15,23,42,.48);
  backdrop-filter:blur(2px);
}

.fwe-inv-modal.is-open{
  display:flex;
}

.fwe-inv-modal__dialog{
  width:min(920px, 100%);
  max-height:min(88vh, 920px);
  overflow:auto;
  border:1px solid var(--fwe-border);
  border-radius:22px;
  background:#fff;
  box-shadow:0 26px 80px rgba(15,23,42,.24);
}

.fwe-inv-modal__head{
  position:sticky;
  top:0;
  z-index:2;
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:16px;
  padding:20px 22px;
  border-bottom:1px solid var(--fwe-border);
  background:#fff;
}

.fwe-inv-modal__titlewrap h3{
  margin:0 0 4px;
  color:var(--fwe-blue);
  font-size:22px;
  font-weight:900;
}

.fwe-inv-modal__titlewrap p{
  margin:0;
  color:var(--fwe-muted);
  font-weight:700;
  line-height:1.5;
}

.fwe-inv-modal__close{
  min-width:46px;
  min-height:46px;
  padding:0 !important;
  border-radius:999px !important;
  background:#fff !important;
  color:var(--fwe-blue) !important;
  border:1px solid var(--fwe-border) !important;
  box-shadow:0 8px 18px rgba(0,0,0,.05);
  font-size:28px;
  line-height:1;
}

.fwe-inv-modal__body{
  padding:22px;
}

.fwe-inv-modal .fwe-inv-actionlinks{
  align-items:flex-start;
}

.fwe-inv-modal .fwe-inv-actionlinks > a,
.fwe-inv-modal .fwe-inv-inlineform button{
  min-height:44px;
}

/* =========================
   Mailbox / Versand
   ========================= */
.fwe-inv-maildetails{
  border:1px solid var(--fwe-border);
  border-radius:var(--fwe-radius);
  background:#fff;
  box-shadow:0 6px 18px rgba(0,0,0,.04);
  overflow:hidden;
}

.fwe-inv-maildetails summary{
  cursor:pointer;
  display:flex;
  align-items:center;
  justify-content:space-between;
  min-height:46px;
  padding:12px 16px;
  font-weight:900;
  color:var(--fwe-blue);
  list-style:none;
  background:rgba(11,58,115,.03);
}

.fwe-inv-maildetails summary::-webkit-details-marker{
  display:none;
}

.fwe-inv-maildetails summary::after{
  content:"+";
  font-size:20px;
  line-height:1;
  font-weight:900;
  color:var(--fwe-blue);
}

.fwe-inv-maildetails[open] summary{
  border-bottom:1px solid var(--fwe-border);
  background:rgba(11,58,115,.06);
}

.fwe-inv-maildetails[open] summary::after{
  content:"\2212";
}

.fwe-inv-mailbox{
  border:none;
  border-radius:0 0 var(--fwe-radius) var(--fwe-radius);
  background:rgba(11,58,115,.03);
  padding:16px;
}

.fwe-inv-mailbox__intro{
  margin:0 0 16px;
}

.fwe-inv-mailbox__intro h4{
  margin:0 0 8px;
  color:var(--fwe-blue);
  font-size:18px;
  font-weight:900;
}

.fwe-inv-mailbox__intro p{
  margin:0;
  color:var(--fwe-muted);
  line-height:1.5;
}

.fwe-inv-mailsection{
  margin:0 0 14px;
  padding:14px;
  border:1px solid rgba(11,58,115,.10);
  border-radius:16px;
  background:#fff;
  box-shadow:0 6px 18px rgba(0,0,0,.03);
}

.fwe-inv-mailsection:last-child{
  margin-bottom:0;
}

.fwe-inv-mailsection h5{
  margin:0 0 12px;
  color:var(--fwe-blue);
  font-size:15px;
  font-weight:900;
}

.fwe-inv-mailsubsection + .fwe-inv-mailsubsection{
  margin-top:14px;
}

.fwe-inv-mailsubsection__title{
  display:block !important;
  margin:0 0 8px !important;
  color:var(--fwe-blue) !important;
  font-size:14px;
  font-weight:900 !important;
}

.fwe-inv-fieldhint{
  margin:0 0 8px;
  color:var(--fwe-muted);
  font-size:13px;
  font-weight:700;
}

.fwe-inv-helptext{
  margin-top:8px;
  color:var(--fwe-muted);
  font-size:13px;
  line-height:1.5;
}

.fwe-inv-groupgrid,
.fwe-inv-attachmentgrid{
  display:grid;
  grid-template-columns:repeat(2, minmax(0, 1fr));
  gap:10px 14px;
}

.fwe-inv-groupgrid{
  margin:0;
}

.fwe-inv-checkline{
  display:flex !important;
  align-items:flex-start;
  gap:8px;
  margin:0 !important;
  color:var(--fwe-text) !important;
  font-weight:700 !important;
}

.fwe-inv-checkline input{
  width:auto !important;
  margin-top:3px;
  flex:0 0 auto;
  box-shadow:none !important;
}

.fwe-inv-mailsection--submit{
  padding:0;
  border:none;
  background:transparent;
  box-shadow:none;
}

.fwe-inv-mailsection--submit button{
  width:100%;
  justify-content:center;
  min-height:48px;
  background:var(--fwe-red);
  border-color:var(--fwe-red);
}

/* =========================
   Share / Text / Copy
   ========================= */
.fwe-inv-box td textarea[name="fwe_inv_manual_recipients"]{
  min-height:100px;
  margin-top:6px;
}

.fwe-inv-modal textarea[readonly]{
  background:rgba(11,58,115,.02);
}

/* =========================
   Media Picker
   ========================= */
.fwe-inv-mediapicker{
  display:flex;
  flex-direction:column;
  gap:12px;
  margin:0 0 18px;
}

.fwe-inv-mediapreview{
  border:1px solid var(--fwe-border);
  border-radius:var(--fwe-radius);
  background:rgba(11,58,115,.03);
  padding:14px;
  min-height:120px;
  box-shadow:0 6px 18px rgba(0,0,0,.03);
}

.fwe-inv-mediaempty{
  color:var(--fwe-muted);
  font-weight:700;
}

.fwe-inv-mediabuttons{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
}

/* =========================
   Vorhandene Anhaenge
   ========================= */
.fwe-inv-box div[style*="margin:10px 0 16px"]{
  border:1px solid var(--fwe-border);
  background:rgba(11,58,115,.03);
  border-radius:var(--fwe-radius);
  padding:14px;
  box-shadow:0 6px 18px rgba(0,0,0,.03);
}

.fwe-inv-box div[style*="margin:10px 0 16px"] strong{
  display:block;
  margin-bottom:8px;
  color:var(--fwe-blue);
}

/* =========================
   Detailseite Einladung
   ========================= */
.fwe-invitation-page{
  position:relative;
  animation:fweFadeUp .45s ease both;
}

.fwe-invitation-page::before{
  content:"";
  display:block;
  width:160px;
  height:4px;
  border-radius:999px;
  background:linear-gradient(90deg, var(--fwe-red), var(--fwe-blue));
  margin-bottom:18px;
}

.fwe-invitation-page h1{
  margin-bottom:18px;
}

.fwe-invitation-page > p{
  margin:0 0 10px;
}

.fwe-invitation-page ul{
  margin:8px 0 0;
  padding-left:20px;
}

.fwe-invitation-page li{
  margin:0 0 8px;
}

/* =========================
   Einladungen V2 - Webansicht
   ========================= */
.fwe-invitation-page--v2{
  max-width:1100px;
}

.fwe-invitation-page--v2::before{
  display:none;
}

.fwe-inv-head{
  margin-bottom:12px;
}

.fwe-invitation-page--v2 .fwe-detail__title{
  margin-bottom:8px;
}

.fwe-invitation-page--v2 .fwe-detail__rule{
  margin-top:0;
  margin-bottom:14px;
}

.fwe-inv-boxgrid{
  align-items:stretch;
}

.fwe-invitation-page--v2 .fwe-box{
  min-height:100%;
  background:#fff;
}

.fwe-invitation-page--v2 .fwe-box:nth-child(1),
.fwe-invitation-page--v2 .fwe-box:nth-child(2),
.fwe-invitation-page--v2 .fwe-box:nth-child(3),
.fwe-invitation-page--v2 .fwe-box:nth-child(4){
  box-shadow:var(--fwe-shadow);
}

.fwe-invitation-page--v2 .fwe-box:nth-child(5),
.fwe-invitation-page--v2 .fwe-box:nth-child(6),
.fwe-invitation-page--v2 .fwe-box:nth-child(7),
.fwe-invitation-page--v2 .fwe-box:nth-child(8),
.fwe-invitation-page--v2 .fwe-box:nth-child(9){
  box-shadow:0 8px 22px rgba(0,0,0,.05);
}

.fwe-invitation-page--v2 .fwe-box:last-child{
  margin-bottom:0;
}

.fwe-invitation-page--v2 .fwe-box__label{
  display:flex;
  align-items:center;
  gap:8px;
  margin-bottom:10px;
}

.fwe-invitation-page--v2 .fwe-box__label .fwe-ic-emoji{
  margin-right:0;
}

.fwe-invitation-page--v2 .fwe-box__stack{
  gap:6px;
}

.fwe-invitation-page--v2 .fwe-box__stack strong{
  font-size:1.02rem;
  line-height:1.35;
}

.fwe-inv-content{
  line-height:1.7;
}

.fwe-inv-content > :first-child{
  margin-top:0;
}

.fwe-inv-content > :last-child{
  margin-bottom:0;
}

.fwe-inv-content p{
  margin:0 0 12px;
}

.fwe-inv-content ul,
.fwe-inv-content ol{
  margin:0 0 14px 22px;
}

.fwe-inv-content li{
  margin:0 0 6px;
}

.fwe-inv-sender{
  display:flex;
  flex-direction:column;
  gap:4px;
  line-height:1.6;
}

.fwe-inv-sender > div{
  color:var(--fwe-text);
}

.fwe-invitation-page--v2 .fwe-chiprow{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  margin-top:10px;
  padding-left:0;
  padding-right:0;
}

.fwe-invitation-page--v2 .fwe-chip{
  display:inline-flex;
  align-items:center;
  gap:8px;
  max-width:100%;
  padding:7px 11px;
  border-radius:999px;
  border:1px solid var(--fwe-border);
  background:#fff;
  font-weight:900;
  color:var(--fwe-text);
  text-decoration:none;
  font-size:12px;
  line-height:1;
  white-space:nowrap;
}

.fwe-invitation-page--v2 .fwe-chip--link{
  border-color:rgba(194,29,46,.35);
  background:rgba(194,29,46,.06);
  text-decoration:none;
}

.fwe-invitation-page--v2 .fwe-chip--link:hover{
  text-decoration:none;
}

.fwe-invitation-page--v2 .fwe-inline{
  display:block;
  width:100%;
  text-align:left !important;
}

.fwe-invitation-page--v2 .fwe-box .fwe-inline{
  display:block;
  width:100%;
  margin:0;
  text-align:left !important;
}

.fwe-invitation-page--v2 .fwe-inline__text{
  display:block;
  width:100%;
  margin:0;
  text-align:left !important;
  line-height:1.6;
}

.fwe-invitation-page--v2 .fwe-inline__text a{
  display:inline-block;
  margin-top:4px;
  font-weight:900;
}

.fwe-invitation-page--v2 .fwe-box--span2 .fwe-inline__text,
.fwe-invitation-page--v2 .fwe-box--span2 .fwe-inv-content,
.fwe-invitation-page--v2 .fwe-box--span2 .fwe-inv-sender{
  max-width:100%;
}

/* =========================
   Fix Kontaktbox linksbuendig
   ========================= */
.fwe-inv-contactbox{
  text-align:left !important;
}

.fwe-inv-contactbox .fwe-inv-contacttext{
  display:block;
  width:100%;
  margin:0;
  text-align:left !important;
}

.fwe-inv-contactbox .fwe-inv-contacttext p{
  margin:0 0 6px 0;
  text-align:left !important;
  line-height:1.6;
}

.fwe-inv-contactbox .fwe-inv-contacttext p:last-child{
  margin-bottom:0;
}

.fwe-inv-contactbox .fwe-inv-contacttext a{
  display:inline-block;
  margin:0;
  font-weight:900;
}

/* =========================
   Detail Cards / Grid
   ========================= */
.fwe-inv-detailgrid{
  display:grid;
  grid-template-columns:repeat(2, minmax(0, 1fr));
  gap:14px;
  margin-bottom:14px;
}

.fwe-inv-detailcard{
  border:1px solid var(--fwe-border);
  border-radius:var(--fwe-radius);
  background:#fff;
  padding:16px;
  margin-bottom:14px;
  box-shadow:0 8px 22px rgba(0,0,0,.05);
}

.fwe-inv-detailcard h3{
  margin-top:0;
}

/* =========================
   Oeffentliche Liste
   ========================= */
.fwe-inv-publiclist__head{
  margin-bottom:16px;
}

.fwe-inv-publiclist__head h2{
  margin:0;
}

.fwe-inv-publiclist__empty{
  margin:0;
  color:var(--fwe-muted);
  font-weight:700;
}

.fwe-inv-publicfilters{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  margin:0 0 18px;
}

.fwe-inv-publicfilters__button.is-active{
  border-color:rgba(11,58,115,.45);
  background:rgba(11,58,115,.10);
  box-shadow:0 14px 30px rgba(11,58,115,.10);
}

.fwe-inv-publicgrid{
  display:grid;
  grid-template-columns:1fr;
  gap:16px;
}

.fwe-inv-publiccard{
  display:flex;
  flex-direction:column;
  gap:14px;
  min-height:100%;
  padding:18px;
  border:1px solid var(--fwe-border);
  border-radius:var(--fwe-radius);
  background:#fff;
  box-shadow:var(--fwe-shadow);
}

.fwe-inv-publiccard__top{
  display:flex;
  align-items:center;
  justify-content:flex-start;
}

.fwe-inv-publiccard__type{
  display:inline-flex;
  align-items:center;
  min-height:32px;
  padding:7px 12px;
  border-radius:999px;
  border:1px solid rgba(11,58,115,.35);
  background:rgba(11,58,115,.08);
  color:var(--fwe-blue);
  font-size:12px;
  font-weight:900;
  line-height:1;
}

.fwe-inv-publiccard__title{
  margin:0 !important;
  color:var(--fwe-blue);
  font-size:22px;
  font-weight:900;
  line-height:1.15;
}

.fwe-inv-publicmeta{
  display:grid;
  gap:10px;
  padding:14px;
  border:1px solid var(--fwe-border);
  border-radius:var(--fwe-radius-sm);
  background:rgba(11,58,115,.03);
}

.fwe-inv-publicmeta__row{
  display:grid;
  grid-template-columns:minmax(120px, 150px) 1fr;
  gap:10px;
  align-items:start;
}

.fwe-inv-publicmeta__label{
  color:var(--fwe-blue);
  font-weight:900;
}

.fwe-inv-publicmeta__value{
  color:var(--fwe-text);
  font-weight:700;
}

.fwe-inv-publicmeta__value small{
  display:block;
  margin-top:2px;
  color:var(--fwe-muted);
  font-size:12px;
  font-weight:700;
}

.fwe-inv-publiccard__text{
  color:var(--fwe-text);
  line-height:1.7;
}

.fwe-inv-publiccard__actions{
  margin-top:auto;
}

/* =========================
   Responsive
   ========================= */
@media (max-width:980px){
  .fwe-inv-box,
  .fwe-invitation-page{
    padding:18px !important;
  }

  .fwe-inv-box h1,
  .fwe-invitation-page h1{
    font-size:26px;
  }

  .fwe-inv-box h2,
  .fwe-invitation-page h2{
    font-size:22px;
  }

  .fwe-inv-box table,
  .fwe-inv-box thead,
  .fwe-inv-box tbody,
  .fwe-inv-box tr,
  .fwe-inv-box th,
  .fwe-inv-box td{
    display:block;
    width:100%;
  }

  .fwe-inv-box thead{
    display:none;
  }

  .fwe-inv-box tbody tr{
    border-bottom:1px solid var(--fwe-border);
    padding:10px 0;
  }

  .fwe-inv-box tbody tr:last-child{
    border-bottom:none;
  }

  .fwe-inv-box tbody td{
    border-bottom:none;
    padding:8px 0;
  }

  .fwe-inv-filterbar__grid{
    grid-template-columns:repeat(2, minmax(0, 1fr));
  }

  .fwe-inv-toolbar__head{
    flex-direction:column;
  }

  .fwe-inv-detailgrid{
    grid-template-columns:1fr;
  }

  .fwe-inv-modal{
    padding:12px;
  }
}

@media (max-width:860px){
  .fwe-inv-head{
    margin-bottom:16px;
  }

  .fwe-invitation-page--v2 .fwe-chiprow{
    gap:8px;
  }

  .fwe-invitation-page--v2 .fwe-chiprow a{
    text-align:left;
  }

  .fwe-invitation-page--v2 .fwe-box__value .fwe-chiprow{
    margin-top:0;
  }

  .fwe-invitation-page--v2 .fwe-chip{
    white-space:normal;
    line-height:1.35;
    justify-content:flex-start;
  }

  .fwe-inv-actionopen{
    width:100%;
    min-width:0;
  }

  .fwe-inv-modal{
    align-items:flex-end;
  }

  .fwe-inv-modal__dialog{
    width:100%;
    max-height:92vh;
    border-radius:20px 20px 0 0;
  }

  .fwe-inv-modal__head{
    padding:18px 16px;
  }

  .fwe-inv-modal__body{
    padding:16px;
  }

  .fwe-inv-modal .fwe-inv-actionlinks{
    flex-direction:column;
    align-items:stretch;
  }

  .fwe-inv-modal .fwe-inv-inlineform,
  .fwe-inv-modal .fwe-inv-actionlinks > a{
    width:100%;
  }

  .fwe-inv-modal .fwe-inv-inlineform button,
  .fwe-inv-modal .fwe-inv-actionlinks > a{
    width:100%;
    justify-content:center;
  }

  .fwe-inv-mediabuttons{
    flex-direction:column;
  }

  .fwe-inv-mediabuttons button{
    width:100%;
  }
}

@media (max-width:760px){
  .fwe-inv-groupgrid,
  .fwe-inv-attachmentgrid{
    grid-template-columns:1fr;
  }

  .fwe-inv-actionlinks{
    flex-direction:column;
    align-items:stretch;
  }

  .fwe-inv-inlineform{
    width:100%;
  }

  .fwe-inv-inlineform button,
  .fwe-inv-actionlinks > a{
    width:100%;
    justify-content:center;
  }

  .fwe-inv-filterbar__grid{
    grid-template-columns:1fr;
  }

  .fwe-inv-submeta{
    flex-direction:column;
    gap:4px;
  }
}

@media (max-width:640px){
  .fwe-inv-box,
  .fwe-invitation-page,
  .fwe-inv-publiclist{
    padding:16px !important;
    border-radius:16px;
  }

  .fwe-inv-box h1,
  .fwe-invitation-page h1{
    font-size:24px;
  }

  .fwe-inv-box button,
  .fwe-inv-box input[type="submit"],
  .fwe-invitation-page .fwe-inv-btn,
  .fwe-inv-box .button,
  .fwe-inv-box .button-primary{
    width:100%;
    justify-content:center;
  }

  .fwe-invitation-page > p > a,
  .fwe-inv-publicfilters__button,
  .fwe-inv-publiccard__button{
    width:100%;
    justify-content:center;
  }

  .fwe-invitation-page--v2 .fwe-box__label{
    align-items:flex-start;
  }

  .fwe-invitation-page--v2 .fwe-box__stack strong{
    font-size:1rem;
  }

  .fwe-inv-sender{
    gap:3px;
  }

  .fwe-inv-publicfilters{
    flex-direction:column;
  }

  .fwe-inv-publiccard{
    padding:16px;
  }

  .fwe-inv-publicmeta__row{
    grid-template-columns:1fr;
    gap:4px;
  }
}