/*
 * Panel Klienta – Dwóch Ojców
 * v3.2.1 – Voucher + local namedays
 * Założenie: pełny styl tylko w .pkdo-panel, bez konfliktu z Code Snippets.
 */

.pkdo-panel {
  --pkdo-navy:#14243a;
  --pkdo-text:#2d2925;
  --pkdo-muted:#706b66;
  --pkdo-brown:#3d2b1f;
  --pkdo-brown-dark:#24170f;
  --pkdo-accent:#b5793a;
  --pkdo-cream:#f7f0e6;
  --pkdo-cream-2:#fff7ed;
  --pkdo-soft:#fffaf4;
  --pkdo-border:rgba(20,36,58,.10);
  --pkdo-shadow:0 16px 44px rgba(20,36,58,.06);
  --pkdo-radius-xl:30px;
  --pkdo-radius-lg:24px;
  --pkdo-radius-md:18px;
  --pkdo-gap:26px;
  width:min(1540px,100%);
  margin:0 auto;
  padding:0 clamp(16px,3vw,28px);
  color:var(--pkdo-text);
  box-sizing:border-box;
}

.pkdo-panel *,
.pkdo-panel *::before,
.pkdo-panel *::after{box-sizing:border-box}
.pkdo-panel a{text-decoration:none;color:inherit}
.pkdo-panel h1,.pkdo-panel h2,.pkdo-panel h3,.pkdo-panel strong{color:var(--pkdo-navy)}
.pkdo-panel h1,.pkdo-panel h2,.pkdo-panel h3,.pkdo-panel p{margin-top:0}
.pkdo-panel p{line-height:1.55}

.pkdo-hero,
.pkdo-section,
.pkdo-history{margin-bottom:var(--pkdo-gap)}

.pkdo-section{
  background:#fff;
  border:1px solid var(--pkdo-border);
  border-radius:var(--pkdo-radius-xl);
  padding:clamp(26px,3.8vw,40px);
  overflow:hidden;
}

.pkdo-hero{
  background:var(--pkdo-cream);
  border-radius:var(--pkdo-radius-xl);
  padding:clamp(28px,4vw,44px);
  display:grid;
  grid-template-columns:minmax(0,1.2fr) minmax(320px,.8fr);
  gap:clamp(22px,3vw,36px);
  align-items:stretch;
  overflow:hidden;
}

.pkdo-hero-main h1{
  font-size:clamp(46px,5.8vw,72px);
  line-height:.98;
  letter-spacing:-.055em;
  margin:0 0 22px;
}
.pkdo-lead{font-size:clamp(18px,2vw,23px);margin:0 0 24px;color:#342b25}
.pkdo-stats{display:grid;grid-template-columns:1fr 1fr;gap:14px 22px;max-width:680px}
.pkdo-stats p{margin:0;color:#536073;font-size:17px;line-height:1.45}
.pkdo-stats span{margin-right:7px}.pkdo-stats strong{font-weight:900}

.pkdo-hero-actions{display:grid;grid-template-columns:1fr;gap:18px}
.pkdo-action-card{
  position:relative;
  display:grid!important;
  grid-template-columns:auto 1fr auto;
  align-items:center;
  gap:18px;
  min-height:132px;
  padding:24px;
  border-radius:var(--pkdo-radius-lg);
  background:rgba(255,247,237,.88);
  border:1px solid rgba(61,43,31,.08);
  transition:transform .18s ease, box-shadow .18s ease;
}
.pkdo-action-card:hover{transform:translateY(-2px)}
.pkdo-action-icon{width:62px;height:62px;display:grid;place-items:center;border-radius:50%;background:rgba(255,255,255,.72);font-size:32px;line-height:1}
.pkdo-action-card h3{font-size:25px;line-height:1.1;letter-spacing:-.035em;margin:0 0 8px}
.pkdo-action-card p{font-size:16px;line-height:1.4;color:var(--pkdo-text);margin:0}
.pkdo-card-arrow{width:42px;height:42px;display:grid;place-items:center;border-radius:50%;border:2px solid rgba(188,129,69,.34);color:#bb7c3c;font-size:34px;line-height:1}

.pkdo-section-heading h2,
.pkdo-promo-copy h2,
.pkdo-voucher h2,
.pkdo-message h2{
  font-size:clamp(34px,4vw,52px);
  line-height:1.02;
  letter-spacing:-.05em;
  margin:0 0 12px;
}
.pkdo-section-heading p,
.pkdo-promo-copy p,
.pkdo-voucher p,
.pkdo-message p{color:var(--pkdo-muted);font-size:clamp(16px,1.8vw,20px);margin-bottom:24px}
.pkdo-meta{color:var(--pkdo-muted);font-size:clamp(16px,1.8vw,19px);margin:0 0 24px}.pkdo-meta span{margin:0 .35em;color:#bd8a52}

.pkdo-primary-button,.pkdo-secondary-button{
  display:inline-flex!important;align-items:center;justify-content:center;
  min-height:56px;padding:15px 24px;border-radius:16px;background:var(--pkdo-brown);color:#fff!important;
  font-weight:800;font-size:17px;line-height:1.15;text-align:center;transition:background .18s ease, transform .18s ease;
}
.pkdo-primary-button:hover,.pkdo-secondary-button:hover{background:var(--pkdo-brown-dark);transform:translateY(-1px)}

.pkdo-last-order{display:grid;grid-template-columns:minmax(0,1fr) 280px;gap:30px;align-items:stretch}
.pkdo-order-items{display:grid;grid-template-columns:1fr;gap:18px;margin:0 0 24px}
.pkdo-order-product{display:grid!important;grid-template-columns:290px minmax(0,1fr);align-items:stretch;background:var(--pkdo-cream-2);border-radius:var(--pkdo-radius-lg);overflow:hidden;border:0;padding:0!important;height:auto!important;box-shadow:none}
.pkdo-product-image{width:100%;overflow:hidden;background:var(--pkdo-cream-2)}
.pkdo-product-image img{width:100%!important;height:100%!important;min-height:220px;object-fit:cover;display:block!important;max-width:none!important;border-radius:0!important}
.pkdo-order-product-body{display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;padding:24px 22px 26px;min-height:220px}
.pkdo-order-product-body strong{display:block;margin:0 0 12px;font-size:clamp(22px,2.4vw,30px);line-height:1.15;letter-spacing:-.035em}
.pkdo-order-product-body span{display:block;margin:0;color:var(--pkdo-brown);font-weight:900;font-size:clamp(21px,2.2vw,26px)}
.pkdo-order-summary{display:grid;grid-template-columns:1fr auto;gap:22px;align-items:end;border-top:1px solid rgba(20,36,58,.10);padding-top:24px}
.pkdo-total>div{color:var(--pkdo-muted);font-size:17px;margin-bottom:4px}.pkdo-total strong{display:block;font-size:clamp(34px,3.8vw,48px);line-height:1;letter-spacing:-.035em}
.pkdo-help-card{background:var(--pkdo-cream);border-radius:var(--pkdo-radius-lg);padding:28px;align-self:stretch}.pkdo-help-card div{font-size:34px;margin-bottom:14px}.pkdo-help-card h3{font-size:24px;margin:0 0 10px}.pkdo-help-card p{color:var(--pkdo-muted);margin:0}

.pkdo-promo-section,.pkdo-voucher,.pkdo-message,.pkdo-seasonal{background:var(--pkdo-cream)}
.pkdo-promo-inner,.pkdo-voucher-inner{display:grid;grid-template-columns:1.3fr .9fr;gap:28px;align-items:center}.pkdo-section-icon{font-size:34px;line-height:1;margin-bottom:18px}.pkdo-promo-image{background:rgba(255,247,237,.9);border-radius:var(--pkdo-radius-lg);padding:12px}.pkdo-promo-image img{width:100%;display:block;border-radius:20px}.pkdo-soft-card{background:rgba(255,247,237,.86);border-radius:var(--pkdo-radius-lg);padding:32px}.pkdo-soft-card h3{font-size:32px;line-height:1.05;margin:0 0 16px}.pkdo-soft-card p{margin:0;color:var(--pkdo-text)}.pkdo-voucher-namedays{display:flex;flex-wrap:wrap;gap:10px;margin:18px 0 18px}.pkdo-name-chip{display:inline-flex;align-items:center;border-radius:999px;background:#fff;padding:8px 13px;color:var(--pkdo-navy);font-weight:800;font-size:15px;border:1px solid rgba(61,43,31,.08)}.pkdo-voucher-note{color:var(--pkdo-muted)!important;font-size:16px!important}.pkdo-voucher-footnote{margin-top:14px!important;font-size:15px!important;color:var(--pkdo-muted)!important}.pkdo-message{display:grid;grid-template-columns:auto 1fr;gap:22px}

.pkdo-product-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:20px;margin:0}.pkdo-shop-product{background:var(--pkdo-cream-2);border-radius:var(--pkdo-radius-lg);overflow:hidden;display:flex!important;flex-direction:column;height:100%;padding:0!important}.pkdo-shop-product .pkdo-product-image img{min-height:180px}.pkdo-shop-product-body{display:flex;flex-direction:column;align-items:stretch;gap:16px;padding:20px;text-align:center;flex:1}.pkdo-shop-product-body strong{display:block;margin:0;font-size:20px;line-height:1.2;letter-spacing:-.025em}.pkdo-shop-product .pkdo-secondary-button{width:100%;min-height:50px;margin-top:auto;padding:12px 16px;border-radius:14px;font-size:15px}

.pkdo-history{text-align:center}.pkdo-history a{display:inline-flex;align-items:center;justify-content:center;min-height:54px;padding:14px 24px;border-radius:999px;color:#a26327!important;font-size:19px;font-weight:900}

@media (max-width:1024px){
  .pkdo-hero{grid-template-columns:1fr}.pkdo-hero-actions{grid-template-columns:1fr 1fr}.pkdo-last-order,.pkdo-promo-inner,.pkdo-voucher-inner{grid-template-columns:1fr}.pkdo-product-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.pkdo-help-card{display:none}.pkdo-order-product{grid-template-columns:1fr}.pkdo-product-image img{height:auto!important;min-height:0}.pkdo-order-product-body{min-height:0}
}

@media (max-width:768px){
  .pkdo-panel{width:100%;padding-left:18px;padding-right:18px;--pkdo-gap:24px}
  .pkdo-section,.pkdo-hero{padding:26px 22px;border-radius:28px}
  .pkdo-hero-main h1{font-size:clamp(46px,12vw,66px)}
  .pkdo-stats{grid-template-columns:1fr;gap:10px}
  .pkdo-hero-actions{grid-template-columns:1fr;gap:16px}
  .pkdo-action-card{min-height:126px;padding:22px}
  .pkdo-section-heading h2,.pkdo-promo-copy h2,.pkdo-voucher h2,.pkdo-message h2{font-size:clamp(42px,11vw,60px)}
  .pkdo-last-order{gap:0}
  .pkdo-order-product{border-radius:26px}
  .pkdo-order-product-body{padding:26px 18px 30px;background:linear-gradient(135deg, rgba(255,247,237,.95), rgba(247,240,230,.72))}
  .pkdo-order-summary{grid-template-columns:1fr;gap:18px}
  .pkdo-primary-button{width:100%;min-height:62px;border-radius:18px;font-size:20px}
  .pkdo-voucher,.pkdo-promo-section,.pkdo-message{text-align:center}.pkdo-voucher-main,.pkdo-promo-copy,.pkdo-message{text-align:center}.pkdo-message{grid-template-columns:1fr}.pkdo-soft-card{padding:28px 22px}.pkdo-product-grid{grid-template-columns:1fr;gap:24px}.pkdo-shop-product{width:100%;max-width:none;border-radius:26px}.pkdo-shop-product .pkdo-product-image img{min-height:0}.pkdo-shop-product-body{padding:22px 18px 24px}.pkdo-shop-product-body strong{font-size:24px}.pkdo-shop-product .pkdo-secondary-button{width:min(320px,100%);margin-left:auto;margin-right:auto;min-height:58px;font-size:18px}
}

@media (max-width:520px){
  .pkdo-panel{padding-left:14px;padding-right:14px}
  .pkdo-section,.pkdo-hero{padding:24px 18px;border-radius:26px}
  .pkdo-hero-main h1{font-size:clamp(42px,13vw,58px)}.pkdo-lead{font-size:19px}.pkdo-action-card{grid-template-columns:58px 1fr 42px;gap:14px;padding:18px;min-height:118px}.pkdo-action-icon{width:54px;height:54px;font-size:30px}.pkdo-action-card h3{font-size:24px}.pkdo-action-card p{font-size:16px;line-height:1.35}.pkdo-card-arrow{width:38px;height:38px;font-size:30px}.pkdo-section-heading h2,.pkdo-promo-copy h2,.pkdo-voucher h2,.pkdo-message h2{font-size:clamp(38px,11vw,50px)}.pkdo-meta{font-size:17px}.pkdo-order-product-body strong{font-size:24px}.pkdo-order-product-body span{font-size:24px}.pkdo-total strong{font-size:42px}.pkdo-products-section .pkdo-section-heading h2{max-width:8ch}
}

@media (max-width:390px){
  .pkdo-panel{padding-left:12px;padding-right:12px}.pkdo-section,.pkdo-hero{padding:22px 16px;border-radius:24px}.pkdo-hero-main h1{font-size:40px}.pkdo-action-card{grid-template-columns:1fr;text-align:left}.pkdo-card-arrow{position:absolute;right:18px;bottom:18px}.pkdo-action-content{padding-right:46px}.pkdo-section-heading h2,.pkdo-promo-copy h2,.pkdo-voucher h2,.pkdo-message h2{font-size:36px}.pkdo-primary-button{font-size:18px}.pkdo-shop-product-body strong{font-size:22px}
}

/* v3.3.0 – lojalność beta */
.pkdo-loyalty{
  background:linear-gradient(135deg,#fff,#fff7ed);
}
.pkdo-loyalty-main{
  display:grid;
  grid-template-columns:auto 1fr;
  gap:18px;
  align-items:start;
  margin-bottom:24px;
}
.pkdo-loyalty-main h2{
  font-size:clamp(34px,4vw,52px);
  line-height:1.02;
  letter-spacing:-.05em;
  margin:0 0 12px;
}
.pkdo-loyalty-lead{
  color:var(--pkdo-muted);
  font-size:clamp(16px,1.8vw,20px);
  margin:0;
  max-width:760px;
}
.pkdo-loyalty-grid{
  display:grid;
  grid-template-columns:.8fr 1.2fr;
  gap:22px;
}
.pkdo-loyalty-balance span,
.pkdo-loyalty-reward span{
  display:block;
  color:var(--pkdo-muted);
  font-weight:800;
  margin-bottom:8px;
}
.pkdo-loyalty-balance strong,
.pkdo-loyalty-reward strong{
  display:block;
  color:var(--pkdo-navy);
  font-size:clamp(30px,3.5vw,46px);
  line-height:1;
  letter-spacing:-.045em;
  margin-bottom:12px;
}
.pkdo-loyalty-progress{
  width:100%;
  height:12px;
  border-radius:999px;
  background:rgba(61,43,31,.10);
  overflow:hidden;
  margin:18px 0;
}
.pkdo-loyalty-progress span{
  display:block;
  height:100%;
  border-radius:999px;
  background:var(--pkdo-brown);
}
.pkdo-loyalty-note,
.pkdo-loyalty-coupon{
  margin-top:14px!important;
  font-size:15px!important;
  color:var(--pkdo-muted)!important;
}
.pkdo-loyalty-coupon strong{
  display:inline;
  font-size:inherit;
  letter-spacing:.03em;
}
@media (max-width:1024px){
  .pkdo-loyalty-grid{grid-template-columns:1fr;}
}
@media (max-width:768px){
  .pkdo-loyalty-main{grid-template-columns:1fr;text-align:center;}
  .pkdo-loyalty-main .pkdo-section-icon{margin-left:auto;margin-right:auto;}
  .pkdo-loyalty-balance,
  .pkdo-loyalty-reward{text-align:center;}
}

/* v3.3.3 – punkty w Hero */
.pkdo-stats .pkdo-stat-loyalty{
  grid-column:1 / -1;
  padding:14px 16px;
  border-radius:18px;
  background:rgba(255,247,237,.72);
  border:1px solid rgba(61,43,31,.08);
}
@media (max-width:768px){
  .pkdo-stats .pkdo-stat-loyalty{
    text-align:left;
  }
}


/* v3.3.4 – link i komunikat regulaminu lojalności */
.pkdo-loyalty-terms-note{
  margin-top:10px!important;
  font-size:14px!important;
  line-height:1.45!important;
  color:var(--pkdo-muted)!important;
}
.pkdo-loyalty-terms{
  margin-top:16px!important;
  padding-top:14px;
  border-top:1px solid rgba(61,43,31,.10);
  font-size:15px!important;
}
.pkdo-loyalty-terms a{
  color:var(--pkdo-brown);
  font-weight:800;
  text-decoration:none;
}
.pkdo-loyalty-terms a:hover{
  text-decoration:underline;
}


/* v3.3.5 – aktywny kupon lojalnościowy */
.pkdo-loyalty-active-coupon{
  margin-top:18px;
  padding:16px;
  border-radius:18px;
  background:rgba(255,247,237,.78);
  border:1px solid rgba(61,43,31,.10);
}
.pkdo-loyalty-use-coupon{
  margin-top:10px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
}
@media (max-width:768px){
  .pkdo-loyalty-use-coupon{
    width:100%;
  }
}

/* v3.3.7 – UX programu lojalnościowego: osobny widok dla aktywnego kuponu */
.pkdo-loyalty-has-coupon .pkdo-loyalty-main{
  margin-bottom:28px;
}
.pkdo-loyalty-coupon-view{
  display:grid;
  grid-template-columns:minmax(0,1fr) 300px;
  gap:22px;
  align-items:stretch;
}
.pkdo-loyalty-coupon-card,
.pkdo-loyalty-status-card{
  background:rgba(255,247,237,.86);
  border:1px solid rgba(61,43,31,.08);
  border-radius:var(--pkdo-radius-lg);
  padding:28px;
}
.pkdo-loyalty-coupon-card{
  display:grid;
  grid-template-columns:70px minmax(0,1fr);
  gap:22px;
  align-items:start;
}
.pkdo-loyalty-coupon-icon{
  width:70px;
  height:70px;
  display:grid;
  place-items:center;
  border-radius:50%;
  background:#fff;
  font-size:34px;
}
.pkdo-loyalty-eyebrow,
.pkdo-loyalty-status-card span{
  display:block;
  color:var(--pkdo-muted);
  font-size:15px;
  font-weight:900;
  margin-bottom:8px;
}
.pkdo-loyalty-coupon-card h3{
  margin:0 0 12px;
  color:var(--pkdo-navy);
  font-size:clamp(34px,3.7vw,54px);
  line-height:1.02;
  letter-spacing:-.05em;
}
.pkdo-loyalty-coupon-card p,
.pkdo-loyalty-status-card p{
  color:var(--pkdo-muted);
  margin:0 0 18px;
  font-size:17px;
  line-height:1.55;
}
.pkdo-loyalty-code-box{
  display:inline-flex;
  align-items:center;
  gap:12px;
  flex-wrap:wrap;
  padding:14px 16px;
  margin:6px 0 18px;
  border-radius:16px;
  background:#fff;
  border:1px solid rgba(61,43,31,.10);
}
.pkdo-loyalty-code-box span{
  color:var(--pkdo-muted);
  font-size:15px;
  font-weight:800;
}
.pkdo-loyalty-code-box strong{
  display:inline-block;
  color:var(--pkdo-navy);
  font-size:22px;
  letter-spacing:.08em;
  text-transform:uppercase;
}
.pkdo-loyalty-status-card{
  display:flex;
  flex-direction:column;
  justify-content:center;
}
.pkdo-loyalty-status-card strong{
  display:block;
  color:var(--pkdo-navy);
  font-size:clamp(28px,2.8vw,40px);
  line-height:1;
  letter-spacing:-.04em;
  margin-bottom:14px;
}
.pkdo-loyalty-has-coupon .pkdo-loyalty-terms{
  margin-top:20px!important;
}
@media (max-width:1024px){
  .pkdo-loyalty-coupon-view{grid-template-columns:1fr;}
  .pkdo-loyalty-status-card{display:block;}
}
@media (max-width:768px){
  .pkdo-loyalty-coupon-card{
    grid-template-columns:1fr;
    text-align:center;
    padding:26px 20px;
  }
  .pkdo-loyalty-coupon-icon{margin:0 auto;}
  .pkdo-loyalty-code-box{
    width:100%;
    justify-content:center;
  }
  .pkdo-loyalty-has-coupon .pkdo-loyalty-use-coupon{
    width:100%;
  }
  .pkdo-loyalty-status-card{
    text-align:center;
    padding:22px 20px;
  }
}

/* v3.3.8 – UX Ostatniego koszyka: osobny widok dla 1 produktu i lista dla wielu produktów */
.pkdo-last-order{
  display:block!important;
}
.pkdo-last-heading{
  margin-bottom:26px;
}
.pkdo-last-heading .pkdo-meta{
  margin-bottom:0;
}
.pkdo-last-single-card{
  display:grid;
  grid-template-columns:minmax(320px, 430px) minmax(0, 1fr);
  align-items:stretch;
  overflow:hidden;
  border-radius:28px;
  background:var(--pkdo-cream-2);
  border:1px solid rgba(20,36,58,.07);
}
.pkdo-last-single-image{
  min-height:320px;
  background:var(--pkdo-cream-2);
  overflow:hidden;
}
.pkdo-last-single-image img{
  width:100%!important;
  height:100%!important;
  min-height:320px;
  object-fit:cover;
  display:block!important;
  border-radius:0!important;
  max-width:none!important;
}
.pkdo-last-single-content{
  min-width:0;
  display:flex;
  flex-direction:column;
  justify-content:space-between;
  gap:30px;
  padding:42px 48px;
}
.pkdo-last-product-copy{
  max-width:620px;
}
.pkdo-last-product-copy h3{
  margin:0 0 10px;
  color:var(--pkdo-navy);
  font-size:clamp(34px,3.2vw,50px);
  line-height:1.03;
  letter-spacing:-.055em;
}
.pkdo-last-qty{
  color:var(--pkdo-brown);
  font-size:clamp(24px,2.2vw,34px);
  font-weight:900;
  line-height:1;
  margin-bottom:20px;
}
.pkdo-last-product-copy p{
  margin:0;
  max-width:520px;
  color:var(--pkdo-muted);
  font-size:18px;
  line-height:1.45;
}
.pkdo-last-action-row{
  display:grid;
  grid-template-columns:1fr auto;
  gap:24px;
  align-items:end;
  border-top:1px solid rgba(20,36,58,.10);
  padding-top:26px;
}
.pkdo-last-action-row .pkdo-primary-button{
  min-width:260px;
}
.pkdo-last-products-list{
  display:grid;
  grid-template-columns:1fr;
  gap:12px;
  margin-bottom:24px;
}
.pkdo-last-product-row{
  display:grid;
  grid-template-columns:92px minmax(0,1fr);
  gap:18px;
  align-items:center;
  padding:14px;
  border-radius:22px;
  background:var(--pkdo-cream-2);
  border:1px solid rgba(20,36,58,.06);
}
.pkdo-last-product-thumb{
  width:92px;
  height:92px;
  overflow:hidden;
  border-radius:16px;
  background:#fff;
}
.pkdo-last-product-thumb img{
  width:100%!important;
  height:100%!important;
  object-fit:cover;
  display:block!important;
  border-radius:0!important;
}
.pkdo-last-product-info{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:20px;
}
.pkdo-last-product-info strong{
  color:var(--pkdo-navy);
  font-size:22px;
  line-height:1.2;
  letter-spacing:-.025em;
}
.pkdo-last-product-info span{
  flex:0 0 auto;
  color:var(--pkdo-brown);
  font-size:22px;
  font-weight:900;
}
.pkdo-last-action-row--multiple{
  margin-top:4px;
}
.pkdo-last-help-inline{
  display:flex;
  align-items:flex-start;
  gap:12px;
  margin-top:22px;
  padding:18px 20px;
  border-radius:20px;
  background:rgba(247,240,230,.55);
  color:var(--pkdo-muted);
}
.pkdo-last-help-inline span{
  font-size:23px;
  line-height:1.2;
}
.pkdo-last-help-inline p{
  margin:0;
  font-size:16px;
  line-height:1.45;
}

@media (max-width:1024px){
  .pkdo-last-single-card{
    grid-template-columns:1fr;
  }
  .pkdo-last-single-image,
  .pkdo-last-single-image img{
    min-height:0;
    height:auto!important;
  }
  .pkdo-last-single-content{
    padding:34px 30px;
  }
}

@media (max-width:768px){
  .pkdo-last-heading{
    margin-bottom:20px;
  }
  .pkdo-last-single-card{
    border-radius:26px;
  }
  .pkdo-last-single-content{
    padding:26px 20px 22px;
    text-align:center;
    gap:24px;
  }
  .pkdo-last-product-copy{
    max-width:none;
    margin-left:auto;
    margin-right:auto;
  }
  .pkdo-last-product-copy h3{
    font-size:clamp(28px,8vw,40px);
  }
  .pkdo-last-qty{
    margin-bottom:14px;
    font-size:28px;
  }
  .pkdo-last-product-copy p{
    font-size:16px;
    max-width:none;
  }
  .pkdo-last-action-row{
    grid-template-columns:1fr;
    align-items:stretch;
    text-align:left;
    gap:18px;
    padding-top:22px;
  }
  .pkdo-last-action-row .pkdo-primary-button{
    width:100%;
    min-width:0;
  }
  .pkdo-last-product-row{
    grid-template-columns:74px minmax(0,1fr);
    gap:14px;
    padding:12px;
    border-radius:20px;
  }
  .pkdo-last-product-thumb{
    width:74px;
    height:74px;
    border-radius:14px;
  }
  .pkdo-last-product-info{
    display:block;
  }
  .pkdo-last-product-info strong{
    display:block;
    font-size:18px;
    margin-bottom:5px;
  }
  .pkdo-last-product-info span{
    display:block;
    font-size:18px;
  }
  .pkdo-last-help-inline{
    margin-top:18px;
    padding:16px;
    border-radius:18px;
  }
  .pkdo-last-help-inline p{
    font-size:15px;
  }
}

/*
 * Feature #001 — Asystent Powrotu.
 * Samodzielny blok ze swoimi zmiennymi (nie zależy od .pkdo-panel, bo toast
 * renderuje się poza panelem, dla niezalogowanych gości) — zgodnie z zasadą
 * izolacji stylów przyjętą w tym pliku, żeby nie kolidować z motywem/Code Snippets.
 */
.pkdo-returning-toast{
  --pkdo-r-navy:#14243a;
  --pkdo-r-brown:#3d2b1f;
  --pkdo-r-brown-dark:#24170f;
  --pkdo-r-cream:#fff7ed;
  --pkdo-r-border:rgba(20,36,58,.12);
  position:fixed;
  right:24px;
  bottom:24px;
  z-index:99999;
  width:min(360px,calc(100% - 32px));
  background:var(--pkdo-r-cream);
  border:1px solid var(--pkdo-r-border);
  border-radius:22px;
  box-shadow:0 18px 40px rgba(20,36,58,.16);
  padding:22px 22px 24px;
  box-sizing:border-box;
  font-family:inherit;
  color:var(--pkdo-r-navy);
  opacity:0;
  transform:translateY(16px);
  transition:opacity .25s ease, transform .25s ease;
  pointer-events:none;
}
.pkdo-returning-toast *{box-sizing:border-box}
.pkdo-returning-toast.pkdo-returning-visible{
  opacity:1;
  transform:translateY(0);
  pointer-events:auto;
}
.pkdo-returning-close{
  position:absolute;
  top:10px;
  right:12px;
  background:none;
  border:0;
  font-size:22px;
  line-height:1;
  color:var(--pkdo-r-navy);
  cursor:pointer;
  padding:4px;
}
/* Bug fix (test Sprintu 2): ikona renderuje się teraz w jednym miejscu —
   razem z nagłówkiem (wcześniej dubliła się: raz jako osobny blok, raz w
   samym tekście nagłówka). Styl inline zamiast bloku nad nagłówkiem. */
.pkdo-returning-icon{display:inline-block;font-size:20px;margin-right:6px;vertical-align:-2px}
.pkdo-returning-body strong{display:block;font-size:19px;margin-bottom:6px;color:var(--pkdo-r-navy)}
.pkdo-returning-body p{margin:0 0 16px;font-size:15px;line-height:1.5;color:var(--pkdo-r-navy)}
.pkdo-returning-toast .pkdo-returning-cta{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:48px;
  padding:12px 22px;
  border-radius:14px;
  background:var(--pkdo-r-brown);
  color:#fff!important;
  font-weight:700;
  text-decoration:none;
}
.pkdo-returning-toast .pkdo-returning-cta:hover{background:var(--pkdo-r-brown-dark)}

/*
 * Sprint 2 — lista korzyści w treści komunikatu. Czysto addytywne reguły:
 * nic powyżej (ikona/nagłówek/tekst/CTA/zamknięcie/responsywność) nie
 * zostało zmienione.
 */
.pkdo-returning-benefits{list-style:none;margin:0 0 16px;padding:0}
.pkdo-returning-benefits li{
  display:flex;
  align-items:flex-start;
  gap:8px;
  font-size:14px;
  line-height:1.4;
  color:var(--pkdo-r-navy);
  margin-bottom:8px;
}
.pkdo-returning-benefits li:last-child{margin-bottom:0}
.pkdo-returning-benefit-icon{flex:0 0 auto;font-size:15px;line-height:1.4}

@media (max-width:600px){
  .pkdo-returning-toast{
    left:16px;
    right:16px;
    bottom:16px;
    width:auto;
  }
}

/* Feature #002 mini — lekki nagłówek strony nad formularzem logowania/rejestracji
 * WooCommerce (redesign UX: bez karty, bez cienia, bez ciężkiego tła — tylko
 * wyśrodkowany nagłówek, podtytuł, korzyści w rzędzie i cienka linia oddzielająca).
 * Renderowany poza .pkdo-panel (strona logowania nie zawiera shortcode'u), więc
 * własny, samodzielny zestaw zmiennych - ta sama paleta co reszta Panelu Klienta.
 * width:100% (nie stały max-width) - blok jest blokowym elementem w tym samym
 * kontenerze co #customer_login (.col2-set) z szablonu WooCommerce, więc ma
 * DOKŁADNIE tę samą szerokość co formularze poniżej, na każdej szerokości ekranu,
 * bez zgadywania szerokości kontenera motywu i bez ręcznego centrowania. */
.pkdo-login-intro {
  --pkdo-li-navy:#14243a;
  --pkdo-li-brown:#3d2b1f;
  --pkdo-li-muted:#706b66;
  --pkdo-li-border:rgba(20,36,58,.14);
  width:100%;
  box-sizing:border-box;
  text-align:center;
  margin:0 0 34px;
  padding:0 0 26px;
  border-bottom:1px solid var(--pkdo-li-border);
}
.pkdo-login-intro h2{margin:0 0 8px;color:var(--pkdo-li-navy);font-size:clamp(22px,2.6vw,28px);font-weight:800;letter-spacing:-.02em;line-height:1.25}
.pkdo-login-intro p{margin:0 0 18px;color:var(--pkdo-li-muted);font-size:16px}
.pkdo-login-intro .pkdo-login-benefits{
  list-style:none;
  margin:0;
  padding:0;
  display:flex;
  justify-content:center;
  flex-wrap:wrap;
  gap:10px 30px;
}
.pkdo-login-intro .pkdo-login-benefits li{
  color:var(--pkdo-li-brown);
  font-size:15px;
  font-weight:700;
  white-space:nowrap;
}

@media (max-width:600px){
  .pkdo-login-intro{padding-bottom:20px;margin-bottom:24px}
  .pkdo-login-intro .pkdo-login-benefits{flex-direction:column;align-items:center;gap:8px;white-space:normal}
}
