/* PrintGear.app presentation, independent of the subscriber plugin. */

body.pg-website-cart .wp-block-woocommerce-cart,
body.pg-website-cart .woocommerce:has(.woocommerce-cart-form) {
    box-sizing:border-box;width:calc(100% - 48px)!important;max-width:1120px!important;
    margin:40px auto 64px!important;float:none;min-width:0;container:printgear-cart / inline-size;
}
body.pg-website-cart .wc-block-cart.wc-block-components-sidebar-layout {
    display:grid!important;grid-template-columns:minmax(0,1fr) 320px;gap:32px;align-items:start;
    margin:0;width:100%;max-width:100%;font-size:16px;
}
body.pg-website-cart .wc-block-cart .wc-block-components-main,
body.pg-website-cart .wc-block-cart .wc-block-components-sidebar {
    width:100%!important;max-width:100%;min-width:0;margin:0!important;padding:0!important;
}
body.pg-website-cart .wc-block-cart .wc-block-cart__sidebar {
    box-sizing:border-box;padding:22px!important;background:transparent;color:inherit;
    border:1px solid currentColor;border-radius:12px;position:static;
}
body.pg-website-cart .wc-block-cart__sidebar .wc-block-cart__totals-title {
    font-size:15px;font-weight:650;line-height:1.4;margin:0 0 20px;padding:0;
}
body.pg-website-cart .wc-block-cart__sidebar .wc-block-components-totals-wrapper {padding:16px 0;}
body.pg-website-cart .wc-block-cart__sidebar .wc-block-components-totals-item {padding:0;gap:12px;line-height:1.5;}
body.pg-website-cart .wc-block-cart__sidebar .wc-block-components-totals-item__value {white-space:nowrap;}
body.pg-website-cart .wc-block-cart__sidebar .wc-block-components-totals-footer-item {font-size:18px;}
body.pg-website-cart .wc-block-cart__sidebar .wc-block-cart__submit-container {padding:0;margin-top:20px;}
body.pg-website-cart .wc-block-cart__sidebar .wc-block-cart__submit-button {
    box-sizing:border-box;width:100%;min-width:0;min-height:48px;padding:14px 16px;
    font-size:16px;line-height:1.4;white-space:normal;text-align:center;border-radius:6px;
}
body.pg-website-cart table.wc-block-cart-items {width:100%;max-width:100%;table-layout:fixed;border-collapse:collapse;font-size:16px;}
body.pg-website-cart table.wc-block-cart-items thead th {font-size:12px;font-weight:600;letter-spacing:.06em;color:inherit;}
body.pg-website-cart table.wc-block-cart-items .wc-block-cart-items__header-image {width:88px;}
body.pg-website-cart table.wc-block-cart-items .wc-block-cart-items__header-total {width:100px;}
body.pg-website-cart table.wc-block-cart-items .wc-block-cart-item__image {box-sizing:border-box;width:88px!important;min-width:0;padding:24px 16px 24px 0!important;vertical-align:top;}
body.pg-website-cart table.wc-block-cart-items .wc-block-cart-item__product {min-width:0;padding:24px 0!important;vertical-align:top;overflow-wrap:anywhere;}
body.pg-website-cart table.wc-block-cart-items .wc-block-cart-item__wrap {min-width:0;gap:0;}
body.pg-website-cart table.wc-block-cart-items .wc-block-cart-item__total {box-sizing:border-box;width:100px;padding:24px 0 24px 12px!important;font-size:16px;white-space:nowrap;align-items:start;vertical-align:top!important;}
body.pg-website-cart .woocreate-cart-product-name {font-size:18px!important;line-height:1.4!important;}
body.pg-website-cart .woocreate-cart-summary {font-size:14px;line-height:1.65;margin-top:8px;overflow-wrap:anywhere;}
body.pg-website-cart .woocreate-cart-team-detail {white-space:normal;flex-wrap:wrap;}
body.pg-website-cart .woocreate-cart-actions {margin-top:12px;}
body.pg-website-cart .woocreate-cart-actions .woocreate-cart-action {font-size:15px;min-height:36px;}
body.pg-website-cart table.wc-block-cart-items .wc-block-cart-item__quantity {display:flex;flex-wrap:wrap;gap:12px;width:auto!important;max-width:100%;min-width:0;margin-top:12px;}
@media(max-width:900px){
    body.pg-website-cart .wc-block-cart.wc-block-components-sidebar-layout {grid-template-columns:minmax(0,1fr);gap:28px;}
}
@media(max-width:600px){
    body.pg-website-cart .wp-block-woocommerce-cart,body.pg-website-cart .woocommerce:has(.woocommerce-cart-form) {width:calc(100% - 48px)!important;margin:24px auto 40px!important;}
    body.pg-website-cart table.wc-block-cart-items,body.pg-website-cart table.wc-block-cart-items tbody {display:block;width:100%;}
    body.pg-website-cart table.wc-block-cart-items thead {display:none;}
    body.pg-website-cart table.wc-block-cart-items tr.wc-block-cart-items__row:not(.woocreate-cart-group-hidden) {display:grid;grid-template-columns:72px minmax(0,1fr);gap:12px;position:relative;padding:20px 0;border-bottom:1px solid currentColor;}
    body.pg-website-cart table.wc-block-cart-items tr .wc-block-cart-item__image {grid-area:1 / 1 / 2 / 2!important;width:72px!important;padding:0!important;}
    body.pg-website-cart table.wc-block-cart-items tr .wc-block-cart-item__product {grid-area:1 / 2 / 2 / 3!important;display:block;width:auto;padding:0!important;}
    body.pg-website-cart table.wc-block-cart-items tr .wc-block-cart-item__total {grid-area:2 / 2 / 3 / 3!important;display:flex;justify-content:flex-start;gap:8px;width:auto;min-width:0;padding:0!important;text-align:left;}
    body.pg-website-cart table.wc-block-cart-items tr .wc-block-cart-item__total::before {content:var(--woocreate-cart-total-label,'Total');font-weight:600;}
    body.pg-website-cart .woocreate-cart-product-name {font-size:17px!important;}
    body.pg-website-cart .wc-block-cart .wc-block-cart__sidebar {padding:18px!important;}
}

@container printgear-cart (max-width:900px){
 body.pg-website-cart .wc-block-cart.wc-block-components-sidebar-layout {grid-template-columns:minmax(0,1fr);gap:28px;}
}
@container printgear-cart (max-width:600px){
    body.pg-website-cart table.wc-block-cart-items,body.pg-website-cart table.wc-block-cart-items tbody {display:block;width:100%;}
    body.pg-website-cart table.wc-block-cart-items thead {display:none;}
    body.pg-website-cart table.wc-block-cart-items tr.wc-block-cart-items__row:not(.woocreate-cart-group-hidden) {display:grid;grid-template-columns:72px minmax(0,1fr);gap:12px;position:relative;padding:20px 0;border-bottom:1px solid currentColor;}
    body.pg-website-cart table.wc-block-cart-items tr .wc-block-cart-item__image {grid-area:1 / 1 / 2 / 2!important;width:72px!important;padding:0!important;}
    body.pg-website-cart table.wc-block-cart-items tr .wc-block-cart-item__product {grid-area:1 / 2 / 2 / 3!important;display:block;width:auto;padding:0!important;}
    body.pg-website-cart table.wc-block-cart-items tr .wc-block-cart-item__total {grid-area:2 / 2 / 3 / 3!important;display:flex;justify-content:flex-start;gap:8px;width:auto;min-width:0;padding:0!important;text-align:left;}
    body.pg-website-cart table.wc-block-cart-items tr .wc-block-cart-item__total::before {content:var(--woocreate-cart-total-label,'Total');font-weight:600;}
    body.pg-website-cart .woocreate-cart-product-name {font-size:17px!important;}
    body.pg-website-cart .wc-block-cart .wc-block-cart__sidebar {padding:18px!important;}
}


html[lang^="nl"] body.pg-website-cart {--woocreate-cart-total-label:'Totaal';}
/* Shared full-width website template: normal text blocks get an inner content
   width. Full-width hero sections and independent account cards keep their layout. */
body.pg-website-page main > .entry-content > :is(h1,h2,h3,h4,h5,h6,p,ul,ol,.wp-block-buttons,.wp-block-table) {
    box-sizing:border-box;width:calc(100% - 48px);max-width:1120px;
    margin-left:auto!important;margin-right:auto!important;overflow-wrap:anywhere;
}
body.pg-website-page main > .entry-content > :is(h1,h2,p):first-child {margin-top:40px;}
body.pg-website-page main > .entry-content > :is(p,.wp-block-buttons,.wp-block-table,ul,ol):last-child {margin-bottom:64px;}
@media(max-width:600px){
    body.pg-website-page main > .entry-content > :is(h1,h2,p):first-child {margin-top:28px;}
    body.pg-website-page main > .entry-content > :is(p,.wp-block-buttons,.wp-block-table,ul,ol):last-child {margin-bottom:40px;}
    body.pg-website-page main > .entry-content > .wp-block-buttons {gap:12px;}
    body.pg-website-page main > .entry-content > .wp-block-buttons .wp-block-button__link {box-sizing:border-box;max-width:100%;}
}

/* Match the shared header width on cart and FPD pages. */
body.pg-website-cart .wp-block-woocommerce-cart,
body.pg-website-cart .woocommerce:has(.woocommerce-cart-form) {
  width: calc(100% - clamp(48px, 10vw, 160px)) !important;
  max-width: 1280px !important;
}
.pg-fpd-header__inner, .aifpd > section {
  box-sizing: border-box;
  width: 100%;
  max-width: 1280px;
  margin-inline: auto;
}
.pg-fpd-header__inner { gap: 20px; }
.pg-fpd-header__nav { margin-left: auto; }
.pg-fpd-header__cart {
  flex: none; display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; color: #111; text-decoration: none; border-radius: 6px;
}
.pg-fpd-header__cart:hover { background: #f4effa; color: #763bd6; }
.pg-fpd-header__cart:focus-visible { outline: 2px solid #763bd6; outline-offset: 3px; }
.pg-fpd-header__cart svg { width: 27px; height: 27px; fill: currentColor; }
@media (max-width: 900px) { .pg-fpd-header__menu-toggle { margin-left: auto; } }

/* Give the empty mini cart a clear, readable call to action. */
.wc-block-mini-cart__empty-cart-wrapper .pg-mini-cart-empty {
  box-sizing: border-box; width: 100%; max-width: 28rem;
  margin: 0 auto; padding: 1.5rem 1rem 2rem; text-align: center;
}
.pg-mini-cart-empty h2 {
  margin: 0 0 .85rem; font-size: clamp(1.6rem, 3vw, 2rem);
  line-height: 1.2; font-weight: 700;
}
.pg-mini-cart-empty p {
  max-width: 28ch; margin: 0 auto 1.4rem;
  font-size: 1.08rem; line-height: 1.55;
}
.pg-mini-cart-empty__link {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 44px; padding: .7rem 1.2rem; border-radius: 6px;
  background: #763bd6; color: #fff !important; font-weight: 700; text-decoration: none;
}
.pg-mini-cart-empty__link:hover { background: #5d2bb7; }
.pg-mini-cart-empty__link:focus-visible { outline: 2px solid #763bd6; outline-offset: 3px; }

/* The FPD template has a later important rule that removes its width cap. */
body.page-id-386 .pg-fpd-header .pg-fpd-header__inner {
  max-width: 1280px !important;
}

/* Keep every FPD content block on the same line as the header and hero. */
body.page-id-386 .aifpd > .aifpd-credo,
body.page-id-386 .aifpd > .aifpd-lower,
body.page-id-386 .aifpd > .aifpd-bottom {
  box-sizing: border-box;
  width: 100% !important;
  max-width: 1280px !important;
  margin-left: auto !important;
  margin-right: auto !important;
}
body.page-id-386 .aifpd > .aifpd-bottom {
  border-radius: 18px;
}

/* Give the cart page's closing panel the same outer edges as the cart and logo. */
body.pg-website-cart footer.wp-block-template-part > .wp-block-group.alignfull.has-background {
  box-sizing: border-box;
  width: calc(100% - clamp(48px, 10vw, 160px)) !important;
  max-width: 1280px !important;
  margin-left: auto !important;
  margin-right: auto !important;
  border-radius: 18px;
}

/* Standalone cart width rules remain valid when a browser does not support :has() or clamp(). */
body.pg-website-cart .wp-block-woocommerce-cart {
  box-sizing: border-box;
  width: calc(100% - 48px) !important;
  max-width: 1280px !important;
  margin: 40px auto 64px !important;
  float: none;
  min-width: 0;
}
body.pg-website-cart footer.wp-block-template-part > .wp-block-group.alignfull.has-background {
  width: calc(100% - 48px) !important;
}
@media (min-width: 480px) {
  body.pg-website-cart .wp-block-woocommerce-cart,
  body.pg-website-cart footer.wp-block-template-part > .wp-block-group.alignfull.has-background {
    width: 90% !important;
  }
}
@media (min-width: 1600px) {
  body.pg-website-cart .wp-block-woocommerce-cart,
  body.pg-website-cart footer.wp-block-template-part > .wp-block-group.alignfull.has-background {
    width: calc(100% - 160px) !important;
  }
}
body.pg-website-cart .pg-cart-product-link {
  color: inherit !important;
  text-decoration: underline;
  text-underline-offset: 2px;
}
body.pg-website-cart .pg-cart-product-link:hover { color: #763bd6 !important; }

/* Compact, readable cart count in the site header. */
.pg-site-header .wc-block-mini-cart__badge,
.pg-site-header .pg-header-cart-count {
  box-sizing: border-box !important;
  position: absolute;
  top: -5px !important;
  right: -8px !important;
  left: auto !important;
  width: auto !important;
  min-width: 18px !important;
  height: 18px !important;
  padding: 0 4px !important;
  border-radius: 999px !important;
  background: #763bd6 !important;
  color: #fff !important;
  font-size: 11px !important;
  font-weight: 700 !important;
  line-height: 18px !important;
  text-align: center;
  align-items: center;
  justify-content: center;
}
.pg-site-header .wc-block-mini-cart__badge[hidden],
.pg-site-header .pg-header-cart-count[hidden] { display: none !important; }
.pg-site-header .pg-fpd-header__cart {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: visible;
}
.pg-site-header .pg-header-cart-count { display: flex; }


/* Nomi illustration for the WooCommerce empty cart. */
body.pg-website-cart .wc-block-cart__empty-cart__title {
    max-width: 520px;
    margin: 0 auto 16px !important;
    color: #16143b;
    font-size: 25px !important;
    font-weight: 600;
    line-height: 1.25;
    text-align: center;
}
body.pg-website-cart .wc-block-cart__empty-cart__title::before {
    content: "" !important;
    display: block !important;
    width: 176px !important;
    height: 176px !important;
    margin: 0 auto 20px !important;
    background: transparent url("https://printgear.app/wp-content/uploads/2026/10/nomi-empty-cart.png") center / contain no-repeat !important;
    mask: none !important;
    -webkit-mask: none !important;
}
body.pg-website-cart .wp-block-woocommerce-empty-cart-block > .is-style-dots,
body.pg-website-cart .wp-block-woocommerce-empty-cart-block > h2:not(.wc-block-cart__empty-cart__title) {
    display: none !important;
}
@media (max-width: 640px) {
    body.pg-website-cart .wc-block-cart__empty-cart__title { font-size: 22px !important; }
    body.pg-website-cart .wc-block-cart__empty-cart__title::before { width: 148px !important; height: 148px !important; }
}


/* Happy Nomi beside the demo checkout completion message. */
body.page-id-48 .wp-block-post-content {
  box-sizing: border-box;
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  column-gap: 36px;
  row-gap: 20px;
  max-width: 1120px;
  margin-inline: auto;
  padding: 40px 24px 60px;
}
body.page-id-48 .wp-block-post-content::before {
  content: "";
  display: block;
  grid-column: 1;
  grid-row: 1 / span 4;
  align-self: center;
  justify-self: center;
  width: 250px;
  max-width: 100%;
  height: 250px;
  background: transparent url("https://printgear.app/wp-content/uploads/2026/10/nomi-demo-complete.png") center / contain no-repeat;
}
body.page-id-48 .wp-block-post-content > * {
  box-sizing: border-box;
  grid-column: 2;
  min-width: 0;
  max-width: 100%;
  margin: 0 !important;
}
@media (max-width: 700px) {
  body.page-id-48 .wp-block-post-content {
    grid-template-columns: minmax(0, 1fr);
    row-gap: 16px;
    padding: 32px 22px 52px;
  }
  body.page-id-48 .wp-block-post-content::before {
    grid-column: 1;
    grid-row: 1;
    width: 168px;
    height: 168px;
    margin-bottom: 4px;
  }
  body.page-id-48 .wp-block-post-content > * { grid-column: 1; }
  body.page-id-48 .wp-block-post-content > h1 { font-size: 36px; line-height: 1.15; }
  body.page-id-48 .wp-block-post-content .wp-block-buttons { gap: 12px; }
}

