/* Kad2U V71 - Mobile Public Preview Polish
   Purpose: improve actual guest view + owner mobile preview without touching dashboard UI. */

.ewc-scroll-progress{
  position:fixed;
  left:0;
  top:0;
  z-index:10020;
  width:100%;
  height:3px;
  pointer-events:none;
  background:rgba(255,255,255,.10);
}
.ewc-scroll-progress span{
  display:block;
  width:0%;
  height:100%;
  border-radius:0 999px 999px 0;
  background:linear-gradient(90deg,var(--button,var(--primary,#B76E8A)),var(--primary,#B76E8A));
  box-shadow:0 0 18px rgba(255,255,255,.62);
  transition:width .12s linear;
}
.ewc-public-page.ewc-locked .ewc-scroll-progress{display:none;}

.ewc-owner-preview-ribbon{
  position:fixed;
  left:50%;
  top:calc(8px + env(safe-area-inset-top));
  transform:translateX(-50%);
  z-index:10010;
  width:max-content;
  max-width:calc(100% - 28px);
  border:1px solid rgba(255,255,255,.72);
  border-radius:999px;
  padding:8px 13px;
  background:rgba(30,25,34,.66);
  color:#fff;
  font:800 11px/1 Calibri,'Segoe UI',Arial,sans-serif;
  letter-spacing:.06em;
  text-transform:uppercase;
  box-shadow:0 14px 34px rgba(0,0,0,.18);
  backdrop-filter:blur(16px) saturate(145%);
  -webkit-backdrop-filter:blur(16px) saturate(145%);
}

.ewc-topbar{
  gap:10px !important;
  align-items:center !important;
  justify-content:space-between !important;
}
.ewc-top-btn{
  min-width:45px !important;
  min-height:43px !important;
  touch-action:manipulation;
}
.ewc-top-btn.is-muted{
  opacity:.42;
  cursor:not-allowed;
}
.ewc-share-btn,
.ewc-topbar button[data-public-share]{
  width:auto !important;
  min-width:78px !important;
  padding:0 16px !important;
  font-weight:900 !important;
  letter-spacing:.01em !important;
}
.ewc-share-btn.is-copied,
.ewc-floating-cta-v71 button.is-copied{
  background:rgba(34,153,94,.92) !important;
  color:#fff !important;
  border-color:rgba(255,255,255,.62) !important;
}

.ewc-card-main{
  scroll-behavior:smooth;
}
.ewc-section,
.ewc-hero,
.ewc-quick-panel-v52{
  scroll-margin-top:24px;
}
.ewc-hero-inner{
  transform:translateZ(0);
}
.ewc-open-btn{
  position:relative;
  overflow:hidden;
}
.ewc-open-btn:after{
  content:"";
  position:absolute;
  top:-60%;
  bottom:-60%;
  width:38px;
  left:-56px;
  transform:rotate(18deg);
  background:linear-gradient(90deg,transparent,rgba(255,255,255,.42),transparent);
  animation:ewcV71Shine 2.8s ease-in-out infinite;
}
@keyframes ewcV71Shine{
  0%,40%{left:-60px;opacity:0;}
  52%{opacity:1;}
  76%,100%{left:calc(100% + 48px);opacity:0;}
}

.ewc-floating-cta-v71{
  position:fixed;
  left:50%;
  bottom:calc(90px + env(safe-area-inset-bottom));
  transform:translateX(-50%);
  z-index:79;
  width:min(356px,calc(100% - 52px));
  display:flex;
  justify-content:center;
  gap:8px;
  pointer-events:auto;
  transition:opacity .22s ease, transform .22s ease;
}
.ewc-public-page.ewc-locked .ewc-floating-cta-v71{
  display:none;
}
.ewc-floating-cta-v71 a,
.ewc-floating-cta-v71 button{
  min-width:0;
  min-height:42px;
  border:1px solid rgba(255,255,255,.62);
  border-radius:999px;
  padding:0 14px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  flex:1 1 0;
  background:rgba(255,255,255,.48);
  color:var(--text,#342936);
  box-shadow:0 14px 34px rgba(42,43,31,.12),inset 0 1px 0 rgba(255,255,255,.74);
  backdrop-filter:blur(12px) saturate(150%);
  -webkit-backdrop-filter:blur(12px) saturate(150%);
  font:900 12px/1 Calibri,'Segoe UI',Arial,sans-serif;
  cursor:pointer;
}
.ewc-floating-cta-v71 button{
  color:#fff;
  background:linear-gradient(135deg,var(--button,var(--primary,#B76E8A)),var(--primary,#B76E8A));
}
.ewc-v71-hide-quick .ewc-floating-cta-v71{
  opacity:0;
  pointer-events:none;
  transform:translateX(-50%) translateY(8px);
}

.ewc-form button[type="submit"],
.ewc-btn-primary,
.ewc-btn-soft,
.ewc-quick-actions-v52 a,
.ewc-success-actions a{
  min-height:46px;
  touch-action:manipulation;
}
.ewc-form button[type="submit"].is-loading{
  opacity:.78;
  pointer-events:none;
}
.ewc-form button[type="submit"].is-loading:after{
  content:"";
  width:15px;
  height:15px;
  margin-left:9px;
  border-radius:999px;
  border:2px solid rgba(255,255,255,.48);
  border-top-color:#fff;
  animation:ewcV71Spin .7s linear infinite;
}
@keyframes ewcV71Spin{to{transform:rotate(360deg)}}

.ewc-rsvp-success-card,
.ewc-personal-greeting-v52{
  animation:ewcV71Pop .42s ease both;
}
@keyframes ewcV71Pop{
  from{opacity:0;transform:translateY(8px) scale(.985)}
  to{opacity:1;transform:none}
}

@media (min-width:720px){
  .ewc-v71-owner-preview .ewc-phone{
    border-radius:36px !important;
    margin-top:18px !important;
    margin-bottom:18px !important;
  }
}

@media (max-width:480px){
  .ewc-floating-cta-v71{
    width:min(344px,calc(100% - 44px));
    bottom:calc(88px + env(safe-area-inset-bottom));
  }
  .ewc-floating-cta-v71 a,
  .ewc-floating-cta-v71 button{
    min-height:40px;
    padding:0 11px;
    font-size:11px;
  }
  .ewc-share-btn,
  .ewc-topbar button[data-public-share]{
    min-width:70px !important;
    padding:0 13px !important;
  }
}

@media (max-width:360px){
  .ewc-floating-cta-v71{
    width:min(326px,calc(100% - 34px));
    gap:6px;
  }
  .ewc-floating-cta-v71 a,
  .ewc-floating-cta-v71 button{
    padding:0 8px;
  }
}
