.ecs-grid,
.ecs-feature-list{display:grid;grid-template-columns:repeat(var(--ecs-columns,3),minmax(0,1fr));width:100%}
.ecs-card{position:relative;min-width:0;overflow:hidden;transition:transform .22s ease,box-shadow .22s ease,border-color .22s ease;background:#fff;border:1px solid #e8e8e8;border-radius:16px}
.ecs-card__image{width:100%;overflow:hidden}
.ecs-card__image img{display:block;width:100%;height:240px;object-fit:cover}
.ecs-card__body{padding:24px;display:flex;flex-direction:column;align-items:var(--ecs-button-align,stretch)}
.ecs-card__body>*:not(.ecs-button){align-self:stretch}
.ecs-card__body[style*="--ecs-button-align: stretch"] .ecs-button{width:100%}
.ecs-card__icon{display:inline-flex;margin-bottom:14px;line-height:1}
.ecs-card__icon svg{display:block}
.ecs-card__badge{display:inline-flex;align-items:center;padding:5px 10px;border-radius:999px;background:#f1f3f5;font-size:12px;line-height:1.2;margin:0 0 14px}
.ecs-card__title{margin:0 0 10px;font-size:22px;line-height:1.2}
.ecs-card__meta{margin:0 0 8px;font-size:14px;opacity:.76}
.ecs-card__description{margin:0 0 18px}
.ecs-card__description p{margin:0 0:.75em}
.ecs-card__description p:last-child{margin-bottom:0}
.ecs-card__price{display:flex;align-items:baseline;gap:8px;flex-wrap:wrap;margin:16px 0;font-size:24px;font-weight:700}
.ecs-price-regular{font-size:.65em;opacity:.55;font-weight:400}
.ecs-price-period{font-size:.55em;font-weight:400;opacity:.7}
.ecs-button{position:relative;display:inline-flex;align-items:center;justify-content:center;gap:8px;text-decoration:none;cursor:pointer;padding:12px 20px;border-radius:8px;background:#111;color:#fff;transition:all .2s ease;max-width:100%}
.ecs-button:hover,.ecs-button:focus{color:#fff;transform:translateY(-1px)}
.ecs-button__icon{display:inline-flex;line-height:1}
.ecs-button__icon svg{width:1em;height:1em}
.ecs-button.is-loading{pointer-events:none;opacity:.75}
.ecs-button__spinner{display:none;width:14px;height:14px;border:2px solid currentColor;border-right-color:transparent;border-radius:50%;animation:ecs-spin .7s linear infinite}
.ecs-button.is-loading .ecs-button__spinner{display:inline-block}
.ecs-payment-message{position:absolute;left:0;top:calc(100% + 6px);font-size:12px;color:#b42318;white-space:normal;min-width:220px;text-align:left}
.ecs-pricing-features{display:flex;flex-direction:column;gap:10px;list-style:none;margin:18px 0;padding:0}
.ecs-pricing-features li{display:flex;align-items:flex-start;gap:8px}
.ecs-card--pricing.is-highlighted{outline:2px solid currentColor;outline-offset:0}
.ecs-feature-list{gap:16px}
.ecs-feature-item{display:flex;align-items:flex-start;gap:14px;text-decoration:none;color:inherit;min-width:0;padding:18px;border:1px solid #e8e8e8;border-radius:12px;background:#fff;transition:transform .2s ease,box-shadow .2s ease}
a.ecs-feature-item:hover{transform:translateY(-2px)}
.ecs-feature-icon{display:inline-flex;flex:0 0 auto;line-height:1;font-size:22px}
.ecs-feature-icon svg{width:1em;height:1em}
.ecs-feature-copy{display:flex;flex-direction:column;gap:5px;min-width:0}
.ecs-feature-title{font-weight:700}
.ecs-feature-description{opacity:.8}
@keyframes ecs-spin{to{transform:rotate(360deg)}}
@media(max-width:1024px){.ecs-grid{grid-template-columns:repeat(var(--ecs-columns,2),minmax(0,1fr))}}
@media(max-width:767px){.ecs-grid,.ecs-feature-list{grid-template-columns:repeat(var(--ecs-columns,1),minmax(0,1fr))}.ecs-card__body{padding:20px}.ecs-payment-message{min-width:100%;position:static;margin-left:6px}}
@media(prefers-reduced-motion:reduce){.ecs-card,.ecs-button,.ecs-feature-item{transition:none!important}.ecs-button__spinner{animation:none}}
/* Enhanced, independent button-icon controls. */
.ecs-button__text{order:1}
.ecs-button__icon{transition:color .2s ease,fill .2s ease,transform .2s ease;flex:0 0 auto}
.ecs-button__icon--before{order:0}
.ecs-button__icon--after{order:2}
.ecs-button__spinner{order:3}
.ecs-payment-message{order:4}
.ecs-icon-hover-grow .ecs-button:hover .ecs-button__icon,.ecs-icon-hover-grow .ecs-button:focus .ecs-button__icon{transform:scale(1.15)}
.ecs-icon-hover-shrink .ecs-button:hover .ecs-button__icon,.ecs-icon-hover-shrink .ecs-button:focus .ecs-button__icon{transform:scale(.88)}
.ecs-icon-hover-slide .ecs-button:hover .ecs-button__icon,.ecs-icon-hover-slide .ecs-button:focus .ecs-button__icon{transform:translateX(4px)}
.ecs-icon-hover-rotate .ecs-button:hover .ecs-button__icon,.ecs-icon-hover-rotate .ecs-button:focus .ecs-button__icon{transform:rotate(12deg)}
.ecs-button[aria-disabled="true"]{cursor:not-allowed}
@media(prefers-reduced-motion:reduce){.ecs-button__icon{transition:none!important;transform:none!important}}
.ecs-book-options{display:flex;flex-direction:column;gap:14px;width:100%;margin-top:4px}
.ecs-book-option{display:flex;flex-direction:column;gap:10px;width:100%}
.ecs-book-option+.ecs-book-option{padding-top:14px;border-top:1px solid rgba(0,0,0,.08)}
.ecs-book-option__head{display:flex;align-items:baseline;justify-content:space-between;gap:12px;flex-wrap:wrap}
.ecs-book-option__type{font-size:14px;font-weight:600;opacity:.76}
.ecs-book-option .ecs-card__price{margin:0;font-size:20px}
.ecs-book-option .ecs-button{width:100%}
.ecs-purchase-status{padding:16px;border:1px solid #e8e8e8;border-radius:10px;background:#fff}
.ecs-library-placeholder{display:flex;flex-direction:column;gap:6px;padding:22px;border:1px dashed #cfd4dc;border-radius:12px;background:#f8fafc;color:#667085}.ecs-library-placeholder strong{color:#344054}

/* Modern eBook card + front/back cover preview (v2.3). */
.ecs-card--book{border-radius:22px;border-color:#e7e9ee;background:#fff;box-shadow:0 14px 40px rgba(16,24,40,.08);isolation:isolate}
.ecs-card--book:hover{box-shadow:0 20px 52px rgba(16,24,40,.12)}
.ecs-card--book .ecs-card__body{gap:0}
.ecs-card--book .ecs-card__title{font-weight:750;letter-spacing:-.02em}
.ecs-card--book .ecs-card__meta{font-weight:600;color:#667085}
.ecs-card--book .ecs-card__description{color:#475467;line-height:1.65}
.ecs-book-cover-viewer{position:relative;display:flex;flex-direction:column;align-items:center;gap:14px;padding:24px 24px 18px;background:#f7f7f5;border-bottom:1px solid rgba(16,24,40,.06)}
.ecs-book-cover-stage{position:relative;width:min(100%,280px);aspect-ratio:2/3;overflow:hidden;border-radius:14px;background:#fff;box-shadow:0 14px 34px rgba(16,24,40,.16),0 2px 7px rgba(16,24,40,.08)}
.ecs-book-cover-panel{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;opacity:0;visibility:hidden;transform:scale(.985);transition:opacity .22s ease,transform .22s ease,visibility .22s ease;background:#fff}
.ecs-book-cover-panel.is-active{opacity:1;visibility:visible;transform:scale(1)}
.ecs-book-cover-panel img{display:block;width:100%;height:100%;object-fit:contain;background:#fff}
.ecs-book-cover-chip{position:absolute;right:10px;bottom:10px;display:inline-flex;align-items:center;min-height:27px;padding:5px 9px;border-radius:999px;background:rgba(17,24,39,.78);color:#fff;font-size:11px;font-weight:700;letter-spacing:.01em;backdrop-filter:blur(8px);-webkit-backdrop-filter:blur(8px)}
.ecs-book-cover-switcher{display:inline-flex;align-items:center;gap:4px;padding:4px;border:1px solid #e4e7ec;border-radius:999px;background:#fff;box-shadow:0 3px 10px rgba(16,24,40,.05)}
.ecs-book-cover-switch{appearance:none;border:0;background:transparent;color:#475467;border-radius:999px;padding:7px 12px;display:inline-flex;align-items:center;justify-content:center;gap:6px;font:inherit;font-size:12px;font-weight:700;line-height:1;cursor:pointer;transition:background .18s ease,color .18s ease,box-shadow .18s ease}
.ecs-book-cover-switch:hover,.ecs-book-cover-switch:focus-visible{background:#f2f4f7;outline:none}
.ecs-book-cover-switch.is-active{background:#fff;color:#101828;box-shadow:0 1px 5px rgba(16,24,40,.16)}
.ecs-book-cover-switch span{font-size:13px;line-height:1}
.ecs-book-cover-viewer--empty{min-height:280px;justify-content:center}
.ecs-book-cover-empty{width:96px;height:128px;border:1px dashed #cdd2da;border-radius:12px;background:#fff;display:flex;align-items:center;justify-content:center;font-size:34px;box-shadow:0 8px 24px rgba(16,24,40,.06)}
.ecs-card--book .ecs-card__badge{align-self:flex-start;background:#f2f4f7;color:#344054;font-weight:700}
.ecs-card--book .ecs-book-options{gap:10px;margin-top:8px}
.ecs-card--book .ecs-book-option{gap:11px;padding:14px;border:1px solid #eaecf0;border-radius:14px;background:#fafafa}
.ecs-card--book .ecs-book-option+.ecs-book-option{padding-top:14px;border-top:1px solid #eaecf0}
.ecs-card--book .ecs-book-option__type{font-weight:700;color:#475467}
.ecs-card--book .ecs-book-option .ecs-card__price{font-size:19px;letter-spacing:-.02em}
.ecs-card--book .ecs-book-option .ecs-button{min-height:44px;border-radius:11px;font-weight:700}
@media(max-width:767px){.ecs-book-cover-viewer{padding:20px 18px 16px}.ecs-book-cover-stage{width:min(82vw,300px)}.ecs-card--book .ecs-card__body{padding:20px}.ecs-book-cover-switch{padding:8px 14px}}
@media(prefers-reduced-motion:reduce){.ecs-book-cover-panel,.ecs-book-cover-switch{transition:none!important}}

/* Full-size, readable front/back cover experience (v2.4). */
.ecs-book-cover-actions{display:flex;align-items:center;justify-content:center;gap:9px;flex-wrap:wrap;width:100%}
.ecs-book-cover-expand{position:absolute;top:10px;right:10px;z-index:3;width:34px;height:34px;border:1px solid rgba(255,255,255,.5);border-radius:10px;background:rgba(17,24,39,.76);color:#fff;display:inline-flex;align-items:center;justify-content:center;cursor:pointer;box-shadow:0 4px 14px rgba(16,24,40,.15);backdrop-filter:blur(8px);-webkit-backdrop-filter:blur(8px);transition:transform .18s ease,background .18s ease}
.ecs-book-cover-expand:hover,.ecs-book-cover-expand:focus-visible{background:rgba(17,24,39,.92);transform:translateY(-1px);outline:none}
.ecs-book-cover-expand span{font-size:18px;line-height:1}
.ecs-book-cover-full-button{appearance:none;border:1px solid #e4e7ec;border-radius:999px;background:#fff;color:#344054;min-height:36px;padding:8px 13px;display:inline-flex;align-items:center;justify-content:center;gap:7px;font:inherit;font-size:12px;font-weight:750;line-height:1;cursor:pointer;box-shadow:0 3px 10px rgba(16,24,40,.05);transition:border-color .18s ease,box-shadow .18s ease,transform .18s ease}
.ecs-book-cover-full-button:hover,.ecs-book-cover-full-button:focus-visible{border-color:#cfd4dc;box-shadow:0 6px 16px rgba(16,24,40,.09);transform:translateY(-1px);outline:none}
.ecs-book-cover-full-button span{font-size:15px;line-height:1}
html.ecs-cover-modal-open,body.ecs-cover-modal-open{overflow:hidden!important}
.ecs-book-cover-modal[hidden]{display:none!important}
.ecs-book-cover-modal{position:fixed;inset:0;z-index:999999;display:grid;place-items:center;padding:22px;opacity:0;transition:opacity .18s ease}
.ecs-book-cover-modal.is-open{opacity:1}
.ecs-book-cover-modal__backdrop{position:absolute;inset:0;background:rgba(10,14,22,.76);backdrop-filter:blur(8px);-webkit-backdrop-filter:blur(8px)}
.ecs-book-cover-modal__dialog{position:relative;z-index:1;width:min(980px,96vw);height:min(900px,92vh);display:flex;flex-direction:column;gap:14px;padding:18px;border:1px solid rgba(255,255,255,.16);border-radius:22px;background:#11151d;color:#fff;box-shadow:0 28px 80px rgba(0,0,0,.42);transform:translateY(8px) scale(.99);transition:transform .18s ease;overflow:hidden}
.ecs-book-cover-modal.is-open .ecs-book-cover-modal__dialog{transform:translateY(0) scale(1)}
.ecs-book-cover-modal__close{position:absolute;right:16px;top:14px;z-index:4;width:38px;height:38px;border:1px solid rgba(255,255,255,.17);border-radius:50%;background:rgba(255,255,255,.09);color:#fff;display:flex;align-items:center;justify-content:center;font-size:27px;line-height:1;cursor:pointer;transition:background .18s ease,transform .18s ease}
.ecs-book-cover-modal__close:hover,.ecs-book-cover-modal__close:focus-visible{background:rgba(255,255,255,.16);transform:rotate(3deg);outline:none}
.ecs-book-cover-modal__heading{display:flex;flex-direction:column;gap:2px;padding:0 50px 0 4px;min-height:38px}
.ecs-book-cover-modal__heading>span{font-size:16px;font-weight:800;line-height:1.25;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.ecs-book-cover-modal__heading>small{font-size:12px;font-weight:650;color:#cbd5e1}
.ecs-book-cover-modal__stage{position:relative;flex:1;min-height:0;overflow:hidden;border-radius:14px;background:#090c12;display:flex;align-items:center;justify-content:center}
.ecs-book-cover-modal__panel{position:absolute;inset:0;padding:8px;display:flex;align-items:center;justify-content:center;opacity:0;visibility:hidden;transform:scale(.99);transition:opacity .18s ease,visibility .18s ease,transform .18s ease}
.ecs-book-cover-modal__panel.is-active{opacity:1;visibility:visible;transform:scale(1)}
.ecs-book-cover-modal__panel img{display:block;max-width:100%;max-height:100%;width:auto;height:auto;object-fit:contain;border-radius:8px;box-shadow:0 16px 46px rgba(0,0,0,.3);background:#000}
.ecs-book-cover-modal__switcher{display:flex;justify-content:center;gap:8px;flex-wrap:wrap}
.ecs-book-cover-modal__switcher .ecs-book-cover-switch{min-height:38px;padding:9px 17px;border:1px solid rgba(255,255,255,.13);background:rgba(255,255,255,.06);color:#d0d5dd;box-shadow:none}
.ecs-book-cover-modal__switcher .ecs-book-cover-switch:hover,.ecs-book-cover-modal__switcher .ecs-book-cover-switch:focus-visible{background:rgba(255,255,255,.12)}
.ecs-book-cover-modal__switcher .ecs-book-cover-switch.is-active{background:#fff;color:#101828;border-color:#fff;box-shadow:0 3px 12px rgba(0,0,0,.18)}
@media(max-width:767px){.ecs-book-cover-actions{gap:7px}.ecs-book-cover-modal{padding:10px}.ecs-book-cover-modal__dialog{width:100%;height:95vh;border-radius:18px;padding:14px}.ecs-book-cover-modal__stage{border-radius:12px}.ecs-book-cover-modal__panel{padding:4px}.ecs-book-cover-modal__heading{padding-left:2px}.ecs-book-cover-modal__close{right:12px;top:11px}.ecs-book-cover-full-button{min-height:38px;padding:9px 14px}}
@media(prefers-reduced-motion:reduce){.ecs-book-cover-expand,.ecs-book-cover-full-button,.ecs-book-cover-modal,.ecs-book-cover-modal__dialog,.ecs-book-cover-modal__panel,.ecs-book-cover-modal__close{transition:none!important}}

/* Modern full-width book card refresh (v2.5). */
.ecs-card--book{border-radius:24px;border-color:#e6e8ef;box-shadow:0 16px 44px rgba(16,24,40,.08)}
.ecs-card--book:hover{transform:translateY(-4px);box-shadow:0 24px 54px rgba(16,24,40,.13)}
.ecs-book-cover-viewer{padding:0;background:linear-gradient(180deg,#111827 0%,#1b2333 100%);border-bottom:0;overflow:hidden}
.ecs-book-cover-stage{width:100%;aspect-ratio:4/5;border-radius:0;box-shadow:none;background:transparent}
.ecs-book-cover-panel{background:transparent}
.ecs-book-cover-panel img{width:100%;height:100%;object-fit:cover;object-position:center top;background:transparent}
.ecs-card--book .ecs-card__body{padding:22px}
.ecs-card--book .ecs-card__badge{margin-bottom:12px;background:#eef2ff;color:#344054}
.ecs-card--book .ecs-card__title{margin-bottom:8px;font-size:28px;line-height:1.12}
.ecs-card--book .ecs-card__meta{margin-bottom:12px}
.ecs-card--book .ecs-card__description{margin-bottom:14px;color:#475467;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}
.ecs-book-details-button{appearance:none;width:100%;margin:0 0 14px;border:1px solid #e4e7ec;border-radius:14px;background:linear-gradient(180deg,#fff 0%,#f8fafc 100%);color:#101828;min-height:46px;padding:12px 16px;display:inline-flex;align-items:center;justify-content:center;gap:8px;font:inherit;font-size:14px;font-weight:800;letter-spacing:-.01em;cursor:pointer;box-shadow:0 6px 18px rgba(16,24,40,.06);transition:transform .18s ease,box-shadow .18s ease,border-color .18s ease}
.ecs-book-details-button:hover,.ecs-book-details-button:focus-visible{transform:translateY(-1px);border-color:#d0d5dd;box-shadow:0 10px 24px rgba(16,24,40,.09);outline:none}
.ecs-book-details-button span{font-size:15px;line-height:1}
.ecs-card--book .ecs-book-options{margin-top:0}
.ecs-card--book .ecs-book-option{background:#fff;border-color:#edf1f5;box-shadow:0 4px 12px rgba(16,24,40,.03)}
.ecs-book-cover-modal__dialog--details{width:min(1100px,96vw);height:min(880px,92vh);padding:0;gap:0;overflow:hidden}
.ecs-book-cover-modal__layout{display:grid;grid-template-columns:minmax(320px,46%) minmax(0,1fr);height:100%}
.ecs-book-cover-modal__media{display:flex;flex-direction:column;gap:14px;padding:20px;background:linear-gradient(180deg,#111827 0%,#1f2937 100%)}
.ecs-book-cover-modal__heading{padding:0 54px 0 0}
.ecs-book-cover-modal__stage{flex:1;background:rgba(255,255,255,.04);border:1px solid rgba(255,255,255,.08)}
.ecs-book-cover-modal__panel{padding:16px}
.ecs-book-cover-modal__panel img{max-width:100%;max-height:100%;width:auto;height:auto;object-fit:contain;border-radius:12px;background:#000}
.ecs-book-cover-modal__info{display:flex;flex-direction:column;gap:16px;padding:28px 28px 26px;background:#fff;color:#101828;overflow:auto}
.ecs-book-cover-modal__badge{display:inline-flex;align-items:center;align-self:flex-start;padding:7px 12px;border-radius:999px;background:#eef2ff;color:#344054;font-size:12px;font-weight:800;letter-spacing:.01em;text-transform:none}
.ecs-book-cover-modal__title{margin:0;font-size:34px;line-height:1.08;letter-spacing:-.03em;color:#101828}
.ecs-book-cover-modal__author{font-size:16px;font-weight:700;color:#475467}
.ecs-book-cover-modal__description{font-size:15px;line-height:1.75;color:#475467}
.ecs-book-cover-modal__description p{margin:0 0 .9em}
.ecs-book-cover-modal__description p:last-child{margin-bottom:0}
.ecs-book-cover-modal__pricing{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin-top:auto}
.ecs-book-cover-modal__price-card{display:flex;flex-direction:column;gap:6px;padding:16px 18px;border:1px solid #eaecf0;border-radius:18px;background:#f8fafc}
.ecs-book-cover-modal__price-card strong{font-size:13px;font-weight:800;color:#475467;text-transform:uppercase;letter-spacing:.04em}
.ecs-book-cover-modal__price-card span{font-size:22px;font-weight:800;letter-spacing:-.03em;color:#101828}
.ecs-book-cover-modal__switcher{justify-content:flex-start}
@media(max-width:1024px){.ecs-book-cover-modal__layout{grid-template-columns:1fr}.ecs-book-cover-modal__dialog--details{height:min(960px,94vh)}.ecs-book-cover-modal__media{min-height:420px}.ecs-book-cover-modal__pricing{grid-template-columns:1fr 1fr}}
@media(max-width:767px){.ecs-book-cover-stage{aspect-ratio:4/5}.ecs-card--book .ecs-card__title{font-size:24px}.ecs-book-details-button{min-height:44px}.ecs-book-cover-modal__dialog--details{width:100%;height:96vh;border-radius:20px}.ecs-book-cover-modal__layout{grid-template-columns:1fr;height:auto;min-height:100%}.ecs-book-cover-modal__media{padding:14px;min-height:360px}.ecs-book-cover-modal__info{padding:20px 18px 22px}.ecs-book-cover-modal__title{font-size:28px}.ecs-book-cover-modal__pricing{grid-template-columns:1fr}.ecs-book-cover-modal__panel{padding:10px}.ecs-book-cover-modal__switcher{justify-content:center}}
@media(prefers-reduced-motion:reduce){.ecs-book-details-button,.ecs-card--book{transition:none!important}}

/* v2.6 — locked clean book presentation: true edge-to-edge cover + compact details action. */
.ecs-card--book .ecs-book-cover-viewer{
  display:block!important;
  width:100%!important;
  padding:0!important;
  margin:0!important;
  background:#fff!important;
  border:0!important;
}
.ecs-card--book .ecs-book-cover-stage{
  display:block!important;
  position:relative!important;
  width:100%!important;
  max-width:none!important;
  height:auto!important;
  min-height:0!important;
  aspect-ratio:auto!important;
  padding:0!important;
  margin:0!important;
  border-radius:0!important;
  overflow:hidden!important;
  box-shadow:none!important;
  background:#0b0b0b!important;
}
.ecs-card--book .ecs-book-cover-primary{
  display:block!important;
  width:100%!important;
  max-width:none!important;
  height:auto!important;
  min-height:0!important;
  margin:0!important;
  padding:0!important;
  border-radius:0!important;
  object-fit:contain!important;
  object-position:center!important;
}
.ecs-book-cover-actionbar{
  display:flex;
  align-items:center;
  justify-content:center;
  width:100%;
  padding:10px 16px 9px;
  background:#fff;
  border-bottom:1px solid #eef0f3;
}
.ecs-card--book .ecs-book-details-button{
  width:auto!important;
  min-width:0!important;
  min-height:32px!important;
  margin:0!important;
  padding:7px 12px!important;
  border:1px solid #e2e6ec!important;
  border-radius:999px!important;
  background:#fff!important;
  color:#344054!important;
  box-shadow:0 2px 8px rgba(16,24,40,.06)!important;
  font-size:12px!important;
  font-weight:750!important;
  line-height:1!important;
  gap:6px!important;
}
.ecs-card--book .ecs-book-details-button:hover,
.ecs-card--book .ecs-book-details-button:focus-visible{
  border-color:#cfd5dd!important;
  color:#101828!important;
  background:#f8fafc!important;
  box-shadow:0 5px 14px rgba(16,24,40,.09)!important;
  transform:translateY(-1px)!important;
}
.ecs-card--book .ecs-card__body{padding:20px 22px 22px!important}
.ecs-card--book .ecs-card__description{-webkit-line-clamp:2;margin-bottom:16px}
.ecs-book-cover-modal__isbn{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:12px 14px;border:1px solid #eaecf0;border-radius:14px;background:#fff;color:#667085;font-size:12px}
.ecs-book-cover-modal__isbn strong{color:#344054;font-size:13px;word-break:break-word;text-align:right}
.ecs-book-cover-modal__dialog--details{overflow:hidden!important}
.ecs-book-cover-modal__media{min-width:0}
.ecs-book-cover-modal__info{min-width:0}
@media(max-width:767px){
  .ecs-book-cover-actionbar{padding:9px 14px 8px}
  .ecs-card--book .ecs-card__body{padding:18px!important}
  .ecs-card--book .ecs-book-details-button{min-height:31px!important;padding:7px 11px!important}
}


/* v2.6.1 — theme-aware modal close button (no default red hover). */
.ecs-book-cover-modal__dialog--details{
  --ecs-modal-close-bg: var(--e-global-color-primary, var(--wp--preset--color--primary, #1f3a5f));
  --ecs-modal-close-bg-hover: var(--e-global-color-secondary, var(--wp--preset--color--secondary, #0f172a));
  --ecs-modal-close-fg: #ffffff;
}
.ecs-book-cover-modal__close{
  background: var(--ecs-modal-close-bg)!important;
  border-color: var(--ecs-modal-close-bg)!important;
  color: var(--ecs-modal-close-fg)!important;
  box-shadow: 0 10px 24px rgba(16,24,40,.18)!important;
}
.ecs-book-cover-modal__close:hover,
.ecs-book-cover-modal__close:focus-visible{
  background: var(--ecs-modal-close-bg-hover)!important;
  border-color: var(--ecs-modal-close-bg-hover)!important;
  color: var(--ecs-modal-close-fg)!important;
  transform: translateY(-1px) scale(1.04)!important;
  box-shadow: 0 14px 30px rgba(16,24,40,.22)!important;
  outline: none!important;
}
.ecs-book-cover-modal__close span{color:inherit!important}


/* v2.6.2 — perfectly centered CSS-drawn close icon + polished theme hover. */
.ecs-book-cover-modal__close{
  width:40px!important;
  height:40px!important;
  min-width:40px!important;
  min-height:40px!important;
  padding:0!important;
  margin:0!important;
  display:grid!important;
  place-items:center!important;
  box-sizing:border-box!important;
  line-height:1!important;
  overflow:visible!important;
  transform-origin:center!important;
  transition:background-color .2s ease,border-color .2s ease,box-shadow .22s ease,transform .22s cubic-bezier(.2,.8,.2,1)!important;
}
.ecs-book-cover-modal__close span{
  position:relative!important;
  display:block!important;
  width:16px!important;
  height:16px!important;
  margin:0!important;
  padding:0!important;
  font-size:0!important;
  line-height:0!important;
  color:transparent!important;
  transform:rotate(0deg)!important;
  transform-origin:50% 50%!important;
  transition:transform .24s cubic-bezier(.2,.8,.2,1)!important;
}
.ecs-book-cover-modal__close span::before,
.ecs-book-cover-modal__close span::after{
  content:"";
  position:absolute;
  left:50%;
  top:50%;
  width:16px;
  height:2px;
  border-radius:999px;
  background:var(--ecs-modal-close-fg,#fff);
  transform-origin:center;
}
.ecs-book-cover-modal__close span::before{transform:translate(-50%,-50%) rotate(45deg)}
.ecs-book-cover-modal__close span::after{transform:translate(-50%,-50%) rotate(-45deg)}
.ecs-book-cover-modal__close:hover,
.ecs-book-cover-modal__close:focus-visible{
  background:var(--ecs-modal-close-bg-hover)!important;
  border-color:var(--ecs-modal-close-bg-hover)!important;
  color:var(--ecs-modal-close-fg)!important;
  transform:translateY(-2px) scale(1.08)!important;
  box-shadow:0 0 0 5px rgba(15,23,42,.08),0 16px 34px rgba(16,24,40,.24)!important;
  outline:none!important;
}
.ecs-book-cover-modal__close:hover span,
.ecs-book-cover-modal__close:focus-visible span{
  transform:rotate(90deg)!important;
}
.ecs-book-cover-modal__close:active{
  transform:translateY(0) scale(.96)!important;
  box-shadow:0 5px 14px rgba(16,24,40,.18)!important;
}

/* v2.7 — Books widget can hold unlimited books in one Elementor container/column. */
.ecs-book-grid--auto{
  grid-template-columns:repeat(auto-fit,minmax(min(100%,var(--ecs-book-min-card-width,300px)),1fr))!important;
  align-items:start;
}
.ecs-book-grid--fixed{align-items:start}
.ecs-book-grid>.ecs-card--book{width:100%;min-width:0}
@media(max-width:767px){
  .ecs-book-grid--auto{grid-template-columns:1fr!important}
}

/* v2.8 — required paperback purchase form before Stripe Checkout. */
html.ecs-cover-modal-open,body.ecs-cover-modal-open{overflow:hidden!important}
.ecs-paperback-modal[hidden]{display:none!important}
.ecs-paperback-modal{position:fixed;inset:0;z-index:1000000;display:grid;place-items:center;padding:22px;opacity:0;transition:opacity .18s ease}
.ecs-paperback-modal.is-open{opacity:1}
.ecs-paperback-modal__backdrop{position:absolute;inset:0;background:rgba(9,14,24,.76);backdrop-filter:blur(9px);-webkit-backdrop-filter:blur(9px)}
.ecs-paperback-modal__dialog{--ecs-purchase-primary:var(--e-global-color-primary,var(--wp--preset--color--primary,#111827));--ecs-purchase-hover:var(--e-global-color-secondary,var(--wp--preset--color--secondary,#27364a));position:relative;z-index:1;width:min(920px,96vw);max-height:92vh;overflow:auto;border:1px solid rgba(255,255,255,.2);border-radius:24px;background:#fff;color:#101828;box-shadow:0 32px 90px rgba(0,0,0,.32);transform:translateY(10px) scale(.99);transition:transform .2s cubic-bezier(.2,.8,.2,1)}
.ecs-paperback-modal.is-open .ecs-paperback-modal__dialog{transform:translateY(0) scale(1)}
.ecs-paperback-modal__close{position:absolute;right:16px;top:16px;z-index:5;width:40px;height:40px;min-width:40px;min-height:40px;padding:0!important;border:1px solid var(--ecs-purchase-primary)!important;border-radius:50%!important;background:var(--ecs-purchase-primary)!important;color:#fff!important;display:grid!important;place-items:center!important;box-sizing:border-box!important;cursor:pointer;box-shadow:0 10px 24px rgba(16,24,40,.18);transition:transform .22s cubic-bezier(.2,.8,.2,1),background .2s ease,box-shadow .22s ease!important}
.ecs-paperback-modal__close span{position:relative;display:block;width:16px;height:16px;font-size:0;line-height:0;transition:transform .24s cubic-bezier(.2,.8,.2,1)}
.ecs-paperback-modal__close span:before,.ecs-paperback-modal__close span:after{content:"";position:absolute;left:50%;top:50%;width:16px;height:2px;border-radius:999px;background:#fff;transform-origin:center}
.ecs-paperback-modal__close span:before{transform:translate(-50%,-50%) rotate(45deg)}
.ecs-paperback-modal__close span:after{transform:translate(-50%,-50%) rotate(-45deg)}
.ecs-paperback-modal__close:hover,.ecs-paperback-modal__close:focus-visible{background:var(--ecs-purchase-hover)!important;border-color:var(--ecs-purchase-hover)!important;transform:translateY(-2px) scale(1.08)!important;box-shadow:0 0 0 5px rgba(15,23,42,.08),0 16px 34px rgba(16,24,40,.22)!important;outline:none!important}
.ecs-paperback-modal__close:hover span,.ecs-paperback-modal__close:focus-visible span{transform:rotate(90deg)}
.ecs-paperback-modal__header{display:grid;grid-template-columns:72px minmax(0,1fr) auto;align-items:center;gap:16px;padding:22px 72px 20px 24px;border-bottom:1px solid #eaecf0;background:linear-gradient(180deg,#fff,#fbfcfd)}
.ecs-paperback-modal__header img{width:72px;height:96px;object-fit:cover;border-radius:10px;background:#111;box-shadow:0 8px 20px rgba(16,24,40,.16)}
.ecs-paperback-modal__eyebrow{display:inline-block;margin-bottom:5px;color:#667085;font-size:11px;font-weight:800;letter-spacing:.08em;text-transform:uppercase}
.ecs-paperback-modal__header h3{margin:0;color:#101828;font-size:22px;line-height:1.2;letter-spacing:-.025em}
.ecs-paperback-modal__header p{margin:6px 0 0;color:#667085;font-size:13px;font-weight:600}
.ecs-paperback-modal__price{text-align:right;display:flex;flex-direction:column;align-items:flex-end;gap:4px}
.ecs-paperback-modal__price strong{font-size:21px;line-height:1;color:#101828;letter-spacing:-.02em}
.ecs-paperback-modal__price small{font-size:11px;color:#667085}
.ecs-paperback-form{padding:24px}
.ecs-paperback-form__intro{display:flex;flex-direction:column;gap:5px;margin-bottom:18px}
.ecs-paperback-form__intro strong{font-size:17px;color:#101828}
.ecs-paperback-form__intro span{font-size:13px;line-height:1.55;color:#667085}
.ecs-paperback-form__grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
.ecs-paperback-field{min-width:0}
.ecs-paperback-field--full{grid-column:1/-1}
.ecs-paperback-field label{display:flex;flex-direction:column;gap:7px;color:#344054;font-size:12px;font-weight:750}
.ecs-paperback-field label>span{display:block}
.ecs-paperback-field em{font-style:normal;color:#d92d20}
.ecs-paperback-field small{font-size:10px;font-weight:500;color:#98a2b3}
.ecs-paperback-field input,.ecs-paperback-field select,.ecs-paperback-field textarea{appearance:none;width:100%;min-width:0;box-sizing:border-box;border:1px solid #d0d5dd!important;border-radius:12px!important;background:#fff!important;color:#101828!important;padding:11px 12px!important;font:inherit!important;font-size:14px!important;line-height:1.35!important;box-shadow:0 1px 2px rgba(16,24,40,.03)!important;outline:none!important;transition:border-color .18s ease,box-shadow .18s ease!important}
.ecs-paperback-field select{min-height:43px;background-image:none!important}
.ecs-paperback-field textarea{resize:vertical;min-height:84px}
.ecs-paperback-field input:focus,.ecs-paperback-field select:focus,.ecs-paperback-field textarea:focus{border-color:var(--ecs-purchase-primary,#111827)!important;box-shadow:0 0 0 3px rgba(17,24,39,.09)!important}
.ecs-paperback-field input:user-invalid,.ecs-paperback-field select:user-invalid,.ecs-paperback-field textarea:user-invalid{border-color:#f04438!important}
.ecs-paperback-hp{position:absolute!important;left:-10000px!important;width:1px!important;height:1px!important;overflow:hidden!important}
.ecs-paperback-terms{margin-top:18px;padding:16px;border:1px solid #e4e7ec;border-radius:16px;background:#f8fafc}
.ecs-paperback-terms__title{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:8px}
.ecs-paperback-terms__title strong{font-size:13px;color:#101828}
.ecs-paperback-terms__title a{font-size:11px;font-weight:750;color:var(--ecs-purchase-primary,#111827);text-decoration:none}
.ecs-paperback-terms__title a:hover{text-decoration:underline}
.ecs-paperback-terms p{margin:0 0 12px;color:#667085;font-size:12px;line-height:1.6}
.ecs-paperback-consent{display:grid;grid-template-columns:20px minmax(0,1fr);gap:10px;align-items:start;cursor:pointer;color:#344054;font-size:12px;font-weight:650;line-height:1.5}
.ecs-paperback-consent input{appearance:none!important;width:19px!important;height:19px!important;min-width:19px!important;margin:0!important;border:1.5px solid #98a2b3!important;border-radius:6px!important;background:#fff!important;display:grid!important;place-items:center!important;cursor:pointer!important;transition:background .16s ease,border-color .16s ease,box-shadow .16s ease!important}
.ecs-paperback-consent input:checked{background:var(--ecs-purchase-primary,#111827)!important;border-color:var(--ecs-purchase-primary,#111827)!important}
.ecs-paperback-consent input:checked:after{content:"";width:8px;height:4px;border-left:2px solid #fff;border-bottom:2px solid #fff;transform:translateY(-1px) rotate(-45deg)}
.ecs-paperback-consent input:focus-visible{box-shadow:0 0 0 3px rgba(17,24,39,.12)!important;outline:none!important}
.ecs-paperback-form__notice{margin-top:14px;padding:11px 13px;border-radius:12px;background:#eef4ff;border:1px solid #c7d7fe;color:#3538cd;font-size:12px;line-height:1.5}
.ecs-paperback-form__notice--warning{background:#fffaeb;border-color:#fedf89;color:#93370d}
.ecs-paperback-form__status{min-height:20px;margin-top:12px;font-size:12px;font-weight:650;line-height:1.45}
.ecs-paperback-form__status.is-error{color:#b42318}
.ecs-paperback-form__status.is-success{color:#067647}
.ecs-paperback-form__footer{display:flex;align-items:center;justify-content:flex-end;gap:10px;margin-top:10px;padding-top:16px;border-top:1px solid #eaecf0}
.ecs-paperback-form__cancel,.ecs-paperback-form__submit{appearance:none;min-height:44px;padding:11px 17px;border-radius:12px;font:inherit;font-size:13px;font-weight:800;cursor:pointer;transition:transform .18s ease,box-shadow .18s ease,background .18s ease,border-color .18s ease}
.ecs-paperback-form__cancel{border:1px solid #d0d5dd;background:#fff;color:#344054}
.ecs-paperback-form__cancel:hover,.ecs-paperback-form__cancel:focus-visible{background:#f8fafc;border-color:#98a2b3;outline:none}
.ecs-paperback-form__submit{border:1px solid var(--ecs-purchase-primary,#111827);background:var(--ecs-purchase-primary,#111827);color:#fff;display:inline-flex;align-items:center;justify-content:center;gap:9px;box-shadow:0 7px 18px rgba(16,24,40,.15)}
.ecs-paperback-form__submit:hover,.ecs-paperback-form__submit:focus-visible{background:var(--ecs-purchase-hover,#27364a);border-color:var(--ecs-purchase-hover,#27364a);transform:translateY(-1px);box-shadow:0 11px 24px rgba(16,24,40,.2);outline:none}
.ecs-paperback-form__submit[disabled]{opacity:.5;cursor:not-allowed;transform:none!important;box-shadow:none!important}
.ecs-paperback-form__submit i{display:none;width:14px;height:14px;border:2px solid currentColor;border-right-color:transparent;border-radius:50%;animation:ecs-spin .7s linear infinite}
.ecs-paperback-form__submit.is-loading i{display:block}
.ecs-paperback-form__submit.is-loading{pointer-events:none;opacity:.8}
.ecs-button--physical[data-ecs-purchase-form-open]{border:0}
@media(max-width:767px){.ecs-paperback-modal{padding:8px}.ecs-paperback-modal__dialog{width:100%;max-height:96vh;border-radius:20px}.ecs-paperback-modal__header{grid-template-columns:54px minmax(0,1fr);gap:12px;padding:18px 58px 16px 16px}.ecs-paperback-modal__header img{width:54px;height:72px;border-radius:8px}.ecs-paperback-modal__price{grid-column:1/-1;align-items:flex-start;text-align:left;padding-left:66px}.ecs-paperback-modal__header h3{font-size:19px}.ecs-paperback-form{padding:18px 16px 16px}.ecs-paperback-form__grid{grid-template-columns:1fr}.ecs-paperback-field--full{grid-column:auto}.ecs-paperback-form__footer{flex-direction:column-reverse;align-items:stretch}.ecs-paperback-form__cancel,.ecs-paperback-form__submit{width:100%}.ecs-paperback-modal__close{right:11px;top:11px}.ecs-paperback-terms__title{align-items:flex-start;flex-direction:column;gap:5px}}
@media(prefers-reduced-motion:reduce){.ecs-paperback-modal,.ecs-paperback-modal__dialog,.ecs-paperback-modal__close,.ecs-paperback-modal__close span,.ecs-paperback-form__submit,.ecs-paperback-form__cancel{transition:none!important}.ecs-paperback-form__submit i{animation:none!important}}


/* v2.8.1 — equal media height + locked plugin button states + resilient purchase form. */
.ecs-book-grid>.ecs-card--book{
  display:flex!important;
  flex-direction:column!important;
  height:100%!important;
}
.ecs-card--book .ecs-book-cover-viewer{
  flex:0 0 auto!important;
}
.ecs-card--book .ecs-book-cover-stage{
  width:100%!important;
  height:auto!important;
  min-height:0!important;
  aspect-ratio:2/3!important;
  background:#0b0b0b!important;
}
.ecs-card--book .ecs-book-cover-primary{
  display:block!important;
  width:100%!important;
  height:100%!important;
  min-height:0!important;
  max-height:none!important;
  object-fit:cover!important;
  object-position:center!important;
}
.ecs-card--book .ecs-card__body{
  flex:1 1 auto!important;
}
.ecs-card--book .ecs-book-options{
  margin-top:auto!important;
}

/* Physical purchase action: Elementor color settings win when present; otherwise use the site's primary color.
   Theme button:hover rules cannot inject an unrelated default red/pink state. */
button.ecs-button.ecs-button--physical{
  background-color:var(--ecs-button-bg,var(--e-global-color-primary,var(--wp--preset--color--primary,#111827)))!important;
  border-color:var(--ecs-button-bg,var(--e-global-color-primary,var(--wp--preset--color--primary,#111827)))!important;
  color:var(--ecs-button-text,#fff)!important;
  filter:none!important;
  transition:transform .18s ease,box-shadow .18s ease,filter .18s ease,background-color .18s ease!important;
}
button.ecs-button.ecs-button--physical:hover,
button.ecs-button.ecs-button--physical:focus-visible{
  background-color:var(--ecs-button-hover-bg,var(--ecs-button-bg,var(--e-global-color-primary,var(--wp--preset--color--primary,#111827))))!important;
  border-color:var(--ecs-button-hover-bg,var(--ecs-button-bg,var(--e-global-color-primary,var(--wp--preset--color--primary,#111827))))!important;
  color:var(--ecs-button-hover-text,var(--ecs-button-text,#fff))!important;
  filter:brightness(.9)!important;
  transform:translateY(-2px)!important;
  box-shadow:0 12px 26px rgba(16,24,40,.2)!important;
  outline:none!important;
}
button.ecs-button.ecs-button--physical:active{
  transform:translateY(0)!important;
  filter:brightness(.84)!important;
}

/* All single-line purchase fields, including Email and Phone, have exactly the same height. */
.ecs-paperback-field input:not([type="checkbox"]),
.ecs-paperback-field select{
  height:46px!important;
  min-height:46px!important;
  max-height:46px!important;
  padding-top:0!important;
  padding-bottom:0!important;
  line-height:44px!important;
}
.ecs-paperback-field select{line-height:normal!important}

/* Neutral Cancel button: readable in normal, hover and focus states regardless of theme styles. */
.ecs-paperback-form__cancel{
  background:#fff!important;
  border:1px solid #cfd4dc!important;
  color:#344054!important;
  -webkit-text-fill-color:#344054!important;
  box-shadow:0 2px 6px rgba(16,24,40,.04)!important;
}
.ecs-paperback-form__cancel:hover,
.ecs-paperback-form__cancel:focus-visible{
  background:#f2f4f7!important;
  border-color:#98a2b3!important;
  color:#101828!important;
  -webkit-text-fill-color:#101828!important;
  transform:translateY(-1px)!important;
  box-shadow:0 7px 16px rgba(16,24,40,.09)!important;
  outline:none!important;
}
.ecs-paperback-form__cancel:active{
  background:#eaecf0!important;
  transform:translateY(0)!important;
}

/* Secure-payment submit and modal close keep one theme-aware primary family on hover,
   rather than falling through to a theme's default red button hover. */
.ecs-paperback-form__submit{
  background:var(--ecs-purchase-primary,var(--e-global-color-primary,#111827))!important;
  border-color:var(--ecs-purchase-primary,var(--e-global-color-primary,#111827))!important;
  color:#fff!important;
  -webkit-text-fill-color:#fff!important;
}
.ecs-paperback-form__submit:hover,
.ecs-paperback-form__submit:focus-visible{
  background:var(--ecs-purchase-primary,var(--e-global-color-primary,#111827))!important;
  border-color:var(--ecs-purchase-primary,var(--e-global-color-primary,#111827))!important;
  color:#fff!important;
  -webkit-text-fill-color:#fff!important;
  filter:brightness(.88)!important;
  transform:translateY(-2px)!important;
  box-shadow:0 12px 28px rgba(16,24,40,.22)!important;
  outline:none!important;
}
.ecs-paperback-modal__close:hover,
.ecs-paperback-modal__close:focus-visible,
.ecs-book-cover-modal__close:hover,
.ecs-book-cover-modal__close:focus-visible{
  background:var(--e-global-color-primary,var(--wp--preset--color--primary,#111827))!important;
  border-color:var(--e-global-color-primary,var(--wp--preset--color--primary,#111827))!important;
  color:#fff!important;
  filter:brightness(.86)!important;
}

/* Keep details button protected from generic theme button hover styles too. */
.ecs-card--book .ecs-book-details-button:hover,
.ecs-card--book .ecs-book-details-button:focus-visible{
  background:#f8fafc!important;
  border-color:#cfd5dd!important;
  color:#101828!important;
  -webkit-text-fill-color:#101828!important;
}

@media(max-width:767px){
  .ecs-card--book .ecs-book-cover-stage{aspect-ratio:2/3!important}
}


/* v2.9.1 — mobile purchase button text never breaks or gets clipped. */
.ecs-book-option .ecs-button,
.ecs-book-option button.ecs-button,
.ecs-book-option a.ecs-button{
  box-sizing:border-box!important;
  width:100%!important;
  max-width:100%!important;
  min-width:0!important;
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  flex-wrap:nowrap!important;
  gap:8px!important;
  overflow:hidden!important;
  padding-left:16px!important;
  padding-right:16px!important;
  text-align:center!important;
}
.ecs-book-option .ecs-button__icon{
  flex:0 0 auto!important;
  margin:0!important;
}
.ecs-book-option .ecs-button__text{
  display:block!important;
  flex:0 1 auto!important;
  min-width:0!important;
  max-width:100%!important;
  white-space:nowrap!important;
  overflow:hidden!important;
  text-overflow:ellipsis!important;
  word-break:normal!important;
  overflow-wrap:normal!important;
  line-height:1.2!important;
  text-align:center!important;
}
@media (max-width: 767px){
  .ecs-book-option .ecs-button,
  .ecs-book-option button.ecs-button,
  .ecs-book-option a.ecs-button{
    min-height:48px!important;
    padding-left:14px!important;
    padding-right:14px!important;
  }
  .ecs-book-option .ecs-button__text{
    font-size:15px!important;
  }
}


/* v2.9.2 — hard-lock purchase button label visibility on every device/theme. */
.ecs-book-option .ecs-button{
  color:var(--ecs-button-text,#fff)!important;
}
.ecs-book-option .ecs-button .ecs-button__text{
  position:relative!important;
  z-index:2!important;
  display:inline-block!important;
  color:var(--ecs-button-text,#fff)!important;
  -webkit-text-fill-color:var(--ecs-button-text,#fff)!important;
  opacity:1!important;
  visibility:visible!important;
  font-size:inherit!important;
  font-weight:inherit!important;
  line-height:1.2!important;
  text-indent:0!important;
  transform:none!important;
  clip:auto!important;
  clip-path:none!important;
}
.ecs-book-option .ecs-button:hover,
.ecs-book-option .ecs-button:focus,
.ecs-book-option .ecs-button:focus-visible{
  color:var(--ecs-button-hover-text,var(--ecs-button-text,#fff))!important;
}
.ecs-book-option .ecs-button:hover .ecs-button__text,
.ecs-book-option .ecs-button:focus .ecs-button__text,
.ecs-book-option .ecs-button:focus-visible .ecs-button__text{
  color:var(--ecs-button-hover-text,var(--ecs-button-text,#fff))!important;
  -webkit-text-fill-color:var(--ecs-button-hover-text,var(--ecs-button-text,#fff))!important;
  opacity:1!important;
  visibility:visible!important;
}
.ecs-book-option .ecs-button.is-loading .ecs-button__text{
  opacity:.72!important;
  visibility:visible!important;
}
@media (max-width:767px){
  .ecs-book-option .ecs-button .ecs-button__text{
    width:auto!important;
    max-width:calc(100% - 8px)!important;
    white-space:nowrap!important;
    overflow:hidden!important;
    text-overflow:ellipsis!important;
    text-align:center!important;
  }
}


/* v2.9.3 — definitive mobile purchase label fix.
   Never inherit a zero/invalid responsive font-size from theme/Elementor button rules. */
.ecs-card--book .ecs-book-option .ecs-button,
.ecs-card--book .ecs-book-option button.ecs-button,
.ecs-card--book .ecs-book-option a.ecs-button{
  font-size:15px!important;
  line-height:1.2!important;
  color:#fff!important;
  -webkit-text-fill-color:#fff!important;
}
.ecs-card--book .ecs-book-option .ecs-button > .ecs-button__text{
  position:relative!important;
  z-index:5!important;
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  flex:0 1 auto!important;
  width:auto!important;
  min-width:1px!important;
  max-width:100%!important;
  height:auto!important;
  min-height:1em!important;
  margin:0!important;
  padding:0!important;
  font-family:inherit!important;
  font-size:15px!important;
  font-style:normal!important;
  font-weight:700!important;
  line-height:1.2!important;
  letter-spacing:normal!important;
  text-transform:none!important;
  text-indent:0!important;
  white-space:nowrap!important;
  word-break:normal!important;
  overflow-wrap:normal!important;
  overflow:visible!important;
  text-overflow:clip!important;
  color:#fff!important;
  -webkit-text-fill-color:#fff!important;
  opacity:1!important;
  visibility:visible!important;
  transform:none!important;
  filter:none!important;
  clip:auto!important;
  clip-path:none!important;
}
.ecs-card--book .ecs-book-option .ecs-button:hover > .ecs-button__text,
.ecs-card--book .ecs-book-option .ecs-button:focus > .ecs-button__text,
.ecs-card--book .ecs-book-option .ecs-button:focus-visible > .ecs-button__text,
.ecs-card--book .ecs-book-option .ecs-button:active > .ecs-button__text{
  color:#fff!important;
  -webkit-text-fill-color:#fff!important;
  opacity:1!important;
  visibility:visible!important;
}
@media(max-width:767px){
  .ecs-card--book .ecs-book-option .ecs-button,
  .ecs-card--book .ecs-book-option button.ecs-button,
  .ecs-card--book .ecs-book-option a.ecs-button{
    min-height:48px!important;
    font-size:15px!important;
  }
  .ecs-card--book .ecs-book-option .ecs-button > .ecs-button__text{
    font-size:15px!important;
    line-height:18px!important;
  }
}


/* v2.9.4 — render-level label safety net. This rule is intentionally last. */
.ecs-card--book .ecs-book-option > .ecs-book-option .ecs-button__text,
.ecs-card--book .ecs-book-option .ecs-button > span.ecs-button__text,
.ecs-card--book .ecs-book-option a.ecs-button > span.ecs-button__text,
.ecs-card--book .ecs-book-option button.ecs-button > span.ecs-button__text{
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  position:relative!important;
  z-index:20!important;
  flex:0 0 auto!important;
  width:auto!important;
  min-width:max-content!important;
  height:auto!important;
  min-height:18px!important;
  margin:0!important;
  padding:0!important;
  color:#fff!important;
  -webkit-text-fill-color:#fff!important;
  -webkit-text-stroke:0 transparent!important;
  font-family:Arial,Helvetica,sans-serif!important;
  font-size:15px!important;
  font-style:normal!important;
  font-weight:700!important;
  font-variant:normal!important;
  line-height:18px!important;
  letter-spacing:normal!important;
  word-spacing:normal!important;
  text-align:center!important;
  text-transform:none!important;
  text-indent:0!important;
  text-shadow:none!important;
  white-space:nowrap!important;
  word-break:normal!important;
  overflow-wrap:normal!important;
  opacity:1!important;
  visibility:visible!important;
  overflow:visible!important;
  transform:none!important;
  filter:none!important;
  mix-blend-mode:normal!important;
  clip:auto!important;
  clip-path:none!important;
}


/* v2.9.5 — true mobile centering for purchase labels.
   The empty payment status element must not consume 100% flex width on phones. */
@media (max-width:767px){
  .ecs-card--book .ecs-book-option .ecs-button{
    position:relative!important;
    display:flex!important;
    align-items:center!important;
    justify-content:center!important;
    flex-wrap:nowrap!important;
    text-align:center!important;
  }
  .ecs-card--book .ecs-book-option .ecs-button > .ecs-button__text{
    margin-left:auto!important;
    margin-right:auto!important;
    text-align:center!important;
  }
  .ecs-card--book .ecs-book-option .ecs-button > .ecs-payment-message{
    position:absolute!important;
    left:0!important;
    top:calc(100% + 6px)!important;
    width:100%!important;
    min-width:0!important;
    margin:0!important;
    padding:0!important;
    pointer-events:none!important;
  }
  .ecs-card--book .ecs-book-option .ecs-button > .ecs-button__spinner{
    position:absolute!important;
    right:14px!important;
    top:50%!important;
    margin:0!important;
    transform:translateY(-50%)!important;
  }
}


/* v2.9.8 — paperback direct-to-Stripe checkout; preserve the approved physical button styling. */
.ecs-button.ecs-button--physical{
  background-color:var(--ecs-button-bg,var(--e-global-color-primary,var(--wp--preset--color--primary,#111827)))!important;
  border-color:var(--ecs-button-bg,var(--e-global-color-primary,var(--wp--preset--color--primary,#111827)))!important;
  color:var(--ecs-button-text,#fff)!important;
}
.ecs-button.ecs-button--physical:hover,
.ecs-button.ecs-button--physical:focus-visible{
  background-color:var(--ecs-button-hover-bg,var(--ecs-button-bg,var(--e-global-color-primary,var(--wp--preset--color--primary,#111827))))!important;
  border-color:var(--ecs-button-hover-bg,var(--ecs-button-bg,var(--e-global-color-primary,var(--wp--preset--color--primary,#111827))))!important;
  color:var(--ecs-button-hover-text,var(--ecs-button-text,#fff))!important;
  filter:brightness(.9)!important;
  transform:translateY(-2px)!important;
  box-shadow:0 12px 26px rgba(16,24,40,.2)!important;
  outline:none!important;
}
