/* Pure Drinks F05 — visual layer only. No styles on login or admin routes. */
#pd-client-glass {
  --pd-glass-fill: linear-gradient(138deg, rgba(255,255,255,.23) 0%, rgba(255,255,255,.08) 30%, rgba(255,255,255,.035) 70%, rgba(255,255,255,.16) 100%);
  --pd-glass-shadow: inset 1px 1px 0 #fffffff2, inset -1px -1px 0 #ffffff9c, inset 5px 0 5px #ffffff21, inset -5px 0 6px #ffffff26, inset 0 -5px 6px #b89d8f19, 0 16px 36px #9b5e3e20, 0 2px 4px #9b5e3e14;
  --pd-glass-wave: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 900 700'%3E%3Cdefs%3E%3ClinearGradient id='g' x1='0' y1='0' x2='1' y2='0'%3E%3Cstop stop-color='white' stop-opacity='0'/%3E%3Cstop offset='.65' stop-color='white' stop-opacity='.25'/%3E%3Cstop offset='1' stop-color='white' stop-opacity='.02'/%3E%3C/linearGradient%3E%3C/defs%3E%3Cpath d='M560,-60 C180,150 710,360 390,760 L435,760 C755,360 225,150 605,-60Z' fill='url(%23g)'/%3E%3Cpath d='M560,-60 C180,150 710,360 390,760' fill='none' stroke='white' stroke-opacity='.3' stroke-width='1.3'/%3E%3C/svg%3E");
  background: radial-gradient(ellipse at 2% 10%, #ffe0cf9c, transparent 55%), radial-gradient(ellipse at 94% 65%, #ffd38326, transparent 55%), #fffaf3;
  color: #302922;
  color-scheme: light;
}

#pd-client-glass :is(.container, .catalogue-public-main) { min-width:0; }
#pd-client-glass [hidden] { display:none !important; }

/* The original layout and scroll containers retain their sizing/overflow. */
#pd-client-glass :is(
  .hero-card, .panel, .auth-card, .notice-card, .pd-cgv-proof, .dashboard-orders-status-card,
  .dashboard-offer-card, .install-card, .push-optin-card, .dashboard-tile,
  .pd-client-invoice, .order-shop-hero, .order-product-body, .order-summary,
  .order-note-card, .pd-dh, .pd-of-choice, .pd-cgv-order-notice,
  .pd-cgv-document, .pd-cgv-contents, .pd-help-intro,
  .pd-help-advice-heading, .pd-help-advice-card, .pd-help-faq-item,
  .pd-help-contact, .catalogue-hero, .catalogue-brand-feature,
  .catalogue-contact-strip, .catalogue-setup-missing
) {
  background: var(--pd-glass-fill) !important;
  background-color: #fff7ef !important;
  border: 1px solid rgba(255,255,255,.77) !important;
  border-radius: 28px !important;
  box-shadow: var(--pd-glass-shadow) !important;
  backdrop-filter: blur(14px) saturate(1.08);
  -webkit-backdrop-filter: blur(14px) saturate(1.08);
}

@supports ((backdrop-filter: blur(14px)) or (-webkit-backdrop-filter: blur(14px))) {
  #pd-client-glass :is(
    .hero-card, .panel, .auth-card, .notice-card, .pd-cgv-proof, .dashboard-orders-status-card,
    .dashboard-offer-card, .install-card, .push-optin-card, .dashboard-tile,
    .pd-client-invoice, .order-shop-hero, .order-product-body, .order-summary,
    .order-note-card, .pd-dh, .pd-of-choice, .pd-cgv-order-notice,
    .pd-cgv-document, .pd-cgv-contents, .pd-help-intro,
    .pd-help-advice-heading, .pd-help-advice-card, .pd-help-faq-item,
    .pd-help-contact, .catalogue-hero, .catalogue-brand-feature,
    .catalogue-contact-strip, .catalogue-setup-missing
  ) { background-color: transparent !important; }
}

/* Background reflection is behind the complete controls, never an overlay. */
#pd-client-glass :is(.dashboard-hero-card, .dashboard-offer-card, .catalogue-hero) {
  background-image: var(--pd-glass-wave), var(--pd-glass-fill) !important;
  background-repeat: no-repeat !important;
  background-size: 150% 170%, 100% 100% !important;
  background-position: 50% 50%, 0 0 !important;
  border-radius: 34px !important;
}

#pd-client-glass :is(.topbar, .catalogue-public-header) {
  background: rgba(255,250,243,.9);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid #ff936b35;
}
#pd-client-glass .topbar { z-index:100; }
#pd-client-glass :is(.topbar, .catalogue-public-header) nav { gap:12px 20px; }
#pd-client-glass .topbar nav > a,
#pd-client-glass .topbar nav .pd-account-menu > summary { min-height:36px; }
#pd-client-glass .pd-account-menu > div { box-shadow:0 12px 30px #9b5e3e22; }

#pd-client-glass .dashboard-hero-card { padding:clamp(26px,4vw,46px) !important; min-height:270px; }
#pd-client-glass .dashboard-hero-content { max-width:740px; }
#pd-client-glass .dashboard-hero-content h1 { font-size:clamp(25px,3.4vw,38px); line-height:1.35; }
#pd-client-glass .dashboard-weather-message { margin:16px 0; }
#pd-client-glass .dashboard-hero-content > p { max-width:600px; line-height:1.75; }
#pd-client-glass .dashboard-orders-status-card { margin:26px 0; }
#pd-client-glass .dashboard-tiles { gap:20px; }
#pd-client-glass .dashboard-tile { padding:26px; }
#pd-client-glass .dashboard-tile strong { line-height:1.5; }
#pd-client-glass .pd-client-invoice-actions { display:flex; flex-wrap:wrap; gap:10px; min-width:0; }
#pd-client-glass .dashboard-offer-carousel-controls { display:grid; grid-template-columns:50px minmax(0,1fr) 50px; align-items:center; gap:8px; }
#pd-client-glass .dashboard-offer-carousel-dots { display:flex; justify-content:center; flex-wrap:wrap; gap:6px; min-width:0; }

/* Preserve fixed/modal controls; shared Perle must not move them into flow. */
#pd-client-glass :is(.qty-minus, .qty-plus, .dashboard-offer-carousel-arrow, .dashboard-offer-carousel-dot, .pd-access-close) {
  width:50px; height:50px; min-width:50px; min-height:50px;
  padding:0; flex:0 0 50px; margin:0;
}
#pd-client-glass :is(.qty-minus, .qty-plus, .dashboard-offer-carousel-arrow, .pd-access-close) { font-size:22px; }
#pd-client-glass .dashboard-offer-carousel-dot::after { content:''; width:8px; height:8px; border-radius:50%; background:#ff936b; opacity:.35; }
#pd-client-glass .dashboard-offer-carousel-dot[aria-pressed='true']::after { opacity:1; background:#ff5856; }
#pd-client-glass .pd-access-close { position:absolute; right:12px; top:12px; }
#pd-client-glass .pwa-install-floating { position:fixed; z-index:9999; }
#pd-client-glass .pd-access-dialog { background:rgba(255,250,243,.97); border:1px solid #ff936b55; box-shadow:var(--pd-glass-shadow); padding-top:72px; }
#pd-client-glass .catalogue-image-zoom-button { position:absolute; }
#pd-client-glass #pd-help-clear-search { position:absolute; top:calc(50% - 25px); right:6px; width:50px; height:50px; min-width:50px; padding:0; font-size:22px; }
#pd-client-glass #pd-help-faq-search { padding-right:70px; }

#pd-client-glass .auth-card { width:min(100%,660px); max-width:660px; margin:24px auto; padding:clamp(22px,4vw,38px); }
#pd-client-glass .contact-panel { max-width:860px; margin:24px auto; padding:clamp(22px,4vw,38px); }
#pd-client-glass .form-card { background:transparent; min-width:0; }
#pd-client-glass :is(.form-card, .order-note-card) :is(input:not([type=hidden]):not([type=checkbox]):not([type=radio]), select, textarea) {
  background:rgba(255,255,255,.4);
  border:1px solid #ff936b68;
  border-radius:16px;
  box-shadow:inset 0 1px 2px #ffffffd9,0 3px 8px #d49a7612;
  max-width:100%; min-width:0;
}
#pd-client-glass :is(input,select,textarea):focus-visible { outline:1.5px solid #ff936b; outline-offset:2px; }
#pd-client-glass .order-card-qty { gap:8px; flex-wrap:nowrap; }
#pd-client-glass .order-card-qty input { min-width:0; width:64px; }
#pd-client-glass .order-summary { background-color:rgba(255,250,243,.96) !important; }
#pd-client-glass .order-product-body { border-radius:28px !important; }

#pd-client-glass .catalogue-hero { padding:clamp(22px,4vw,42px); gap:clamp(22px,4vw,42px); margin-bottom:28px; }
#pd-client-glass .catalogue-hero-copy { min-width:0; }
#pd-client-glass .catalogue-hero h1 { font-size:clamp(27px,3.5vw,44px); line-height:1.3; }
#pd-client-glass .catalogue-brand-feature { padding:clamp(22px,4vw,36px); gap:clamp(24px,4vw,48px); margin-bottom:26px; }
#pd-client-glass .catalogue-brand-copy { min-width:0; }
#pd-client-glass .catalogue-brand-copy p { line-height:1.8; }
#pd-client-glass .catalogue-values { margin:28px 0; }
#pd-client-glass .catalogue-contact-strip { padding:28px; gap:24px; }
#pd-client-glass .pd-help-intro { padding:clamp(24px,4vw,42px); }
#pd-client-glass .pd-help-advice-card { border-radius:22px !important; }
#pd-client-glass .pd-help-faq-item { border-radius:18px !important; margin-bottom:12px; }
#pd-client-glass .pd-help-faq-item > summary { padding:20px; }
#pd-client-glass .pd-help-contact { margin-top:28px; }
#pd-client-glass .pd-cgv-document { background-color:rgba(255,255,255,.4) !important; }

@media (max-width:700px) {
  #pd-client-glass :is(.container,.catalogue-public-main) { padding-left:16px; padding-right:16px; }
  #pd-client-glass .dashboard-hero-card { padding:26px 22px !important; }
  #pd-client-glass .dashboard-hero-content { max-width:100%; }
  #pd-client-glass .dashboard-orders-status-card { padding:20px 14px; }
  #pd-client-glass .pd-client-invoice { align-items:stretch; flex-direction:column; padding:20px 16px; }
  #pd-client-glass .pd-client-invoice-actions { flex-direction:column; }
  #pd-client-glass :is(.catalogue-hero,.catalogue-brand-feature) { grid-template-columns:minmax(0,1fr) !important; padding:24px 20px; }
  #pd-client-glass :is(.catalogue-hero-visual,.catalogue-brand-visual) { max-width:100% !important; }
  #pd-client-glass .catalogue-contact-strip { align-items:stretch; flex-direction:column; }
  #pd-client-glass .pd-help-contact { flex-direction:column; align-items:stretch; }
  #pd-client-glass :is(.form-card,.order-note-card) :is(input,select,textarea) { font-size:16px; }
}

@media (max-width:560px) {
  #pd-client-glass :is(.form-card button[type=submit], .dashboard-hero-content > a, .order-submit-button, .pd-client-invoice-actions > a, .catalogue-contact-actions > a, .pd-help-contact-link) {
    width:100%; align-self:stretch;
  }
  #pd-client-glass .pwa-install-floating { width:auto; }
  #pd-client-glass :is(.auth-card,.contact-panel) { padding:22px 18px; }
  #pd-client-glass :is(.install-card,.push-optin-card) { align-items:stretch; flex-direction:column; }
}

@media (prefers-reduced-motion:reduce) {
  #pd-client-glass :is(.dashboard-hero-card,.dashboard-offer-card,.catalogue-hero) { animation:none !important; }
}

@media print {
  #pd-client-glass { background:white; }
  #pd-client-glass .pd-cgv-document { background:white !important; border:0 !important; box-shadow:none !important; backdrop-filter:none; -webkit-backdrop-filter:none; }
}

/* Dashboard 2026-11-30. All overrides are restricted to the client home page. */
#pd-client-glass[data-pd-page="dashboard"] .topbar {
  background:transparent !important;
  backdrop-filter:none; -webkit-backdrop-filter:none;
}
#pd-client-glass[data-pd-page="dashboard"] .topbar::before {
  content:""; position:absolute; inset:0; z-index:0; pointer-events:none; background:#fff;
  --pd-header-cut:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 120' preserveAspectRatio='none'%3E%3Cpath d='M0,0 H1440 V60 C1350,35 1240,20 1080,55 C900,95 750,118 540,68 C360,25 180,15 0,70 Z' fill='black'/%3E%3C/svg%3E");
  -webkit-mask-image:linear-gradient(#000,#000),var(--pd-header-cut);
  mask-image:linear-gradient(#000,#000),var(--pd-header-cut);
  -webkit-mask-size:100% calc(100% - 29px),100% 30px;
  mask-size:100% calc(100% - 29px),100% 30px;
  -webkit-mask-position:top,bottom; mask-position:top,bottom;
  -webkit-mask-repeat:no-repeat; mask-repeat:no-repeat;
}
#pd-client-glass[data-pd-page="dashboard"] .topbar::after { background:none; pointer-events:none; }

#pd-client-glass[data-pd-page="dashboard"] .dashboard-hero-card { overflow:visible; isolation:isolate; }
#pd-client-glass[data-pd-page="dashboard"] .dashboard-hero-card::before,
#pd-client-glass[data-pd-page="dashboard"] .dashboard-fruits-layer { border-radius:inherit; }
#pd-client-glass[data-pd-page="dashboard"] .pd-rising-bubbles {
  position:absolute; inset:0; width:100%; height:100%; z-index:1;
  border-radius:inherit; pointer-events:none;
}
#pd-client-glass[data-pd-page="dashboard"] .pd-dashboard-weather-icon {
  position:absolute; top:18px; right:22px; width:110px; height:110px; z-index:4;
  background-image:url('/assets/images/dashboard-weather-20261130.png');
  background-color:transparent; background-size:400% 300%; background-repeat:no-repeat;
  border:0; border-radius:0; box-shadow:none; filter:none; pointer-events:none;
}
#pd-client-glass[data-pd-page="dashboard"] .pd-weather-tile-0 { background-position:0% 0%; }
#pd-client-glass[data-pd-page="dashboard"] .pd-weather-tile-1 { background-position:33.333333% 0%; }
#pd-client-glass[data-pd-page="dashboard"] .pd-weather-tile-2 { background-position:66.666667% 0%; }
#pd-client-glass[data-pd-page="dashboard"] .pd-weather-tile-3 { background-position:100% 0%; }
#pd-client-glass[data-pd-page="dashboard"] .pd-weather-tile-4 { background-position:0% 50%; }
#pd-client-glass[data-pd-page="dashboard"] .pd-weather-tile-5 { background-position:33.333333% 50%; }
#pd-client-glass[data-pd-page="dashboard"] .pd-weather-tile-6 { background-position:66.666667% 50%; }
#pd-client-glass[data-pd-page="dashboard"] .pd-weather-tile-7 { background-position:100% 50%; }
#pd-client-glass[data-pd-page="dashboard"] .pd-weather-tile-8 { background-position:0% 100%; }
#pd-client-glass[data-pd-page="dashboard"] .pd-weather-tile-9 { background-position:33.333333% 100%; }
#pd-client-glass[data-pd-page="dashboard"] .pd-weather-tile-10 { background-position:66.666667% 100%; }
#pd-client-glass[data-pd-page="dashboard"] .pd-weather-tile-11 { background-position:100% 100%; }
#pd-client-glass[data-pd-page="dashboard"] .dashboard-hero-card:has(.pd-dashboard-weather-icon) .dashboard-hero-content h1,
#pd-client-glass[data-pd-page="dashboard"] .dashboard-hero-card:has(.pd-dashboard-weather-icon) .dashboard-weather-message { padding-right:115px; }

#pd-client-glass[data-pd-page="dashboard"] .dashboard-orders-status-summary {
  background:rgba(255,255,255,.10); box-shadow:inset 0 1px 0 #ffffff70;
}
#pd-client-glass[data-pd-page="dashboard"] .dashboard-orders-status-table-wrap { background:rgba(255,255,255,.04); }
#pd-client-glass[data-pd-page="dashboard"] .dashboard-orders-status-table { background:transparent; }
#pd-client-glass[data-pd-page="dashboard"] .dashboard-orders-status-table tr.is-pending { background:rgba(255,255,255,.08); }
#pd-client-glass[data-pd-page="dashboard"] .dashboard-orders-status-table tr.is-pending td { background:transparent; }

/* The shadow fits inside the padded stage; no background can reveal a rectangle. */
#pd-client-glass[data-pd-page="dashboard"] .dashboard-offer-carousel-stage {
  height:294px; background:transparent; border:0; border-radius:0; box-shadow:none;
}
#pd-client-glass[data-pd-page="dashboard"] .dashboard-offer-carousel-slide { padding:20px 28px 34px; background:transparent; border:0; box-shadow:none; }
#pd-client-glass[data-pd-page="dashboard"] .dashboard-offer-carousel-slide img { background:transparent; border:0; border-radius:0; box-shadow:none; filter:drop-shadow(0 6px 7px rgba(77,53,36,.10)) !important; }
#pd-client-glass[data-pd-page="dashboard"] [data-offer-carousel][tabindex="0"] { touch-action:pan-y; }
#pd-client-glass[data-pd-page="dashboard"] [data-offer-carousel][tabindex="0"]:focus-visible { outline:2px solid #ff936b; outline-offset:4px; border-radius:12px; }
/* If JavaScript is unavailable, every slide remains reachable without controls. */
#pd-client-glass[data-pd-page="dashboard"] [data-offer-carousel]:not([data-pd-carousel-ready]) .dashboard-offer-carousel-stage { display:flex; overflow-x:auto; scroll-snap-type:x mandatory; }
#pd-client-glass[data-pd-page="dashboard"] [data-offer-carousel]:not([data-pd-carousel-ready]) .dashboard-offer-carousel-slide { position:relative; inset:auto; flex:0 0 100%; opacity:1; transform:none; pointer-events:auto; scroll-snap-align:center; }

@media(max-width:760px) {
  #pd-client-glass[data-pd-page="dashboard"] .dashboard-offer-carousel-stage { height:264px; }
}
@media(max-width:560px) {
  #pd-client-glass[data-pd-page="dashboard"] .pd-dashboard-weather-icon { width:76px; height:76px; top:16px; right:12px; }
  #pd-client-glass[data-pd-page="dashboard"] .dashboard-hero-card:has(.pd-dashboard-weather-icon) .dashboard-hero-content h1 { padding-right:70px; min-height:70px; }
  #pd-client-glass[data-pd-page="dashboard"] .dashboard-hero-card:has(.pd-dashboard-weather-icon) .dashboard-weather-message { padding-right:0; }
  #pd-client-glass[data-pd-page="dashboard"] .dashboard-offer-carousel-stage { height:250px; }
}
@media(prefers-reduced-motion:reduce) {
  #pd-client-glass[data-pd-page="dashboard"] .pd-rising-bubbles { display:none; }
  #pd-client-glass[data-pd-page="dashboard"] .dashboard-offer-carousel-slide { transition:none; }
}

/* The reflection must inherit the card's full-height corner geometry.
   Its painted band remains 34px high; interactive content is not clipped. */
#pd-client-glass[data-pd-page="dashboard"] .dashboard-hero-card::before {
  inset:0;
  height:auto;
  border-radius:inherit;
  background-size:100% 34px;
}
