/* Scoped to the imported page's native WooCommerce mini-cart. */
.chaos-cart-open{overflow:hidden}
#chaos-cart-drawer{box-sizing:border-box;position:fixed;inset:0 0 0 auto;margin:0;width:min(480px,100%);max-width:100%;height:100dvh;max-height:100dvh;padding:0;border:0;border-radius:24px 0 0 24px;background:#fcfbf8;color:#171816;overflow-y:auto;overscroll-behavior:contain;font:14px/1.55 'CHAOSPortableInter',sans-serif;box-shadow:-16px 0 64px #07192630;color-scheme:light}
#chaos-cart-drawer *{box-sizing:border-box}
#chaos-cart-drawer::backdrop{background:#07192680;backdrop-filter:blur(5px)}
#chaos-cart-drawer[open]{animation:chaos-cart-enter .24s ease-out}
#chaos-cart-drawer .chaos-cart-heading{position:sticky;top:0;z-index:2;display:flex;align-items:center;justify-content:space-between;gap:16px;padding:28px 28px 24px;background:#fcfbf8;border-bottom:1px solid #e8e6de}
#chaos-cart-drawer .chaos-cart-eyebrow{display:block;color:#77796e;font-size:10px;font-weight:700;letter-spacing:.18em;margin-bottom:6px}
#chaos-cart-drawer h2{margin:0;font:700 30px/1.15 'CHAOSPortableArchivo',sans-serif;letter-spacing:-.035em;color:#171816}
#chaos-cart-drawer .chaos-cart-close{flex:none;display:grid;place-items:center;cursor:pointer;border:1px solid #e8e6de;background:#fff;color:#171816;border-radius:50%;width:44px;height:44px;padding:0;font:400 26px/1 sans-serif;transition:background .15s,transform .15s}
#chaos-cart-drawer .chaos-cart-close:hover{background:#f0ecde;transform:rotate(90deg)}
#chaos-cart-drawer .widget_shopping_cart{padding:8px 28px 28px}
#chaos-cart-drawer .woocommerce-mini-cart{list-style:none;margin:0;padding:0}
#chaos-cart-drawer .woocommerce-mini-cart-item{position:relative;display:flow-root;min-height:128px;list-style:none;padding:24px 44px 24px 0;margin:0;border-bottom:1px solid #e8e6de}
#chaos-cart-drawer .woocommerce-mini-cart-item>a:not(.remove){display:block;color:#171816;font-weight:600;font-size:15px;line-height:1.45;text-decoration:none;overflow-wrap:anywhere}
#chaos-cart-drawer .woocommerce-mini-cart-item img{width:80px;height:80px;object-fit:cover;float:left;margin:0 16px 8px 0;border-radius:12px;border:1px solid #e8e6de;background:#f2efe6}
#chaos-cart-drawer .woocommerce-mini-cart-item .remove{position:absolute;right:0;top:20px;display:grid;place-items:center;width:36px;height:36px;margin:0;padding:0;border:1px solid transparent;border-radius:50%;background:transparent;color:#77796e!important;text-decoration:none;font:400 23px/1 sans-serif;transition:background .15s,color .15s}
#chaos-cart-drawer .woocommerce-mini-cart-item .remove:hover{background:#f8e9e5;color:#a52d20!important;border-color:#efcfc7}
#chaos-cart-drawer .quantity{display:block;margin:8px 0 0 96px;color:#74766f;font-size:13px;font-variant-numeric:tabular-nums}
#chaos-cart-drawer .quantity .amount{color:#171816;font-weight:600}
#chaos-cart-drawer dl.variation{margin:8px 0 0 96px;padding:0;border:0;font-size:12px;color:#74766f}
#chaos-cart-drawer dl.variation dt{font-weight:600}
#chaos-cart-drawer dl.variation dd,#chaos-cart-drawer dl.variation p{margin:0}
#chaos-cart-drawer :is(.woocommerce-mini-cart__total,.elementor-menu-cart__subtotal){display:flex;align-items:center;justify-content:space-between;gap:16px;margin:24px 0 20px;padding:20px;background:#f2efe6;border:1px solid #e8e2ce;border-radius:14px;font-size:15px}
#chaos-cart-drawer :is(.woocommerce-mini-cart__total,.elementor-menu-cart__subtotal) strong{font-weight:500}
#chaos-cart-drawer :is(.woocommerce-mini-cart__total,.elementor-menu-cart__subtotal) .amount{font-size:21px;font-weight:700;letter-spacing:-.03em;font-variant-numeric:tabular-nums}
#chaos-cart-drawer :is(.woocommerce-mini-cart__buttons,.elementor-menu-cart__footer-buttons){display:flex;flex-direction:column;gap:10px;margin:0}
#chaos-cart-drawer :is(.woocommerce-mini-cart__buttons,.elementor-menu-cart__footer-buttons) :is(.button,.elementor-button){display:flex;align-items:center;justify-content:center;min-height:52px;margin:0;padding:14px 20px;border:1px solid #deddd4;border-radius:12px;background:#fff;color:#171816;font:600 14px/1.4 'CHAOSPortableInter',sans-serif;text-decoration:none;text-align:center;transition:background .15s,box-shadow .15s,transform .15s}
#chaos-cart-drawer :is(.woocommerce-mini-cart__buttons,.elementor-menu-cart__footer-buttons) :is(.checkout,.elementor-button--checkout){order:-1;border-color:#d2b85e;background:#d2b85e;box-shadow:0 4px 12px #b29a4720}
#chaos-cart-drawer :is(.woocommerce-mini-cart__buttons,.elementor-menu-cart__footer-buttons) :is(.button,.elementor-button):hover{background:#f2efe6;transform:translateY(-1px)}
#chaos-cart-drawer :is(.woocommerce-mini-cart__buttons,.elementor-menu-cart__footer-buttons) :is(.checkout,.elementor-button--checkout):hover{background:#c7ac50;box-shadow:0 6px 18px #b29a4730}
#chaos-cart-drawer .woocommerce-mini-cart__empty-message{text-align:center;padding:64px 20px;margin:16px 0;color:#74766f;font-size:16px}
#chaos-cart-drawer .woocommerce-mini-cart__empty-message:before{content:'Your next adventure starts here';display:block;margin-bottom:12px;font:600 24px/1.2 'CHAOSPortableArchivo',sans-serif;color:#171816;letter-spacing:-.03em}
#chaos-cart-drawer :is(a,button,input):focus-visible{outline:3px solid #0382cd;outline-offset:3px}
#chaos-cart-drawer input.qty{max-width:80px;min-height:44px;border:1px solid #deddd4;border-radius:8px;padding:8px;background:#fff;color:#171816}
@keyframes chaos-cart-enter{from{opacity:0;transform:translateX(32px)}to{opacity:1;transform:translateX(0)}}
@media(max-width:480px){#chaos-cart-drawer{border-radius:0}#chaos-cart-drawer .chaos-cart-heading{padding:24px 20px 20px}#chaos-cart-drawer .widget_shopping_cart{padding:8px 20px max(24px,env(safe-area-inset-bottom))}#chaos-cart-drawer .woocommerce-mini-cart-item{padding-right:44px}#chaos-cart-drawer .woocommerce-mini-cart-item .remove{width:44px;height:44px}#chaos-cart-drawer .woocommerce-mini-cart-item img{width:64px;height:64px;margin-right:12px}#chaos-cart-drawer dl.variation,#chaos-cart-drawer .quantity{margin-left:76px}}
@media(prefers-reduced-motion:reduce){#chaos-cart-drawer[open]{animation:none}#chaos-cart-drawer *{transition:none!important}}
/* Keep the original navigation container, disclosure and mobile CTA. */
.cpt-chaos-reference-home.cpt-chaos-reference-home .cpt-header .cpt-wp-menu{display:flex;align-items:center;flex-wrap:wrap;gap:4px 32px;list-style:none;margin:0;padding:0}
.cpt-chaos-reference-home.cpt-chaos-reference-home .cpt-wp-menu li{position:relative;list-style:none;margin:0;padding:0}
.cpt-chaos-reference-home.cpt-chaos-reference-home .cpt-wp-menu li:first-child>a{font-family:'CHAOSPortableInter',sans-serif;font-weight:500}
.cpt-chaos-reference-home.cpt-chaos-reference-home .cpt-wp-menu :is(.menu-item-has-children,.cpt-has-chevron)>a:after{content:'';width:7px;height:7px;border-right:1.5px solid;border-bottom:1.5px solid;transform:rotate(45deg);margin:0 2px 4px 4px}
.cpt-chaos-reference-home.cpt-chaos-reference-home .cpt-wp-menu .sub-menu{display:none;position:absolute;z-index:40;left:0;top:100%;min-width:190px;margin:0;padding:12px;background:#fff;border-radius:12px;box-shadow:0 8px 24px #0002}
.cpt-chaos-reference-home.cpt-chaos-reference-home .cpt-wp-menu li:hover>.sub-menu,.cpt-chaos-reference-home.cpt-chaos-reference-home .cpt-wp-menu li:focus-within>.sub-menu{display:block}
.cpt-chaos-reference-home.cpt-chaos-reference-home .cpt-wp-menu .sub-menu .sub-menu{position:static;box-shadow:none;padding-left:16px}
.cpt-chaos-reference-home.cpt-chaos-reference-home .cpt-wp-menu .current-menu-item>a{color:#0382cd}
/* Button remains a native Elementor button, now a full-row grid item. */
.cpt-chaos-reference-home.cpt-chaos-reference-home .cpt-hero-content .cpt-btn-white{grid-column:1/-1;justify-self:center;position:relative;left:-.582639vw}
@media(max-width:1199px){
.cpt-chaos-reference-home.cpt-chaos-reference-home .cpt-header .cpt-wp-menu{display:block;width:100%}
.cpt-chaos-reference-home.cpt-chaos-reference-home .cpt-header .cpt-wp-menu a{display:flex;width:100%}
.cpt-chaos-reference-home.cpt-chaos-reference-home .cpt-wp-menu .sub-menu{display:block;position:static;box-shadow:none;padding:0 0 0 16px}
}

/* Elementor/Pro Elements replaces WooCommerce's mini-cart template globally.
   Style that existing markup as well; keep the cart template and AJAX data intact. */
#chaos-cart-drawer .elementor-menu-cart__products{display:block;max-height:none;overflow:visible;padding:0;margin:0}
#chaos-cart-drawer .elementor-menu-cart__product{--chaos-cart-thumb:80px;display:grid;grid-template-columns:var(--chaos-cart-thumb) minmax(0,1fr) 36px;grid-template-rows:auto auto;gap:10px 16px;position:relative;align-items:start;padding:24px 0;margin:0;border:0;border-bottom:1px solid #e8e6de;font:inherit}
#chaos-cart-drawer .elementor-menu-cart__product>*{min-width:0;padding:0;margin:0;float:none}
#chaos-cart-drawer .elementor-menu-cart__product-image{grid-column:1;grid-row:1/3;width:var(--chaos-cart-thumb)}
#chaos-cart-drawer .elementor-menu-cart__product-image a{display:block}
#chaos-cart-drawer .elementor-menu-cart__product-image img{display:block;width:var(--chaos-cart-thumb);max-width:100%;height:var(--chaos-cart-thumb);object-fit:contain;float:none;margin:0;border:1px solid #e8e6de;border-radius:12px;background:#fff}
#chaos-cart-drawer .elementor-menu-cart__product-name{grid-column:2;grid-row:1;color:#171816;font-size:15px;line-height:1.45;font-weight:600;overflow-wrap:anywhere}
#chaos-cart-drawer .elementor-menu-cart__product-name a{color:inherit;text-decoration:none;font:inherit}
#chaos-cart-drawer .elementor-menu-cart__product dl.variation{display:block;margin:10px 0 0;padding:0;border:0;line-height:1.5;font-size:12px;font-weight:400;overflow-wrap:anywhere}
#chaos-cart-drawer .elementor-menu-cart__product dl.variation dt{display:block;float:none;margin:8px 0 0;font-size:11px;font-weight:600;color:#77796e}
#chaos-cart-drawer .elementor-menu-cart__product dl.variation dd{display:block;float:none;margin:0;color:#45483f}
#chaos-cart-drawer .elementor-menu-cart__product-price{grid-column:2;grid-row:2;font-size:14px;color:#171816}
#chaos-cart-drawer .elementor-menu-cart__product-price .quantity{margin:0;font-size:14px}
#chaos-cart-drawer .elementor-menu-cart__product-remove{grid-column:3;grid-row:1;position:static;transform:none;align-self:start;width:36px;height:36px;border:0;overflow:visible}
#chaos-cart-drawer .elementor-menu-cart__product-remove a.remove_from_cart_button{display:grid;place-items:center;position:static;opacity:1;overflow:visible;transform:none;text-indent:0;width:36px;height:36px;border:1px solid #e8e6de;border-radius:50%;color:#74766f;background:#fff;text-decoration:none;font-size:0}
#chaos-cart-drawer .elementor-menu-cart__product-remove a.remove_from_cart_button:before{content:'×';position:static;transform:none;display:block;width:auto;height:auto;background:none;font:400 23px/1 sans-serif}
#chaos-cart-drawer .elementor-menu-cart__product-remove a.remove_from_cart_button:after{content:none}
#chaos-cart-drawer .elementor-menu-cart__product-remove a.remove_from_cart_button:hover{background:#f8e9e5;color:#a52d20;border-color:#efcfc7}
/* The Elementor template supplies two removal anchors; expose WooCommerce's handler. */
#chaos-cart-drawer .elementor-menu-cart__product-remove .elementor_remove_from_cart_button{display:none}
#chaos-cart-drawer .elementor-menu-cart__product-remove:before,#chaos-cart-drawer .elementor-menu-cart__product-remove:after{content:none}
#chaos-cart-drawer .elementor-menu-cart__footer-buttons .elementor-button-text{font:inherit;color:inherit}
@media(max-width:480px){
 #chaos-cart-drawer .elementor-menu-cart__product{--chaos-cart-thumb:64px;grid-template-columns:64px minmax(0,1fr) 44px;gap:8px 12px;padding:20px 0}
 #chaos-cart-drawer .elementor-menu-cart__product-remove,#chaos-cart-drawer .elementor-menu-cart__product-remove a.remove_from_cart_button{width:44px;height:44px}
}
/* Never let a height-constrained column wrap into a second horizontal column. */
@media(max-width:1199px){
 .cpt-chaos-reference-home.cpt-chaos-reference-home .cpt-header.cpt-menu-ready #main-navigation{flex-flow:column nowrap;align-items:stretch;align-content:normal;justify-content:flex-start;width:auto;min-width:0;max-width:calc(100% - 32px);overflow-x:hidden;overflow-y:auto;text-align:left;padding:20px;scroll-padding-block:20px}
 .cpt-chaos-reference-home.cpt-chaos-reference-home #main-navigation>*{flex-shrink:0;min-width:0;max-width:100%}
 .cpt-chaos-reference-home.cpt-chaos-reference-home #main-navigation .elementor-widget-chaos-wordpress-menu,.cpt-chaos-reference-home.cpt-chaos-reference-home #main-navigation .elementor-widget-chaos-wordpress-menu>.elementor-widget-container{display:contents}
 .cpt-chaos-reference-home.cpt-chaos-reference-home #main-navigation .cpt-wp-menu{display:block;flex:none;min-width:0;width:100%;max-width:100%;margin:0;padding:0;text-align:left}
 .cpt-chaos-reference-home.cpt-chaos-reference-home #main-navigation .cpt-wp-menu li{display:block;float:none;width:100%;min-width:0;max-width:100%;margin:0;padding:0}
 .cpt-chaos-reference-home.cpt-chaos-reference-home #main-navigation .cpt-wp-menu a{display:flex;justify-content:space-between;align-items:center;width:100%;min-width:0;max-width:100%;white-space:normal;overflow-wrap:anywhere;text-align:left;font-size:20px;line-height:1.35;padding:14px 0;min-height:52px}
 .cpt-chaos-reference-home.cpt-chaos-reference-home #main-navigation .cpt-wp-menu a:after{flex-shrink:0}
 .cpt-chaos-reference-home.cpt-chaos-reference-home #main-navigation .cpt-wp-menu .sub-menu{position:static;display:block;width:100%;min-width:0;max-width:100%;margin:0;padding:0 0 0 14px;box-shadow:none;border-radius:0;background:transparent}
 .cpt-chaos-reference-home.cpt-chaos-reference-home #main-navigation .cpt-wp-menu .sub-menu a{font-size:16px;font-weight:500;min-height:48px;padding:12px 0}
 .cpt-chaos-reference-home.cpt-chaos-reference-home #main-navigation .cpt-mobile-menu-cta{width:100%;max-width:100%;white-space:normal;overflow-wrap:anywhere}
}

/* Hero alignment: preserve its grid and move only the CTA 16px lower. */
.cpt-chaos-reference-home.cpt-chaos-reference-home .cpt-hero-copy,
.cpt-chaos-reference-home.cpt-chaos-reference-home .cpt-hero-copy .cpt-src-h1{text-align:center}
.cpt-chaos-reference-home.cpt-chaos-reference-home .cpt-hero-content .cpt-btn-white{margin-top:calc(1.180556vw + 16px)}
@media(max-width:767px){
 .cpt-chaos-reference-home.cpt-chaos-reference-home .cpt-hero-content .cpt-btn-white{left:0;margin-top:40px}
}

/* Compact drawer: content-sized with a viewport cap, keeping touch targets usable. */
#chaos-cart-drawer{inset:12px 12px auto auto;width:min(380px,calc(100% - 24px));height:auto;max-height:calc(100dvh - 24px);border-radius:18px}
#chaos-cart-drawer .chaos-cart-heading{gap:12px;padding:16px 18px}
#chaos-cart-drawer .chaos-cart-eyebrow{margin-bottom:4px;font-size:9px}
#chaos-cart-drawer h2{font-size:24px}
#chaos-cart-drawer .widget_shopping_cart{padding:0 18px 18px}
#chaos-cart-drawer .woocommerce-mini-cart-item{min-height:88px;padding:16px 40px 16px 0}
#chaos-cart-drawer .woocommerce-mini-cart-item>a:not(.remove){font-size:14px}
#chaos-cart-drawer .woocommerce-mini-cart-item img{width:56px;height:56px;margin:0 12px 6px 0;border-radius:10px;object-fit:contain}
#chaos-cart-drawer .woocommerce-mini-cart-item .remove{top:12px}
#chaos-cart-drawer .woocommerce-mini-cart-item :is(.quantity,dl.variation){margin-left:68px}
#chaos-cart-drawer .elementor-menu-cart__product{--chaos-cart-thumb:56px;grid-template-columns:56px minmax(0,1fr) 36px;gap:6px 12px;padding:16px 0}
#chaos-cart-drawer .elementor-menu-cart__product-name{font-size:14px}
#chaos-cart-drawer .elementor-menu-cart__product-image img{border-radius:10px}
#chaos-cart-drawer .elementor-menu-cart__product dl.variation{margin-top:6px;line-height:1.4}
#chaos-cart-drawer .elementor-menu-cart__product dl.variation dt{margin-top:4px}
#chaos-cart-drawer :is(.woocommerce-mini-cart__total,.elementor-menu-cart__subtotal){gap:12px;margin:14px 0 12px;padding:12px 14px;border-radius:10px;font-size:14px}
#chaos-cart-drawer :is(.woocommerce-mini-cart__total,.elementor-menu-cart__subtotal) .amount{font-size:18px}
#chaos-cart-drawer :is(.woocommerce-mini-cart__buttons,.elementor-menu-cart__footer-buttons){gap:8px;padding:0}
#chaos-cart-drawer :is(.woocommerce-mini-cart__buttons,.elementor-menu-cart__footer-buttons) :is(.button,.elementor-button){min-height:44px;padding:10px 16px;border-radius:10px}
#chaos-cart-drawer .woocommerce-mini-cart__empty-message{padding:28px 12px;margin:8px 0;font-size:14px}
#chaos-cart-drawer .woocommerce-mini-cart__empty-message:before{font-size:20px;margin-bottom:8px}
@media(max-width:480px){
 #chaos-cart-drawer{inset:8px 8px auto auto;width:min(380px,calc(100% - 16px));max-height:calc(100dvh - 16px);border-radius:16px}
 #chaos-cart-drawer .chaos-cart-heading{padding:14px 16px}
 #chaos-cart-drawer .widget_shopping_cart{padding:0 16px max(16px,env(safe-area-inset-bottom))}
 #chaos-cart-drawer .woocommerce-mini-cart-item{padding-right:44px}
 #chaos-cart-drawer .woocommerce-mini-cart-item img{width:48px;height:48px;margin-right:10px}
 #chaos-cart-drawer .woocommerce-mini-cart-item :is(.quantity,dl.variation){margin-left:58px}
 #chaos-cart-drawer .elementor-menu-cart__product{--chaos-cart-thumb:48px;grid-template-columns:48px minmax(0,1fr) 44px;gap:6px 10px;padding:14px 0}
}
