/* Native Botble shell around the migrated Akademia Magii page content. */
@font-face {
    font-family: 'Trajan Pro';
    src: url('../fonts/Trajan-Pro-Regular.otf') format('opentype');
    font-style: normal;
    font-weight: 400;
    font-display: swap;
}

/* Keep headings consistent across imported Elementor pages and Botble views. */
h1, h2, h3, h4, h5, h6,
.elementor-heading-title {
    font-family: 'Trajan Pro', Georgia, serif !important;
}

body.elementor-kit-2690 { background-color: #030803; color: #e8dca4; }
body.elementor-kit-2690 .tf-header { background: #050805 !important; color: #d9bd54; border: 0; box-shadow: none; }
body.elementor-kit-2690 .tf-header a,
body.elementor-kit-2690 .tf-header .item-link { color: #d9bd54 !important; }
body.elementor-kit-2690 .tf-header .header-inner { min-height: 160px; }
body.elementor-kit-2690 .tf-header .logo-site img { width: 220px; height: auto; max-height: none; }
body.elementor-kit-2690 .main-content { background: transparent; }
body.elementor-kit-2690 .main-content .elementor { margin: 0 auto; }
body.elementor-kit-2690 .main-content .elementor-section-stretched { width: 100% !important; left: auto !important; }
.am-header-shell { min-height: 205px; display: grid; grid-template-columns: 165px 1fr 165px; align-items: start; padding: 18px 28px; background: #040704; color: #d8be64; font-family: Georgia, serif; }
.am-header-moon, .am-header-sun { display:flex; flex-direction:column; align-items:center; gap: 3px; color:#d8be64; font-size:12px; text-decoration:none; }
.am-header-moon img, .am-header-sun img { width:80px; height:80px; object-fit:contain; border-radius:50%; }
.am-header-center { display:flex; align-items:center; justify-content:space-between; min-height:112px; }
.am-header-controls { display:flex; align-items:center; gap:20px; min-width:220px; }
.am-menu-trigger { font:24px/1 Arial,sans-serif; color:#fff; text-decoration:none; }
.am-search-trigger { color:#fff; font:27px/1 Arial,sans-serif; text-decoration:none; }
.am-desktop-nav .box-nav-menu { display:flex; gap:20px; padding:0; margin:0; list-style:none; }
.am-desktop-nav .box-nav-menu > li:nth-child(n+3) { display:none; }
.am-desktop-nav .box-nav-menu a { color:#d8be64; font:13px Georgia,serif; text-transform:uppercase; letter-spacing:1px; }
.am-header-logo img { width:270px; height:auto; }
.am-header-actions { min-width:220px; display:flex; justify-content:flex-end; }
.am-header-actions .tf-list { color:#d8be64; }
body.elementor-kit-2690 .tf-header .header-inner { min-height: auto; }
@media(max-width:1100px) { .am-header-shell { grid-template-columns:90px 1fr 90px; padding:14px; } .am-header-moon img,.am-header-sun img { width:60px;height:60px; } .am-header-center { flex-wrap:wrap; justify-content:center; } .am-header-controls { min-width:auto; } .am-desktop-nav { display:none; } .am-header-actions { min-width:auto; } }
@media(max-width:700px) { .am-header-shell { min-height:130px; grid-template-columns:55px 1fr 55px; padding:10px 4px; } .am-header-moon img,.am-header-sun img {width:45px;height:45px;} .am-header-moon span,.am-header-sun span {display:none;} .am-header-logo img {width:160px;} .am-header-center {min-height:60px;} .am-header-actions {display:none;} .am-header-controls {gap:6px;} }
.am-footer { display:flex; flex-wrap:wrap; justify-content:center; gap:26px; padding:30px 20px; background:#050805; color:#d8be64; font:13px Georgia,serif; }
.am-footer a { color:inherit; text-decoration:none; }

/* Akademia Magii header and home navigation. */
.am-header-shell { --am-yellow: #ffd11a; grid-template-columns: 120px minmax(0, 1fr) 120px; column-gap: 24px; align-items: center; min-height: 230px; color: var(--am-yellow); }
.am-header-center { display: grid; grid-template-columns: minmax(0, 1fr) minmax(280px, 440px) minmax(0, 1fr); gap: 24px; min-height: 175px; }
.am-header-logo { justify-self: center; }
.am-header-logo img { width: min(100%, 440px); max-height: none; }
.am-header-controls { min-width: 0; justify-self: start; gap: 24px; }
.am-header-actions { min-width: 0; justify-self: end; }
.am-header-shell .am-desktop-nav .box-nav-menu > li:nth-child(n+3) { display: none; }
.am-header-shell .am-desktop-nav .box-nav-menu a { color: var(--am-yellow) !important; font-family: 'Trajan Pro', Georgia, serif; font-size: 16px; letter-spacing: 1.5px; }
.am-header-shell .am-desktop-nav .box-nav-menu { gap: 25px; }
.am-header-shell .am-desktop-nav .box-nav-menu .sub-menu { background: rgba(3, 5, 2, .98); min-width: 340px; padding: 12px 0; }
.am-header-shell .am-desktop-nav .box-nav-menu .sub-menu_link { display: block; padding: 10px 22px; color: var(--am-yellow) !important; }
.am-header-shell .am-desktop-nav .box-nav-menu .sub-menu_link:hover { color: #fff !important; }
.am-header-shell .am-desktop-nav .box-nav-menu .mega-menu_grouped { width: 690px !important; min-width: 690px; max-width: min(690px, 90vw); display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px 20px; }
.am-header-shell .am-desktop-nav .box-nav-menu .mega-menu_grouped .mega-menu-item { min-width: 0; }
.am-header-shell .am-desktop-nav .box-nav-menu .menu-heading { color: var(--am-yellow); }
.am-header-shell .am-desktop-nav .box-nav-menu .menu-heading a { color: var(--am-yellow) !important; text-transform: uppercase; }
.am-header-shell .am-desktop-nav .box-nav-menu .am-shop-dropdown { width: 320px !important; min-width: 320px !important; max-width: 320px !important; padding: 8px 0 !important; background: #050704 !important; z-index: 200; }
.am-header-shell .am-desktop-nav .am-shop-groups,
.am-header-shell .am-desktop-nav .am-shop-children { display: block !important; list-style: none; margin: 0 !important; padding: 0 !important; }
.am-header-shell .am-desktop-nav .am-shop-group { position: relative; display: block; width: 100% !important; min-width: 0 !important; margin: 0 !important; padding: 0 !important; }
.am-header-shell .am-desktop-nav .am-shop-group > a,
.am-header-shell .am-desktop-nav .am-shop-children a { display: block; width: 100%; padding: 11px 36px 11px 20px !important; color: var(--am-yellow) !important; font-family: 'Trajan Pro', Georgia, serif !important; font-size: 15px !important; font-weight: 400 !important; line-height: 1.35 !important; letter-spacing: .7px !important; text-transform: uppercase; text-decoration: none; white-space: normal; }
.am-header-shell .am-desktop-nav .am-shop-group > a { margin: 0 !important; }
.am-header-shell .am-desktop-nav .am-shop-group > a:hover,
.am-header-shell .am-desktop-nav .am-shop-children a:hover,
.am-header-shell .am-desktop-nav .am-shop-group:focus-within > a { color: #fff !important; background: #151a10; }
.am-header-shell .am-desktop-nav .am-shop-caret { position: absolute; right: 15px; top: 8px; color: var(--am-yellow); font: 25px/1 Georgia, serif; pointer-events: none; }
.am-header-shell .am-desktop-nav .am-shop-children { position: absolute; left: 100%; top: -8px; width: 320px; min-width: 320px; padding: 8px 0 !important; background: #050704; box-shadow: 8px 8px 18px #0008; opacity: 0; visibility: hidden; pointer-events: none; z-index: 201; }
.am-header-shell .am-desktop-nav .am-shop-group:hover > .am-shop-children,
.am-header-shell .am-desktop-nav .am-shop-group:focus-within > .am-shop-children { opacity: 1; visibility: visible; pointer-events: auto; }
.am-header-shell .am-menu-trigger, .am-header-shell .am-search-trigger { color: #fff; }
.am-header-shell .am-search-trigger { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border: 1px solid #a99f81; font-size: 24px; }
.am-search-panel { position: relative; }
.am-search-panel summary { list-style: none; cursor: pointer; }
.am-search-panel summary::-webkit-details-marker { display: none; }
.am-search-panel form { position: absolute; z-index: 100; left: 0; top: calc(100% + 12px); display: flex; align-items: center; gap: 8px; width: min(360px, 85vw); padding: 15px; background: #050805; border: 1px solid #85773e; box-shadow: 0 10px 25px #0009; }
.am-search-panel:not([open]) form { display: none; }
.am-search-panel form label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.am-search-panel form input { flex: 1; min-width: 0; padding: 9px; background: #151a11; border: 1px solid #85773e; color: #fff; }
.am-search-panel form button { border: 0; background: transparent; color: #ffd11a; font-size: 21px; }
.am-header-shell .am-header-actions .nav-icon-list { display: flex; align-items: center; gap: 14px; }
.am-header-shell .am-header-actions .nav-icon-list > li:first-child { display: none !important; }
.am-header-shell .am-header-actions .nav-icon-item { color: var(--am-yellow) !important; }
.am-header-shell .am-header-actions .nav-icon-item .icon { color: var(--am-yellow); }
.am-header-shell .icon::before { font-family: icomoon !important; font-style: normal; }
.am-header-shell .am-header-actions .nav-icon-item .count { color: var(--am-yellow); }
.am-header-shell .am-header-moon, .am-header-shell .am-header-sun { color: var(--am-yellow); }
.am-header-shell .am-header-moon span { color: #ccc; }
.am-header-shell .am-header-sun span { font-family: 'Trajan Pro', Georgia, serif; }
.elementor-8802 > .elementor-element-275ec473,
.elementor-8802 > .elementor-element-3f399554 { margin-bottom: 30px !important; }
@media (max-width: 1450px) {
    .am-header-center { grid-template-columns: minmax(0, 1fr) minmax(220px, 360px) minmax(0, 1fr); gap: 12px; }
    .am-header-logo img { width: min(100%, 360px); }
    .am-header-controls { gap: 12px; }
    .am-header-shell .am-desktop-nav .box-nav-menu { gap: 12px; }
    .am-header-shell .am-desktop-nav .box-nav-menu a { font-size: 14px; }
}
@media (max-width: 1100px) {
    .am-header-shell { grid-template-columns: 80px minmax(0, 1fr) 80px; min-height: 170px; }
    .am-header-center { display: flex; flex-wrap: nowrap; justify-content: space-between; min-height: 105px; }
    .am-header-logo img { width: min(38vw, 320px); }
}
@media (max-width: 700px) {
    .am-header-shell { grid-template-columns: 45px minmax(0, 1fr) 45px; min-height: 115px; }
    .am-header-center { min-height: 75px; gap: 6px; }
    .am-header-logo img { width: min(48vw, 240px); }
    .am-header-shell .am-search-trigger { width: 34px; height: 34px; font-size: 19px; }
    .elementor-8802 > .elementor-element-275ec473,
    .elementor-8802 > .elementor-element-3f399554 { margin-bottom: 20px !important; }
}

/* The WordPress page stylesheet uses fontello for .icon and corrupts Botble close glyphs. */
.icon-X2::before { font-family: icomoon !important; content: "\e923" !important; }

#mobileMenu.canvas-mb { width: min(360px, 90vw); background: #10130f; color: #ffd11a; }
#mobileMenu .canvas-header { position: relative; display: block; padding: 70px 22px 18px; background: #10130f; }
#mobileMenu .canvas-header .icon-close-popup { position: absolute; top: 18px; right: 18px; left: auto; display: grid; place-items: center; width: 38px; height: 38px; margin: 0; border: 1px solid #756b42; color: #ffd11a; cursor: pointer; }
#mobileMenu .canvas-header .icon-close-popup .icon { font-size: 22px; }
#mobileMenu .canvas-header .form-search-nav { display: flex; align-items: center; width: 100%; height: 46px; margin: 0; padding: 0; border: 1px solid #756b42; border-radius: 3px; background: #191d17; }
#mobileMenu .canvas-header .form-search-nav fieldset { flex: 1; min-width: 0; margin: 0; padding: 0; border: 0; }
#mobileMenu .canvas-header .form-search-nav input { width: 100%; height: 44px; padding: 0 12px; background: transparent; border: 0; color: #fff; font-size: 14px; }
#mobileMenu .canvas-header .form-search-nav .btn-action { position: static; inset: auto; display: grid; place-items: center; flex: 0 0 42px; width: 42px; height: 44px; padding: 0; border: 0; background: transparent; color: #ffd11a; transform: none; }
#mobileMenu .canvas-header .form-search-nav .btn-action svg { display: block; }
#mobileMenu .canvas-body { padding: 10px 22px 26px; overflow-y: auto; background: #10130f !important; }
#mobileMenu .mb-content-top, #mobileMenu .nav-ul-mb, #mobileMenu .nav-mb-item, #mobileMenu .sub-nav-menu, #mobileMenu .collapse { background: #10130f !important; }
#mobileMenu .nav-ul-mb { padding: 0; }
#mobileMenu .nav-mb-item { border-bottom: 1px solid #343a32; }
#mobileMenu .mb-menu-link { color: #ffd11a; font-size: 16px; line-height: 1.35; padding: 14px 0; }
#mobileMenu .sub-nav-menu { border-left: 1px solid #4e5849; margin: 0 0 12px 12px; padding-left: 15px; }
#mobileMenu .sub-nav-link { color: #e9e1bf; font-size: 14px; line-height: 1.4; padding: 9px 0; }
#mobileMenu .sub-menu-level-2 .sub-nav-link { color: #d8d2b9; font-size: 13px; }
#mobileMenu .need-help-wrap, #mobileMenu .canvas-footer { display: none; }

.am-feature { text-align: center; padding: 30px 20px 45px; margin: 0 auto 30px; color: #ffd11a; }
.am-feature-mark { display: block; width: 47px; height: auto; margin: 0 auto 12px; }
.am-feature h2 { max-width: 1500px; margin: 0 auto 12px; color: #ffd11a; font-size: clamp(26px, 3vw, 46px); line-height: 1.15; }
.am-feature p { margin: 0 auto 25px; color: #f4e5ab; font-size: clamp(17px, 1.4vw, 22px); }
.am-feature > a { display: inline-block; max-width: min(760px, 90vw); }
.am-feature-image { display: block; width: 100%; height: auto; border-radius: 20px; }

.elementor-8802 .elementor-element-97996cd .elementor-gallery__container { display: grid !important; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 5px; }
.elementor-8802 .elementor-element-97996cd .e-gallery-item { display: block; position: relative; width: 100%; aspect-ratio: 4 / 3; overflow: hidden; border-radius: 5px; }
.elementor-8802 .elementor-element-97996cd .am-gallery-image { display: block; width: 100%; height: 100%; object-fit: cover; }
.elementor-8802 .elementor-element-97996cd .elementor-gallery-item__overlay { display: none; }
.am-home-youtube { display: block; width: 100%; aspect-ratio: 16 / 9; min-height: 220px; border: 0; }
.am-allies { position: relative; padding: 42px 0 58px; color: #ffd11a; overflow: hidden; text-align: center; }
.am-allies h2 { color: #ffd11a; font-size: clamp(30px, 3vw, 48px); margin: 0 20px 10px; }
.am-allies-intro { color: #e9e1bf; margin: 0 20px 28px; }
.am-allies-stage { position: relative; width: 100%; height: clamp(250px, 27vw, 400px); margin: 10px auto; perspective: 1600px; touch-action: pan-y; cursor: grab; }
.am-allies-stage:focus-visible { outline: 2px solid #ffd11a; outline-offset: 4px; }
.am-allies-stage.is-dragging { cursor: grabbing; }
.am-allies-stage.is-dragging .am-ally-slide { transition: none; }
.am-ally-slide { position: absolute; top: 0; left: 50%; display: block; width: min(1100px, 64vw); height: 100%; overflow: hidden; border-radius: 3px; color: #fff; opacity: 0; visibility: hidden; transform: translate3d(-50%, 0, 0) scale(.7); transition: transform .5s ease, opacity .5s ease, visibility .5s; -webkit-user-drag: none; user-select: none; }
.am-ally-slide.is-active { z-index: 3; opacity: 1; visibility: visible; transform: translate3d(calc(-50% + var(--drag-x, 0px)), 0, 0) scale(1); }
.am-ally-slide.is-prev { z-index: 1; opacity: .8; visibility: visible; transform: translate3d(calc(-50% - min(760px, 58vw) + var(--drag-x, 0px)), 0, 0) scale(.82) rotateY(12deg); }
.am-ally-slide.is-next { z-index: 1; opacity: .8; visibility: visible; transform: translate3d(calc(-50% + min(760px, 58vw) + var(--drag-x, 0px)), 0, 0) scale(.82) rotateY(-12deg); }
.am-ally-slide img { display: block; width: 100%; height: 100%; object-fit: cover; -webkit-user-drag: none; pointer-events: none; }
.am-ally-slide::after { content: ""; position: absolute; inset: 0; background: rgba(0,0,0,.57); transition: background .5s; }
.am-ally-slide.is-active::after { background: linear-gradient(transparent 46%, rgba(0,0,0,.48)); }
.am-ally-slide span { position: absolute; z-index: 1; inset: auto 16px 35px; color: #fff; font-family: "Trajan Pro", Georgia, serif; font-size: clamp(18px, 2vw, 30px); text-shadow: 0 2px 4px #000; }
.am-allies-controls { position: absolute; z-index: 5; top: 55%; left: 0; display: flex; justify-content: space-between; width: 100%; padding: 0 10%; pointer-events: none; }
.am-allies-controls button { display: grid; place-items: center; width: 52px; height: 52px; padding: 0; border: 1px solid #ffd11a; border-radius: 50%; background: #111; color: #ffd11a; cursor: pointer; transition: background .2s, color .2s, transform .2s; }
.am-allies-controls button { pointer-events: auto; }
.am-allies-controls button:hover, .am-allies-controls button:focus-visible { background: #ffd11a; color: #111; transform: translateY(-2px); }
.am-allies-controls button:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
.am-allies-controls svg { display: block; width: 24px; height: 24px; }
@media (max-width: 650px) { .am-allies-stage { height: 260px; } .am-ally-slide { width: 86vw; } .am-ally-slide.is-prev { transform: translate3d(calc(-50% - 76vw + var(--drag-x, 0px)), 0, 0) scale(.82); } .am-ally-slide.is-next { transform: translate3d(calc(-50% + 76vw + var(--drag-x, 0px)), 0, 0) scale(.82); } .am-allies-controls { top: auto; bottom: 10px; justify-content: center; gap: 14px; padding: 0; } .am-allies { padding-bottom: 85px; } }
.am-ally-detail { min-height: 70vh; padding: 55px 20px 90px; color: #eee; }
.am-ally-detail-inner { max-width: 1040px; margin: auto; }
.am-ally-back { color: #ffd11a; }
.am-ally-detail h1 { color: #ffd11a; margin: 25px 0; }
.am-ally-detail-image { display: block; width: 100%; max-height: 520px; object-fit: cover; border-radius: 12px; margin-bottom: 35px; }
.am-ally-lead { font-size: 1.2rem; color: #ffd11a; }
.am-ally-content { font-size: 1.08rem; line-height: 1.8; }
.am-ally-content a { color: #ffd11a; text-decoration: underline; }
.am-compendium { padding: 48px max(20px, calc((100vw - 1380px)/2)) 75px; text-align: center; color: #fff; }
.am-compendium-mark { display: block; width: 47px; height: auto; margin: 0 auto 8px; }
.am-compendium h2 { margin: 0; color: #ffd11a; font-size: clamp(34px, 3.2vw, 55px); line-height: 1.15; }
.am-compendium-intro { max-width: 960px; margin: 20px auto 45px; color: #f4ead0; font-size: clamp(16px, 1.2vw, 20px); line-height: 1.5; }
.am-compendium-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 18px; }
.am-compendium-card { display: flex; flex-direction: column; align-items: center; min-height: 245px; padding: 18px 14px 22px; border: 1px solid rgba(255,209,26,.35); border-radius: 12px; background: rgba(0,0,0,.65); color: #fff; cursor: pointer; transition: border-color .2s, transform .2s, background .2s; }
.am-compendium-card:hover, .am-compendium-card:focus-visible { transform: translateY(-5px); border-color: #ffd11a; background: rgba(0,0,0,.85); }
.am-compendium-card:focus-visible { outline: 2px solid #ffd11a; outline-offset: 3px; }
.am-compendium-card img { width: 100%; max-width: 210px; height: 125px; object-fit: contain; margin-bottom: 12px; }
.am-compendium-card strong { display: block; color: #ffd11a; font-family: "Trajan Pro", Georgia, serif; font-size: 20px; line-height: 1.2; }
.am-compendium-card span { margin-top: 8px; color: #eee; font-size: 14px; line-height: 1.35; }
.am-compendium-dialog { width: min(1120px, calc(100vw - 34px)); max-width: none; max-height: min(88vh, 1100px); padding: 60px clamp(20px, 5vw, 80px); border: 1px solid #5c5540; background: #080906; color: #ddd; text-align: center; overflow-y: auto; }
.am-compendium-dialog::backdrop { background: rgba(0,0,0,.78); }
.am-compendium-dialog h3 { margin: 0 35px 28px; color: #ffd11a; font-size: clamp(24px, 2.4vw, 38px); }
.am-compendium-close { position: sticky; z-index: 2; float: right; top: 0; display: grid; place-items: center; width: 42px; height: 42px; margin: -40px -50px 0 0; border: 1px solid #ffd11a; background: #111; color: #ffd11a; cursor: pointer; }
.am-compendium-close svg { width: 23px; height: 23px; }
.am-compendium-dialog-content { font-size: clamp(16px, 1.1vw, 19px); line-height: 1.6; overflow-wrap: anywhere; }
.am-compendium-dialog-content > * { margin: 0 auto 24px; }
.am-compendium-dialog-content a { color: #ffd11a; text-decoration: underline; }
.am-compendium-dialog-content img { display: block; max-width: 100%; height: auto; margin: 35px auto; }
@media (max-width: 1100px) { .am-compendium-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 900px) { .am-compendium-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 650px) { .am-compendium-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; } .am-compendium-card { min-height: 200px; } .am-compendium-card img { height: 95px; } .am-compendium-card strong { font-size: 15px; } .am-compendium-card span { font-size: 12px; } .am-compendium-close { margin-right: -10px; } }

/* The imported WordPress dialog rule loads after the theme stylesheet. */
.elementor-8802 .am-compendium dialog.am-compendium-dialog[open] { position: fixed !important; inset: 50% auto auto 50% !important; transform: translate(-50%, -50%) !important; display: block !important; width: min(1120px, calc(100vw - 34px)) !important; max-width: none !important; max-height: min(88vh, 1100px) !important; margin: 0 !important; overflow-y: auto; }
#goTop { display: grid; place-items: center; width: 48px; height: 48px; background: #111 !important; color: #ffd11a !important; border: 1px solid #ffd11a !important; }
#goTop .border-progress { display: none; }
#goTop .ic-wrap, #goTop .ic-wrap svg { display: block; width: 24px; height: 24px; }
#goTop:hover, #goTop:focus-visible { background: #ffd11a !important; color: #111 !important; }
@media (max-width: 650px) {
    .elementor-8802 .elementor-element-97996cd .elementor-gallery__container { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* Ally detail and compact transition from knowledge cards to the next section. */
.am-ally-detail { background: radial-gradient(circle at 76% 20%, #244526 0, #091b0d 37%, #030803 78%); color: #eee7d1; }
.am-ally-detail h1, .am-ally-lead, .am-ally-back { color: #ffd11a !important; }
.am-ally-content { color: #eee7d1; }
.am-ally-content h2, .am-ally-content h3, .am-ally-content h4 { color: #ffd11a; }
.am-ally-content a { color: #ffd11a !important; }
.am-compendium { padding-bottom: 20px; }
.elementor-8802 > .elementor-element-32e2b235 { margin-top: 0 !important; padding-top: 15px !important; }

/* Dialog controls remain inside the scroll area; themed bars never create horizontal overflow. */
.elementor-8802 .am-compendium dialog.am-compendium-dialog[open],
.elementor-8802 .am-spells dialog.am-spell-dialog[open] {
    box-sizing: border-box !important;
    width: min(1120px, calc(100vw - 34px)) !important;
    max-width: calc(100vw - 34px) !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
    border-radius: 12px !important;
    scrollbar-width: thin;
    scrollbar-color: #b39219 #10140d;
}
.am-compendium-dialog::-webkit-scrollbar, .am-spell-dialog::-webkit-scrollbar { width: 9px; height: 9px; }
.am-compendium-dialog::-webkit-scrollbar-track, .am-spell-dialog::-webkit-scrollbar-track { background: #10140d; border-radius: 12px; }
.am-compendium-dialog::-webkit-scrollbar-thumb, .am-spell-dialog::-webkit-scrollbar-thumb { background: #b39219; border-radius: 12px; border: 2px solid #10140d; }
.am-compendium-dialog-content, .am-compendium-dialog-content * { max-width: 100%; }
.am-compendium-close { margin: -35px 0 0 0; }

.am-spells { padding: 30px max(20px, calc((100vw - 1380px)/2)) 55px; color: #fff; text-align: center; }
.am-spells-mark { display: block; width: 47px; height: auto; margin: 0 auto 10px; }
.am-spells h2 { margin: 0 0 30px; color: #ffd11a; font-size: clamp(34px, 3.2vw, 55px); }
.am-spells-slider { position: relative; overflow: hidden; touch-action: pan-y; }
.am-spells-slider:focus-visible { outline: 2px solid #ffd11a; outline-offset: -2px; }
.am-spells-track { display: flex; gap: 20px; transition: transform .45s ease; }
.am-spells-card { box-sizing: border-box; flex: 0 0 calc((100% - 20px)/2); min-height: 410px; display: flex; flex-direction: column; align-items: center; padding: 28px 35px; border: 1px solid #6f683b; border-radius: 12px; background: rgba(0,0,0,.7); }
.am-spells-card h3 { margin: 0 0 20px; color: #ffd11a; font-size: clamp(21px, 1.9vw, 29px); line-height: 1.25; }
.am-spells-card p { max-height: 230px; overflow: hidden; margin: 0 0 20px; color: #eee; font-size: 17px; line-height: 1.55; overflow-wrap: anywhere; }
.am-spells-card button { margin: auto 0 0; color: #fff; text-decoration: underline; font-weight: 700; cursor: pointer; }
.am-spells-card button:hover, .am-spells-card button:focus-visible { color: #ffd11a; }
.am-spells-prev, .am-spells-next { position: absolute; z-index: 2; top: 50%; display: grid; place-items: center; width: 48px; height: 48px; border: 1px solid #8b855d; border-radius: 50%; background: #111d; color: #ffd11a; cursor: pointer; transform: translateY(-50%); }
.am-spells-prev { left: 10px; }.am-spells-next { right: 10px; }
.am-spells-prev svg, .am-spells-next svg { width: 22px; height: 22px; }
.am-spells-prev:disabled, .am-spells-next:disabled { opacity: .35; cursor: default; }
.am-spell-dialog { padding: 60px clamp(20px, 5vw, 75px); border: 1px solid #5c5540; background: #080906; color: #eee; text-align: center; }
.am-spell-dialog::backdrop { background: rgba(0,0,0,.78); }
.elementor-8802 .am-spells dialog.am-spell-dialog[open] { position: fixed !important; inset: 50% auto auto 50% !important; transform: translate(-50%, -50%) !important; display: block !important; max-height: min(88vh, 1100px) !important; margin: 0 !important; }
.am-spell-dialog h3 { margin: 0 45px 30px; color: #ffd11a; font-size: clamp(22px, 2.4vw, 36px); }
.am-spell-close { position: sticky; z-index: 2; top: 0; float: right; display: grid; place-items: center; width: 42px; height: 42px; margin: -35px 0 0; border: 1px solid #ffd11a; background: #111; color: #ffd11a; cursor: pointer; }
.am-spell-close svg { width: 23px; height: 23px; }
.am-spell-content { font-size: 18px; line-height: 1.7; overflow-wrap: anywhere; }
.am-spell-content > * { max-width: 100%; margin: 0 auto 18px; }
.am-spell-content a { color: #ffd11a; text-decoration: underline; }
.am-home-newsletter { padding: 65px 20px 80px; background: #061007; color: #eee7d1; text-align: center; }
.am-home-newsletter > img { display: block; width: 47px; height: auto; margin: 0 auto 12px; }
.am-home-newsletter h2 { color: #ffd11a; font-size: clamp(30px, 3vw, 48px); }
.am-home-newsletter > p { max-width: 760px; margin: 15px auto 35px; font-size: 18px; }
.am-newsletter-form { display: grid; gap: 10px; max-width: 500px; margin: 0 auto; text-align: left; }
.am-newsletter-form > input { width: 100%; padding: 12px 14px; border: 1px solid #8b8051; border-radius: 7px; background: #111910; color: #fff; }
.am-newsletter-privacy { display: flex; align-items: center; gap: 8px; margin: 9px 0; }
.am-newsletter-privacy input { accent-color: #ffd11a; }
.am-newsletter-privacy a { color: #ffd11a; text-decoration: underline; }
.am-newsletter-form button { justify-content: center; padding: 13px 25px; border-radius: 7px; background: #ffd11a; color: #090a06; font-weight: 700; cursor: pointer; }
@media (max-width: 700px) { .am-spells-card { flex-basis: 100%; padding: 25px 32px; min-height: 370px; } .am-spells { padding-inline: 15px; } .am-spells-prev { left: 3px; } .am-spells-next { right: 3px; } .am-compendium-dialog, .am-spell-dialog { padding: 50px 16px 25px; } }

/* Content typography and the original homepage nebula across detail and footer. */
body { font-family: 'DM Sans', Arial, sans-serif !important; }
.main-content :where(p, li, blockquote, input, textarea, label, button),
.am-ally-detail :where(p, li, blockquote, a),
.am-footer, .tf-footer { font-family: 'DM Sans', Arial, sans-serif !important; }
.am-ally-detail {
    background-color: #071408;
    background-image: url('/themes/akademiamagii/wp-assets/wp-content/uploads/2020/08/ZIELONA-MGLAWICA-Background-scaled.jpg');
    background-position: top right;
    background-repeat: repeat;
    background-size: auto;
}
.am-footer, .tf-footer {
    background-color: #071408 !important;
    background-image: url('/themes/akademiamagii/wp-assets/wp-content/uploads/2020/08/ZIELONA-MGLAWICA-Background-scaled.jpg') !important;
    background-position: top right !important;
    background-repeat: repeat !important;
    background-size: auto !important;
    color: #f0e8ce;
}
.am-footer a, .tf-footer a { color: #ffd11a; }
.am-home-newsletter {
    box-sizing: border-box;
    max-width: 1100px;
    margin: 18px auto 42px;
    padding: 32px clamp(20px, 4vw, 50px) 38px;
    border: 1px solid rgba(255, 209, 26, .28);
    border-radius: 12px;
    background: rgba(0, 0, 0, .7);
}
.am-home-newsletter > p { margin: 8px auto 20px; font-size: 16px; }
.am-home-newsletter h2 { font-size: clamp(26px, 2.5vw, 38px); }
.am-newsletter-form { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 16px; max-width: 680px; }
.am-newsletter-field { min-width: 0; }
.am-newsletter-field label { display: block; margin-bottom: 5px; }
.am-newsletter-field input { box-sizing: border-box; width: 100%; padding: 10px 12px; border: 1px solid #8b8051; border-radius: 7px; background: #111910; color: #fff; }
.am-newsletter-privacy, .am-newsletter-form button, .am-newsletter-form .newsletter-message { grid-column: 1 / -1; }
.am-newsletter-privacy { justify-content: center; margin: 2px 0; }
.am-newsletter-form button { width: min(220px, 100%); justify-self: center; }
@media (max-width: 700px) {
    .am-home-newsletter { margin: 15px 16px 35px; padding: 25px 18px 30px; }
    .am-newsletter-form { grid-template-columns: 1fr; }
}

/* The imported Kim Jesteśmy column contains an empty heading and flex spacing. */
.elementor-8802 .elementor-element-32e2b235 .elementor-element-7e306930 > .elementor-widget-wrap {
    display: block !important;
    padding-top: 22px !important;
}
.elementor-8802 .elementor-element-32e2b235 .elementor-element-1de3603 { margin: 0 0 6px !important; }
.elementor-8802 .elementor-element-32e2b235 .elementor-element-2abc77ef { margin: 0 !important; }
.elementor-8802 .elementor-element-32e2b235 .elementor-element-2abc77ef h5:empty { display: none !important; }
.elementor-8802 .elementor-element-32e2b235 .elementor-element-2abc77ef h5:first-of-type { margin: 0 !important; padding: 0 !important; }
.elementor-8802 .elementor-element-32e2b235 .elementor-element-2abc77ef h5:first-of-type { display: none !important; }

/* The ally newsletter sits outside the imported Elementor body, so supply its backdrop. */
.am-ally-newsletter-wrap {
    display: flow-root;
    background-color: #071408;
    background-image: url('/themes/akademiamagii/wp-assets/wp-content/uploads/2020/08/ZIELONA-MGLAWICA-Background-scaled.jpg');
    background-position: top right;
    background-repeat: repeat;
    background-size: auto;
}
.am-ally-newsletter-wrap .am-home-newsletter { background: rgba(0, 0, 0, .7) !important; }

/* Shared account dialogs and commerce overlays. */
.modal-log .modal-content, #modalForgot .modal-content {
    border: 1px solid #756a3b;
    border-radius: 12px;
    background: #0b100a;
    color: #eee9d7;
    box-shadow: 0 25px 75px #000a;
}
.modal-log .title-pop, .modal-log h3, .modal-log label, .modal-log .link,
#modalForgot .title-pop, #modalForgot label { color: #ffd11a !important; }
.modal-log .desc-pop, .modal-log .cl-text-2, .modal-log .cl-text-3,
#modalForgot .desc-pop { color: #d9d3c2 !important; }
.modal-log .tf-field input, #modalForgot input {
    background: #161d14 !important;
    border: 1px solid #766e50 !important;
    border-radius: 7px;
    color: #fff !important;
}
.modal-log input::placeholder, #modalForgot input::placeholder { color: #b6b2a4 !important; }
.modal-log .icon-close-popup, #modalForgot .icon-close-popup { color: #ffd11a !important; cursor: pointer; }
.modal-log .tf-btn, #modalForgot .tf-btn { background: #ffd11a !important; color: #0b100a !important; border: 1px solid #ffd11a !important; border-radius: 7px; }
.modal-log .tf-btn.btn-stroke { background: transparent !important; color: #ffd11a !important; }
.modal-log .tf-btn:hover, #modalForgot .tf-btn:hover { background: #e6b900 !important; color: #0b100a !important; }
#shoppingCart, #shoppingCart .canvas-wrapper, #shoppingCart .popup-header,
#shoppingCart .tf-mini-cart-wrap, #shoppingCart .tf-mini-cart-main, #shoppingCart .tf-mini-cart-bottom {
    background: #0b100a !important;
    color: #eee9d7 !important;
}
#shoppingCart { border-left: 1px solid #756a3b; }
#shoppingCart :where(h5, h4, h3, .title, .label) { color: #ffd11a !important; }
#shoppingCart :where(p, span, .text) { color: #eee9d7; }
#shoppingCart .icon-close-popup, #shoppingCart .icon-X2 { color: #ffd11a !important; cursor: pointer; }
#shoppingCart .cart-threshold { background: #171e14 !important; border: 1px solid #605834; border-radius: 10px; }
#shoppingCart .tf-progress-bar { background: #323a2d !important; }
#shoppingCart .tf-progress-bar .value { background: #ffd11a !important; }
#shoppingCart .tf-btn { background: #ffd11a !important; color: #0b100a !important; border: 1px solid #ffd11a !important; border-radius: 7px; }
#shoppingCart .tf-btn.btn-stroke { background: transparent !important; color: #ffd11a !important; }
#shoppingCart .tf-minicart-recommendations { background: #11180f !important; color: #eee9d7; }
.section-page-title, .section-wishlist, .section-404 {
    background-color: #071408 !important;
    background-image: url('/themes/akademiamagii/wp-assets/wp-content/uploads/2020/08/ZIELONA-MGLAWICA-Background-scaled.jpg') !important;
    background-position: top right;
    background-repeat: repeat;
    color: #eee9d7;
}
.section-page-title :where(h3, h4), .section-wishlist :where(h3, h4), .section-404 :where(h2, h3) { color: #ffd11a !important; }
.section-page-title :where(p, .cl-text-2), .section-wishlist :where(p, .cl-text-2), .section-404 :where(p, .cl-text-2) { color: #eee9d7 !important; }
.section-wishlist .empty-state .icon { color: #ffd11a !important; }
.section-wishlist .tf-btn, .section-404 .tf-btn { background: #ffd11a !important; border: 1px solid #ffd11a !important; border-radius: 7px; color: #0b100a !important; }
.section-wishlist .tf-btn.btn-stroke, .section-404 .tf-btn.btn-stroke { background: #10170f !important; color: #ffd11a !important; }
.section-404 .image img { max-width: min(620px, 75vw); height: auto; filter: invert(1); }
.elementor-5996 .e-hosted-video { width: min(420px, 90vw) !important; max-width: 100% !important; margin-inline: auto !important; }
.elementor-5996 .e-hosted-video video { display: block; width: 100% !important; height: auto !important; aspect-ratio: 9 / 16; object-fit: contain; }

/* Final shared account and drawer sizing. */
#sign .icon-close-popup, #register .icon-close-popup, #modalForgot .icon-close-popup {
    display: grid !important;
    place-items: center;
    width: 42px;
    height: 42px;
    border: 1px solid #ffd11a !important;
    border-radius: 50%;
    background: #12180e !important;
    color: #ffd11a !important;
}
#sign .icon-close-popup:hover, #register .icon-close-popup:hover, #modalForgot .icon-close-popup:hover { background: #ffd11a !important; color: #111 !important; }
#sign .icon-close-popup i, #register .icon-close-popup i, #modalForgot .icon-close-popup i { color: inherit !important; }
#shoppingCart.popup-shopping-cart { width: min(430px, 100vw) !important; max-width: 100vw !important; }
/* Editable spell archive and article pages. */
.am-spell-page{min-height:65vh;padding:48px 24px 80px;background:#071407 url('/themes/akademiamagii/wp-assets/wp-content/uploads/2020/08/ZIELONA-MGLAWICA-Background-scaled.jpg') center top/cover fixed;color:#f2edd9;font-family:'DM Sans',sans-serif}
.am-spell-shell{max-width:1180px;margin:auto}.am-spell-page h1,.am-spell-page h2{font-family:Trajan,Georgia,serif;color:#ffd21a}.am-spell-page h1{text-align:center;font-size:clamp(2rem,3vw,3.4rem);margin:0 0 38px}.am-spell-filters{display:flex;justify-content:center;flex-wrap:wrap;gap:10px;margin-bottom:24px}.am-spell-filters a{display:inline-block;background:#050805;color:#ffd21a;border:1px solid transparent;border-radius:24px;padding:9px 16px;text-decoration:none;font-weight:700}.am-spell-filters a.active,.am-spell-filters a:hover{border-color:#f2ecd5}.am-spell-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:24px}.am-spell-card{display:block;min-width:0;overflow:hidden;border-radius:12px;background:rgba(0,0,0,.78);color:#f2edd9;text-decoration:none}.am-spell-card img{display:block;width:100%;height:230px;object-fit:cover}.am-spell-card-body{padding:18px 20px 28px;min-height:190px}.am-spell-card h2{font-size:1.16rem;line-height:1.35;margin:0 0 8px}.am-spell-card p{margin:0;color:#eee;line-height:1.55}.am-spell-card:hover h2,.am-spell-back:hover{text-decoration:underline}.am-spell-pagination{margin:28px auto;text-align:center}.am-spell-detail{background:rgba(0,0,0,.76);padding:clamp(24px,5vw,64px);border:1px solid rgba(255,210,26,.22);border-radius:12px}.am-spell-back{color:#ffd21a;text-decoration:none}.am-spell-detail h1{text-align:left;margin:24px 0}.am-spell-detail-image{display:block;width:100%;max-height:550px;object-fit:cover;border-radius:12px;margin:0 0 32px}.am-spell-content{font-size:1.05rem;line-height:1.8;overflow-wrap:anywhere}.am-spell-content a{color:#ffd21a}.am-spell-content img{max-width:100%;height:auto;border-radius:12px}.am-spell-content iframe{max-width:100%}
@media(max-width:800px){.am-spell-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:540px){.am-spell-grid{grid-template-columns:1fr}.am-spell-page{background-attachment:scroll;padding:30px 16px 55px}}
/* About page uses the same nebula and readable panel as the homepage. */
.am-about-page{background:#071407 url('/themes/akademiamagii/wp-assets/wp-content/uploads/2020/08/ZIELONA-MGLAWICA-Background-scaled.jpg') center top/cover fixed;padding:40px 20px 80px;color:#f2eee2;min-height:65vh}.am-about-panel{max-width:1280px;margin:auto;padding:clamp(28px,5vw,85px);border:1px solid rgba(255,255,255,.25);border-radius:12px;background:rgba(0,0,0,.7)}.am-about-logo{display:block;width:47px;height:auto;margin:0 auto 35px}.am-about-content{font-family:'DM Sans',sans-serif;font-size:1.08rem;line-height:1.72;overflow-wrap:anywhere}.am-about-content h2{font-family:Trajan,Georgia,serif;color:#ffd21a;text-align:center;line-height:1.2;margin:32px auto 24px}.am-about-content h2:first-child{font-family:Georgia,serif;font-size:clamp(1.7rem,3vw,3rem);max-width:1000px}.am-about-content p{margin:0 0 1.35em}.am-about-content a{color:#ffd21a}@media(max-width:600px){.am-about-page{background-attachment:scroll;padding:20px 12px 50px}}
/* The original Kim jesteśmy photo gallery, now part of the editable page content. */
.am-about-gallery{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;margin:42px 0 54px}.am-about-gallery a{display:block;aspect-ratio:3/4;overflow:hidden;border-radius:12px;background:#0c150b}.am-about-gallery img{display:block;width:100%;height:100%;object-fit:cover;transition:transform .25s ease}.am-about-gallery a:hover img{transform:scale(1.035)}@media(max-width:850px){.am-about-gallery{grid-template-columns:repeat(3,minmax(0,1fr))}}@media(max-width:550px){.am-about-gallery{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}}
/* About gallery lightbox. */
.am-gallery-dialog{position:fixed;inset:0;margin:auto;padding:0;max-width:min(1100px,calc(100vw - 24px));max-height:calc(100dvh - 24px);width:100%;border:1px solid rgba(255,210,26,.55);border-radius:12px;background:#0c120b;color:#ffd21a;overflow:hidden;box-shadow:0 20px 70px #000b}.am-gallery-dialog::backdrop{background:rgba(0,0,0,.84)}.am-gallery-dialog-inner{display:grid;grid-template-columns:52px minmax(0,1fr) 52px;grid-template-rows:minmax(0,1fr) auto;align-items:center;gap:8px;padding:56px 12px 14px;max-height:calc(100dvh - 24px)}.am-gallery-dialog img{grid-column:2;grid-row:1;display:block;max-width:100%;max-height:calc(100dvh - 120px);width:auto;height:auto;object-fit:contain;margin:auto}.am-gallery-dialog button{display:grid;place-items:center;width:42px;height:42px;border:1px solid #ffd21a;border-radius:50%;background:#0c120b;color:#ffd21a;font-size:26px;line-height:1;cursor:pointer}.am-gallery-dialog button:hover,.am-gallery-dialog button:focus-visible{background:#ffd21a;color:#0c120b}.am-gallery-close{position:absolute;right:16px;top:12px}.am-gallery-prev{grid-column:1;grid-row:1}.am-gallery-next{grid-column:3;grid-row:1}.am-gallery-position{grid-column:1/4;grid-row:2;text-align:center;font:600 14px 'DM Sans',sans-serif}@media(max-width:550px){.am-gallery-dialog-inner{grid-template-columns:34px minmax(0,1fr) 34px;gap:2px;padding:55px 5px 12px}.am-gallery-dialog button{width:32px;height:32px;font-size:21px}}
/* Mobile bottom navigation: clear icons and the site's dark yellow palette. */
.tf-toolbar-bottom{background:#0d140c!important;border-top:1px solid rgba(255,210,26,.45)!important;box-shadow:0 -8px 25px #0008!important;padding:10px 4px calc(10px + env(safe-area-inset-bottom,0px))!important}.tf-toolbar-bottom .toolbar-item a{color:#ffd21a!important;gap:5px!important;min-height:54px;text-decoration:none}.tf-toolbar-bottom .toolbar-item a:hover,.tf-toolbar-bottom .toolbar-item a:focus-visible{color:#fff3a5!important}.tf-toolbar-bottom .toolbar-icon{color:inherit!important;height:25px;align-items:center;justify-content:center}.tf-toolbar-bottom .toolbar-icon svg{width:25px;height:25px;display:block;flex:none}.tf-toolbar-bottom .toolbar-label{color:inherit!important;font:600 11px/1.2 'DM Sans',sans-serif!important;text-align:center;white-space:normal}.tf-toolbar-bottom .toolbar-count{top:-7px!important;right:-12px!important;width:17px!important;height:17px!important;background:#ffd21a!important;color:#111!important;font:700 10px/17px 'DM Sans',sans-serif!important;border:1px solid #0d140c}
/* Mobile search dialog, shared by the bottom navigation and other search triggers. */
#search.modal-search .modal-dialog{max-width:min(620px,calc(100vw - 24px));margin:12px auto}#search.modal-search .modal-content{background:#10150e!important;border:1px solid rgba(255,210,26,.55)!important;border-radius:12px!important;color:#eee8d7!important;padding:clamp(20px,4vw,32px)!important;box-shadow:0 20px 60px #000b}#search.modal-search h3,#search.modal-search .h5{color:#ffd21a!important;font-family:'Trajan Pro',Georgia,serif!important}#search.modal-search h3{font-size:clamp(1.5rem,5vw,2rem);margin:0}#search.modal-search .icon-close-popup{display:grid!important;place-items:center!important;position:static!important;width:42px!important;height:42px!important;min-width:42px;border:1px solid #ffd21a!important;border-radius:50%!important;background:transparent!important;color:#ffd21a!important;font:30px/1 Arial,sans-serif!important;cursor:pointer}#search.modal-search .icon-close-popup:hover,#search.modal-search .icon-close-popup:focus-visible{background:#ffd21a!important;color:#10150e!important}#search.modal-search .form-search-nav{position:relative;width:100%;margin:0}#search.modal-search .form-search-nav fieldset{width:100%;margin:0}#search.modal-search .form-search-nav input{width:100%;height:54px;padding:12px 58px 12px 18px!important;border:1px solid #8c7844!important;border-radius:10px!important;background:#1a2117!important;color:#fff!important;font:500 16px 'DM Sans',sans-serif!important}#search.modal-search .form-search-nav input::placeholder{color:#bab8ad!important}#search.modal-search .form-search-nav input:focus{outline:2px solid #ffd21a;outline-offset:2px}#search.modal-search .form-search-nav .btn-action{display:grid;place-items:center;position:absolute;top:5px;right:5px;left:auto;width:44px;height:44px;border:0;border-radius:8px;background:#ffd21a;color:#10150e}#search.modal-search .form-search-nav .btn-action svg{width:23px;height:23px}#search.modal-search .search-feature,#search.modal-search .recently-view{color:#eee8d7}#search.modal-search .link-tag{color:#ffd21a;border-color:#8c7844;background:#151b12}#search.modal-search .link-tag:hover{background:#ffd21a;color:#111}#search.modal-search .bb-quick-search-results{color:#eee8d7;background:#10150e}
/* Tighter translucent mobile header. */
@media(max-width:1199px){.tf-header.header-s2,.tf-header.header-sticky{background:#000000cf!important}.tf-header.header-s2{padding:0!important;box-shadow:none!important}.am-header-shell{grid-template-columns:52px minmax(0,1fr) 52px;column-gap:8px;min-height:112px;padding:10px 12px;background:#000000cf!important}.am-header-center{display:grid;grid-template-columns:minmax(0,1fr) auto minmax(0,1fr);gap:4px;min-height:90px}.am-header-controls{justify-self:start;gap:10px}.am-header-actions{display:none}.am-header-logo{justify-self:center}.am-header-logo img{width:min(32vw,225px);max-height:90px;object-fit:contain}.am-header-moon img,.am-header-sun img{width:52px;height:52px}.am-header-moon span,.am-header-sun span{display:none}}
@media(max-width:700px){.am-header-shell{grid-template-columns:42px minmax(0,1fr) 42px;column-gap:5px;min-height:84px;padding:6px 8px}.am-header-center{min-height:72px}.am-header-controls{gap:7px}.am-header-moon img,.am-header-sun img{width:40px;height:40px}.am-header-logo img{width:min(37vw,165px);max-height:68px}.am-header-shell .am-search-trigger{width:32px;height:32px;font-size:18px}.am-header-shell .am-menu-trigger{font-size:25px;line-height:1}}
@media(max-width:380px){.am-header-logo img{width:35vw}.am-header-controls{gap:4px}}
#search.modal-search .form-search-nav .btn-action{transform:none!important}
/* Slim translucent header; the shell supplies one glass layer without dark stacking. */
.tf-header.header-s2,.tf-header.header-s2.header-sticky,body.elementor-kit-2690 .tf-header.header-s2{background:transparent!important;padding:0!important;box-shadow:none!important}.tf-header.header-s2.header-pinned{top:0!important}.tf-header.header-sticky:not(.header-s2){background:#000000cf!important}
@media(min-width:1200px){.am-header-shell{min-height:150px;padding:10px 24px;grid-template-columns:100px minmax(0,1fr) 100px;column-gap:18px;background:#000000b8!important}.am-header-center{min-height:116px;grid-template-columns:minmax(0,1fr) minmax(260px,360px) minmax(0,1fr);gap:18px}.am-header-logo img{width:min(100%,360px);max-height:94px;object-fit:contain}.am-header-moon img,.am-header-sun img{width:64px;height:64px}.am-header-controls{gap:16px}.am-header-shell .am-desktop-nav .box-nav-menu{gap:16px}.am-header-shell .am-desktop-nav .box-nav-menu a{font-size:14px}}
@media(max-width:1199px){.tf-header.header-s2,.tf-header.header-s2.header-sticky,body.elementor-kit-2690 .tf-header.header-s2{background:transparent!important}.am-header-shell{background:#000000cf!important}}
/* Consistent yellow header controls and a single-line sun date. */
.am-header-shell .am-menu-trigger,.am-header-shell .am-search-trigger,.am-header-shell .am-header-moon,.am-header-shell .am-header-sun,.am-header-shell .am-header-moon span,.am-header-shell .am-header-sun span,.am-header-shell .am-header-actions .nav-icon-item,.am-header-shell .am-header-actions .nav-icon-item .icon{color:#ffd21a!important}.am-header-shell .am-menu-trigger:hover,.am-header-shell .am-search-trigger:hover,.am-header-shell .am-desktop-nav a:hover,.am-header-shell .am-header-actions .nav-icon-item:hover{color:#fff4ad!important}.am-header-shell .am-search-trigger{display:grid!important;place-items:center!important;width:38px!important;height:38px!important;padding:5px!important;border:0!important;border-radius:50%!important;background:transparent!important;box-shadow:none!important;cursor:pointer}.am-header-shell .am-search-trigger svg{width:26px;height:26px}.am-header-shell .am-search-trigger:focus-visible{outline:2px solid #ffd21a;outline-offset:2px}.am-header-shell .am-header-sun span{white-space:nowrap;font-size:12px;line-height:1.3}.am-header-shell .am-header-sun{justify-self:center}.am-header-shell .am-header-moon span{font-family:'Trajan Pro',Georgia,serif}
@media(min-width:1200px){.am-header-shell{grid-template-columns:120px minmax(0,1fr) 150px}}
@media(max-width:700px){.am-header-shell .am-search-trigger{width:30px!important;height:30px!important;padding:3px!important}.am-header-shell .am-search-trigger svg{width:23px;height:23px}}
/* Homepage signup request dialog, backed by the site's contact plugin. */
.am-active-signups-trigger{display:inline-block;padding:10px 18px;border:1px solid rgba(255,210,26,.3);border-radius:12px;background:rgba(0,0,0,.78);color:#ffd21a!important;font:700 clamp(16px,2vw,26px)/1.3 'DM Sans',sans-serif;text-decoration:none;cursor:pointer}.am-active-signups-trigger:hover,.am-active-signups-trigger:focus-visible{background:#ffd21a;color:#111!important}.am-active-signups-modal .modal-dialog{max-width:min(680px,calc(100vw - 24px));margin:12px auto}.am-active-signups-modal .modal-content{background:#10150e!important;border:1px solid rgba(255,210,26,.55)!important;border-radius:12px!important;color:#eee8d7!important;padding:clamp(20px,4vw,34px)!important;max-height:calc(100dvh - 24px);overflow:auto;scrollbar-color:#ffd21a #10150e}.am-signups-heading{display:flex;justify-content:space-between;gap:20px;align-items:flex-start;margin-bottom:18px}.am-signups-heading h2{margin:0 0 8px;color:#ffd21a;font:400 clamp(1.55rem,4vw,2.2rem)/1.2 'Trajan Pro',Georgia,serif}.am-signups-heading p{margin:0;color:#eee8d7;line-height:1.5}.am-signups-close{display:grid;place-items:center;flex:none;width:40px;height:40px;border:1px solid #ffd21a;border-radius:50%;background:transparent;color:#ffd21a;font:28px/1 Arial,sans-serif;cursor:pointer}.am-signups-close:hover{background:#ffd21a;color:#111}.am-active-signups-modal .contact-form{color:#eee8d7}.am-active-signups-modal .contact-form-row{margin:0 -8px}.am-active-signups-modal .contact-form-row>div{padding:0 8px}.am-active-signups-modal .tf-field,.am-active-signups-modal .am-signups-date-wrap{margin-bottom:15px}.am-active-signups-modal label{display:block;margin-bottom:6px;color:#ffd21a!important;font:600 14px 'DM Sans',sans-serif!important}.am-active-signups-modal input:not([type=checkbox]),.am-active-signups-modal textarea,.am-active-signups-modal select{width:100%;padding:11px 14px!important;border:1px solid #8c7844!important;border-radius:10px!important;background:#1a2117!important;color:#fff!important;font:500 16px 'DM Sans',sans-serif!important}.am-active-signups-modal input:focus,.am-active-signups-modal textarea:focus{outline:2px solid #ffd21a;outline-offset:2px}.am-active-signups-modal textarea{min-height:120px}.am-active-signups-modal .contact-button,.am-active-signups-modal button[type=submit]{padding:12px 24px;border:1px solid #ffd21a;border-radius:10px;background:#ffd21a;color:#111;font-weight:700}.am-active-signups-modal a{color:#ffd21a!important}.am-active-signups-modal .contact-message{border-radius:10px}
/* Compact signup call-to-action and form; preserve room for the phone country prefix. */
.elementor-8802 button.am-active-signups-trigger,.am-active-signups-trigger{display:inline-flex!important;align-items:center;justify-content:center;width:auto!important;max-width:calc(100% - 24px)!important;min-height:0!important;padding:11px 20px!important;border:1px solid rgba(255,210,26,.38)!important;border-radius:12px!important;background:#000000de!important;color:#ffd21a!important;box-shadow:none!important;font:600 clamp(15px,1.2vw,18px)/1.3 'DM Sans',sans-serif!important;letter-spacing:0!important;text-transform:none!important;text-align:center!important}.elementor-8802 button.am-active-signups-trigger:hover,.am-active-signups-trigger:hover{background:#ffd21a!important;color:#111!important}
.am-active-signups-modal .modal-dialog{max-width:min(580px,calc(100vw - 24px))!important}.am-active-signups-modal .modal-content{background:#000000de!important;font:400 14px/1.5 'DM Sans',sans-serif!important;letter-spacing:normal!important}.am-signups-heading h2{font-size:clamp(21px,3vw,28px)!important}.am-signups-heading p{font-size:14px!important;letter-spacing:normal!important}.am-active-signups-modal label{font-size:13px!important;letter-spacing:normal!important}.am-active-signups-modal input:not([type=checkbox]),.am-active-signups-modal textarea,.am-active-signups-modal select{font-size:14px!important;letter-spacing:normal!important;padding:10px 12px!important}.am-active-signups-modal input::placeholder,.am-active-signups-modal textarea::placeholder{font-size:14px!important;letter-spacing:normal!important}.am-active-signups-modal textarea{min-height:100px}.am-active-signups-modal .am-signups-date-wrap input{max-width:220px}.am-active-signups-modal .iti{width:100%;display:block}.am-active-signups-modal .iti input[name=phone_display]{padding-left:105px!important}.am-active-signups-modal .iti__country-container{max-width:100px}.am-active-signups-modal .iti__selected-country{color:#f2eee2;background:transparent}.am-active-signups-modal .iti__selected-dial-code{font-size:13px;white-space:nowrap}.am-active-signups-modal .iti__country-list{z-index:1100;background:#121810;color:#eee8d7}.am-active-signups-modal .contact-button,.am-active-signups-modal button[type=submit]{font-size:14px!important;letter-spacing:.03em!important;padding:10px 22px!important}
/* Match the mobile header glass on the bottom navigation. */
@media(max-width:1199px){.tf-toolbar-bottom{background:#000000cf!important;backdrop-filter:blur(8px);-webkit-backdrop-filter:blur(8px)}}
/* Keep the About page nebula continuous behind its translucent header. */
body.am-about-body{background:#071407 url('/themes/akademiamagii/wp-assets/wp-content/uploads/2020/08/ZIELONA-MGLAWICA-Background-scaled.jpg') center top/cover fixed!important}body.am-about-body #wrapper,body.am-about-body .main-content,body.am-about-body .am-about-page{background:transparent!important}body.am-about-body .tf-header.header-s2{background:transparent!important}@media(max-width:600px){body.am-about-body{background-attachment:scroll!important}}

/* Editorial pages and article archive */
.am-editorial-page{min-height:70vh;padding:clamp(36px,5vw,84px) 20px 90px;background:#071306 url('/themes/akademiamagii/wp-assets/wp-content/uploads/2025/08/ZIELONA-MGLAWICA-1-scaled.jpg') center top/cover fixed;color:#eee8d6;font-family:'DM Sans',sans-serif}
.am-editorial-shell{max-width:1180px;margin:auto;padding:clamp(26px,5vw,70px);border:1px solid rgba(255,211,48,.25);border-radius:12px;background:rgba(0,0,0,.78)}
.am-editorial-mark{display:flex;align-items:center;justify-content:center;margin-bottom:15px}
.am-editorial-mark img{display:block;width:47px;height:22px;object-fit:contain}
.am-editorial-page h1,.am-editorial-page h2{font-family:'Trajan Pro',Georgia,serif;color:#ffd329;line-height:1.24}
.am-editorial-page h1{text-align:center;font-size:clamp(32px,4vw,58px);margin:0 0 38px}
.am-editorial-page h2{font-size:clamp(20px,2vw,27px);margin:0 0 20px}
.am-editorial-page a{color:#ffd329}
.am-editorial-copy{font-size:18px;line-height:1.8;overflow-wrap:anywhere}
.am-editorial-copy p{margin:0 0 1.35em}
.am-editorial-copy img{max-width:100%;height:auto;border-radius:12px}
.am-editorial-video{position:relative;aspect-ratio:16/9;max-width:840px;margin:30px auto;overflow:hidden;border:1px solid rgba(255,211,48,.35);border-radius:12px;background:#000}
.am-editorial-video iframe{display:block;width:100%;height:100%;border:0}
.am-document-card,.am-playlist-card{margin:38px 0;padding:clamp(18px,3vw,32px);border:1px solid rgba(255,211,48,.23);border-radius:12px;background:rgba(0,0,0,.42)}
.am-document-card>iframe{display:block;width:100%;height:min(76vh,800px);border:0;border-radius:8px;background:#fff}
.am-document-card>a,.am-playlist-card>a{display:inline-block;margin-top:18px}
.am-news-grid,.am-blog-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:24px}
.am-news-card,.am-blog-card{overflow:hidden;border:1px solid rgba(255,211,48,.24);border-radius:12px;background:rgba(0,0,0,.52)}
.am-news-card .am-editorial-video{margin:0;max-width:none;border:0;border-radius:0}
.am-news-card h2{font-size:20px;margin:0;padding:20px}
.am-blog-card>a{display:block;height:100%;color:inherit;text-decoration:none}
.am-blog-card img{width:100%;height:230px;object-fit:cover}
.am-blog-card-body{padding:22px}
.am-blog-card h2{font-size:22px}
.am-blog-card p{line-height:1.6;color:#e0dccb}
.am-blog-card span,.am-back-link{color:#ffd329}
.am-back-link{display:inline-block;margin:0 0 28px}
.am-article-date{text-align:center;opacity:.8}
.am-article-hero{display:block;max-width:100%;width:100%;max-height:520px;object-fit:cover;border-radius:12px;margin:22px auto 36px}
.am-article-page .am-editorial-copy{max-width:850px;margin:auto}
.am-blog-pagination{margin-top:30px}
.am-blog-pagination .tf-page-pagination{display:flex;justify-content:center;align-items:center;flex-wrap:wrap;gap:8px}
.am-blog-pagination .pag-item{display:inline-flex;align-items:center;justify-content:center;min-width:46px;height:46px;margin:0;padding:0 12px;border:1px solid #ffd32977;border-radius:9px;background:#000000c9;color:#ffd329;font-weight:700;text-decoration:none}
.am-blog-pagination .pag-item.active,.am-blog-pagination a.pag-item:hover{border-color:#ffd329;background:#ffd329;color:#10150e}
.am-blog-pagination .pag-item.disabled{opacity:.45}
.am-blog-pagination .pag-item.dots{border-color:transparent;background:transparent;color:#eee}
.am-events-page .am-events-heading{margin:34px 0 24px;color:#ffd329;text-align:center;font-family:Trajan,Georgia,serif}
.am-events-page .am-events-grid + .am-events-heading{margin-top:64px}
.am-events-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:22px}
.am-events-grid--single{display:flex;justify-content:center}
.am-events-grid--single .am-event-card{width:min(100%,calc((100% - 22px)/2))}
.am-event-card{overflow:hidden;border:1px solid #ffd32955;border-radius:12px;background:#000000c9}
.am-event-card>img{display:block;width:100%;height:auto;aspect-ratio:1;object-fit:cover}
.am-event-card-body{padding:24px}
.am-event-card time,.am-event-card a{color:#ffd329}
.am-event-dates{display:flex;flex-wrap:wrap;gap:3px 14px;color:#eee9d7;font-size:14px;line-height:1.45}
.am-event-status{display:inline-block;margin-inline-start:10px;padding:3px 9px;border:1px solid #ffd32988;border-radius:7px;color:#ffd329;font-size:13px;font-weight:700}
.am-event-card h3{margin:10px 0;color:#ffd329;font:clamp(20px,2vw,28px)/1.3 Trajan,Georgia,serif}
.am-event-card p{color:#eee;line-height:1.6}
.am-event-detail h1{margin-top:22px}.am-event-date{color:#ffd329;text-align:center}.am-event-detail-image{display:block;max-width:100%;max-height:640px;margin:24px auto;border-radius:12px;object-fit:contain}.am-event-detail .am-editorial-copy{overflow-wrap:anywhere}.am-event-detail .am-editorial-copy img{max-width:100%;height:auto}.am-event-detail a{color:#ffd329}
@media(max-width:767px){.am-events-grid{grid-template-columns:1fr}.am-events-grid--single .am-event-card{width:100%}.am-events-page .am-events-grid + .am-events-heading{margin-top:48px}}
@media(max-width:767px){.am-editorial-page{background-attachment:scroll;padding:20px 12px 65px}.am-news-grid,.am-blog-grid{grid-template-columns:1fr}.am-editorial-copy{font-size:16px}.am-document-card>iframe{height:62vh}}
.am-video-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}
.am-video-card{display:block;width:100%;padding:0;overflow:hidden;text-align:left;color:#eee8d6;background:#0b120a;border:1px solid rgba(255,211,48,.22);border-radius:12px;cursor:pointer}
.am-video-card img{display:block;width:100%;aspect-ratio:16/9;object-fit:cover}
.am-video-card span{display:block;min-height:76px;padding:15px;font-weight:600;line-height:1.45}
.am-video-card:hover,.am-video-card:focus-visible{border-color:#ffd329;color:#ffd329}
.am-video-dialog{width:min(94vw,1050px);max-width:none;padding:45px 12px 12px;background:#090e07;border:1px solid #ffd329;border-radius:12px}
.am-video-dialog::backdrop{background:rgba(0,0,0,.86)}
.am-video-dialog iframe{display:block;width:100%;aspect-ratio:16/9;border:0}
.am-video-close{position:absolute;right:10px;top:3px;color:#ffd329;background:transparent;border:0;font-size:34px;cursor:pointer}
@media(max-width:850px){.am-video-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:560px){.am-video-grid{grid-template-columns:1fr}}
/* Themed editorial header, playlist headings, player and donation shortcut. */
body.am-editorial-body .tf-header.header-s2,
body.am-editorial-body .tf-header.header-s2.header-sticky,
body.am-editorial-body .am-header-shell {background:#000000cf!important}
body.am-editorial-body .main-content {background:#071306 url('/themes/akademiamagii/wp-assets/wp-content/uploads/2025/08/ZIELONA-MGLAWICA-1-scaled.jpg') center top/cover fixed!important}
.am-free-content-page .am-playlist-card h2,
.am-free-content-page .am-video-card span {text-align:center}
.am-free-content-page .am-video-card span {display:flex;align-items:center;justify-content:center}
.am-video-dialog {position:fixed;inset:0;margin:auto;max-height:min(90vh,900px);overflow:auto;box-sizing:border-box;color:#eee8d6}
.am-video-dialog-title {margin:0 42px 18px;text-align:center;color:#ffd329;font:clamp(18px,2vw,27px)/1.3 'Trajan Pro',Georgia,serif}
.am-donation-edge {position:fixed;z-index:1050;right:18px;top:42%;display:flex;flex-direction:column;align-items:center;gap:9px;width:184px;padding:0;border:0;background:transparent;color:#ffd329!important;text-align:center;cursor:pointer;filter:drop-shadow(0 3px 12px #000a)}
.am-donation-edge .am-donation-icon {display:grid;place-items:center;width:94px;height:94px;border-radius:12px;background:#000000de;transition:background .2s ease,transform .2s ease}
.am-donation-edge:hover .am-donation-icon,.am-donation-edge:focus-visible .am-donation-icon {background:#000;transform:translateY(-3px)}
.am-donation-edge img {width:76px;height:76px;object-fit:contain}
.am-donation-edge > span:last-child {display:block;width:100%;color:#ffd329;font:600 19px/1.25 'Trajan Pro',Georgia,serif;white-space:normal;overflow:visible}
.am-donation-edge:focus-visible {outline:2px solid #ffd329;outline-offset:5px;border-radius:12px}
@media(max-width:767px){body.am-editorial-body .main-content{background-attachment:scroll!important}.am-donation-edge{right:8px;top:38%;width:136px;gap:7px}.am-donation-edge .am-donation-icon{width:68px;height:68px}.am-donation-edge img{width:54px;height:54px}.am-donation-edge > span:last-child{font-size:14px}.am-video-dialog{width:96vw;padding:40px 8px 8px}.am-video-dialog-title{margin:0 35px 12px;font-size:17px}}
/* Keep the glass header consistent on articles and the other content routes. */
body:not(.am-about-body) .tf-header.header-s2,
body:not(.am-about-body) .tf-header.header-s2.header-sticky,
body:not(.am-about-body) .am-header-shell {background:#000000cf!important}
/* Continue the nebula behind translucent headers instead of showing the page gray. */
body.am-editorial-body,
body[id^="post-"] {background:#071306 url('/themes/akademiamagii/wp-assets/wp-content/uploads/2025/08/ZIELONA-MGLAWICA-1-scaled.jpg') center top/cover fixed!important}
body.am-editorial-body #wrapper,
body.am-editorial-body .main-content,
body.am-editorial-body .am-editorial-page,
body[id^="post-"] #wrapper,
body[id^="post-"] .main-content,
body[id^="post-"] .am-editorial-page {background:transparent!important}
body:has(.am-spell-page),
body:has(.am-ally-detail) {background:#071408 url('/themes/akademiamagii/wp-assets/wp-content/uploads/2020/08/ZIELONA-MGLAWICA-Background-scaled.jpg') center top/cover fixed!important}
body:has(.am-spell-page) #wrapper,
body:has(.am-spell-page) .main-content,
body:has(.am-ally-detail) #wrapper,
body:has(.am-ally-detail) .main-content {background:transparent!important}
@media(max-width:767px){body.am-editorial-body,body[id^="post-"],body:has(.am-spell-page),body:has(.am-ally-detail){background-attachment:scroll!important}}
/* Wymiana Materii form in the floating donation dialog. */
.am-donation-dialog{position:fixed;inset:0;box-sizing:border-box;width:min(620px,calc(100vw - 24px));max-width:none;max-height:calc(100dvh - 24px);margin:auto;padding:clamp(22px,4vw,38px);overflow:auto;border:1px solid rgba(255,211,41,.65);border-radius:12px;background:#10150ede;color:#f1ead6;box-shadow:0 20px 75px #000b;font-family:'DM Sans',sans-serif;scrollbar-color:#b39219 #10150e}
.am-donation-dialog::backdrop{background:#000c}
.am-donation-dialog h2{margin:0 45px 12px 0;color:#ffd329;font:clamp(25px,3vw,36px)/1.2 'Trajan Pro',Georgia,serif}
.am-donation-dialog .am-donation-intro{margin:0 0 22px;line-height:1.6}
.am-donation-dialog .am-donation-close{position:absolute;top:17px;right:17px;display:grid;place-items:center;width:38px;height:38px;border:1px solid #ffd329;border-radius:50%;background:transparent;color:#ffd329;font:28px/1 Arial,sans-serif;cursor:pointer}
.am-donation-dialog .am-donation-close:hover{background:#ffd329;color:#111}
.am-donation-dialog form{display:grid;gap:17px}
.am-donation-dialog fieldset{display:flex;flex-wrap:wrap;gap:8px;margin:0;padding:0;border:0}
.am-donation-dialog legend{display:block;float:none;flex:0 0 100%;width:100%;margin:0 0 8px;padding:0;color:#ffd329;font-weight:700;line-height:1.4}
.am-donation-dialog .skarbonka-amount-btn{padding:10px 15px;border:1px solid #8b7843;border-radius:9px;background:#1b241a;color:#f1ead6;cursor:pointer}
.am-donation-dialog .skarbonka-amount-btn[aria-pressed=true],.am-donation-dialog .skarbonka-amount-btn:hover{border-color:#ffd329;background:#ffd329;color:#111}
.am-donation-dialog label{display:grid;gap:6px;color:#ffd329;font-weight:600}
.am-donation-dialog input:not([type=checkbox]),.am-donation-dialog textarea{box-sizing:border-box;width:100%;padding:11px 12px;border:1px solid #8b7843;border-radius:9px;background:#1b241a;color:#fff;font:inherit}
.am-donation-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
.am-donation-dialog .am-donation-anonymous{display:flex;align-items:center;gap:8px;color:#f1ead6;font-weight:400}
.am-donation-dialog input[type=checkbox]{accent-color:#ffd329}
.am-donation-dialog .skarbonka-submit-btn{padding:13px 22px;border:1px solid #ffd329;border-radius:9px;background:#ffd329;color:#111;font-weight:700;cursor:pointer}
.am-donation-dialog .skarbonka-submit-btn:disabled{opacity:.5;cursor:not-allowed}
.am-donation-dialog .am-donation-secure{margin:0;text-align:center;color:#aaa;font-size:13px}
.am-donation-dialog .am-donation-feedback{margin:0;color:#ffd329;line-height:1.4}
@media(max-width:600px){.am-donation-fields{grid-template-columns:1fr}.am-donation-dialog{padding:22px 17px}.am-donation-dialog h2{font-size:25px}}
/* Contact page */
.am-contact-page .am-editorial-shell{max-width:1160px}
.am-contact-page h1{margin-bottom:12px}
.am-contact-intro{margin:0 auto 34px;text-align:center;font-size:clamp(16px,1.6vw,19px);line-height:1.6}
.am-contact-layout{display:grid;grid-template-columns:minmax(250px,.8fr) minmax(0,1.35fr);gap:22px;align-items:start}
.am-contact-details{display:grid;gap:18px}
.am-contact-detail-card,.am-contact-form-panel{min-width:0;padding:clamp(22px,3vw,34px);border:1px solid rgba(255,211,41,.32);border-radius:12px;background:#0000009e}
.am-contact-detail-card h2{margin:12px 0 14px;font-size:22px}
.am-contact-detail-card a{overflow-wrap:anywhere;text-decoration:underline;text-underline-offset:4px}
.am-contact-icon{display:grid;place-items:center;width:46px;height:46px;border:1px solid rgba(255,211,41,.55);border-radius:50%;color:#ffd329;font:25px/1 Arial,sans-serif}
.am-contact-form-panel h2{margin-bottom:24px}
.am-contact-page .contact-form-row{margin-right:-8px;margin-left:-8px}
.am-contact-page .contact-form-row>[class*=contact-column]{padding-right:8px;padding-left:8px}
.am-contact-page .tf-field{margin-bottom:17px}
.am-contact-page .tf-field>label:not(.form-check){display:block;margin-bottom:7px;color:#ffd329;font-weight:600}
.am-contact-page .contact-form input:not([type=checkbox]):not([type=hidden]),.am-contact-page .contact-form textarea{box-sizing:border-box;width:100%;min-height:47px;padding:11px 13px;border:1px solid #827149;border-radius:9px;background:#1b241a;color:#fff;font:16px/1.4 'DM Sans',sans-serif;box-shadow:none}
.am-contact-page .contact-form textarea{min-height:145px;resize:vertical}
.am-contact-page .contact-form input::placeholder,.am-contact-page .contact-form textarea::placeholder{color:#bbb9ad;opacity:1}
.am-contact-page .contact-form input:focus,.am-contact-page .contact-form textarea:focus{outline:2px solid #ffd329;outline-offset:1px;border-color:#ffd329}
.am-contact-page .iti{width:100%}
.am-contact-page .iti input[name=phone_display]{padding-left:105px}
.am-contact-page .iti__selected-country{border-right:1px solid #827149}
.am-contact-page .form-check{display:flex;align-items:flex-start;gap:10px;margin:7px 0 20px;color:#eee8d6;line-height:1.5;cursor:pointer}
.am-contact-page .form-check-input{flex:none;width:18px;height:18px;margin:2px 0 0;accent-color:#ffd329}
.am-contact-page .contact-button{min-width:160px;padding:12px 28px;border:1px solid #ffd329;border-radius:9px;background:#ffd329;color:#111;font:700 16px 'DM Sans',sans-serif;cursor:pointer}
.am-contact-page .contact-button:hover,.am-contact-page .contact-button:focus-visible{background:#111;color:#ffd329}
.am-contact-page .contact-message{margin-top:15px;line-height:1.5}
@media(max-width:800px){.am-contact-layout{grid-template-columns:1fr}.am-contact-details{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:580px){.am-contact-page .am-editorial-shell{padding:25px 17px}.am-contact-details{grid-template-columns:1fr}.am-contact-detail-card,.am-contact-form-panel{padding:22px}.am-contact-intro{margin-bottom:25px}.am-contact-page .contact-form-row>[class*=contact-column]{width:100%}}
/* Legal pages retain their published text inside the About Us reading panel. */
.am-legal-page .am-legal-panel{max-width:1120px}
.am-legal-page h1{margin:0 0 30px;text-align:center;color:#ffd329;font:clamp(29px,4vw,49px)/1.2 'Trajan Pro',Georgia,serif}
.am-legal-page .am-legal-content{color:#f2eee2;font:16px/1.75 'DM Sans',sans-serif;overflow-wrap:anywhere}
.am-legal-page .am-legal-content .elementor,.am-legal-page .am-legal-content .elementor-section,.am-legal-page .am-legal-content .elementor-container,.am-legal-page .am-legal-content .elementor-column,.am-legal-page .am-legal-content .elementor-widget-wrap,.am-legal-page .am-legal-content .elementor-widget-container{width:100%;max-width:none;min-height:0;margin:0;padding:0;background:transparent!important;box-shadow:none!important;border:0!important}
.am-legal-page .am-legal-content .elementor-widget-container :is(h2,h3,h4,h5){margin:1.5em 0 .55em;color:#ffd329;font-family:'Trajan Pro',Georgia,serif;line-height:1.3}
.am-legal-page .am-legal-content .elementor-widget-container :is(h2,h3,h4,h5):first-child{margin-top:0}
.am-legal-page .am-legal-content p{margin:0 0 1.15em;color:#f2eee2;line-height:1.75}
.am-legal-page .am-legal-content a{color:#ffd329;text-decoration:underline;text-underline-offset:3px}
.am-legal-page .am-legal-content :is(ul,ol){margin:0 0 1.2em;padding-left:1.5em}
.am-legal-page .am-legal-content li{margin-bottom:.4em}
@media(max-width:600px){.am-legal-page .am-legal-panel{padding:25px 19px}.am-legal-page .am-legal-content{font-size:15px}}
/* One centered search dialog for header and mobile navigation. */
#search.am-search-modal.show{display:flex!important;align-items:center;justify-content:center;padding:16px;background:rgba(0,0,0,.72)}
#search.am-search-modal .modal-dialog{display:block;width:min(100%,560px);max-width:560px;min-height:0;margin:0 auto!important;padding:0;transform:none!important}
#search.am-search-modal .modal-content{display:block;max-height:calc(100dvh - 32px);overflow:visible;padding:clamp(22px,4vw,32px)!important;border:1px solid rgba(255,211,41,.65)!important;border-radius:12px!important;background:#10150e!important;color:#f2eee2!important;box-shadow:0 20px 70px #000c}
#search.am-search-modal .am-search-heading{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:24px}
#search.am-search-modal .am-search-heading h3{margin:0;color:#ffd329!important;font:clamp(26px,4vw,36px)/1.15 'Trajan Pro',Georgia,serif!important}
#search.am-search-modal .icon-close-popup{display:grid!important;place-items:center!important;flex:none;width:42px!important;height:42px!important;padding:0;border:1px solid #ffd329!important;border-radius:50%!important;background:transparent!important;color:#ffd329!important;font:29px/1 Arial,sans-serif!important;cursor:pointer}
#search.am-search-modal .icon-close-popup:hover,#search.am-search-modal .icon-close-popup:focus-visible{background:#ffd329!important;color:#10150e!important}
#search.am-search-modal .am-search-form{position:relative;display:flex;align-items:stretch;width:100%;min-width:0;margin:0;padding:0;border:0;background:transparent;box-shadow:none}
#search.am-search-modal .am-search-form fieldset{display:block;flex:1;min-width:0;margin:0;padding:0;border:0}
#search.am-search-modal .am-search-form input[type=search]{display:block;box-sizing:border-box;width:100%;height:54px;margin:0;padding:12px 62px 12px 16px;border:1px solid #8c7844;border-radius:10px;background:#1a2117;color:#fff;font:500 16px/1.3 'DM Sans',sans-serif;letter-spacing:normal}
#search.am-search-modal .am-search-form input[type=search]::placeholder{color:#bab8ad;opacity:1}
#search.am-search-modal .am-search-form input[type=search]:focus{outline:2px solid #ffd329;outline-offset:2px}
#search.am-search-modal .am-search-form .btn-action{position:absolute;top:5px;right:5px;left:auto;display:grid;place-items:center;width:44px;height:44px;margin:0;padding:0;border:0;border-radius:8px;background:#ffd329;color:#10150e;transform:none!important;cursor:pointer}
#search.am-search-modal .am-search-form .btn-action:hover,#search.am-search-modal .am-search-form .btn-action:focus-visible{background:#fff0a8}
#search.am-search-modal .am-search-form .btn-action svg{width:22px;height:22px}
#search.am-search-modal .bb-quick-search-results:not(:empty){position:absolute;z-index:3;top:calc(100% + 8px);left:0;right:0;max-height:min(48vh,400px);overflow:auto;border:1px solid #8c7844;border-radius:10px;background:#10150e;color:#f2eee2;box-shadow:0 16px 35px #000a}
#search.am-search-modal .search-feature,#search.am-search-modal .recently-view{margin-top:22px}
@media(max-width:580px){#search.am-search-modal.show{padding:12px}#search.am-search-modal .modal-content{padding:22px 18px!important}#search.am-search-modal .am-search-heading{margin-bottom:20px}#search.am-search-modal .am-search-heading h3{font-size:25px}#search.am-search-modal .am-search-form input[type=search]{font-size:15px}}
/* Newsletter and legal links share one uninterrupted footer background. */
.am-footer-region{display:flow-root;overflow:hidden;padding:38px 20px 0;background:#071408 url('/themes/akademiamagii/wp-assets/wp-content/uploads/2020/08/ZIELONA-MGLAWICA-Background-scaled.jpg') center center/cover no-repeat;color:#f0e8ce}
.am-footer-region .am-home-newsletter{margin:0 auto 30px;background:#000000b3!important}
.am-footer-region .am-footer{margin:0;padding:22px 10px 30px;border:0;background:transparent!important;background-image:none!important;color:#f0e8ce}
.am-footer-region .am-footer a{color:#ffd329}
@media(max-width:700px){.am-footer-region{padding:24px 12px 0}.am-footer-region .am-home-newsletter{margin:0 auto 18px}.am-footer-region .am-footer{gap:12px 20px;padding:18px 4px calc(25px + env(safe-area-inset-bottom,0px));text-align:center}}

/* WooCommerce catalog in the Akademia Magii storefront. */
body:has(.page-shop),
body:has(.section-product-single) {
    background-color: #071408;
    background-image: url('/themes/akademiamagii/wp-assets/wp-content/uploads/2020/08/ZIELONA-MGLAWICA-Background-scaled.jpg');
    background-position: top right;
    background-repeat: repeat;
    background-size: auto;
}
body:has(.page-shop) #wrapper,
body:has(.section-product-single) #wrapper,
.main-content:has(.page-shop),
.main-content:has(.section-product-single) {
    background: transparent !important;
    color: #eee9d7;
}
.main-content:has(.page-shop) > .container { background: transparent; }
.main-content:has(.page-shop) .section-page-title,
.section-page-title-single {
    background: #0009 !important;
    background-image: none !important;
    border-bottom: 1px solid #ffd32933;
    color: #eee9d7;
}
.section-page-title-single .breadcrumbs,
.section-page-title-single .breadcrumbs a,
.section-page-title-single .nav-post-item,
.section-page-title-single .nav-all-post { color: #ffd329 !important; }
.page-shop { padding: 22px 0 58px; }
.page-shop .flat-spacing { padding-block: 30px; }
.page-shop .canvas-sidebar .canvas-wrapper,
.page-shop .bb-shop-sidebar,
.page-shop .bb-product-filter,
.page-shop .meta-filter-shop,
.page-shop .wrapper-control-shop {
    background: transparent !important;
    color: #eee9d7 !important;
}
.page-shop #filterSidebar .canvas-wrapper { background: #080f09df !important; border: 1px solid #ffd32942; border-radius: 12px; padding: 22px; }
.page-shop :where(.canvas-header .title, .bb-product-filter-title, .bb-product-filter-link, .count-text, .filter-item, label) { color: #eee9d7 !important; }
.page-shop :where(.canvas-header .title, .bb-product-filter-title) { color: #ffd329 !important; }
.page-shop :where(.bb-product-filter-link:hover, .bb-product-filter-link.active) { color: #ffd329 !important; }
.page-shop :where(select, input, .dropdown-menu, .tf-dropdown-select) { background: #121b11 !important; color: #eee9d7 !important; border-color: #85773e !important; border-radius: 8px; }
.page-shop .card-product { overflow: hidden; background: #070d08e8; border: 1px solid #ffd32935; border-radius: 12px; color: #eee9d7; }
.page-shop .card-product_wrapper { overflow: hidden; background: #10180e; }
.page-shop .card-product .product-img img { object-fit: cover; }
.page-shop .card-product_info { padding: 15px 16px 18px; }
.page-shop .card-product .name-product { color: #f3e9c7 !important; }
.page-shop .card-product .name-product:hover,
.page-shop .card-product .price-new { color: #ffd329 !important; }
.page-shop .card-product .tf-btn { background: #ffd329 !important; border-color: #ffd329 !important; color: #0a0e08 !important; border-radius: 8px; }
.page-shop .product-action_list .box-icon { background: #111b11e8 !important; color: #ffd329 !important; border: 1px solid #ffd32955; border-radius: 50%; }
.page-shop .pagination-list a { background: #10190f; color: #ffd329; border-color: #ffd32955; border-radius: 8px; }
.page-shop #filterSidebar .canvas-body,
.page-shop #filterSidebar .bb-product-form-filter,
.page-shop #filterSidebar .bb-product-filter,
.page-shop #filterSidebar .bb-product-filter-content,
.page-shop #filterSidebar .widget,
.page-shop #filterSidebar .widget-content { background: transparent !important; color: #eee9d7 !important; }
.page-shop #filterSidebar :where(a, span, small, .form-check-label, .filter-item) { color: #eee9d7; }
.page-shop #filterSidebar :where(input[type=checkbox], input[type=radio]) { accent-color: #ffd329; }
.page-shop #filterSidebar .bb-product-filter-title,
.page-shop #filterSidebar .widget-title { color: #ffd329 !important; }
.page-shop .tf-shop-control { background: #080f09df !important; border: 1px solid #ffd32942; border-radius: 12px; color: #eee9d7; padding: 10px 14px; margin-bottom: 20px; }
.page-shop .tf-shop-control :where(.tf-control-layout, .tf-view-layout-switch, .tf-control-sorting, .tf-dropdown-sort, .btn-select, .text-sort-value, .tf-control-per-page, .tf-btn-filter) { color: #eee9d7 !important; background: transparent !important; }
.page-shop .tf-shop-control .tf-view-layout-switch.active { background: #ffd329 !important; color: #0a1009 !important; border-radius: 7px; }
.page-shop .tf-shop-control .form-select { background-color: #121b11 !important; color: #eee9d7 !important; border: 1px solid #85773e !important; border-radius: 8px; }
.page-shop .tf-shop-control .dropdown-menu { background: #121b11 !important; border: 1px solid #85773e !important; }
.page-shop .tf-shop-control .select-item { color: #eee9d7 !important; }
.page-shop .tf-shop-control .select-item:hover,
.page-shop .tf-shop-control .select-item.active { background: #25301c !important; color: #ffd329 !important; }
@media (min-width: 1200px) {
    .page-shop.has-sidebar .wrapper-shop.tf-grid-layout:not(.tf-list-layout) { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; }
}
.main-content .tf-sticky-btn-atc { background: #080f09f2 !important; border-top: 1px solid #ffd32966; color: #eee9d7 !important; box-shadow: 0 -8px 28px #0008; }
.main-content .tf-sticky-btn-atc .tf-height-observer { min-height: 86px; gap: 20px; }
.main-content .tf-sticky-btn-atc .atc-product-side { display: flex; align-items: center; gap: 14px; }
.main-content .tf-sticky-btn-atc .prd_img img { border-radius: 8px; width: 56px; height: 62px; object-fit: cover; }
.main-content .tf-sticky-btn-atc :where(.name__prd, .distribute__prd) { color: #eee9d7 !important; }
.main-content .tf-sticky-btn-atc :where(.price__prd, .price-on-sale) { color: #ffd329 !important; }
.main-content .tf-sticky-btn-atc .tf-sticky-atc-actions { gap: 10px !important; }
.main-content .tf-sticky-btn-atc .tf-btn { min-height: 46px; padding: 10px 22px; border-radius: 10px !important; font-family: 'DM Sans', sans-serif; font-weight: 700; }
.main-content .tf-sticky-btn-atc .btn-add-to-cart { background: #ffd329 !important; border: 1px solid #ffd329 !important; color: #0a1009 !important; }
.main-content .tf-sticky-btn-atc .btn-buy-now { background: transparent !important; border: 1px solid #ffd329 !important; color: #ffd329 !important; }
.main-content .tf-sticky-btn-atc .btn-buy-now:hover { background: #ffd329 !important; color: #0a1009 !important; }
@media (max-width: 767px) {
    .main-content .tf-sticky-btn-atc .tf-height-observer { min-height: 70px; gap: 8px; }
    .main-content .tf-sticky-btn-atc .tf-sticky-atc-product { display: none !important; }
    .main-content .tf-sticky-btn-atc .tf-sticky-atc-infos, .main-content .tf-sticky-btn-atc .tf-sticky-atc-actions { width: 100%; }
    .main-content .tf-sticky-btn-atc .tf-btn { flex: 1; padding: 9px 10px; font-size: 13px; }
}
.section-product-single { padding: 36px 0 54px; }
.section-product-single .tf-product-info-wrap { padding: clamp(22px, 3vw, 38px); background: #080f09e8; border: 1px solid #ffd32946; border-radius: 12px; color: #eee9d7; }
.section-product-single .tf-product-info-wrap :where(.product-infor-name, .product-infor-price, .price-new, .product-infor-cate a, .meta_prd_code, .tf-product-info-list h4) { color: #ffd329 !important; }
.section-product-single .tf-product-info-wrap :where(p, .cl-text-2, .cl-text-3, span, label) { color: #eee9d7; }
.section-product-single .tf-product-media-wrap { overflow: hidden; border: 1px solid #ffd32946; border-radius: 12px; background: #080f09cf; }
.section-product-single .tf-product-media-main img { object-fit: contain; }
.section-product-single :where(input, select, textarea) { background: #131b11 !important; border: 1px solid #85773e !important; border-radius: 8px; color: #fff !important; }
.section-product-single .tf-btn { border-radius: 8px; }
.section-product-single .btn-action-price, .section-product-single .btn-add-to-cart { background: #ffd329 !important; color: #080d07 !important; border-color: #ffd329 !important; }
.main-content:has(.section-product-single) .section-product-tabs { padding: 38px 0 60px; background: transparent; }
.main-content:has(.section-product-single) .tf-product-tabs { padding: clamp(22px, 4vw, 45px); border: 1px solid #ffd32946; border-radius: 12px; background: #080f09e8; color: #eee9d7; }
.main-content:has(.section-product-single) .tf-product-tabs :where(p, li, .ck-content, .tf-btn-tab) { color: #eee9d7; }
.main-content:has(.section-product-single) .tf-product-tabs :where(h2, h3, h4, h5, a, .tf-btn-tab.active) { color: #ffd329; }
@media(max-width: 767px) {
    .page-shop { padding-top: 8px; }
    .page-shop .flat-spacing { padding-block: 16px 30px; }
    .page-shop #filterSidebar .canvas-wrapper { border-radius: 0 12px 12px 0; }
    .section-product-single { padding-block: 18px 35px; }
    .section-product-single .tf-product-info-wrap { margin-top: 20px !important; }
}

/* Commerce surfaces share the homepage background and translucent panels. */
body:has(.section-shoping-cart) { background:#071408 url('/themes/akademiamagii/wp-assets/wp-content/uploads/2020/08/ZIELONA-MGLAWICA-Background-scaled.jpg') top right repeat; }
body:has(.section-shoping-cart) #wrapper,
body:has(.section-shoping-cart) .main-content { background:transparent!important; }
body:has(.section-shoping-cart) .section-page-title { background:#0009!important; background-image:none!important; }
.page-shop #filterSidebar .canvas-wrapper { background:#000000c9!important; }
.page-shop #filterSidebar .canvas-header,
.page-shop #filterSidebar .canvas-body,
.page-shop #filterSidebar .bb-shop-sidebar,
.page-shop #filterSidebar .bb-product-filter,
.page-shop #filterSidebar .bb-product-filter-content { background:transparent!important; }
.page-shop #filterSidebar .bb-product-filter { border-color:#ffd32938!important; }
.page-shop #filterSidebar :where(.bb-product-filter-title,.canvas-header .title) { color:#ffd329!important; }
.page-shop #filterSidebar :where(label,a,.bb-product-filter-link,.input-range-label) { color:#eee9d7!important; }
.page-shop #filterSidebar :where(a:hover,a.active) { color:#ffd329!important; }
.page-shop .card-product_wrapper { aspect-ratio:1!important; background:#10180ee8!important; }
.page-shop .card-product_wrapper .product-img,
.page-shop .card-product_wrapper .product-img img { width:100%;height:100%;aspect-ratio:1!important; }
.page-shop .card-product_wrapper .product-img img { object-fit:contain!important;background:#10180e; }
.page-shop .card-product .price-wrap { margin-top:8px; }
.page-shop .card-product .price-new { font-size:clamp(17px,1.35vw,22px)!important;line-height:1.3;font-weight:700!important; }
.page-shop .card-product .price-old { font-size:15px;color:#beb8a6!important; }
.section-product-single .tf-product-media-main { aspect-ratio:1; height:auto!important;background:#090f09b8; }
.section-product-single .tf-product-media-main .swiper-wrapper,
.section-product-single .tf-product-media-main .swiper-slide,
.section-product-single .tf-product-media-main .item { height:100%!important; }
.section-product-single .tf-product-media-main .item { aspect-ratio:1;display:flex;align-items:center;justify-content:center; }
.section-product-single .tf-product-media-main .item img { width:100%!important;height:100%!important;object-fit:contain!important; }
.section-product-single .tf-product-media-thumbs .item,
.section-product-single .tf-product-media-thumbs .item img { aspect-ratio:1;object-fit:cover; }
.section-product-single .tf-product-info-wrap { background:#000000c9!important; }
.section-product-single .product-infor-name { font-size:clamp(27px,2.35vw,43px)!important;line-height:1.18!important;overflow-wrap:anywhere; }
.section-product-single .product-infor-price :where(.price-on-sale,.price-new) { color:#ffd329!important;font-size:clamp(26px,2vw,34px)!important; }
.section-product-single .tf-product-info-wrap :where(.tf-product-total-quantity,.tf-product-extra-link) { border-color:#ffd32950; }
.section-product-single .tf-product-info-wrap .btn-action-price { background:#ffd329!important;border-color:#ffd329!important;color:#10150e!important; }
.section-product-single .tf-product-info-wrap .btn-primary { background:#11180f!important;border:1px solid #ffd329!important;color:#ffd329!important; }
.section-product-single .tf-product-info-wrap .btn-primary:hover { background:#ffd329!important;color:#10150e!important; }
.section-product-single .tf-product-info-wrap .tf-btn { border-radius:10px!important; }
.section-product-single .tf-product-info-wrap .wg-quantity { background:#121b11!important;border:1px solid #ffd32975!important;border-radius:10px!important; }
.section-product-single .tf-product-info-wrap .wg-quantity :where(.btn-quantity,.quantity-product,.icon) { background:transparent!important;color:#eee9d7!important; }
.tf-sticky-btn-atc { background:#000000de!important;border-top:1px solid #ffd32966!important;color:#eee9d7!important; }
.tf-sticky-btn-atc :where(.name__prd,.distribute__prd) { color:#eee9d7!important; }
.tf-sticky-btn-atc :where(.price__prd,.price-on-sale) { color:#ffd329!important; }
.tf-sticky-btn-atc .btn-add-to-cart { background:#ffd329!important;border-color:#ffd329!important;color:#10150e!important; }
.tf-sticky-btn-atc .btn-buy-now { background:transparent!important;border:1px solid #ffd329!important;color:#ffd329!important; }
#shoppingCart .tf-mini-cart-item .name { color:#eee9d7!important;font-size:16px!important;line-height:1.4!important; }
#shoppingCart .tf-mini-cart-item .name:hover { color:#ffd329!important; }
#shoppingCart .tf-mini-cart-line-price :where(.price-new,.text-primary) { color:#ffd329!important;font-size:18px!important; }
#shoppingCart .tf-mini-cart-item .wg-quantity { background:#171f15!important;border:1px solid #ffd32970!important;border-radius:9px!important; }
#shoppingCart .tf-mini-cart-item .wg-quantity :where(button,input,i) { background:transparent!important;color:#eee9d7!important; }
#shoppingCart .tf-mini-cart-item .tf-mini-cart-image img { aspect-ratio:1;object-fit:contain;border-radius:9px; }
.section-shoping-cart { color:#eee9d7;background:transparent!important;padding-bottom:60px!important; }
.section-shoping-cart .container>.row { gap:0; }
.section-shoping-cart .tf-table-page-cart,
.section-shoping-cart .box-order-summary,
.section-shoping-cart .empty-state { background:#000000c9!important;border:1px solid #ffd32940!important;border-radius:12px!important;color:#eee9d7!important; }
.section-shoping-cart .tf-table-page-cart { width:100%; }
.section-shoping-cart .tf-table-page-cart :where(th,td){padding-inline:18px}
.section-shoping-cart .tf-table-page-cart :where(th,td):first-child{padding-inline-start:24px}
.section-shoping-cart .tf-table-page-cart :where(th,td):last-child{padding-inline-end:24px}
.section-shoping-cart .tf-table-page-cart :where(th,td) { border-color:#ffd32936!important; }
.section-shoping-cart .tf-table-page-cart :where(th,th p,.prd_name,.cart_total,.cart_price,.text-primary) { color:#eee9d7!important; }
.section-shoping-cart .tf-table-page-cart :where(.cart_total,.cart_price .price-new) { color:#ffd329!important;font-size:18px!important; }
.section-shoping-cart .tf-table-page-cart .cart_product { min-width:280px; }
.section-shoping-cart .tf-table-page-cart .img-prd img { aspect-ratio:1;object-fit:contain;border-radius:8px; }
.section-shoping-cart .tf-table-page-cart .img-prd{display:block;flex:0 0 100px;overflow:hidden;border-radius:8px}
.section-shoping-cart .tf-table-page-cart .wg-quantity{width:156px;max-width:100%;min-width:0;padding:6px 10px;border:1px solid #ffd32988;border-radius:10px;background:#121b11}
.section-shoping-cart .tf-table-page-cart .wg-quantity .btn-quantity{display:inline-flex;align-items:center;justify-content:center;min-width:32px;min-height:32px;color:#f2ecd8!important;font-size:23px}
.section-shoping-cart .tf-table-page-cart .wg-quantity .btn-quantity :where(i,i::before){color:inherit!important}
.section-shoping-cart .tf-table-page-cart .wg-quantity .btn-quantity:hover{color:#ffd329!important}
.section-shoping-cart .tf-table-page-cart .wg-quantity .quantity-product{width:44px!important;padding:0!important;border:0!important;background:transparent!important;color:#fff!important;font-weight:700}
.section-shoping-cart .box-order-summary { padding:clamp(20px,2.5vw,36px)!important; }
.section-shoping-cart .box-order-summary :where(.title,.total-order,.total-order span) { color:#ffd329!important; }
.section-shoping-cart .box-order-summary :where(p,label,.total,.subtotal span,.tax span) { color:#eee9d7!important; }
.section-shoping-cart .box-order-summary :where(.subtotal,.tax,.total-order) { border-color:#ffd32938!important; }
.section-shoping-cart :where(.tf-btn,.action-checkout) { background:#ffd329!important;border:1px solid #ffd329!important;border-radius:10px!important;color:#10150e!important; }
.section-shoping-cart .btn-line { background:transparent!important;color:#ffd329!important; }
.section-shoping-cart :where(input[type=text],.quantity-product) { background:#121b11!important;border:1px solid #85773e!important;border-radius:9px!important;color:#eee9d7!important; }
.section-shoping-cart .ip-discount-code input[type=text]{min-width:0;border-radius:10px!important}
.section-shoping-cart input::placeholder { color:#bdb9a8!important; }
@media(max-width:767px){.section-product-single .tf-product-media-main{aspect-ratio:1}.section-shoping-cart .tf-table-page-cart{min-width:650px}.section-shoping-cart .tf-table-page-cart :where(th,td){padding-inline:12px}.section-shoping-cart .tf-table-page-cart :where(th,td):first-child{padding-inline-start:16px}.section-shoping-cart .tf-table-page-cart :where(th,td):last-child{padding-inline-end:16px}.section-shoping-cart .tf-table-page-cart .img-prd{flex-basis:80px}.tf-sticky-btn-atc{bottom:var(--am-mobile-toolbar-height,0px)}}

/* Final commerce contrast and customer account surfaces. */
.page-shop #filterSidebar { background:transparent!important; }
.page-shop #filterSidebar .canvas-wrapper { background-color:rgba(0,0,0,.83)!important;background-image:none!important;backdrop-filter:blur(5px);-webkit-backdrop-filter:blur(5px);border-color:#ffd32955!important; }
.page-shop #filterSidebar .canvas-header,
.page-shop #filterSidebar .canvas-body { background-color:transparent!important;background-image:none!important; }
.section-product-single .tf-product-info-wrap .btn-action-price .price-add,
.section-product-single .tf-product-info-wrap .btn-action-price [data-bb-value="product-price"],
.tf-sticky-btn-atc .btn-add-to-cart .price-add,
.tf-sticky-btn-atc .btn-add-to-cart [data-bb-value="product-price"] { color:#10150e!important; }
.section-product-single .tf-product-info-wrap .variant-picker-label,
.section-product-single .tf-product-info-wrap .variant-picker-label-value { color:#eee9d7!important; }
.section-product-single .tf-product-info-wrap .tf-variant-dropdown .btn-select { background:#121b11!important;border:1px solid #85773e!important;border-radius:9px!important;color:#eee9d7!important; }
.section-product-single .tf-product-info-wrap .tf-variant-dropdown .btn-select :where(span,i) { color:#eee9d7!important; }
.section-product-single .tf-product-info-wrap .tf-variant-dropdown .dropdown-menu { background:#121b11!important;border:1px solid #85773e!important; }
.section-product-single .tf-product-info-wrap .tf-variant-dropdown .dropdown-item { background:transparent!important;color:#eee9d7!important; }
.section-product-single .tf-product-info-wrap .tf-variant-dropdown .dropdown-item:hover,
.section-product-single .tf-product-info-wrap .tf-variant-dropdown .dropdown-item.active { background:#25301c!important;color:#ffd329!important; }
body:has(.bb-customer-page){background:#071408 url('/themes/akademiamagii/wp-assets/wp-content/uploads/2020/08/ZIELONA-MGLAWICA-Background-scaled.jpg') top right repeat!important;}
body:has(.bb-customer-page) #wrapper,
body:has(.bb-customer-page) .main-content {background:transparent!important;}
body:has(.bb-customer-page) .section-page-title {background:#0009!important;background-image:none!important;}
.bb-customer-page {padding:38px 0 80px;color:#eee9d7!important;background:transparent!important;font-family:'DM Sans',sans-serif;}
.bb-customer-page .customer-body {overflow:hidden;border:1px solid #ffd32945;border-radius:12px;background:#000000a8;}
.bb-customer-page .bb-customer-sidebar-wrapper {background:#000000ba!important;border-right:1px solid #ffd3293d;}
.bb-customer-page .bb-customer-sidebar,
.bb-customer-page .bb-customer-sidebar-heading,
.bb-customer-page .bb-customer-navigation {background:transparent!important;}
.bb-customer-page .bb-customer-sidebar-heading {border-bottom:1px solid #ffd3293d;}
.bb-customer-page .bb-customer-sidebar-heading :where(.name,.email) {color:#eee9d7!important;}
.bb-customer-page .bb-customer-navigation .nav-link {color:#eee9d7!important;border:1px solid transparent;border-radius:9px!important;}
.bb-customer-page .bb-customer-navigation .nav-link :where(svg,i,.nav-icon) {color:#ffd329!important;}
.bb-customer-page .bb-customer-navigation .nav-link:hover {background:#ffd3291c!important;border-color:#ffd32955;color:#ffd329!important;}
.bb-customer-page .bb-customer-navigation .nav-link.active {background:#ffd329!important;color:#10150e!important;border-color:#ffd329!important;}
.bb-customer-page .bb-customer-navigation .nav-link.active :where(svg,i,.nav-icon) {color:#10150e!important;}
.bb-customer-page .bb-profile-content,
.bb-customer-page .bb-profile-main,
.bb-customer-page .bb-profile-header {background:transparent!important;color:#eee9d7!important;}
.bb-customer-page .bb-profile-header {border-bottom:1px solid #ffd3293d;}
.bb-customer-page :where(.bb-profile-header-title,h1,h2,h3,h4,h5,.card-title,.bb-customer-card-title) {color:#ffd329!important;}
.bb-customer-page :where(p,.text-muted,.card-text,.small,.label,.value) {color:#e0dcca!important;}
.bb-customer-page :where(.card,.bb-customer-profile,.bb-customer-card,.bb-customer-content-wrapper,.bb-customer-card-list>.card) {background:#090f09d9!important;border:1px solid #ffd32940!important;border-radius:12px!important;color:#eee9d7!important;box-shadow:none!important;}
.bb-customer-page :where(.card-header,.card-footer,.bb-customer-card-header,.bb-customer-card-footer) {background:transparent!important;border-color:#ffd32935!important;}
.bb-customer-page :where(.bg-primary,.bg-success,.bg-warning,.bg-info) {background-color:#ffd32928!important;}
.bb-customer-page :where(.bg-primary,.bg-success,.bg-warning,.bg-info) svg {color:#ffd329!important;}
.bb-customer-page :where(.btn-primary,.btn-success,.btn-warning,.btn-info,.btn-outline-info,.btn-dark) {background:#ffd329!important;border:1px solid #ffd329!important;border-radius:9px!important;color:#10150e!important;}
.bb-customer-page :where(.btn-primary,.btn-success,.btn-warning,.btn-info,.btn-outline-info,.btn-dark) svg {color:#10150e!important;}
.bb-customer-page :where(input,select,textarea,.form-control,.form-select) {background:#131b11!important;border:1px solid #85773e!important;border-radius:8px!important;color:#eee9d7!important;}
.bb-customer-page :where(input,textarea)::placeholder {color:#b6b3a7!important;}
.bb-customer-page :where(table,.table) {color:#eee9d7!important;--bs-table-bg:transparent;--bs-table-color:#eee9d7;--bs-table-border-color:#ffd32938;}
.bb-customer-page :where(a:not(.btn):not(.nav-link)) {color:#ffd329;}
.bb-customer-page .d-lg-none.bg-white {background:#0b120be8!important;border-color:#ffd32945!important;}
#customerSidebar {background:#0b120b!important;color:#eee9d7!important;}
#customerSidebar .offcanvas-header {border-color:#ffd32945!important;}
#customerSidebar .offcanvas-title {color:#ffd329!important;}
@media(max-width:991px){.bb-customer-page{padding:18px 0 55px}.bb-customer-page .customer-body{border-radius:10px}.bb-customer-page .bb-customer-sidebar-wrapper{border-right:0}}

/* Account panels: override Bootstrap's important bg utility classes in every view. */
.bb-customer-page .bb-profile-main .card,
.bb-customer-page .bb-profile-main .card.bg-primary,
.bb-customer-page .bb-profile-main .card.bg-success,
.bb-customer-page .bb-profile-main .card.bg-warning,
.bb-customer-page .bb-profile-main .card.bg-info,
.bb-customer-page .bb-profile-main .bb-customer-card,
.bb-customer-page .bb-profile-main .bb-customer-content-wrapper,
.bb-customer-page .bb-profile-main .bb-payment-proof-card,
.bb-customer-page .bb-profile-main .bg-white,
.bb-customer-page .bb-profile-main .bg-light {
  background:rgba(5,12,6,.88)!important;
  border:1px solid #ffd32945!important;
  border-radius:12px!important;
  color:#eee9d7!important;
  box-shadow:none!important;
  --bs-card-bg:rgba(5,12,6,.88);
}
.bb-customer-page .bb-profile-main .card .card-body,
.bb-customer-page .bb-profile-main .card .card-header,
.bb-customer-page .bb-profile-main .card .card-footer,
.bb-customer-page .bb-profile-main .bb-customer-card-body,
.bb-customer-page .bb-profile-main .bb-customer-card-header {background:transparent!important;color:#eee9d7!important;}
.bb-customer-page .bb-profile-main .card .card-title,
.bb-customer-page .bb-profile-main .bb-customer-card-title {color:#ffd329!important;}
.bb-customer-page .bb-profile-main .card .card-text,
.bb-customer-page .bb-profile-main .card .text-muted {color:#dedacc!important;}
.bb-customer-page .bb-profile-main .card .bg-primary,
.bb-customer-page .bb-profile-main .card .bg-success,
.bb-customer-page .bb-profile-main .card .bg-warning,
.bb-customer-page .bb-profile-main .card .bg-info {background:#ffd32926!important;color:#ffd329!important;}
.bb-customer-page .bb-profile-main .table,
.bb-customer-page .bb-profile-main .table th,
.bb-customer-page .bb-profile-main .table td {background-color:transparent!important;color:#eee9d7!important;border-color:#ffd32938!important;}

/* Shop page navigation. */
.page-shop .tf-page-pagination-wrap {margin:36px 0 56px;}
.page-shop .tf-page-pagination {display:flex;flex-wrap:wrap;align-items:center;justify-content:center;gap:8px;}
.page-shop .tf-page-pagination .pag-item {display:inline-flex;align-items:center;justify-content:center;min-width:44px;height:44px;margin:0;padding:0 12px;background:rgba(0,0,0,.78)!important;border:1px solid #ffd32970!important;border-radius:10px!important;color:#ffd329!important;font-size:16px;font-weight:600;line-height:1;text-decoration:none;transition:background .2s,color .2s,border-color .2s;}
.page-shop .tf-page-pagination a.pag-item:hover,
.page-shop .tf-page-pagination a.pag-item:focus-visible {background:#ffd329!important;color:#10150e!important;border-color:#ffd329!important;}
.page-shop .tf-page-pagination .pag-item.active {background:#ffd329!important;color:#10150e!important;border-color:#ffd329!important;}
.page-shop .tf-page-pagination .pag-item.disabled {opacity:.38;cursor:default;}
.page-shop .tf-page-pagination .pag-item.dots {border-color:transparent!important;background:transparent!important;color:#eee9d7!important;}
.page-shop .tf-page-pagination .pag-item svg {width:12px;height:16px;}
@media(max-width:575px){.page-shop .tf-page-pagination{gap:5px}.page-shop .tf-page-pagination .pag-item{min-width:38px;height:40px;padding:0 8px}}

/* Use the full gallery column for the product image. */
.section-product-single .tf-product-media-wrap {padding-right:0!important;}
.section-product-single .product-thumbs-slider.style-row {width:100%!important;}
.section-product-single .tf-product-media-main {width:100%!important;}

.am-gallery-dialog button[hidden] {display:none!important;}
.elementor-8802 .elementor-element-97996cd a.e-gallery-item,
.section-product-single .tf-product-media-main a.item {cursor:zoom-in;}

/* Keep all storefront dialogs translucent against the nebula background. */
.am-gallery-dialog,
.am-donation-dialog,
.am-video-dialog,
.am-active-signups-modal .modal-content,
#search.modal-search .modal-content,
.modal-log .modal-content,
#modalForgot .modal-content {background:#000000c9!important;backdrop-filter:blur(6px);-webkit-backdrop-filter:blur(6px);}

/* Related and cart suggestion cards use the same readable shop treatment. */
.section-related-products .container > .d-flex h3 {color:#ffd329!important;font-family:'Trajan Pro',Georgia,serif;}
.section-related-products .swiper-slide {height:auto;}
.section-related-products .card-product {display:flex;flex-direction:column;height:100%;overflow:hidden;border:1px solid #ffd32940!important;border-radius:12px!important;background:#000000c9!important;color:#eee9d7!important;}
.section-related-products .card-product_wrapper {width:100%;aspect-ratio:1;overflow:hidden;background:#10180ee8!important;}
.section-related-products .card-product_wrapper .product-img,
.section-related-products .card-product_wrapper .product-img img {display:block;width:100%;height:100%;aspect-ratio:1;}
.section-related-products .card-product_wrapper .product-img img {object-fit:contain!important;background:#10180e;}
.section-related-products .card-product_info {flex:1;min-height:130px;padding:16px 17px 19px!important;background:transparent!important;transform:none!important;}
.section-related-products .card-product .name-product {display:-webkit-box;overflow:hidden;-webkit-box-orient:vertical;-webkit-line-clamp:2;min-height:2.8em;color:#f2ead3!important;font-size:15px;line-height:1.4!important;}
.section-related-products .card-product .name-product:hover {color:#ffd329!important;}
.section-related-products .card-product .price-wrap {margin-top:8px;}
.section-related-products .card-product :is(.price-new,.price-on-sale) {color:#ffd329!important;font-size:19px!important;font-weight:700!important;}
.section-related-products .card-product .price-old {color:#c2bdaf!important;}
.section-related-products .card-product .tf-btn {border-radius:9px!important;background:#ffd329!important;border-color:#ffd329!important;color:#10150e!important;}
/* Homepage donation trigger follows the closing stars, above the hand image. */
.elementor-8802 .am-home-updates-card { position: relative; }
.elementor-8802 .am-home-updates-badge {
    position: absolute;
    z-index: 3;
    top: 7px;
    right: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 28px;
    height: 28px;
    padding: 0 7px;
    border-radius: 999px;
    background: #ffd326;
    color: #10150e;
    font: 700 12px/1 'DM Sans', Arial, sans-serif;
    box-shadow: 0 2px 12px rgba(0, 0, 0, .45);
    pointer-events: none;
}
.elementor-8802 .am-home-donation-opening-stars { margin-top: 0 !important; }
.elementor-8802 .am-home-donation-stars { margin-bottom: 0 !important; }
.elementor-8802 .am-home-donation-trigger {
    position: static !important;
    inset: auto !important;
    transform: none !important;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    width: fit-content;
    margin: 0 auto 6px;
    text-align: center;
}
.elementor-8802 .am-home-donation-trigger .skarbonka-modal-trigger img {
    width: 96px !important;
    height: 96px !important;
    max-width: none !important;
    object-fit: contain;
}
@media (max-width: 700px) {
    .elementor-8802 .am-home-donation-trigger .skarbonka-modal-trigger img {
        width: 88px !important;
        height: 88px !important;
    }
}
/* Let the moon, sun, and central logo lead the desktop header. */
@media (min-width: 1500px) {
    .am-header-shell { grid-template-columns: 150px minmax(0, 1fr) 150px; min-height: 190px; }
    .am-header-center { grid-template-columns: minmax(0, 1fr) minmax(320px, 500px) minmax(0, 1fr); min-height: 145px; }
    .am-header-logo img { width: min(100%, 500px); max-height: 122px; }
    .am-header-moon img, .am-header-sun img { width: 100px; height: 100px; }
}
@media (min-width: 1200px) and (max-width: 1499px) {
    .am-header-shell { grid-template-columns: 125px minmax(0, 1fr) 125px; min-height: 172px; }
    .am-header-center { grid-template-columns: minmax(0, 1fr) minmax(280px, 390px) minmax(0, 1fr); min-height: 130px; }
    .am-header-logo img { width: min(100%, 390px); max-height: 105px; }
    .am-header-moon img, .am-header-sun img { width: 80px; height: 80px; }
}
@media (min-width: 701px) and (max-width: 1199px) {
    .am-header-shell { grid-template-columns: 62px minmax(0, 1fr) 62px; min-height: 132px; }
    .am-header-logo img { width: min(34vw, 255px); max-height: 98px; }
    .am-header-moon img, .am-header-sun img { width: 62px; height: 62px; }
}
@media (max-width: 700px) {
    .am-header-shell { grid-template-columns: 48px minmax(0, 1fr) 48px; min-height: 98px; }
    .am-header-logo img { width: min(41vw, 185px); max-height: 77px; }
    .am-header-moon img, .am-header-sun img { width: 46px; height: 46px; }
}
