/* ================================
   P6899 – PREMIUM (CLEAN) CUSTOMIZER LOOK
   pasuje do HTML z Twojego snippet'u (canvas + panel)
   ================================ */

:root{
  --p6899-bg: #ffffff;
  --p6899-ink: #0b1220;
  --p6899-muted: rgba(11,18,32,.66);
  --p6899-line: rgba(11,18,32,.12);
  --p6899-soft: rgba(11,18,32,.06);
  --p6899-r: 18px;

  /* miękkie, jasne cienie (bez czerni) */
  --p6899-shadow: 0 14px 40px rgba(15, 23, 42, .08);
  --p6899-shadow2: 0 22px 60px rgba(15, 23, 42, .10);
}

/* ================================
   Canvas (left) – premium frame
   ================================ */

.p6899-customizer__stage{
  padding: 10px;              /* frame tu */
  border-radius: 18px;
  border: 1px solid var(--p6899-line);
  box-shadow: var(--p6899-shadow);
  background:
    radial-gradient(900px 480px at 12% 10%, rgba(99,102,241,.10), transparent 55%),
    radial-gradient(800px 420px at 88% 18%, rgba(16,185,129,.08), transparent 55%),
    #fff;
}

.p6899-customizer-canvas canvas#customizer-canvas{
  border-radius: 14px; /* mniejszy, bo w środku ramki */
  border: 0;
  box-shadow: none;
  background: transparent;
  padding: 0 !important;
}

/* ================================
   Panel – premium card (clean)
   ================================ */

.p6899-customizer-panel{ width: 100%; }

/* gradient border, ale jasny i elegancki */
.p6899-panel{
  width: 100%;
  max-width: 520px;
  border-radius: 22px;
  position: relative;
  overflow: hidden;

  background:
    linear-gradient(var(--p6899-bg), var(--p6899-bg)) padding-box,
    linear-gradient(135deg, rgba(99,102,241,.55), rgba(16,185,129,.45), rgba(236,72,153,.35)) border-box;
  border: 1px solid transparent;

  box-shadow: var(--p6899-shadow);
}

/* delikatny “halo” zamiast ciężkiego cienia */
.p6899-panel::before{
  content:"";
  position:absolute;
  inset:-2px;
  pointer-events:none;
  background: radial-gradient(700px 220px at 20% 0%, rgba(99,102,241,.10), transparent 55%),
              radial-gradient(700px 220px at 80% 10%, rgba(16,185,129,.08), transparent 60%);
  opacity:.9;
}

.p6899-panel > *{ position: relative; } /* żeby ::before było pod spodem */

.p6899-panel:hover{
  box-shadow: var(--p6899-shadow2);
}

/* ================================
   Header
   ================================ */

.p6899-panel__header{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 12px;
  padding: 14px 16px 12px;
  border-bottom: 1px solid var(--p6899-soft);
  background: rgba(255,255,255,.72);
  backdrop-filter: blur(8px);
}

.p6899-panel__title{
  font-weight: 900;
  letter-spacing: .2px;
  font-size: 14px;
  color: var(--p6899-ink);
}

.p6899-panel__min{
  width: 40px;
  height: 36px;
  border-radius: 14px;
  border: 1px solid rgba(11,18,32,.10);
  background: rgba(255,255,255,.85);
  cursor:pointer;
  color: var(--p6899-ink);
  display:flex;
  align-items:center;
  justify-content:center;
  transition: transform .08s ease, background .15s ease, box-shadow .15s ease;
}
.p6899-panel__min:hover{
  background: #fff;
  box-shadow: 0 10px 22px rgba(15, 23, 42, .08);
}
.p6899-panel__min:active{ transform: translateY(1px); }

/* desktop minimized */
.p6899-panel.is-min{
  max-width: 320px;
}
.p6899-panel.is-min .p6899-panel__body,
.p6899-panel.is-min .p6899-panel__tabs{
  display:none;
}

/* handle (mobile sheet) */
.p6899-sheet__handle{ display:none; }

/* ================================
   Tabs – clean segmented control
   ================================ */

.p6899-panel__tabs{
  display:flex;
  gap: 8px;
  padding: 12px 16px 14px;
  border-bottom: 1px solid var(--p6899-soft);
}

.p6899-tab{
  flex:1;
  padding: 10px 10px;
  border-radius: 999px;
  border: 1px solid rgba(11,18,32,.10);
  background: rgba(255,255,255,.72);
  font-size: 12px;
  font-weight: 900;
  cursor:pointer;
  color: rgba(11,18,32,.82);
  white-space: nowrap;
  transition: transform .08s ease, background .15s ease, box-shadow .15s ease, border-color .15s ease;
}
.p6899-tab:hover{
  background:#fff;
  transform: translateY(-1px);
  box-shadow: 0 10px 22px rgba(15, 23, 42, .07);
}
.p6899-tab.is-active{
  background: linear-gradient(180deg, rgba(11,18,32,.92) 0%, rgba(11,18,32,.88) 100%);
  color:#fff;
  border-color: rgba(11,18,32,.06);
  box-shadow: 0 14px 26px rgba(15, 23, 42, .12);
}

/* ================================
   Body / panes
   ================================ */

.p6899-panel__body{
  padding: 14px 16px 16px;
}

.p6899-pane{ display:none; }
.p6899-pane.is-active{ display:block; }

.p6899-help{
  margin-top: 10px;
  font-size: 12px;
  color: var(--p6899-muted);
  line-height: 1.45;
}

/* ================================
   Buttons – premium, ale lekko
   ================================ */

.p6899-btn{
  width: 100%;
  padding: 12px 14px;
  border-radius: 16px;
  border: 1px solid rgba(11,18,32,.12);
  background:#fff;
  cursor:pointer;
  font-weight: 900;
  color: var(--p6899-ink);
  transition: transform .08s ease, box-shadow .18s ease, background .15s ease, border-color .15s ease;
}
.p6899-btn:active{ transform: translateY(1px); }

.p6899-btn--primary{
  border-color: transparent;
  background: linear-gradient(180deg, rgba(11,18,32,.92) 0%, rgba(11,18,32,.86) 100%);
  color: #fff;

  /* cień jasny, nie czarny */
  box-shadow: 0 16px 34px rgba(15, 23, 42, .14);
}
.p6899-btn--primary:hover{
  box-shadow: 0 20px 46px rgba(15, 23, 42, .16);
}

/* ================================
   Inputs
   ================================ */

.p6899-field{ margin-top: 10px; }
.p6899-field label{
  display:block;
  font-size: 12px;
  font-weight: 900;
  color: rgba(11,18,32,.68);
  margin-bottom: 6px;
}

.p6899-field input[type="text"]{
  width:100%;
  padding: 12px 12px;
  border-radius: 16px;
  border: 1px solid rgba(11,18,32,.14);
  outline:none;
  background:#fff;
  color: var(--p6899-ink);
  transition: box-shadow .15s ease, border-color .15s ease;
}
.p6899-field input[type="text"]:focus{
  border-color: rgba(99,102,241,.40);
  box-shadow: 0 0 0 4px rgba(99,102,241,.12);
}

.p6899-grid2{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 10px;
}

.p6899-field input[type="range"]{
  width: 100%;
  accent-color: rgba(11,18,32,.90);
}

.p6899-field input[type="color"]{
  width: 100%;
  height: 44px;
  padding: 6px;
  border-radius: 16px;
  border: 1px solid rgba(11,18,32,.14);
  background:#fff;
}

/* ================================
   Chips row
   ================================ */

.p6899-row{
  display:flex;
  gap: 10px;
  margin-top: 10px;
}
.p6899-chip{
  flex:1;
  padding: 11px 10px;
  border-radius: 16px;
  border: 1px solid rgba(11,18,32,.10);
  background: rgba(255,255,255,.72);
  cursor:pointer;
  font-weight: 900;
  color: var(--p6899-ink);
  transition: transform .08s ease, background .15s ease, box-shadow .15s ease;
}
.p6899-chip:hover{
  background:#fff;
  transform: translateY(-1px);
  box-shadow: 0 10px 22px rgba(15, 23, 42, .07);
}
.p6899-chip:disabled,
.p6899-btn:disabled{
  opacity:.55;
  cursor:not-allowed;
  box-shadow:none;
}

/* ================================
   Layers list
   ================================ */

.p6899-layers{
  margin-top: 10px;
  border: 1px solid rgba(11,18,32,.10);
  border-radius: 16px;
  background: rgba(255,255,255,.78);
  overflow:hidden;
}

.p6899-layer{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 10px;
  padding: 10px 10px;
  border-bottom: 1px solid rgba(11,18,32,.06);
}
.p6899-layer:last-child{ border-bottom:none; }

.p6899-layer__name{
  font-size: 12px;
  font-weight: 900;
  color: var(--p6899-ink);
  cursor:pointer;
}

.p6899-layer button{
  border: 1px solid rgba(11,18,32,.10);
  background: rgba(255,255,255,.72);
  border-radius: 14px;
  padding: 6px 9px;
  cursor:pointer;
  font-weight: 900;
  color: var(--p6899-ink);
  transition: background .15s ease, box-shadow .15s ease;
}
.p6899-layer button:hover{
  background:#fff;
  box-shadow: 0 10px 22px rgba(15, 23, 42, .07);
}

/* ================================
   Sticky desktop
   ================================ */

@media (min-width: 992px){
  .p6899-customizer-panel .p6899-panel{
    position: sticky;
    top: 16px;
    max-height: calc(100vh - 32px);
    display:flex;
    flex-direction:column;
max-width: none; 
  width: 100%;
  }
  .p6899-panel__body{ overflow:auto; }
}

/* ================================
   Mobile bottom-sheet
   ================================ */

@media (max-width: 991px){
  .p6899-customizer-panel .p6899-panel{
    position: static !important;
    left: auto !important;
    right: auto !important;
    bottom: auto !important;
    transform: none !important;

    max-width: 100% !important;
    width: 100% !important;
    max-height: none !important;

    z-index: auto !important;
  }

  .p6899-sheet__handle{
    display: none !important;
  }

  /* jeśli wcześniej dodawałeś padding-bottom pod sheet */
  .woocommerce div.product{
    padding-bottom: 0 !important;
  }
}



/* FIX: halo/gradient nie może wystawać poza zaokrąglenie panelu */
.p6899-panel::before{
  border-radius: inherit;   /* najważniejsze */
  overflow: hidden;         /* dodatkowo */
  inset: 0;                 /* zamiast -2px (żeby nie wychodziło poza) */
}






/* ==========================================
   RIODE FORM -> BOX jak "Kreator"
   ========================================== */

/* karta na cały formularz (warianty/cena/koszyk) */
.elementor-widget-riode_sproduct_cart_form .variations_form.cart{
  position: relative;
  border: 1px solid rgba(0,0,0,.10);
  border-radius: 18px;
  background:
    radial-gradient(900px 420px at 12% 0%, rgba(99,102,241,.06), transparent 55%),
    radial-gradient(900px 420px at 92% 12%, rgba(16,185,129,.05), transparent 58%),
    #fff;
  box-shadow: 0 14px 40px rgba(15,23,42,.10);
  padding: 18px 16px 16px;
  margin-top: 14px;
}

/* “nagłówek” jak w kreatorze */
.elementor-widget-riode_sproduct_cart_form .variations_form.cart::before{
  display: block;
  font-weight: 900;
  font-size: 15px;
  color: #0b1220;
  margin: -4px 0 12px;
}

/* ładniejsze odcięcie sekcji wewnątrz */
.elementor-widget-riode_sproduct_cart_form .variations_form.cart .variations{
  margin-bottom: 12px;
}

.elementor-widget-riode_sproduct_cart_form .variations_form.cart .single_variation_wrap{
  border-top: 1px solid rgba(0,0,0,.06);
  padding-top: 12px;
}

/* usuwamy “gołe” hr Riode, bo robi wrażenie losowej kreski */
.elementor-widget-riode_sproduct_cart_form .variations_form.cart hr.product-divider{
  border: 0;
  height: 1px;
  background: rgba(0,0,0,.06);
  margin: 12px 0;
}











/* ==========================================
   FIX: Buybox title + szerokość jak Kreator
   ========================================== */

/* Nagłówek buyboxa (zamiast "Konfiguracja" dajemy coś zakupowego) */
.elementor-widget-riode_sproduct_cart_form .variations_form.cart::before{
  content: "Wählen Sie Farbe und Größe"; /* możesz zmienić np. na "Zakup", "Twój wybór" itp. */
}

/* Kreator ma mieć taką samą szerokość jak buybox */
.p6899-panel{
  max-width: none; 
  width: 100%;
}

/* Buybox też niech wypełnia kolumnę */
.elementor-widget-riode_sproduct_cart_form .variations_form.cart{
  width: 100%;
  max-width: none;
}

/* Wywalamy przycisk zwijania (i nie ma już "min") */
.p6899-panel__min{ display:none !important; }

.p6899-customizer__stage{ box-sizing: border-box; }
#customizer-canvas{ display:block; }