/* Wedding Planner — App Navigation v2 / 40.562.9 */

/* Canonical desktop/tablet sidebar navigation. */
html body.wpwp-app-body .wpwp-sidebar-v2 .wpwp-sidebar-brand{position:relative;display:flex!important;align-items:center;gap:10px;min-height:54px;margin:0 0 8px;padding:6px 4px 12px}
html body.wpwp-app-body .wpwp-sidebar-v2 .wpwp-sidebar-mark{flex:0 0 34px;width:34px;height:34px;display:grid;place-items:center;border-radius:10px;background:#f7eee9;color:#9a6f73;font-size:19px}
html body.wpwp-app-body .wpwp-sidebar-v2 .wpwp-sidebar-brand-copy{min-width:0;display:flex;flex-direction:column;gap:2px}
html body.wpwp-app-body .wpwp-sidebar-v2 .wpwp-sidebar-brand-copy strong{font-size:14px;line-height:1.1;color:#2f2925}
html body.wpwp-app-body .wpwp-sidebar-v2 .wpwp-sidebar-brand-copy small{font-size:10px;color:#958b83}
html body.wpwp-app-body .wpwp-sidebar-v2 .wpwp-sidebar-collapse{position:absolute;right:-1px;top:8px;width:28px;height:28px;display:grid;place-items:center;border:1px solid #e5ddd5;border-radius:9px;background:#fff;color:#62574f;cursor:pointer}
html body.wpwp-app-body .wpwp-sidebar-v2 .wpwp-sidebar-nav-v2{display:flex!important;flex-direction:column!important;gap:3px!important;min-height:0!important;flex:1 1 auto!important;overflow-y:auto!important;overflow-x:hidden!important}
html body.wpwp-app-body .wpwp-sidebar-v2 .wpwp-nav-direct-links{display:flex!important;flex-direction:column!important;gap:3px!important;margin:0 0 6px!important;padding:0 0 8px!important;border-bottom:1px solid #eee7e0}
html body.wpwp-app-body .wpwp-sidebar-v2 .wpwp-nav-section{display:block!important;margin:0 0 5px!important;padding:0!important}
html body.wpwp-app-body .wpwp-sidebar-v2 .wpwp-nav-section-toggle{width:100%!important;min-height:30px;display:flex!important;align-items:center;justify-content:space-between;border:0!important;background:transparent!important;padding:7px 8px 4px!important;cursor:pointer;color:#91867d!important;font-size:10px!important;font-weight:800!important;letter-spacing:.14em;text-transform:uppercase;text-align:left}
html body.wpwp-app-body .wpwp-sidebar-v2 .wpwp-nav-section-chevron{transition:transform .15s ease}
html body.wpwp-app-body .wpwp-sidebar-v2 .wpwp-nav-section:not(.is-open) .wpwp-nav-section-chevron{transform:rotate(-90deg)}
html body.wpwp-app-body .wpwp-sidebar-v2 .wpwp-nav-section-items{display:flex!important;flex-direction:column!important;gap:3px!important;overflow:hidden!important;max-height:1000px!important}
html body.wpwp-app-body .wpwp-sidebar-v2 .wpwp-nav-section:not(.is-open) .wpwp-nav-section-items,html body.wpwp-app-body .wpwp-sidebar-v2 .wpwp-nav-section-toggle[aria-expanded="false"] + .wpwp-nav-section-items{display:none!important}
html body.wpwp-app-body .wpwp-sidebar-v2 .wpwp-nav-item{position:relative;display:flex!important;align-items:center;gap:10px;min-height:44px!important;height:auto!important;padding:8px 10px!important;border-radius:11px!important;color:#524b45!important;text-decoration:none!important;transition:background .15s ease,color .15s ease,box-shadow .15s ease}
html body.wpwp-app-body .wpwp-sidebar-v2 .wpwp-nav-item:hover{background:#f8f3ee!important;color:#292725!important}
html body.wpwp-app-body .wpwp-sidebar-v2 .wpwp-nav-item.is-active{background:#f1e5e2!important;color:#292725!important;box-shadow:inset 3px 0 0 #a9787b!important}
html body.wpwp-app-body .wpwp-sidebar-v2 .wpwp-nav-icon{flex:0 0 30px;width:30px;height:30px;display:grid!important;place-items:center;border-radius:9px;background:#f7f0eb;color:#a9787b;font-size:15px}
html body.wpwp-app-body .wpwp-sidebar-v2 .wpwp-nav-copy{min-width:0;display:flex!important;flex-direction:column;gap:2px;overflow:visible}
html body.wpwp-app-body .wpwp-sidebar-v2 .wpwp-nav-copy b{font-size:13px;line-height:1.25;white-space:normal;overflow-wrap:break-word}
html body.wpwp-app-body .wpwp-sidebar-v2 .wpwp-nav-copy small{font-size:10.5px;line-height:1.25;color:#8a7f77;white-space:normal;overflow-wrap:break-word}
html body.wpwp-app-body .wpwp-sidebar-v2 .wpwp-nav-item.is-locked{opacity:.72}
html body.wpwp-app-body .wpwp-sidebar-v2 .wpwp-nav-item.is-disabled{cursor:not-allowed}

/* Footer/profile. */
html body.wpwp-app-body .wpwp-sidebar-v2 .wpwp-sidebar-footer{flex:0 0 auto!important;margin-top:auto!important;padding-top:10px!important;border-top:1px solid #eee7e0}
html body.wpwp-app-body .wpwp-sidebar-v2 .wpwp-sidebar-footer-label{padding:0 8px 5px;color:#a19790;font-size:9px;font-weight:800;letter-spacing:.14em}
html body.wpwp-app-body .wpwp-sidebar-v2 .wpwp-sidebar-footer-links{display:flex!important;flex-direction:column;gap:2px}
html body.wpwp-app-body .wpwp-sidebar-v2 .wpwp-sidebar-settings{min-height:40px;display:flex!important;align-items:center;gap:10px;padding:8px 10px;border-radius:10px;color:#625c56;text-decoration:none}
html body.wpwp-app-body .wpwp-sidebar-v2 .wpwp-sidebar-settings:hover{background:#f7f2ed}
html body.wpwp-app-body .wpwp-sidebar-profile-wrap{position:relative}
html body.wpwp-app-body .wpwp-sidebar-profile-popover{position:absolute;left:calc(100% + 8px);bottom:0;width:280px;padding:6px;background:#fff;border:1px solid #e5ddd5;border-radius:12px;box-shadow:0 16px 38px rgba(44,35,28,.16);opacity:0;visibility:hidden;pointer-events:none;z-index:12000}
html body.wpwp-app-body .wpwp-sidebar-profile-wrap:hover .wpwp-sidebar-profile-popover,html body.wpwp-app-body .wpwp-sidebar-profile-wrap:focus-within .wpwp-sidebar-profile-popover{opacity:1;visibility:visible;pointer-events:auto}

/* Collapsed rail. */
html body.wpwp-app-body .wpwp-app-layout.has-collapsed-sidebar .wpwp-sidebar-v2 .wpwp-sidebar-brand-copy,html body.wpwp-app-body .wpwp-app-layout.has-collapsed-sidebar .wpwp-sidebar-v2 .wpwp-nav-section-title,html body.wpwp-app-body .wpwp-app-layout.has-collapsed-sidebar .wpwp-sidebar-v2 .wpwp-nav-copy,html body.wpwp-app-body .wpwp-app-layout.has-collapsed-sidebar .wpwp-sidebar-v2 .wpwp-sidebar-footer-label,html body.wpwp-app-body .wpwp-app-layout.has-collapsed-sidebar .wpwp-sidebar-v2 .wpwp-sidebar-settings b{display:none!important}
html body.wpwp-app-body .wpwp-app-layout.has-collapsed-sidebar .wpwp-sidebar-v2 .wpwp-nav-item,html body.wpwp-app-body .wpwp-app-layout.has-collapsed-sidebar .wpwp-sidebar-v2 .wpwp-sidebar-settings{justify-content:center!important;padding-left:0!important;padding-right:0!important;gap:0}
html body.wpwp-app-body .wpwp-app-layout.has-collapsed-sidebar .wpwp-sidebar-v2 .wpwp-nav-section-toggle{justify-content:center!important;padding-left:0!important;padding-right:0!important}

/* Legacy visual navigation remains in DOM for compatibility, but cannot compete. */
html body.wpwp-app-body .wpwp-browser-nav,html body.wpwp-app-body .wpwp-catalog-nav,html body.wpwp-app-body .wpwp-tab-mobile,html body.wpwp-app-body .wpwp-mobile-section-slider,html body.wpwp-app-body .wpwp-mobile-bottom-nav{display:none!important}

/* Mobile canonical system: appbar + bottom-nav-v2 + drawer. */
html body.wpwp-app-body .wpwp-mobile-appbar,html body.wpwp-app-body .wpwp-mobile-drawer,html body.wpwp-app-body .wpwp-bottom-nav-v2{box-sizing:border-box}
html body.wpwp-app-body .wpwp-bottom-nav-v2,html body.wpwp-app-body .wpwp-mobile-appbar,html body.wpwp-app-body .wpwp-mobile-drawer{display:none!important}
@media(max-width:820px){
  html body.wpwp-app-body .wpwp-mobile-appbar{display:flex!important;position:sticky!important;top:0!important;z-index:1200!important;min-height:calc(54px + env(safe-area-inset-top, 0px))!important;margin:0!important;padding-top:max(7px, env(safe-area-inset-top, 7px))!important;padding-bottom:7px!important;padding-left:max(12px, env(safe-area-inset-left, 12px))!important;padding-right:max(12px, env(safe-area-inset-right, 12px))!important;align-items:center;gap:10px;background:rgba(255,255,255,.96);backdrop-filter:blur(14px);-webkit-backdrop-filter:blur(14px);border-bottom:1px solid #e9e1da}
  html body.wpwp-app-body .wpwp-mobile-menu-toggle{width:44px;height:44px;flex:0 0 auto;display:flex!important;flex-direction:column;justify-content:center;gap:4px;padding:0 12px;border:1px solid #e4dbd3;border-radius:12px;background:#fff;touch-action:manipulation}
  html body.wpwp-app-body .wpwp-mobile-menu-toggle i{display:block;height:2px;width:18px;background:#3d352f}
  html body.wpwp-app-body .wpwp-mobile-appbar-title{min-width:0;flex:1;display:flex;flex-direction:column;line-height:1.1}
  html body.wpwp-app-body .wpwp-mobile-appbar-title span{font-size:9px;letter-spacing:.14em;color:#9a7955;font-weight:800}
  html body.wpwp-app-body .wpwp-mobile-appbar-title strong{font-size:14px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;color:#28221e}
  html body.wpwp-app-body .wpwp-mobile-top-action{min-height:44px;padding:0 12px;border:1px solid #d8c5b3;border-radius:10px;background:#f7efe7;color:#584536;font-weight:700;touch-action:manipulation}
  html body.wpwp-app-body .wpwp-mobile-drawer{display:block!important;position:fixed!important;inset:0!important;z-index:2000000!important;pointer-events:none!important;visibility:hidden!important}
  html body.wpwp-app-body .wpwp-mobile-drawer[aria-hidden="false"]{pointer-events:auto!important;visibility:visible!important}
  html body.wpwp-app-body .wpwp-mobile-drawer-backdrop{position:absolute;inset:0;background:rgba(22,18,15,.42);opacity:0;transition:opacity .2s ease}
  html body.wpwp-app-body .wpwp-mobile-drawer[aria-hidden="false"] .wpwp-mobile-drawer-backdrop{opacity:1}
  html body.wpwp-app-body .wpwp-mobile-drawer-panel{position:absolute;left:0;top:0;bottom:0;width:min(92vw,360px);max-width:360px;height:100dvh;display:flex!important;flex-direction:column;background:#fffaf6;transform:translateX(-102%);transition:transform .24s ease}
  html body.wpwp-app-body .wpwp-mobile-drawer[aria-hidden="false"] .wpwp-mobile-drawer-panel{transform:translateX(0)}
  html body.wpwp-app-body .wpwp-mobile-drawer-nav{flex:1 1 auto;min-height:0;overflow-y:auto;padding:8px 12px calc(28px + env(safe-area-inset-bottom, 0px))}
  html body.wpwp-app-body .wpwp-drawer-link{min-height:48px;display:flex;align-items:center;gap:10px;padding:10px 12px;margin:3px 0;border-radius:11px;color:#40372f;text-decoration:none;touch-action:manipulation}
  html body.wpwp-app-body .wpwp-drawer-link.is-active{background:#f1e7e0;color:#5e4035;font-weight:800}
  html body.wpwp-app-body .wpwp-drawer-group-label{padding:15px 8px 6px;color:#9a8a7f;font-size:10px;font-weight:850;letter-spacing:.12em;text-transform:uppercase}
  html body.wpwp-app-body .wpwp-bottom-nav-v2{display:flex!important;position:fixed!important;left:0;right:0;bottom:0;z-index:1250!important;min-height:calc(58px + env(safe-area-inset-bottom, 0px))!important;padding:6px 8px max(10px, env(safe-area-inset-bottom, 10px))!important;background:rgba(255,255,255,.98)!important;backdrop-filter:blur(16px);-webkit-backdrop-filter:blur(16px);border-top:1px solid #e7ded7!important;box-shadow:0 -4px 20px rgba(45,35,28,.08)}
  html body.wpwp-app-body .wpwp-bottom-nav-v2 .wpwp-bottom-link{appearance:none;border:0;background:transparent;flex:1 1 0;min-width:0;display:flex!important;align-items:center;justify-content:center;flex-direction:column;gap:3px;min-height:48px;padding:5px 2px;color:#756a61;text-decoration:none;font-size:10px;font-weight:700;border-radius:10px;touch-action:manipulation}
  html body.wpwp-app-body .wpwp-bottom-nav-v2 .wpwp-bottom-link.is-active{color:#8b6747;background:#f8f0e8}
  html body.wpwp-app-body .wpwp-bottom-nav-v2 .wpwp-bottom-icon{height:20px;font-size:18px;line-height:20px}
  html body.wpwp-app-body .wpwp-bottom-nav-v2 .wpwp-bottom-label{display:block;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
  html body.wpwp-app-body .wpwp-mobile-menu-open .wpwp-bottom-nav-v2,html body.wpwp-app-body .wpwp-mobile-menu-open .wpwp-mobile-appbar{z-index:1999999!important}
}
@media(min-width:821px){html body.wpwp-app-body .wpwp-bottom-nav-v2,html body.wpwp-app-body .wpwp-mobile-appbar,html body.wpwp-app-body .wpwp-mobile-drawer{display:none!important}}
@media(prefers-reduced-motion:reduce){html body.wpwp-app-body .wpwp-mobile-drawer-panel,html body.wpwp-app-body .wpwp-mobile-drawer-backdrop{transition:none!important}}


/* 40.563.52 — authoritative module visibility + home-chrome isolation.
 * The router marks exactly one workspace with .wpwp-module-active and hides the
 * rest via aria-hidden/hidden. This contract enforces "one visible module at a
 * time" everywhere (hub-owned and external modules) and keeps home chrome
 * (brand, quick start, guide, hub widgets) out of module/section views. */
html body.wpwp-app-body .wpwp-app-main[data-wpwp-router-ready="1"] .wpwp-module-workspace[data-wpwp-route-module="1"]:not(.wpwp-module-active){
  display:none!important;
  visibility:hidden!important;
  opacity:0!important;
  pointer-events:none!important;
}
html body.wpwp-app-body .wpwp-app-main[data-wpwp-router-ready="1"] .wpwp-module-workspace[data-wpwp-route-module="1"].wpwp-module-active{
  display:block!important;
  visibility:visible!important;
  opacity:1!important;
  pointer-events:auto!important;
  width:100%!important;
  max-width:none!important;
  min-width:0!important;
}
/* External (sibling) module: only the active workspace + header remain. */
html body.wpwp-app-body .wpwp-app-main[data-wpwp-router-ready="1"].is-external-module-mode > *:not(.wpwp-module-active):not(.wpwp-router-module-header):not(.wpwp-mobile-bottom-nav):not(.wpwp-bottom-nav-v2){
  display:none!important;
}
/* Dashboard-owned module: keep the hub container, hide all other home chrome. */
html body.wpwp-app-body .wpwp-app-main[data-wpwp-router-ready="1"].is-dashboard-module-mode > *:not(#wpwp-dashboard-modules):not(.wpwp-router-module-header):not(.wpwp-mobile-bottom-nav):not(.wpwp-bottom-nav-v2){
  display:none!important;
}
html body.wpwp-app-body .wpwp-app-main[data-wpwp-router-ready="1"].is-dashboard-module-mode #wpwp-dashboard-modules{
  display:block!important;
  width:100%!important;
  min-width:0!important;
}
html body.wpwp-app-body .wpwp-app-main[data-wpwp-router-ready="1"].is-dashboard-module-mode #wpwp-dashboard-modules > *:not(.wpwp-module-active){
  display:none!important;
}
/* Guide route mode: show the Start Guide as a standalone workspace directly below the header. */
html body.wpwp-app-body .wpwp-app-main[data-wpwp-router-ready="1"].is-guide-route-mode > *:not(.wpwp-start):not(.wpwp-router-module-header):not(.wpwp-mobile-bottom-nav):not(.wpwp-bottom-nav-v2){
  display:none!important;
}
html body.wpwp-app-body .wpwp-app-main[data-wpwp-router-ready="1"].is-guide-route-mode > .wpwp-start > *:not(#wpwp-start-guide){
  display:none!important;
}
html body.wpwp-app-body .wpwp-app-main[data-wpwp-router-ready="1"].is-guide-route-mode > .wpwp-start > #wpwp-start-guide{
  display:block!important;
  visibility:visible!important;
  opacity:1!important;
  margin-top:0!important;
}


/* 40.563.54 — external module isolation while the menu stays pinned.
 * External tab-* workspaces are siblings of .wpwp-app-layout inside the wrap.
 * When one is active, hide the home chrome and stray cards that are also wrap
 * siblings, but KEEP the shell (the pinned menu must remain visible). */
html body.wpwp-app-body .wedding-planner-wrap.is-external-workspace-active > *:not(.wpwp-app-layout):not(.wpwp-module-workspace):not(.wpwp-router-module-header):not(.wpwp-mobile-bottom-nav):not(.wpwp-bottom-nav-v2):not(.wpwp-mobile-appbar):not(.wpwp-mobile-drawer):not(.wpwp-scroll-top){
  display:none!important;
}
/* The module header lives in the wrap for external modules and must remain a
 * visible, sticky surface with a working "return to center" action. */
html body.wpwp-app-body .wedding-planner-wrap > .wpwp-router-module-header{
  display:flex!important;
  visibility:visible!important;
  opacity:1!important;
  pointer-events:auto!important;
  position:sticky!important;
  top:0!important;
  z-index:120!important;
  align-items:center!important;
  justify-content:space-between!important;
  gap:12px!important;
  width:100%!important;
  min-width:0!important;
  box-sizing:border-box!important;
  margin:0 0 14px!important;
  padding:12px 16px!important;
  background:rgba(255,255,255,.97)!important;
  border:1px solid #e4d9d0!important;
  border-radius:0 0 14px 14px!important;
}
@media(max-width:820px){
  html body.wpwp-app-body .wedding-planner-wrap > .wpwp-router-module-header{
    position:relative!important;
    top:auto!important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    margin: 0 0 10px 0 !important;
    border-radius: 12px !important;
  }
  html body.wpwp-app-body .wpwp-app-main[data-wpwp-router-ready="1"] .wpwp-module-workspace[data-wpwp-route-module="1"].wpwp-module-active {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
}

/* Contained routed modules (e.g. Kontrola przygotowa�) live inside .wpwp-app-main.
   app-shell hides the main container in external workspace mode; show it again
   only when the active module is actually a descendant. */
@media (min-width: 821px) {
  html body.wpwp-app-body .wedding-planner-wrap.is-external-workspace-active:has(.wpwp-app-main .wpwp-module-active) > .wpwp-app-layout.wpwp-shell-modern-layout.wpwp-css-v2-shell > .wpwp-app-main {
    display: block !important;
    min-height: 0 !important;
    width: auto !important;
    max-width: none !important;
    min-width: 0 !important;
    margin: 0 !important;
    padding: 110px 0 0 0 !important;
    overflow: visible !important;
  }
  html body.wpwp-app-body .wedding-planner-wrap.is-external-workspace-active:has(.wpwp-app-main .wpwp-module-active) > .wpwp-app-layout.wpwp-shell-modern-layout.wpwp-css-v2-shell > .wpwp-app-main > :not(.wpwp-module-active) {
    display: none !important;
  }
  html body.wpwp-app-body .wedding-planner-wrap.is-external-workspace-active:has(.wpwp-app-main .wpwp-module-active) > .wpwp-app-layout.wpwp-shell-modern-layout.wpwp-css-v2-shell > .wpwp-app-main > .wpwp-module-active {
    display: block !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: none !important;
    margin: 0 !important;
  }
}

/* Guests: compact table on desktop; group labels may wrap to two lines. */
@media (min-width: 821px) {
  html body.wpwp-app-body #tab-guests .wpwp-guest-table-wrap {
    max-width: 100% !important;
    overflow-x: auto !important;
  }
  html body.wpwp-app-body #tab-guests .wpwp-guest-table {
    table-layout: fixed !important;
    width: 100% !important;
  }
  html body.wpwp-app-body #tab-guests .wpwp-guest-table th:nth-child(1),
  html body.wpwp-app-body #tab-guests .wpwp-guest-table td:nth-child(1) { width: 24% !important; }
  html body.wpwp-app-body #tab-guests .wpwp-guest-table th:nth-child(2),
  html body.wpwp-app-body #tab-guests .wpwp-guest-table td:nth-child(2) { width: 9% !important; }
  html body.wpwp-app-body #tab-guests .wpwp-guest-table th:nth-child(3),
  html body.wpwp-app-body #tab-guests .wpwp-guest-table td:nth-child(3) { width: 13% !important; }
  html body.wpwp-app-body #tab-guests .wpwp-guest-table th:nth-child(4),
  html body.wpwp-app-body #tab-guests .wpwp-guest-table td:nth-child(4) { width: 8% !important; }
  html body.wpwp-app-body #tab-guests .wpwp-guest-table th:nth-child(5),
  html body.wpwp-app-body #tab-guests .wpwp-guest-table td:nth-child(5) {
    width: 11% !important;
    white-space: normal !important;
    overflow-wrap: anywhere !important;
    line-height: 1.2 !important;
  }
  html body.wpwp-app-body #tab-guests .wpwp-guest-table th:nth-child(6),
  html body.wpwp-app-body #tab-guests .wpwp-guest-table td:nth-child(6) { width: 25% !important; }
  html body.wpwp-app-body #tab-guests .wpwp-guest-table th:nth-child(7),
  html body.wpwp-app-body #tab-guests .wpwp-guest-table td:nth-child(7) { width: 10% !important; }
  html body.wpwp-app-body #tab-guests .wpwp-inline-guest-phone,
  html body.wpwp-app-body #tab-guests .wpwp-inline-guest-email {
    width: 100% !important;
    box-sizing: border-box !important;
  }
  html body.wpwp-app-body #tab-guests .wpwp-inline-guest-status {
    width: 100% !important;
    min-width: 0 !important;
  }
}

/* Phase 1: Mobile Guest Cards (< 821px) - Transforms desktop guest table into touch-friendly cards */
@media (max-width: 820px) {
  html body.wpwp-app-body #tab-guests .wpwp-circle-pills {
    display: flex !important;
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch !important;
    gap: 8px !important;
    margin-bottom: 14px !important;
    padding-bottom: 6px !important;
    scrollbar-width: none !important;
  }
  html body.wpwp-app-body #tab-guests .wpwp-circle-pills::-webkit-scrollbar {
    display: none !important;
  }
  html body.wpwp-app-body #tab-guests .wpwp-circle-pill {
    flex: 0 0 auto !important;
    min-height: 42px !important;
    padding: 9px 15px !important;
    font-size: 13px !important;
    white-space: nowrap !important;
    border-radius: 999px !important;
    touch-action: manipulation !important;
  }

  html body.wpwp-app-body #tab-guests .wpwp-guest-tools {
    display: flex !important;
    flex-direction: column !important;
    gap: 10px !important;
    margin-bottom: 14px !important;
  }
  html body.wpwp-app-body #tab-guests .wpwp-guest-tools input,
  html body.wpwp-app-body #tab-guests .wpwp-guest-tools select {
    width: 100% !important;
    min-height: 44px !important;
    font-size: 16px !important;
    border-radius: 11px !important;
    box-sizing: border-box !important;
  }

  html body.wpwp-app-body #tab-guests #wpwp-guest-bulk-bar {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 10px !important;
    padding: 14px !important;
    border-radius: 14px !important;
  }
  html body.wpwp-app-body #tab-guests #wpwp-guest-bulk-bar > div:last-child {
    display: flex !important;
    flex-direction: column !important;
    gap: 8px !important;
    width: 100% !important;
  }
  html body.wpwp-app-body #tab-guests #wpwp-guest-bulk-bar .button {
    width: 100% !important;
    min-height: 44px !important;
    touch-action: manipulation !important;
  }

  html body.wpwp-app-body #tab-guests .wpwp-guest-table-wrap {
    overflow: visible !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    background: transparent !important;
    border: 0 !important;
  }
  html body.wpwp-app-body #tab-guests .wpwp-guest-table {
    display: block !important;
    width: 100% !important;
    min-width: 0 !important;
    border: 0 !important;
    background: transparent !important;
  }
  html body.wpwp-app-body #tab-guests .wpwp-guest-table thead {
    display: none !important;
  }
  html body.wpwp-app-body #tab-guests .wpwp-guest-table tbody {
    display: flex !important;
    flex-direction: column !important;
    gap: 14px !important;
    width: 100% !important;
    padding: 0 !important;
  }
  html body.wpwp-app-body #tab-guests .wpwp-guest-table tr[data-guest-row] {
    display: flex !important;
    flex-direction: column !important;
    gap: 12px !important;
    background: #ffffff !important;
    border: 1px solid #e7ded5 !important;
    border-radius: 16px !important;
    padding: 16px !important;
    box-shadow: 0 4px 14px rgba(45,35,28,.05) !important;
    box-sizing: border-box !important;
    width: 100% !important;
    position: relative !important;
  }
  html body.wpwp-app-body #tab-guests .wpwp-guest-table tr[data-guest-row].is-household-start {
    border-top: 4px solid #b58b63 !important;
  }
  html body.wpwp-app-body #tab-guests .wpwp-guest-table tr[data-guest-row].is-household-member {
    border-left: 5px solid #d4b595 !important;
    background: #fffdfb !important;
  }
  html body.wpwp-app-body #tab-guests .wpwp-guest-table tr[data-guest-row].is-household-member td:first-child {
    padding-left: 0 !important;
  }
  html body.wpwp-app-body #tab-guests .wpwp-guest-table tr[data-guest-row].is-household-member td:first-child::before {
    display: none !important;
  }

  html body.wpwp-app-body #tab-guests .wpwp-guest-table td {
    display: block !important;
    width: 100% !important;
    padding: 0 !important;
    border: 0 !important;
    box-sizing: border-box !important;
  }

  /* Cell 1: Name, checkbox, badges */
  html body.wpwp-app-body #tab-guests .wpwp-guest-table td:nth-child(1) {
    display: flex !important;
    flex-direction: column !important;
    gap: 8px !important;
  }
  html body.wpwp-app-body #tab-guests .wpwp-guest-table td:nth-child(1) .wpwp-household-chip {
    align-self: flex-start !important;
    margin-bottom: 2px !important;
    font-size: 11.5px !important;
    padding: 4px 10px !important;
  }
  html body.wpwp-app-body #tab-guests .wpwp-guest-table td:nth-child(1) input.wpwp-inline-guest-name {
    font-size: 16px !important;
    font-weight: 700 !important;
    min-height: 44px !important;
    border-radius: 10px !important;
    padding: 8px 12px !important;
    box-sizing: border-box !important;
    width: 100% !important;
  }
  html body.wpwp-app-body #tab-guests .wpwp-guest-table td:nth-child(1) .wpwp-guest-bulk-check {
    width: 24px !important;
    height: 24px !important;
    min-width: 24px !important;
    min-height: 24px !important;
    flex: 0 0 24px !important;
    margin: 0 !important;
  }

  /* Cell 2: Age + Age Band */
  html body.wpwp-app-body #tab-guests .wpwp-guest-table td:nth-child(2) {
    display: grid !important;
    grid-template-columns: 110px minmax(0, 1fr) !important;
    gap: 8px !important;
    align-items: center !important;
  }
  html body.wpwp-app-body #tab-guests .wpwp-guest-table td:nth-child(2) input.wpwp-inline-guest-age,
  html body.wpwp-app-body #tab-guests .wpwp-guest-table td:nth-child(2) select.wpwp-inline-guest-band {
    font-size: 16px !important;
    min-height: 44px !important;
    border-radius: 10px !important;
    box-sizing: border-box !important;
    width: 100% !important;
  }

  /* Cell 3: RSVP status */
  html body.wpwp-app-body #tab-guests .wpwp-guest-table td:nth-child(3) select.wpwp-inline-guest-status {
    width: 100% !important;
    font-size: 16px !important;
    font-weight: 700 !important;
    min-height: 44px !important;
    border-radius: 10px !important;
    padding: 8px 12px !important;
    box-sizing: border-box !important;
  }

  /* Cell 4: Seats count badge */
  html body.wpwp-app-body #tab-guests .wpwp-guest-table td:nth-child(4) {
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
    padding: 6px 12px !important;
    background: #fbf6f1 !important;
    border-radius: 8px !important;
    font-size: 12.5px !important;
    color: #63574e !important;
    width: fit-content !important;
  }
  html body.wpwp-app-body #tab-guests .wpwp-guest-table td:nth-child(4)::before {
    content: "Liczba miejsc w zaproszeniu: ";
    font-weight: 600;
    color: #8b7d72;
  }

  /* Cell 5: Group & affiliation info */
  html body.wpwp-app-body #tab-guests .wpwp-guest-table td:nth-child(5) {
    background: #faf6f2 !important;
    border: 1px solid #ebdcd0 !important;
    border-radius: 12px !important;
    padding: 10px 14px !important;
    box-sizing: border-box !important;
  }
  html body.wpwp-app-body #tab-guests .wpwp-guest-table td:nth-child(5) .wpwp-add-to-group {
    display: inline-flex !important;
    align-items: center !important;
    min-height: 40px !important;
    padding: 6px 12px !important;
    background: #f0e5d8 !important;
    border-radius: 8px !important;
    margin-top: 6px !important;
    touch-action: manipulation !important;
  }

  /* Cell 6: Contact phone & email */
  html body.wpwp-app-body #tab-guests .wpwp-guest-table td:nth-child(6) {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 8px !important;
  }
  @media (max-width: 520px) {
    html body.wpwp-app-body #tab-guests .wpwp-guest-table td:nth-child(6) {
      grid-template-columns: 1fr !important;
    }
  }
  html body.wpwp-app-body #tab-guests .wpwp-guest-table td:nth-child(6) input.wpwp-inline-guest-phone,
  html body.wpwp-app-body #tab-guests .wpwp-guest-table td:nth-child(6) input.wpwp-inline-guest-email {
    font-size: 16px !important;
    min-height: 44px !important;
    border-radius: 10px !important;
    padding: 8px 12px !important;
    box-sizing: border-box !important;
    width: 100% !important;
  }

  /* Cell 7: Actions bar */
  html body.wpwp-app-body #tab-guests .wpwp-guest-table td.wpwp-guest-actions {
    border-top: 1px solid #ede3d8 !important;
    padding-top: 12px !important;
    margin-top: 4px !important;
  }
  html body.wpwp-app-body #tab-guests .wpwp-guest-table td.wpwp-guest-actions > div {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 8px !important;
    align-items: center !important;
  }
  html body.wpwp-app-body #tab-guests .wpwp-guest-table td.wpwp-guest-actions .button,
  html body.wpwp-app-body #tab-guests .wpwp-guest-table td.wpwp-guest-actions a.button {
    min-height: 44px !important;
    padding: 8px 14px !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    border-radius: 10px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    touch-action: manipulation !important;
    box-sizing: border-box !important;
  }
  html body.wpwp-app-body #tab-guests .wpwp-guest-table td.wpwp-guest-actions .wpwp-save-inline-guest {
    flex: 1 1 110px !important;
  }
  html body.wpwp-app-body #tab-guests .wpwp-guest-table td.wpwp-guest-actions a[href*="whatsapp"] {
    flex: 1 1 100px !important;
  }
  html body.wpwp-app-body #tab-guests .wpwp-guest-table td.wpwp-guest-actions a[href^="sms:"] {
    flex: 1 1 80px !important;
  }
  html body.wpwp-app-body #tab-guests .wpwp-guest-table td.wpwp-guest-actions .wpwp-delete-inline-guest {
    color: #a84236 !important;
    border-color: #eed6d2 !important;
    background: #fff8f7 !important;
  }
}

/* External module header is sticky; reserve its vertical space so it never
   covers the first lines of the active module. */
@media (min-width: 821px) {
  html body.wpwp-app-body .wedding-planner-wrap.is-external-workspace-active > .wpwp-router-module-header ~ .wpwp-module-workspace.wpwp-module-active {
    margin-top: 60px !important;
  }
}

/* Keep the sticky module header from covering the start of routed content. */
html body.wpwp-app-body .wpwp-module-workspace.wpwp-module-active {
  scroll-margin-top: 100px !important;
}

/* RSVP visual editor: larger working canvas, resize handles and graphics. */
.wpwp-rsvp-resize-handle{position:absolute;right:0;bottom:0;width:14px;height:14px;border-radius:4px;background:#a9787b;border:2px solid #fff;box-shadow:0 1px 4px rgba(0,0,0,.2);cursor:nwse-resize;display:none;z-index:20;touch-action:none}
.wpwp-rsvp-design-el.is-selected .wpwp-rsvp-resize-handle{display:block}
.wpwp-rsvp-design-graphic.is-selected{outline:2px dashed #a9787b;outline-offset:4px}
.wpwp-rsvp-design-graphic.is-selected .wpwp-rsvp-resize-handle{display:block}
.wpwp-rsvp-line-end{background:#262626;border-radius:50%;width:13px;height:13px}
.wpwp-rsvp-graphic-upload{display:grid;gap:6px;margin:8px 0}
.wpwp-rsvp-shape-controls{display:grid;gap:8px}
.wpwp-rsvp-shape-controls[hidden]{display:none}
.wpwp-rsvp-graphic-add{display:flex;gap:6px;align-items:center}
.wpwp-rsvp-graphic-add select{flex:1;min-width:0}
#wpwp-rsvp-graphic-controls{display:grid;gap:8px;margin-top:8px}
@media (min-width:1100px){
  .wpwp-rsvp-design-body{grid-template-columns:minmax(240px,280px) minmax(0,1fr)!important}
  .wpwp-rsvp-template-preview{min-height:760px!important}
}

@media (min-width:1100px){
  .wpwp-rsvp-design-body{grid-template-columns:minmax(220px,260px) minmax(0,1fr)!important}
  .wpwp-rsvp-design-controls{padding:14px!important}
  .wpwp-rsvp-design-stage{padding:12px!important}
  .wpwp-rsvp-template-preview{min-height:78vh!important;padding:24px 12px!important}
}
.wpwp-rsvp-design-body.is-controls-collapsed{grid-template-columns:1fr!important}
.wpwp-rsvp-design-body.is-controls-collapsed .wpwp-rsvp-design-controls{display:none!important}
