/* ==========================================================================
   Mapping Mantra – shop: cards, grids, product page, account, EDD checkout
   Loaded on shop pages and by the shop Elementor widgets.
   ========================================================================== */

/* ---------- Grid + cards ---------- */
.mm-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:22px}
.mm-grid--2{grid-template-columns:repeat(2,minmax(0,1fr))}
.mm-grid--4{grid-template-columns:repeat(4,minmax(0,1fr))}
.mm-grid__item[hidden]{display:none}
.mm-grid__item > .mm-card{height:100%}
@media (max-width:1020px){.mm-grid,.mm-grid--4{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media (max-width:600px){.mm-grid,.mm-grid--2,.mm-grid--4{grid-template-columns:1fr;gap:16px}}

.mm-card{position:relative;display:flex;flex-direction:column;border-radius:var(--r);background:var(--surface);border:1px solid var(--line);overflow:hidden;transition:border-color .25s,transform .25s var(--ease),box-shadow .25s}
.mm-card:hover{border-color:rgba(214,168,78,.45);transform:translateY(-4px);box-shadow:var(--shadow)}
.mm-card__thumb{position:relative;display:block;aspect-ratio:2/1;overflow:hidden;background:#000}
.mm-card__thumb img{width:100%;height:100%;object-fit:cover;transition:transform .6s var(--ease)}
.mm-card:hover .mm-card__thumb img{transform:scale(1.05)}
.mm-card__play{position:absolute;left:50%;top:50%;width:54px;height:54px;margin:-27px 0 0 -27px;border-radius:50%;display:grid;place-items:center;background:rgba(10,10,15,.65);border:1px solid rgba(255,255,255,.35);color:#fff;backdrop-filter:blur(6px);opacity:0;transition:opacity .25s}
.mm-card__play .mm-icon{margin-left:3px}
.mm-card:hover .mm-card__play,.mm-card:focus-within .mm-card__play{opacity:1}
.mm-card__badges{position:absolute;top:12px;left:12px;display:flex;gap:6px}
.mm-badge{padding:4px 9px;border-radius:999px;font-size:11px;font-weight:700;letter-spacing:.05em;color:#fff;background:rgba(10,10,15,.72);border:1px solid rgba(255,255,255,.18);backdrop-filter:blur(6px)}
.mm-badge--gold{background:var(--gold-grad);color:var(--on-gold);border:0;text-transform:uppercase}
.mm-card__body{display:flex;flex-direction:column;gap:8px;flex:1;padding:18px 18px 20px}
.mm-card__cat{font-size:12px;font-weight:600;letter-spacing:.1em;text-transform:uppercase;color:var(--gold-2)}
.mm-card__title{font:600 17px/1.35 var(--font-body);margin:0;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.mm-card__title a{color:var(--text)}
.mm-card__title a::after{content:"";position:absolute;inset:0;z-index:0}
.mm-card__title a:hover{color:var(--gold-2)}
.mm-card__foot{display:flex;align-items:center;justify-content:space-between;margin-top:auto;padding-top:10px}
.mm-card__add,.mm-card__cat{position:relative;z-index:1}
.mm-card__add{display:grid;place-items:center;width:44px;height:44px;border-radius:50%;border:1px solid var(--line-2);color:var(--text);transition:all .2s}
.mm-card__add:hover{background:var(--gold);border-color:var(--gold);color:var(--on-gold)}
.mm-card__add.is-added{background:var(--ok);border-color:var(--ok);color:#06210f}
.mm-price{font:700 20px/1 var(--font-body);color:var(--gold-2);letter-spacing:-.2px}
.mm-price small{font-size:13px;font-weight:500;color:var(--muted)}
.mm-price s{font-size:13px;font-weight:500;color:var(--dim);margin-left:6px}

/* Chips */
.mm-chips{display:flex;flex-wrap:wrap;gap:8px}
.mm-chip{display:inline-flex;align-items:center;min-height:40px;padding:0 16px;border-radius:999px;border:1px solid var(--line-2);background:none;color:var(--text-2);font-size:14px;font-weight:500;transition:all .2s;white-space:nowrap}
.mm-chip:hover{border-color:var(--gold);color:var(--gold-2)}
.mm-chip.is-active{background:var(--text);border-color:var(--text);color:var(--bg)}
.mm-grid-bar{display:flex;justify-content:space-between;align-items:center;gap:12px 16px;margin-bottom:24px;flex-wrap:wrap}
.mm-grid-bar .mm-chips{flex:1;min-width:0}
.mm-grid-bar .mm-sort{margin-left:auto}

/* Pack cards */
.mm-grid--packs{grid-template-columns:repeat(3,minmax(0,1fr))}
.mm-grid--featured{grid-template-columns:1.25fr 1fr 1fr}
.mm-pack{display:flex;flex-direction:column;border-radius:var(--r-lg);overflow:hidden;border:1px solid var(--line-2);background:var(--surface);transition:border-color .25s}
.mm-pack:hover{border-color:rgba(214,168,78,.45)}
.mm-pack__thumb{display:block;aspect-ratio:2/1;overflow:hidden;background:#000}
.mm-pack__thumb img{width:100%;height:100%;object-fit:cover;transition:transform .6s var(--ease)}
.mm-pack:hover .mm-pack__thumb img{transform:scale(1.04)}
.mm-pack__body{display:flex;flex-direction:column;gap:8px;flex:1;padding:18px 20px 20px}
.mm-pack__meta{margin:0;font-size:13px;color:var(--muted)}
.mm-pack__title{margin:0;font-size:22px}
.mm-pack__title a{color:var(--text)}
.mm-pack__desc{color:var(--muted);font-size:15px;margin:0}
.mm-pack__row{display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap;margin-top:auto;padding-top:12px}
.mm-pack--featured{grid-row:span 2;position:relative}
.mm-pack--featured::before{content:"Best value";position:absolute;top:16px;right:16px;z-index:2;padding:6px 12px;border-radius:999px;background:var(--gold-grad);color:var(--on-gold);font-size:12px;font-weight:700}
.mm-pack--featured .mm-pack__body{padding:26px}
.mm-pack--featured .mm-pack__title{font-size:32px}
.mm-pack--featured .mm-pack__row{border-top:1px solid var(--line)}
@media (max-width:1020px){.mm-grid--packs,.mm-grid--featured{grid-template-columns:1fr 1fr}.mm-pack--featured{grid-column:span 2;grid-row:auto}}
@media (max-width:600px){.mm-grid--packs,.mm-grid--featured{grid-template-columns:1fr}.mm-pack--featured{grid-column:auto}}
.mm-tags-list{display:flex;flex-wrap:wrap;gap:8px;list-style:none;margin:0;padding:0}
.mm-tags-list li{padding:6px 12px;border-radius:999px;border:1px solid rgba(214,168,78,.35);color:var(--gold-2);font-size:13px;font-weight:500}
.mm-tags-list--small li{padding:4px 10px;font-size:12px;border-color:var(--line);color:var(--text-2);background:var(--hover)}

/* ---------- Shop / collection page ---------- */
.mm-shop-head__row{display:flex;justify-content:space-between;align-items:end;gap:20px;flex-wrap:wrap}
.mm-shop-head__count{color:var(--muted);margin:0}
.mm-shop-bar{display:flex;justify-content:space-between;align-items:center;gap:16px;margin-bottom:28px;flex-wrap:wrap}
.mm-shop-bar .mm-chips{flex:1;min-width:0}
.mm-sort select{min-height:40px;width:auto;padding-right:36px;border-radius:999px}
@media (max-width:760px){.mm-shop-bar .mm-chips{flex-wrap:nowrap;overflow-x:auto;scrollbar-width:none;margin-inline:calc(var(--gutter)*-1);padding-inline:var(--gutter)}.mm-shop-bar .mm-chips::-webkit-scrollbar{display:none}}

/* ---------- Product page ---------- */
.mm-product .mm-crumbs{padding-top:24px}
.mm-product__layout{display:grid;grid-template-columns:minmax(0,1.6fr) minmax(320px,1fr);grid-template-areas:"media buy" "intro buy";grid-template-rows:auto 1fr;column-gap:clamp(24px,4vw,48px);row-gap:24px;align-items:start;margin-top:20px}
.mm-product__media{grid-area:media}
.mm-buybox{grid-area:buy}
.mm-product__intro{grid-area:intro;padding:24px;border-radius:var(--r-lg);background:var(--bg-2);border:1px solid var(--line)}
.mm-product__intro p{color:var(--muted);margin-bottom:16px}
.mm-product__intro p:last-child{margin:0}
@media (max-width:1020px){.mm-product__layout{grid-template-columns:1fr;grid-template-areas:"media" "buy" "intro"}}

.mm-player{position:relative;aspect-ratio:16/9;border-radius:var(--r-lg);overflow:hidden;background:#000;border:1px solid var(--line-2)}
.mm-player__poster,.mm-player video{width:100%;height:100%;object-fit:cover}
.mm-player iframe{position:absolute;inset:0;width:100%;height:100%;border:0}
.mm-player__play{position:absolute;inset:0;display:grid;place-items:center;border:0;background:linear-gradient(180deg,transparent,rgba(0,0,0,.35));color:var(--on-gold)}
.mm-player__play span{width:84px;height:84px;border-radius:50%;background:var(--gold-grad);display:grid;place-items:center;box-shadow:0 0 0 12px rgba(214,168,78,.18),0 20px 50px -10px rgba(214,168,78,.6);transition:transform .25s var(--ease)}
.mm-player__play:hover span{transform:scale(1.08)}
.mm-player__play .mm-icon{width:32px;height:32px;margin-left:5px}
.mm-player__label{position:absolute;left:16px;bottom:16px;padding:6px 12px;border-radius:999px;background:rgba(10,10,15,.75);border:1px solid rgba(255,255,255,.18);color:#fff;font-size:13px;font-weight:600;backdrop-filter:blur(6px);pointer-events:none}
.mm-player.is-playing .mm-player__label{display:none}
.mm-thumbs{display:grid;grid-template-columns:repeat(5,1fr);gap:10px;margin-top:12px}
.mm-thumbs__btn{aspect-ratio:16/9;padding:0;border-radius:10px;overflow:hidden;border:2px solid transparent;background:#000;opacity:.65;transition:all .2s}
.mm-thumbs__btn img{width:100%;height:100%;object-fit:cover}
.mm-thumbs__btn.is-active,.mm-thumbs__btn:hover{border-color:var(--gold);opacity:1}
@media (max-width:600px){.mm-thumbs{grid-template-columns:repeat(4,1fr)}.mm-thumbs__btn:nth-child(5){display:none}}

.mm-buybox{padding:28px;border-radius:var(--r-lg);background:var(--surface);border:1px solid var(--line-2);box-shadow:var(--shadow)}
@media (min-width:1021px){.mm-buybox{position:sticky;top:calc(var(--header-h) + 20px)}.mm-sticky-no .mm-buybox{position:static}}
.mm-buybox__cat{margin:0;font-size:12px;font-weight:600;letter-spacing:.12em;text-transform:uppercase;color:var(--gold-2)}
.mm-buybox__title{font-size:clamp(26px,2.4vw,32px);line-height:1.15;margin:10px 0 16px}
.mm-buybox__price{display:flex;align-items:baseline;gap:12px;flex-wrap:wrap}
.mm-buybox__price .mm-price{font-size:36px}
.mm-buybox__per{font-size:14px;font-weight:600;color:var(--ok)}
.mm-buybox__note{font-size:13px;color:var(--dim);margin:6px 0 22px}
.mm-buybox__license{font-size:13px;color:var(--muted);margin:14px 0 0}
.mm-buy{display:grid;gap:10px}
.mm-buy--edd .edd_download_purchase_form{margin:0}
.mm-specs{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin:24px 0 0}
.mm-specs > div{padding:12px 14px;border-radius:10px;background:var(--bg-2);border:1px solid var(--line)}
.mm-specs dt{font-size:11px;letter-spacing:.1em;text-transform:uppercase;color:var(--dim)}
.mm-specs dd{margin:2px 0 0;font-weight:600;font-size:15px}
.mm-assure{list-style:none;display:grid;gap:12px;margin:24px 0 0;padding:20px 0 0;border-top:1px solid var(--line);font-size:14px;color:var(--text-2)}
.mm-assure li{display:flex;gap:10px;align-items:flex-start}
.mm-assure .mm-icon{color:var(--ok);width:18px;height:18px;margin-top:2px}
.mm-assure a{color:var(--text-2)}
.mm-assure a:hover{color:var(--gold-2)}

.mm-tabs{position:sticky;top:var(--header-h);z-index:5;display:flex;gap:4px;margin:56px 0 0;border-bottom:1px solid var(--line);background:var(--bg);overflow-x:auto;scrollbar-width:none}
.mm-tabs::-webkit-scrollbar{display:none}
.mm-tabs a{padding:14px 18px;font-weight:600;color:var(--muted);border-bottom:2px solid transparent;white-space:nowrap}
.mm-tabs a:hover,.mm-tabs a.is-active{color:var(--text);border-color:var(--gold)}
body:not(.mm-sticky-header) .mm-tabs{top:0}
.mm-product__section{padding-top:48px;scroll-margin-top:calc(var(--header-h) + 60px)}
.mm-product__section .mm-h2{margin-bottom:8px}

.mm-loops{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;list-style:none;margin:24px 0 0;padding:0}
.mm-loop{display:flex;gap:14px;align-items:center;width:100%;padding:10px;border-radius:var(--r);background:var(--surface);border:1px solid var(--line);text-align:left;color:var(--text);transition:border-color .2s}
.mm-loop:hover,.mm-loop.is-active{border-color:rgba(214,168,78,.5)}
.mm-loop__thumb{position:relative;width:132px;flex:none;aspect-ratio:16/9;border-radius:8px;overflow:hidden;background:#000}
.mm-loop__thumb img{width:100%;height:100%;object-fit:cover}
.mm-loop__thumb .mm-icon{position:absolute;left:50%;top:50%;margin:-11px 0 0 -9px;width:22px;height:22px;color:#fff;filter:drop-shadow(0 1px 3px rgba(0,0,0,.6))}
.mm-loop__text b{display:block;font-size:15px;line-height:1.35}
.mm-loop__text span{font-size:13px;color:var(--dim)}
@media (max-width:640px){.mm-loops{grid-template-columns:1fr}.mm-loop__thumb{width:112px}}

.mm-spec-table{width:100%;max-width:760px;border-collapse:collapse;margin-top:12px}
.mm-spec-table th,.mm-spec-table td{padding:14px 16px;border-bottom:1px solid var(--line);text-align:left;font-size:15px}
.mm-spec-table th{width:40%;color:var(--muted);font-weight:500}
.mm-faq{max-width:860px;margin-top:8px}
.mm-faq details{border-bottom:1px solid var(--line)}
.mm-faq summary{display:flex;justify-content:space-between;align-items:center;gap:20px;padding:20px 0;font-weight:600;font-size:17px;cursor:pointer;list-style:none}
.mm-faq summary::-webkit-details-marker{display:none}
.mm-faq summary .mm-icon{color:var(--gold-2);transition:transform .25s}
.mm-faq details[open] summary .mm-icon{transform:rotate(45deg)}
.mm-faq details p{padding:0 40px 20px 0;color:var(--muted);margin:0}
.mm-related{padding-bottom:40px}

/* Sticky buy bar (phones/tablets) */
.mm-mbar{display:none}
@media (max-width:1020px){
  .mm-mbar{position:fixed;left:0;right:0;bottom:0;z-index:85;display:flex;align-items:center;gap:14px;padding:12px var(--gutter) calc(12px + env(safe-area-inset-bottom));background:var(--header-bg);border-top:1px solid var(--line-2);backdrop-filter:blur(12px);transform:translateY(110%);transition:transform .3s var(--ease)}
  .mm-mbar.is-on{transform:none}
  .mm-mbar > div{display:flex;flex-direction:column}
  .mm-mbar .mm-price{font-size:22px}
  .mm-mbar__meta{font-size:12px;color:var(--muted)}
  .mm-mbar .mm-btn{flex:1}
  body.single-download .mm-wa,body.single-download .mm-totop{bottom:88px}
  body.single-download .mm-totop{bottom:156px}
  body.single-download .mm-footer{padding-bottom:80px}
}

/* ---------- Account ---------- */
.mm-account{display:grid;grid-template-columns:260px minmax(0,1fr);gap:32px;align-items:start}
.mm-account--guest{grid-template-columns:1fr 1fr}
.mm-account__nav{padding:20px;border-radius:var(--r-lg);background:var(--surface);border:1px solid var(--line);position:sticky;top:calc(var(--header-h) + 20px)}
.mm-account__hello{font-family:var(--font-head);font-size:24px;margin:0 0 12px}
.mm-account__nav ul{list-style:none;margin:0;padding:0;display:grid;gap:4px}
.mm-account__nav a{display:flex;align-items:center;gap:10px;padding:11px 12px;border-radius:var(--r-sm);color:var(--text-2);font-weight:500}
.mm-account__nav a:hover,.mm-account__nav a.is-active{background:var(--hover);color:var(--gold-2)}
.mm-account__content{min-width:0}
.mm-account__content > h2{margin-top:0}
@media (max-width:860px){.mm-account,.mm-account--guest{grid-template-columns:1fr}.mm-account__nav{position:static}}

/* ---------- EDD: checkout, cart, receipts, forms, history ---------- */
#edd_checkout_wrap,.edd_purchase_receipt,#edd_user_history,.edd-table,#edd_profile_editor_form,#edd_login_form,#edd_register_form{color:var(--text)}
#edd_checkout_wrap{max-width:900px;margin-inline:auto}
#edd_checkout_cart,.edd-table,#edd_user_history,.edd_purchase_receipt table,#edd_purchase_receipt,#edd_purchase_receipt_products{width:100%;border-collapse:collapse;border:1px solid var(--line);border-radius:var(--r);overflow:hidden;background:var(--surface);margin-bottom:28px}
#edd_checkout_cart th,#edd_checkout_cart td,.edd-table th,.edd-table td,#edd_user_history th,#edd_user_history td,#edd_purchase_receipt th,#edd_purchase_receipt td,#edd_purchase_receipt_products th,#edd_purchase_receipt_products td{padding:14px 16px;border-bottom:1px solid var(--line);background:transparent;text-align:left;color:var(--text)}
#edd_checkout_cart thead th,.edd-table thead th,#edd_user_history thead th,#edd_purchase_receipt thead th,#edd_purchase_receipt_products thead th{font-size:12px;letter-spacing:.1em;text-transform:uppercase;color:var(--muted);background:var(--bg-2)}
.edd_cart_item_name .edd_cart_item_image img{border-radius:8px}
.edd_cart_remove_item_btn{color:var(--err)}
.edd_cart_total,.edd_cart_amount{font-weight:700;color:var(--gold-2)}
#edd_checkout_form_wrap fieldset,#edd_profile_editor_form fieldset,#edd_login_form fieldset,#edd_register_form fieldset{margin:0 0 24px;padding:clamp(18px,3vw,28px);border:1px solid var(--line);border-radius:var(--r-lg);background:var(--surface)}
#edd_checkout_form_wrap legend,#edd_profile_editor_form legend,#edd_login_form legend,#edd_register_form legend{float:left;width:100%;margin-bottom:16px;padding:0;font-family:var(--font-head);font-size:26px;font-weight:600;color:var(--text)}
#edd_checkout_form_wrap legend + *{clear:both}
#edd_checkout_form_wrap p,#edd_profile_editor_form p,#edd_login_form p,#edd_register_form p{margin:0 0 16px}
#edd_checkout_form_wrap label,.edd-label{display:block;margin-bottom:6px;font-size:14px;font-weight:600;color:var(--text-2)}
#edd_checkout_form_wrap .edd-description,.edd-description{display:block;margin-bottom:8px;font-size:13px;color:var(--dim)}
#edd_checkout_form_wrap input.edd-input,#edd_checkout_form_wrap select.edd-select,#edd_checkout_form_wrap input[type=text],#edd_checkout_form_wrap input[type=email],#edd_checkout_form_wrap input[type=password],.edd-input,.edd-select{width:100%}
#edd_checkout_form_wrap .edd-required-indicator{color:var(--gold-2)}
#edd-gateway-option,.edd-gateway-option{display:inline-flex;align-items:center;gap:8px;margin:0 12px 8px 0;padding:12px 16px;border:1px solid var(--line-2);border-radius:var(--r-sm);cursor:pointer}
.edd-gateway-option-selected{border-color:var(--gold)!important;background:rgba(214,168,78,.08)}
#edd_final_total_wrap{padding:18px 20px;border-radius:var(--r);background:var(--bg-2);border:1px solid var(--line);font-size:18px}
#edd_final_total_wrap .edd_cart_amount{font-size:24px}
#edd-purchase-button,.edd-submit,input.edd-submit,button.edd-submit,#edd_login_submit,#edd_register_form .edd-submit,#edd_profile_editor_submit,.edd_download_purchase_form .edd-add-to-cart{display:inline-flex;align-items:center;justify-content:center;width:auto;min-height:52px;padding:0 32px!important;border:0!important;border-radius:var(--btn-r)!important;background:var(--gold-grad)!important;color:var(--on-gold)!important;font:600 16px/1 var(--font-body)!important;box-shadow:0 10px 30px -12px rgba(214,168,78,.7);text-decoration:none;cursor:pointer;transition:transform .2s}
#edd-purchase-button{width:100%}
#edd-purchase-button:hover,.edd-submit:hover{transform:translateY(-2px)}
.edd-alert,.edd_errors{padding:14px 16px;border-radius:var(--r-sm);margin-bottom:16px;border:1px solid var(--line-2);background:var(--surface);color:var(--text)}
.edd-alert-error,.edd_errors .edd_error{border-color:rgba(255,107,107,.45);color:var(--text)}
.edd-alert-success{border-color:rgba(62,207,142,.45)}
.edd_errors p{margin:0}
#edd_discount_code,#edd-discount-code-wrap{margin-bottom:20px}
#edd_show_discount{padding:12px 16px;border-radius:var(--r-sm);background:var(--bg-2);border:1px dashed var(--line-2)}
.edd_download_file a,.edd_download_link,#edd_user_history .edd_download_file_link{display:inline-flex;align-items:center;gap:6px;padding:8px 14px;border-radius:999px;border:1px solid var(--gold);color:var(--gold-2);font-weight:600;font-size:14px}
.edd_download_file a:hover,.edd_download_file_link:hover{background:var(--gold);color:var(--on-gold)}
.edd_purchase_receipt_files{list-style:none;margin:0;padding:0;display:grid;gap:8px}
.edd-blocks-form,.edd-blocks__row{color:var(--text)}
@media (max-width:640px){
  #edd_checkout_cart thead{display:none}
  #edd_checkout_cart tr,#edd_checkout_cart td{display:block;width:100%}
  #edd_checkout_cart .edd_cart_actions{text-align:left}
}

/* Add-to-cart: busy state */
[data-mm-add][aria-busy="true"]{opacity:.6;pointer-events:none}

/* EDD default colours (same specificity, loaded later) */
#edd_checkout_cart .edd_cart_header_row th{background:var(--bg-2);color:var(--muted)}
#edd_checkout_cart td,#edd_checkout_cart th{border:0;border-bottom:1px solid var(--line);color:var(--text)}
#edd_checkout_cart td{background:transparent}
#edd_checkout_form_wrap #edd-login-account-wrap,#edd_checkout_form_wrap #edd-new-account-wrap,#edd_checkout_form_wrap #edd_final_total_wrap,#edd_checkout_form_wrap #edd_show_discount,#edd_checkout_form_wrap .edd-cart-adjustment{background:var(--bg-2);color:var(--text-2);border-color:var(--line)}
#edd_checkout_form_wrap #edd-login-account-wrap,#edd_checkout_form_wrap #edd-new-account-wrap{border-radius:var(--r-lg) var(--r-lg) 0 0}
#edd_checkout_form_wrap #edd_final_total_wrap{padding:18px 20px;font-size:18px}
#edd_user_history th{background:var(--bg-2)}
.edd-cart-meta.edd_subtotal,.edd-cart-meta.edd_total{background-color:var(--bg-2)}
.edd_errors:not(.edd-alert){background:rgba(255,107,107,.08);border-color:rgba(255,107,107,.45);color:var(--text)}
.edd-cart-loading{background:rgba(10,10,15,.6)}
html[data-theme="light"] .edd-cart-loading{background:rgba(255,255,255,.7)}
.edd-submit.button,.edd-submit.button.gray,.edd-submit.button.white{border:0}
#edd_checkout_cart .edd_cart_footer_row th{background:transparent}
.edd-payment-icons{display:flex;flex-wrap:wrap;gap:6px;margin:0 0 14px}
.edd-payment-icons img,.edd-payment-icons svg{border-radius:4px}

/* Shop filter bar on phones: chips scroll, sort below */
@media (max-width:760px){.mm-shop-bar,.mm-grid-bar{display:grid;grid-template-columns:minmax(0,1fr);gap:12px}.mm-grid-bar .mm-sort{margin-left:0}.mm-sort select{width:100%}}
.mm-checkout-login{margin:0 0 16px;padding:14px 18px;border-radius:var(--r);background:var(--bg-2);border:1px solid var(--line);color:var(--muted)}
#edd_checkout_form_wrap input.edd-input,#edd_checkout_form_wrap select.edd-select,#edd_checkout_form_wrap .edd-input{color:var(--text);background-color:var(--field)}
#edd_checkout_form_wrap input.edd-input::placeholder{color:var(--dim)}
body .edd_form input.edd-input.required,body .edd_form select.edd-select.required,body .edd_form input.edd-input,body .edd_form select.edd-select{color:var(--text);background-color:var(--field)}
/* Account page: EDD forms sit inside the theme card, no second frame */
.mm-account--guest #edd_login_form fieldset,.mm-account--guest #edd_register_form fieldset{margin:0;padding:0;border:0;background:none}
.mm-account--guest #edd_login_form legend,.mm-account--guest #edd_register_form legend{display:none}

/* ---------- Product page layouts (panel: Product Page > Layout) ---------- */
.mm-product__layout .mm-buybox{grid-area:auto}
.mm-product__buy{grid-area:buy;align-self:stretch;min-width:0}
.mm-product__rest{grid-area:rest;min-width:0}
.mm-product__rest .mm-tabs{margin-top:8px}
.mm-product__layout.mm-product--sidebar{grid-template-areas:"media buy" "intro buy" "rest buy";grid-template-rows:auto auto 1fr}
.mm-product__layout.mm-product--cinematic{grid-template-areas:"media media" "intro buy" "rest buy";grid-template-rows:auto auto 1fr}
.mm-product__layout.mm-product--stacked{grid-template-areas:"media buy" "intro buy" "rest rest";grid-template-rows:auto 1fr auto}
.mm-product--stacked .mm-product__rest .mm-tabs{margin-top:32px}
.mm-product--cinematic .mm-product__media{margin-bottom:8px}
.mm-product--cinematic .mm-player{border-radius:var(--r-lg);box-shadow:0 30px 80px -40px color-mix(in srgb,var(--glow) 55%,transparent)}
.mm-product--cinematic .mm-thumbs{grid-template-columns:repeat(5,minmax(0,1fr));max-width:820px}
@media (min-width:1021px){.mm-product__buy .mm-buybox{position:sticky;top:calc(var(--header-h) + 20px)}}
@media (max-width:1020px){.mm-product__layout.mm-product--sidebar,.mm-product__layout.mm-product--cinematic,.mm-product__layout.mm-product--stacked{grid-template-columns:1fr;grid-template-areas:"media" "buy" "intro" "rest";grid-template-rows:auto}}
@media (min-width:1021px) and (max-width:1240px){.mm-product--sidebar .mm-loops,.mm-product--cinematic .mm-loops{grid-template-columns:1fr}}

/* Read more (long descriptions) */
.mm-readmore.is-collapsed .mm-readmore__inner{max-height:var(--rm-h,420px);overflow:hidden;-webkit-mask-image:linear-gradient(180deg,#000 calc(100% - 140px),transparent);mask-image:linear-gradient(180deg,#000 calc(100% - 140px),transparent)}
.mm-readmore__btn{margin-top:14px}
.mm-readmore__btn .mm-icon{transition:transform .2s}
.mm-readmore:not(.is-collapsed) .mm-readmore__btn .mm-icon{transform:rotate(180deg)}
.mm-grid[aria-busy="true"]{opacity:.5;transition:opacity .2s}
