/* DP SHOP — loyalty points: product widget, account tile, rewards page */

.dpl-widget{
  margin: 18px 0;
  background: rgba(191,120,238,.08);
  border-radius: 16px;
  padding: 16px 18px;
}
.dpl-widget-text{ margin: 0; font-size: 13px; color: #1d1d1f; line-height: 1.5; }
.dpl-widget-text strong{ color: #9B4FD4; }
.dpl-widget-validity{ font-size: 12px; color: #79747e; }
.dpl-widget-more{ color: #BF78EE; font-weight: 600; text-decoration: none; }
.dpl-widget-more:hover{ color: #9B4FD4; text-decoration: underline; }
.dpl-balance-expiry{ font-size: 12px; opacity: .9; margin-top: 6px; }

/* ============ "Jak to działa" / regulamin page ============ */
.dpl-info-page{ max-width: 880px; margin: 0 auto; padding: 8px 0 40px; }
.dpl-info-hero{
  background: linear-gradient(135deg, rgba(191,120,238,.12), rgba(155,79,212,.08));
  border-radius: 20px; padding: 32px 28px; text-align: center; margin-bottom: 36px;
}
.dpl-info-hero-title{ margin: 0 0 10px; font-size: 26px; font-weight: 800; color: #1d1d1f; }
.dpl-info-hero-sub{ margin: 0 auto 20px; max-width: 620px; font-size: 15px; color: #4b4b4f; line-height: 1.55; }
.dpl-info-cta{
  display: inline-block; background: #BF78EE; color: #fff; font-weight: 700; font-size: 14px;
  padding: 12px 26px; border-radius: 999px; text-decoration: none; transition: background .15s ease;
}
.dpl-info-cta:hover{ background: #9B4FD4; color: #fff; }

.dpl-info-h{ font-size: 20px; font-weight: 800; color: #1d1d1f; margin: 0 0 20px; text-align: center; }

.dpl-steps{ display: grid; gap: 16px; margin-bottom: 40px; }
.dpl-step{
  display: flex; gap: 18px; align-items: flex-start;
  background: #fff; border: 1px solid #f0e9f7; border-radius: 16px; padding: 20px 22px;
}
.dpl-step-no{
  flex: 0 0 auto; width: 40px; height: 40px; border-radius: 50%;
  background: rgba(191,120,238,.12); color: #9B4FD4; font-weight: 800; font-size: 18px;
  display: flex; align-items: center; justify-content: center;
}
.dpl-step-body{ flex: 1 1 auto; }
.dpl-step-body h3{ margin: 4px 0 8px; font-size: 16px; font-weight: 700; color: #1d1d1f; }
.dpl-step-body p{ margin: 0 0 14px; font-size: 14px; color: #4b4b4f; line-height: 1.55; }
.dpl-step-body p strong{ color: #9B4FD4; }

/* faithful mini-previews of the real UI */
.dpl-prev{ font-size: 13px; }
.dpl-prev-widget{ background: rgba(191,120,238,.08); border-radius: 12px; padding: 12px 14px; }
.dpl-prev-wtext{ margin: 0 0 6px; color: #1d1d1f; }
.dpl-prev-wtext strong, .dpl-prev-wval strong{ color: #9B4FD4; }
.dpl-prev-wval{ margin: 0; color: #4b4b4f; }
.dpl-prev-tile{
  display: inline-flex; align-items: center; gap: 8px;
  border: 1px solid #eee; border-radius: 12px; padding: 12px 16px; color: #1d1d1f; font-weight: 600;
}
.dpl-prev-star{ color: #BF78EE; }
.dpl-prev-tile-pts{ color: #9B4FD4; font-weight: 800; }
.dpl-prev-card{
  display: inline-block; width: 180px; border: 1px solid #eee; border-radius: 12px;
  padding: 14px; text-align: center;
}
.dpl-prev-card-img{ font-size: 38px; line-height: 1; margin-bottom: 8px; }
.dpl-prev-card-name{ font-size: 13px; color: #1d1d1f; margin-bottom: 4px; }
.dpl-prev-card-cost{ font-size: 13px; color: #9B4FD4; font-weight: 800; margin-bottom: 10px; }
.dpl-prev-card-btn{
  display: inline-block; background: #BF78EE; color: #fff; font-weight: 700; font-size: 12px;
  padding: 7px 18px; border-radius: 999px;
}
.dpl-prev-badge{
  display: inline-block; background: rgba(191,120,238,.1); color: #9B4FD4; font-weight: 700;
  padding: 8px 16px; border-radius: 999px; font-size: 13px;
}

.dpl-rules{ list-style: none; margin: 0 0 36px; padding: 0; display: grid; gap: 10px; }
.dpl-rules li{
  position: relative; padding: 12px 16px 12px 44px; background: #fff;
  border: 1px solid #f0e9f7; border-radius: 12px; font-size: 14px; color: #4b4b4f; line-height: 1.5;
}
.dpl-rules li::before{
  content: "\2713"; position: absolute; left: 16px; top: 12px;
  color: #BF78EE; font-weight: 800;
}
.dpl-rules li strong{ color: #1d1d1f; }

.dpl-info-foot{ text-align: center; }
.dpl-info-note{ margin-top: 12px; font-size: 13px; color: #79747e; }
.dpl-info-note a{ color: #BF78EE; text-decoration: underline; }

/* ============ "Sklep za punkty" mode ============ */
#dpl-mode-bar{
  position: fixed; top: 0; left: 0; right: 0; z-index: 9999999;
  display: flex; align-items: center; justify-content: center; gap: 16px; flex-wrap: wrap;
  background: linear-gradient(90deg, #9B4FD4, #BF78EE); color: #fff;
  padding: 9px 16px; font-size: 13.5px; box-shadow: 0 2px 8px rgba(0,0,0,.18);
}
#dpl-mode-bar .dpl-bar-txt{ font-weight: 600; }
#dpl-mode-bar .dpl-bar-ic{ color: #ffe9a8; }
#dpl-mode-bar strong{ font-weight: 800; }
#dpl-mode-bar .dpl-bar-login{ color: #fff; text-decoration: underline; }
.dpl-bar-exit{
  background: #fff; color: #9B4FD4; font-weight: 800; font-size: 12.5px;
  padding: 7px 18px; border-radius: 999px; text-decoration: none; white-space: nowrap;
  transition: transform .15s ease;
}
.dpl-bar-exit:hover{ color: #9B4FD4; transform: translateY(-1px); }
body.dpl-has-bar{ padding-top: 46px; }
/* hide the mode bar while a drawer (mobile menu / cart) is open — its overlay
   sits below the bar, so otherwise the bar covers the drawer's close button */
html.dp-drawer-lock #dpl-mode-bar{ display: none !important; }
/* mobile filter drawer on listings: opens BELOW the bar, so its "back" button
   stays visible (theme puts the drawer at top:0, the bar would cover its header) */
@media (max-width: 767.98px){
  body.dpl-has-bar:is(#category,#new-products,#prices-drop,#best-sales) #left-column{
    top: var(--dpl-bar-h, 60px) !important;
    height: calc(100vh - var(--dpl-bar-h, 60px)) !important;
    height: calc(100dvh - var(--dpl-bar-h, 60px)) !important;
  }
}

/* product page: "Kup za zł" (leave points mode for normal purchase), same shape as the add-to-cart button */
.dpl-buy-zl{
  display: inline-flex; align-items: center; justify-content: center; box-sizing: border-box;
  height: 36px; padding: 0 18px; border-radius: 10px; font-weight: 400; font-size: 16px; white-space: nowrap;
  color: #9B4FD4; background: #fff; border: 1px solid #BF78EE; text-decoration: none;
  box-shadow: 2px -2px 4px rgba(0,0,0,.2);
  transition: background .2s ease, transform .15s ease, box-shadow .2s ease !important;
}
/* theme forces a:hover colour with !important, which would hide the text on the filled button */
.dpl-buy-zl:hover,
.dpl-buy-zl:active{
  background: #8A4FC9; border-color: #8A4FC9; color: #fff !important;
  transform: translateY(-2px); box-shadow: 0 6px 16px rgba(29,29,31,.28);
}

/* customer's points page */
.dpl-panel{ max-width: 760px; }
.dpl-panel-actions{ display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin: -12px 0 8px; }
.dpl-panel-btn{
  display: inline-block; padding: 11px 26px; border-radius: 999px; background: #fff;
  border: 1.5px solid #BF78EE; color: #9B4FD4; font-weight: 700; font-size: 14px; text-decoration: none;
}
.dpl-panel-btn:hover{ background: rgba(191,120,238,.1); color: #9B4FD4; }

/* cart line bought with points: old price, 0,01 zł, points */
.dpl-line-old{ text-decoration: line-through; color: #79747e; font-weight: 500; font-size: .85em; margin-right: 4px; }
.dpl-line-price{ color: #e5308a; font-weight: 700; }
.dpl-line-pts{ color: #9B4FD4; font-weight: 700; white-space: nowrap; margin-left: 4px; }
.dpl-line-badge{ display: block; margin-top: 3px; color: #9B4FD4; font-weight: 700; font-size: 12.5px; }

/* "discounts do not add up" note under cart totals */
.dp-discount-note{
  display: flex; align-items: flex-start; gap: 6px;
  margin: 10px 0 0; font-size: 12px; line-height: 1.45; color: #79747e; text-align: left;
}
.dp-discount-note .material-icons{ flex: 0 0 auto; font-size: 15px; line-height: 17px; color: #BF78EE; }
.dp-cart-drawer-footer .dp-discount-note{ margin: 8px 0 12px; }

/* not enough points: greyed "Kup za punkty" + explanation */
.add-to-cart.dpl-disabled,
button.dpl-disabled{
  background: #e4e1e8 !important; color: #9a95a6 !important;
  cursor: not-allowed !important; box-shadow: none !important;
}
.dpl-no-points{
  margin-top: 8px; font-size: 12.5px; font-weight: 600; color: #c0392b; line-height: 1.4;
}

/* enter-mode confirmation popup */
.dpl-pop-ov{
  position: fixed; inset: 0; z-index: 10000000; background: rgba(29,29,31,.55);
  display: flex; align-items: center; justify-content: center; padding: 16px;
}
.dpl-pop{
  background: #fff; border-radius: 18px; max-width: 420px; width: 100%;
  padding: 26px 24px; text-align: center; box-shadow: 0 12px 40px rgba(0,0,0,.25);
}
.dpl-pop-t{ margin: 0 0 10px; font-size: 19px; font-weight: 800; color: #1d1d1f; }
.dpl-pop-m{ margin: 0 0 20px; font-size: 14px; color: #4b4b4f; line-height: 1.55; }
.dpl-pop-btns{ display: flex; flex-direction: column; align-items: center; gap: 8px; }
.dpl-pop-ok{
  background: #BF78EE; color: #fff; border: none; cursor: pointer;
  font-weight: 700; font-size: 14px; padding: 12px 28px; border-radius: 10px;
  transition: background .15s ease;
}
.dpl-pop-ok:hover{ background: #9B4FD4; }
.dpl-pop-cancel{
  background: transparent; color: #79747e; border: none; cursor: pointer;
  font-weight: 600; font-size: 13px; padding: 6px;
}
.dpl-pop-cancel:hover{ color: #1d1d1f; }

@media (max-width: 576px){
  #dpl-mode-bar{ gap: 8px; padding: 8px 12px; font-size: 12px; }
  body.dpl-has-bar{ padding-top: 60px; }
}

@media (max-width: 576px){
  .dpl-info-hero{ padding: 24px 18px; }
  .dpl-info-hero-title{ font-size: 22px; }
  .dpl-step{ padding: 16px; gap: 14px; }
}
.dpl-widget-toggle{
  color: #BF78EE;
  text-decoration: underline;
  font-size: 12.5px;
}
.dpl-widget-toggle:hover{ color: #9B4FD4; }
.dpl-widget-info{ margin-top: 10px; }
.dpl-widget-info hr{ border: none; border-top: 1px solid #e2c9f5; margin: 0 0 12px; }
.dpl-widget-info h4{ font-size: 13px; font-weight: 700; color: #1d1d1f; margin: 0 0 6px; }
.dpl-widget-info p{ font-size: 12.5px; color: #4a4750; line-height: 1.5; margin: 0; }

.dpl-widget-redeem{
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px dashed #e2c9f5;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.dpl-widget-redeem-text{ font-size: 12.5px; color: #1d1d1f; }
.dpl-widget-redeem-text strong{ color: #9B4FD4; }
.dpl-widget-redeem-btn{ width: auto !important; padding: 7px 16px !important; }
.dpl-widget-redeem-status{ font-size: 12px; color: #9B4FD4; font-weight: 600; }
.dpl-widget-redeem-login{ color: #BF78EE; text-decoration: underline; font-size: 12.5px; }
/* "Kup ten produkt za punkty" (enter points mode) — branded pill button */
.dpl-enter-mode{
  border: none;
  border-radius: 10px;
  padding: 10px 20px !important;
  background: #BF78EE;
  color: #fff;
  font-weight: 700;
  font-size: 12.5px;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(191,120,238,.35);
  transition: background .15s ease, transform .15s ease, box-shadow .15s ease;
}
.dpl-enter-mode:hover{ background: #9B4FD4; transform: translateY(-1px); box-shadow: 0 4px 10px rgba(155,79,212,.4); }

/* my-account tile */
.dpl-link-item{ position: relative; }
.dpl-account-balance{
  display: block;
  font-size: 12px;
  font-weight: 700;
  color: #BF78EE;
  margin-top: 2px;
}

/* rewards page */
.dpl-rewards-page{ max-width: 1100px; margin: 0 auto; }
.dpl-balance-banner{
  background: linear-gradient(135deg, #BF78EE, #9B4FD4);
  color: #fff;
  border-radius: 16px;
  padding: 24px;
  text-align: center;
  margin-bottom: 28px;
}
.dpl-balance-num{ font-size: 40px; font-weight: 800; line-height: 1; }
.dpl-balance-label{ font-size: 13px; opacity: .9; margin-top: 4px; }
.dpl-section-title{ font-size: 18px; font-weight: 700; color: #1d1d1f; margin: 24px 0 14px; }
.dpl-filter-row{ display: flex; gap: 20px; margin-bottom: 16px; font-size: 13px; }
.dpl-filter-opt{ display: flex; align-items: center; gap: 6px; cursor: pointer; }
.dpl-pagination{ display: flex; gap: 6px; margin-top: 20px; flex-wrap: wrap; }
.dpl-pagination a, .dpl-pagination .dpl-page-current{
  min-width: 32px; height: 32px; display: flex; align-items: center; justify-content: center;
  border-radius: 8px; border: 1px solid #e2c9f5; font-size: 12.5px; text-decoration: none !important;
}
.dpl-pagination a{ color: #1d1d1f; }
.dpl-pagination a:hover{ background: #f1e4fb; }
.dpl-pagination .dpl-page-current{ background: #BF78EE; color: #fff; border-color: #BF78EE; font-weight: 700; }
.dpl-rewards-grid{
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 16px;
}
.dpl-reward-card{
  border: 1px solid #e2c9f5;
  border-radius: 12px;
  padding: 14px;
  text-align: center;
  background: #fff;
  transition: box-shadow .15s ease;
}
.dpl-reward-card:hover{ box-shadow: 0 6px 18px rgba(191,120,238,.15); }
.dpl-reward-card.dpl-reward-locked{ opacity: .55; }
.dpl-reward-card img{ width: 100%; height: 120px; object-fit: contain; margin-bottom: 8px; }
.dpl-reward-name{ font-size: 12.5px; color: #1d1d1f; margin-bottom: 4px; min-height: 2.6em; }
.dpl-reward-cost{ font-size: 13px; font-weight: 700; color: #9B4FD4; margin-bottom: 10px; }
.dpl-reward-btn{
  width: 100%;
  padding: 9px 10px;
  border: none;
  border-radius: 8px;
  background: #BF78EE;
  color: #fff;
  font-weight: 700;
  font-size: 12px;
  cursor: pointer;
  transition: background .15s ease;
}
.dpl-reward-btn:hover{ background: #9B4FD4; }
.dpl-reward-btn:disabled{ background: #d9d9d9; color: #9a95a6; cursor: not-allowed; }
#dpl-redeem-status{ margin-top: 12px; font-size: 13px; color: #9B4FD4; font-weight: 600; }

.dpl-history-table{ width: 100%; border-collapse: collapse; }
.dpl-history-table th, .dpl-history-table td{ padding: 8px 10px; border-bottom: 1px solid #eee; text-align: left; font-size: 12.5px; }
.dpl-history-table th{ color: #79747e; font-weight: 700; text-transform: uppercase; font-size: 11px; letter-spacing: .03em; }
.dpl-points-plus{ color: #3aa655; font-weight: 700; }
.dpl-points-minus{ color: #e5308a; font-weight: 700; }


/* cart summary: points earned + program link (under the checkout button) */
.dp-cart-loyalty{ margin:4px 0 20px; text-align:center; }
.dp-cart-loyalty-text{ margin:0 0 5px; font-size:12.5px; color:#4b4b4f; line-height:1.45; }
.dp-cart-loyalty-text strong{ color:#BF78EE; font-weight:800; }
.dp-cart-loyalty-link{ display:inline-block; font-size:12.5px; font-weight:700; color:#BF78EE; text-decoration:none; }
.dp-cart-loyalty-link:hover{ color:#a95fe0; text-decoration:underline; }

