/*
Theme Name: PO Modern
Description: Lightweight classic WooCommerce theme. TestLab reference draft.
Version: 0.1.28
Requires at least: 6.2
Requires PHP: 7.4
Text Domain: po-modern
License: GPL-2.0-or-later
*/
:root{--ink:#182327;--muted:#657277;--line:#e0e6e6;--accent:#d84716;--soft:#f3f6f5}
*{box-sizing:border-box}body{margin:0;background:#fff;color:var(--ink);font-family:system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;font-size:16px;line-height:1.65}a{color:var(--accent);text-decoration:none}a:hover{text-decoration:underline}img{max-width:100%;height:auto}button,input,select,textarea{font:inherit}h1,h2,h3{line-height:1.2;letter-spacing:-.025em}h1{font-size:clamp(1.9rem,3vw,2.65rem)}h2{font-size:1.5rem}.container{width:min(1240px,calc(100% - 64px));margin-inline:auto}.site-header{border-bottom:1px solid var(--line);background:#fff}.header-inner{min-height:100px;display:flex;align-items:center;gap:32px}.brand{display:flex;align-items:center;gap:12px;color:var(--ink);font-size:14px;font-weight:650;line-height:1.35;max-width:280px}.brand-mark{font-size:26px;font-weight:800;color:var(--accent);border:1px solid var(--line);padding:8px 10px;border-radius:10px}.primary-nav{margin-left:auto}.menu{display:flex;gap:24px;list-style:none;margin:0;padding:0}.menu a,.header-actions a{color:var(--ink);font-size:14px}.menu li{position:relative}.sub-menu{display:none;position:absolute;background:white;padding:18px;list-style:none;min-width:180px;box-shadow:0 8px 24px #18232718;z-index:20}.menu li:hover>.sub-menu,.menu li:focus-within>.sub-menu{display:block}.header-actions{display:flex;align-items:center;gap:24px;font-size:14px}.account-menu{position:relative}.account-menu summary{cursor:pointer}.account-links{position:absolute;right:0;top:36px;min-width:160px;background:#fff;border:1px solid var(--line);border-radius:8px;padding:12px;box-shadow:0 12px 30px #18232712;z-index:30}.account-links a{display:block;padding:7px}.site-main{padding-top:32px;padding-bottom:72px;min-height:60vh}.woocommerce .woocommerce-breadcrumb{font-size:13px;color:var(--muted);margin-bottom:32px}.woocommerce div.product{display:grid;grid-template-columns:minmax(0,1.45fr) minmax(0,1fr);gap:40px 52px}.woocommerce div.product:before,.woocommerce div.product:after{display:none}.woocommerce div.product div.images,.woocommerce div.product div.summary{float:none;width:auto;margin:0;min-width:0}.woocommerce div.product .product_title{margin:0 0 18px}.woocommerce div.product p.price,.woocommerce div.product span.price{font-size:27px;color:var(--accent);font-weight:650;margin:0 0 12px}.published{color:var(--muted);font-size:14px;margin:0 0 28px}.woocommerce div.product form.cart{padding:24px 0;border-top:1px solid var(--line);border-bottom:1px solid var(--line);margin:0 0 20px}.woocommerce .quantity .qty{padding:9px;width:4.5em;border:1px solid var(--line);border-radius:6px}.woocommerce a.button,.woocommerce button.button,.woocommerce input.button,.woocommerce #respond input#submit{background:var(--soft);color:var(--ink);border-radius:6px;padding:14px 22px;font-weight:600}.woocommerce a.button.alt,.woocommerce button.button.alt,.woocommerce input.button.alt{background:var(--accent);color:white}.woocommerce button.button.alt:hover,.woocommerce a.button.alt:hover{background:#b73810}.woocommerce div.product .product_meta{font-size:14px;color:var(--muted)}.product_meta>span{display:block;margin:6px 0}.woocommerce div.product .woocommerce-product-gallery__image img{display:block;width:100%;aspect-ratio:16/9;object-fit:contain;background:var(--soft);border-radius:10px}.woocommerce div.product div.images .flex-control-thumbs{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin-top:12px}.woocommerce div.product div.images .flex-control-thumbs li{float:none;width:auto}.woocommerce div.product div.images .flex-control-thumbs li img{aspect-ratio:16/9;object-fit:contain;background:var(--soft);border-radius:6px;border:2px solid transparent;opacity:.7}.woocommerce div.product div.images .flex-control-thumbs li img.flex-active{border-color:var(--accent);opacity:1}.woocommerce div.product .woocommerce-tabs,.woocommerce div.product .related,.woocommerce div.product .up-sells{grid-column:1/-1;clear:both;min-width:0}.woocommerce div.product .woocommerce-tabs{border-top:1px solid var(--line);padding-top:24px}.woocommerce div.product .woocommerce-tabs ul.tabs{padding:0}.woocommerce div.product .woocommerce-tabs ul.tabs:before{border-bottom:1px solid var(--line)}.woocommerce div.product .woocommerce-tabs ul.tabs li{border:0;background:transparent;padding:0 20px 0 0;margin:0}.woocommerce div.product .woocommerce-tabs ul.tabs li:before,.woocommerce div.product .woocommerce-tabs ul.tabs li:after{display:none}.woocommerce div.product .woocommerce-tabs ul.tabs li a{color:var(--muted)}.woocommerce div.product .woocommerce-tabs ul.tabs li.active a{color:var(--ink)}.woocommerce div.product .woocommerce-tabs .panel{max-width:850px}.woocommerce ul.products li.product a img{aspect-ratio:16/9;object-fit:contain;background:var(--soft);border-radius:8px}.woocommerce ul.products li.product .price{color:var(--accent)}.woocommerce input.input-text,.woocommerce textarea,.woocommerce select{border:1px solid var(--line);padding:10px;border-radius:5px}.site-footer{background:var(--soft);border-top:1px solid var(--line);padding:26px 0;color:var(--muted);font-size:13px}.site-footer .container{display:flex;align-items:center;gap:24px}.site-footer p{margin-right:auto}.reading-content article{max-width:850px}.skip-link{position:absolute;left:-9999px}.skip-link:focus{left:16px;top:16px;background:white;z-index:100;padding:10px}:focus-visible{outline:3px solid #ee8b67;outline-offset:4px}
/* WooCommerce's smallscreen stylesheet uses ID selectors and loads later.
   Grid items must fill their tracks instead of retaining its 48% float widths. */
body.single-product.woocommerce div.product>div.images,
body.single-product.woocommerce div.product>div.summary{width:100%!important;float:none!important;max-width:none!important;min-width:0;justify-self:stretch}
body.single-product.woocommerce div.product div.images .flex-control-thumbs li{width:100%!important;float:none!important}
@media(max-width:980px){.header-inner{flex-wrap:wrap;gap:20px;padding:20px 0}.primary-nav{order:3;width:100%;margin:0}.header-actions{margin-left:auto}.woocommerce div.product{gap:32px;grid-template-columns:minmax(0,1.2fr) minmax(0,1fr)}}
@media(max-width:680px){.container{width:calc(100% - 32px)}.brand{max-width:210px}.header-actions{margin-left:0}.menu{gap:18px;flex-wrap:wrap}.woocommerce div.product{grid-template-columns:minmax(0,1fr);gap:28px}.woocommerce div.product .woocommerce-tabs,.woocommerce div.product .related,.woocommerce div.product .up-sells{grid-column:1}.site-main{padding-top:24px}.site-footer .container{flex-wrap:wrap;gap:8px 20px}.site-footer p{width:100%;margin:0}.woocommerce div.product div.images .flex-control-thumbs{gap:8px}}

/* WooGallery Slider adds an inline 50% limit to its own grid item. */
body.single-product.woocommerce div.product > .wcgs-woocommerce-product-gallery{width:100%!important;max-width:100%!important;min-width:0!important;float:none!important;justify-self:stretch}

/* Reference-screen refinements, including the existing WooGallery Slider. */
body.single-product .site-main{padding-top:24px}
body.single-product .site-main .site-main{padding-top:0}
body.single-product.woocommerce div.product .product_title{font-size:clamp(1.35rem,1.7vw,1.5rem);line-height:1.3;letter-spacing:-.02em}
body.single-product #wpgs-gallery{border-radius:10px}
body.single-product #wpgs-gallery img{border-radius:8px}
body.single-product #wpgs-gallery .wcgs-thumb{border-radius:8px;overflow:hidden}
body.single-product.woocommerce .woocommerce-breadcrumb{margin:0 0 24px;padding:0!important}
/* Compact 4:3 thumbnails crop only the preview; the main image remains 16:9. */
body.single-product #wpgs-gallery .wcgs-thumb img{width:100%!important;height:auto!important;aspect-ratio:4/3;object-fit:cover!important;border-radius:8px!important}
.video-details{margin:20px 0 24px;padding:18px 20px;background:#faf6f3;border:1px solid #f0ded5;border-radius:10px}
.video-details h2{font-size:16px;margin:0 0 12px;letter-spacing:0}
.video-details dl{display:grid;grid-template-columns:1fr 1fr;gap:12px 20px;margin:0}
.video-details dt{font-size:12px;color:var(--muted)}
.video-details dd{font-size:14px;font-weight:600;margin:2px 0 0}
@media(max-width:400px){.video-details dl{grid-template-columns:1fr}}

/* Compact legacy silhouette and a balanced, readable header. */
.header-inner{min-height:84px;gap:32px}
.brand{max-width:none;font-size:16px;white-space:nowrap;gap:10px}
.brand-silhouette{display:block;flex:0 0 32px;width:32px;height:44px;background-repeat:no-repeat;background-size:388px 69.6px;background-position:-41px -19px;filter:url(#po-legacy-silhouette)}
.primary-nav{flex:1;margin-left:0}
.primary-nav>.menu{justify-content:center;gap:30px}
.menu a,.header-actions a,.account-menu summary{font-size:16px}
.header-actions{gap:22px;flex-shrink:0}
.header-search{position:relative}
.header-search summary,.header-cart{display:flex;align-items:center;justify-content:center;width:38px;height:38px;cursor:pointer;color:var(--ink);border-radius:6px}
.header-search summary{list-style:none}
.header-search summary::-webkit-details-marker{display:none}
.header-search svg,.header-cart svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.header-search summary:hover,.header-cart:hover{background:var(--soft);color:var(--accent)}
.header-search form{position:absolute;top:48px;right:0;z-index:40;width:min(340px,calc(100vw - 32px));padding:18px;background:white;border:1px solid var(--line);border-radius:10px;box-shadow:0 12px 30px #18232718}
.header-search label{display:block;font-size:14px;margin-bottom:8px}
.header-search form>div{display:flex;gap:8px}
.header-search input[type=search]{min-width:0;width:100%;padding:8px;border:1px solid var(--line);border-radius:6px}
.header-search button{border:0;background:var(--accent);color:white;border-radius:6px;padding:8px 12px;cursor:pointer}
@media(max-width:1100px){.header-inner{gap:20px}.brand{font-size:14px}.primary-nav>.menu{gap:20px}.header-actions{gap:12px}}
@media(max-width:980px){.primary-nav{flex:auto}.primary-nav>.menu{justify-content:center}.header-actions{margin-left:auto}}
@media(max-width:680px){.brand{white-space:normal;max-width:220px}.header-inner{gap:14px}.header-actions{gap:8px}.account-menu summary{font-size:14px}.primary-nav>.menu{gap:24px}.header-search form{right:-46px}}
/* Product tabs: remove WooCommerce's offset pseudo-element rules. */
body.single-product.woocommerce div.product .woocommerce-tabs{border:0;padding-top:0}
body.single-product.woocommerce div.product .woocommerce-tabs ul.tabs{display:flex;flex-wrap:wrap;gap:28px;overflow:visible;padding:0;margin:0 0 24px;border:0}
body.single-product.woocommerce div.product .woocommerce-tabs ul.tabs::before,
body.single-product.woocommerce div.product .woocommerce-tabs ul.tabs::after,
body.single-product.woocommerce div.product .woocommerce-tabs ul.tabs li::before,
body.single-product.woocommerce div.product .woocommerce-tabs ul.tabs li::after{content:none!important;display:none!important}
body.single-product.woocommerce div.product .woocommerce-tabs ul.tabs li{float:none;display:block;padding:0;margin:0;border:0;background:transparent;border-radius:0;box-shadow:none}
body.single-product.woocommerce div.product .woocommerce-tabs ul.tabs li a{display:block;padding:10px 0 12px;border-bottom:3px solid transparent;font-size:16px;font-weight:600;color:var(--muted);text-decoration:none}
body.single-product.woocommerce div.product .woocommerce-tabs ul.tabs li.active a{color:var(--accent);border-bottom-color:var(--accent)}
body.single-product.woocommerce div.product .woocommerce-tabs ul.tabs li a:hover{color:var(--accent)}
body.single-product.woocommerce div.product form.cart{border:0;padding:8px 0;margin-bottom:20px}
/* Dedicated transparent logo and stronger brand typography. */
.brand{font-size:18px;font-weight:650;gap:12px}


.brand-logo{display:block;width:32px;height:48px;object-fit:contain;flex-shrink:0}
.brand-accent{color:var(--accent)}
@media(max-width:1100px){.brand{font-size:16px}}
@media(max-width:680px){.brand{font-size:16px}.brand-logo{width:28px;height:42px}}

.header-search form{width:min(380px,calc(100vw - 32px))}.header-search input[type=search]{font-size:13px}.header-search .search-help{font-size:12px;line-height:1.4;color:var(--muted);margin:10px 0 0}
/* Shop cards share one grid and typography, including legacy shortcode content. */
body.post-type-archive-product .site-main{padding-top:24px}
body.post-type-archive-product .site-main .site-main{padding-top:0}
body.post-type-archive-product .woocommerce-breadcrumb{padding:0!important;margin-bottom:20px}
.woocommerce ul.products{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:32px 24px;margin:24px 0 40px;padding:0}
.woocommerce ul.products::before,.woocommerce ul.products::after{display:none}
.woocommerce ul.products li.product{float:none!important;width:100%!important;margin:0!important;display:flex;flex-direction:column;min-width:0}
.woocommerce ul.products li.product .woocommerce-loop-product__link{display:flex;flex-direction:column;flex:1}
.woocommerce ul.products li.product a img{width:100%;aspect-ratio:16/9;object-fit:contain;margin:0 0 14px;border-radius:10px}
.woocommerce ul.products li.product .woocommerce-loop-product__title,.woocommerce ul.products li.product .woocommerce-loop-category__title{font-size:16px;line-height:1.4;letter-spacing:0;color:var(--ink);padding:0;margin:0 0 10px}
.woocommerce ul.products li.product .price{font-size:16px;font-weight:650;margin:8px 0 0}
.woocommerce ul.products li.product .button{align-self:flex-start;margin-top:16px;font-size:14px;padding:12px 18px}
.woocommerce ul.products li.product.product-category{background:var(--soft);border-radius:10px;padding:14px}
.woocommerce ul.products li.product.product-category mark{background:transparent;color:var(--muted);font-weight:400}
body.post-type-archive-product .line:has(>code){border:0!important;background:transparent!important;padding:0!important}
body.post-type-archive-product .line>code{font:inherit;color:var(--ink);display:block}
body.post-type-archive-product .line>code>span{font-family:inherit!important;font-size:22px!important;letter-spacing:0!important;color:var(--ink)!important;font-weight:650}
.woocommerce .woocommerce-ordering select{background:white;font-size:14px}
.woocommerce nav.woocommerce-pagination ul{border:0;display:flex;justify-content:center;gap:8px;flex-wrap:wrap}
.woocommerce nav.woocommerce-pagination ul li{border:0}
.woocommerce nav.woocommerce-pagination ul li a,.woocommerce nav.woocommerce-pagination ul li span{padding:12px 16px;border-radius:6px;color:var(--ink)}
.woocommerce nav.woocommerce-pagination ul li span.current{background:var(--accent);color:white}
@media(max-width:980px){.woocommerce ul.products{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:680px){.woocommerce ul.products{grid-template-columns:repeat(2,minmax(0,1fr));gap:28px 16px}.woocommerce ul.products li.product .woocommerce-loop-product__title{font-size:14px}}
@media(max-width:360px){.woocommerce ul.products{grid-template-columns:1fr}}

.primary-nav .menu>li>a{display:block;padding:10px 0 12px;border-bottom:3px solid transparent;text-decoration:none}
.primary-nav .menu>li.current-menu-item>a,.primary-nav .menu>li.current-menu-parent>a,.primary-nav .menu>li.current-menu-ancestor>a{color:var(--accent);border-bottom-color:var(--accent)}
/* Visually group the two legacy Featured Clips rows without editing page content. */
body.post-type-archive-product .line:has(>code>span){background:#fcf7f3!important;padding:22px 24px 0!important;border-radius:12px 12px 0 0}
body.post-type-archive-product .line:has(>code>.woocommerce){background:#fcf7f3!important;padding:22px 24px 24px!important;border-radius:0 0 12px 12px}
body.post-type-archive-product .line>code>span::before{content:"★";color:var(--accent);font-size:20px;margin-right:10px}
body.post-type-archive-product .line>code>.woocommerce ul.products{margin:0}
@media(max-width:680px){body.post-type-archive-product .line:has(>code>span){padding:18px 16px 0!important}body.post-type-archive-product .line:has(>code>.woocommerce){padding:18px 16px 20px!important}}
/* Equal grid-row heights let each price sit at the bottom of its product link. */
.woocommerce ul.products li.product .woocommerce-loop-product__link>.price{margin-top:auto;padding-top:8px}

/* Billing fills the checkout width once optional information is removed. */
body.woocommerce-checkout form.checkout #customer_details{display:block;width:100%}
body.woocommerce-checkout form.checkout #customer_details .col-1{float:none;width:100%}
body.woocommerce-checkout form.checkout #customer_details .col-2{display:none}

body.woocommerce-checkout .reading-content>article{max-width:none}

/* The active navigation identifies pages without a duplicate large title. */
body.page .reading-content>article.page>h1:first-child{display:none}

.account-links .account-logout{border-top:1px solid var(--line);margin-top:6px;padding-top:12px}

/* Account navigation stays marked across dashboard and account endpoints. */
.account-menu>summary{padding:10px 0 12px;border-bottom:3px solid transparent}
.account-menu.is-current-account>summary{color:var(--accent);border-bottom-color:var(--accent)}
.account-menu>.account-links{top:calc(100% + 8px)}

/* A clear account sidebar with the current section highlighted. */
body.woocommerce-account .reading-content>article{max-width:none}
body.woocommerce-account .woocommerce:has(>.woocommerce-MyAccount-navigation){display:grid;grid-template-columns:240px minmax(0,1fr);gap:32px;align-items:start}
body.woocommerce-account .woocommerce:has(>.woocommerce-MyAccount-navigation)::before,
body.woocommerce-account .woocommerce:has(>.woocommerce-MyAccount-navigation)::after{display:none}
body.woocommerce-account .woocommerce-MyAccount-navigation{float:none;width:100%;padding:8px;border:1px solid var(--line);border-radius:12px;background:var(--soft)}
body.woocommerce-account .woocommerce-MyAccount-navigation ul{list-style:none;margin:0;padding:0}
body.woocommerce-account .woocommerce-MyAccount-navigation li{margin:3px 0;padding:0}
body.woocommerce-account .woocommerce-MyAccount-navigation a{display:block;padding:12px 14px;border-left:3px solid transparent;border-radius:7px;color:var(--ink);text-decoration:none;line-height:1.4}
body.woocommerce-account .woocommerce-MyAccount-navigation a:hover{background:#fff;color:var(--accent)}
body.woocommerce-account .woocommerce-MyAccount-navigation .is-active a{background:#fcebe3;border-left-color:var(--accent);color:var(--accent);font-weight:650}
body.woocommerce-account .woocommerce-MyAccount-navigation-link--customer-logout{border-top:1px solid var(--line);margin-top:10px!important;padding-top:7px!important}
body.woocommerce-account .woocommerce-MyAccount-content{float:none;width:100%;min-width:0;padding:24px;border:1px solid var(--line);border-radius:12px;background:#fff}
body.woocommerce-account .woocommerce-MyAccount-content>:first-child{margin-top:0}
body.woocommerce-account .woocommerce-MyAccount-content>:last-child{margin-bottom:0}
body.woocommerce-account .woocommerce-MyAccount-content .woocommerce-info{border-top-color:var(--accent);border-radius:6px;background:#faf6f3}
body.woocommerce-account .woocommerce-MyAccount-content .woocommerce-info::before{color:var(--accent)}
@media(max-width:680px){
 body.woocommerce-account .woocommerce:has(>.woocommerce-MyAccount-navigation){grid-template-columns:1fr;gap:20px}
 body.woocommerce-account .woocommerce-MyAccount-navigation ul{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:3px 6px}
 body.woocommerce-account .woocommerce-MyAccount-navigation a{font-size:14px;padding:11px 10px}
 body.woocommerce-account .woocommerce-MyAccount-navigation-link--customer-logout{border-top:0;margin-top:3px!important;padding-top:0!important}
 body.woocommerce-account .woocommerce-MyAccount-content{padding:18px}

}

/* Account forms use the same spacing and controls as the digital checkout. */
body.woocommerce-account .woocommerce-MyAccount-content form{margin:0;max-width:760px}
body.woocommerce-account .woocommerce-MyAccount-content h3{font-size:20px;margin:0 0 22px}
body.woocommerce-account .woocommerce-MyAccount-content form .form-row{padding:0;margin:0 0 18px}
body.woocommerce-account .woocommerce-MyAccount-content form label{display:block;font-size:14px;font-weight:600;margin-bottom:6px}
body.woocommerce-account .woocommerce-MyAccount-content form .input-text{min-height:44px;padding:11px 12px;border:1px solid var(--line);border-radius:7px;background:#fff}
body.woocommerce-account .woocommerce-MyAccount-content form .select2-selection--single{min-height:44px;border:1px solid var(--line);border-radius:7px;display:flex;align-items:center}
body.woocommerce-account .woocommerce-MyAccount-content form .select2-selection__arrow{height:42px}
body.woocommerce-account .woocommerce-MyAccount-content form em{display:block;font-size:13px;font-style:normal;color:var(--muted);margin-top:6px}
body.woocommerce-account .woocommerce-MyAccount-content form fieldset{clear:both;border:1px solid var(--line);border-radius:10px;background:var(--soft);padding:20px;margin:28px 0 24px}
body.woocommerce-account .woocommerce-MyAccount-content form legend{font-size:16px;font-weight:650;padding:0 8px}
body.woocommerce-account .woocommerce-MyAccount-content form fieldset .form-row:last-child{margin-bottom:0}
body.woocommerce-account .woocommerce-MyAccount-content button.button{background:var(--accent);color:#fff;min-height:44px;padding:13px 22px;border-radius:7px;margin-top:8px}
body.woocommerce-account .woocommerce-MyAccount-content button.button:hover{background:#b73810}
body.woocommerce-account .woocommerce-Addresses .woocommerce-Address{float:none;width:100%;padding:20px;border:1px solid var(--line);border-radius:10px;background:var(--soft)}
body.woocommerce-account .woocommerce-Address-title{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:14px}
body.woocommerce-account .woocommerce-Address-title h3{margin:0}
body.woocommerce-account .woocommerce-Address-title .edit{float:none;font-size:14px;font-weight:600;padding:7px 14px;border:1px solid #f0ded5;border-radius:6px;background:#fff}
body.woocommerce-account .woocommerce-Address address{font-style:normal;color:var(--muted)}
@media(max-width:680px){
 body.woocommerce-account .woocommerce-MyAccount-content form .form-row-first,
 body.woocommerce-account .woocommerce-MyAccount-content form .form-row-last{float:none;width:100%}
 body.woocommerce-account .woocommerce-MyAccount-content form fieldset{padding:16px}
}

/* News posts: readable cards, distinct titles and quiet publication dates. */
.news-headline.wp-block-latest-posts{display:grid;gap:28px;list-style:none;padding:0;margin:0}
.news-headline.wp-block-latest-posts>li{margin:0;padding:28px 30px;border:1px solid var(--line);border-left:3px solid var(--accent);border-radius:12px;background:#fff;overflow-wrap:anywhere}
.news-headline .wp-block-latest-posts__post-title{display:block;font-size:24px;font-weight:700;line-height:1.3;letter-spacing:-.02em;color:var(--ink)}
.news-headline .wp-block-latest-posts__post-title:hover{color:var(--accent)}
.news-headline .wp-block-latest-posts__post-date{display:block;font-size:13px;color:var(--muted);margin:8px 0 20px}
.news-headline .wp-block-latest-posts__post-full-content{margin:0;font-size:16px;line-height:1.75}
.news-headline .wp-block-latest-posts__post-full-content p{margin:0 0 16px}
.news-headline .wp-block-latest-posts__post-full-content p:empty{display:none}
.news-headline .wp-block-latest-posts__post-full-content>:last-child{margin-bottom:0}
.news-headline .wp-block-latest-posts__post-full-content ul,.news-headline .wp-block-latest-posts__post-full-content ol{padding-left:24px;margin:16px 0}
.news-headline .wp-block-latest-posts__post-full-content li{margin:5px 0}
@media(max-width:680px){.news-headline.wp-block-latest-posts{gap:20px}.news-headline.wp-block-latest-posts>li{padding:20px 18px}.news-headline .wp-block-latest-posts__post-title{font-size:21px}}

/* =====================================================
   FETISH HOMEPAGE V2 - "UNDERGROUND FESTIVAL" DESIGN
   Toned-down, more professional variant.
   All classes are prefixed with "fh-".
   ===================================================== */

:root {
    --fh-bg: #0f0f14;
    --fh-bg-2: #17171f;
    --fh-bg-3: #1f1f29;
    --fh-accent: #e85d4e;
    --fh-accent-2: #d1456e;
    --fh-accent-glow: rgba(232, 93, 78, 0.25);
    --fh-text: #eaeaec;
    --fh-text-dim: #9a9aa5;
    --fh-radius: 14px;

    /* Height of a fixed theme header / admin bar, if any.
       Increase this if the sticky pill nav is hidden behind it. */
    --fh-sticky-offset: 0px;
}

/* Smooth scrolling for anchor links (disabled for reduced motion below) */
html {
    scroll-behavior: smooth;
}

/* ===== BASE ===== */
.fh-homepage {
    background-color: var(--fh-bg);
    color: var(--fh-text);
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    /* "clip" instead of "hidden": overflow:hidden would break position:sticky */
    overflow-x: clip;
}

.fh-homepage a:focus-visible {
    outline: 2px solid var(--fh-accent);
    outline-offset: 3px;
}

.fh-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    box-sizing: border-box;
}

.fh-eyebrow {
    display: inline-block;
    color: var(--fh-accent);
    font-weight: 700;
    font-size: 0.8rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 10px;
}

/* ===== BUTTONS ===== */
.fh-btn-primary {
    display: inline-block;
    background: linear-gradient(135deg, var(--fh-accent), var(--fh-accent-2));
    color: #fff;
    padding: 14px 28px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    letter-spacing: 0.5px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 14px var(--fh-accent-glow);
}

.fh-btn-primary:hover {
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px var(--fh-accent-glow);
}

.fh-btn-ghost {
    display: inline-block;
    padding: 14px 28px;
    border-radius: 50px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: var(--fh-text);
    text-decoration: none;
    font-weight: 700;
    transition: border-color 0.3s ease, color 0.3s ease;
}

.fh-btn-ghost:hover {
    border-color: var(--fh-accent);
    color: var(--fh-accent);
}

.fh-btn-large {
    padding: 18px 40px;
    font-size: 1.1rem;
}

/* ===== HERO ===== */
.fh-hero {
    position: relative;
    height: 100vh;
    height: 100svh;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.fh-hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.fh-hero-bg video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.fh-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        180deg,
        rgba(15, 15, 20, 0.6) 0%,
        rgba(15, 15, 20, 0.85) 70%,
        rgba(15, 15, 20, 1) 100%
    );
}

.fh-hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 700px;
    padding: 0 24px;
}

.fh-hero-tag {
    display: inline-block;
    color: var(--fh-accent);
    font-weight: 700;
    font-size: 0.85rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-bottom: 20px;
}

.fh-hero-content h1 {
    font-size: 4rem;
    font-weight: 700;
    margin: 0 0 20px;
    line-height: 1.15;
    letter-spacing: -0.5px;
    color: #fff;
    /* very soft glow only, no neon effect */
    text-shadow: 0 0 20px rgba(232, 93, 78, 0.2);
}

.fh-hero-content p {
    font-size: 1.15rem;
    color: var(--fh-text-dim);
    margin: 0 0 36px;
    line-height: 1.6;
}

.fh-hero-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Scroll indicator */
.fh-scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1;
}

.fh-scroll-indicator span {
    display: block;
    width: 26px;
    height: 44px;
    border: 2px solid rgba(255, 255, 255, 0.4);
    border-radius: 20px;
    position: relative;
}

.fh-scroll-indicator span::after {
    content: '';
    position: absolute;
    top: 8px;
    left: 50%;
    width: 4px;
    height: 10px;
    background: var(--fh-accent);
    border-radius: 2px;
    transform: translateX(-50%);
    animation: fh-scroll-bounce 1.6s infinite;
}

@keyframes fh-scroll-bounce {
    0%   { top: 8px;  opacity: 1; }
    60%  { top: 24px; opacity: 0; }
    100% { top: 8px;  opacity: 0; }
}

/* ===== STICKY PILL NAVIGATION ===== */
.fh-pills-nav {
    position: sticky;
    top: var(--fh-sticky-offset);
    z-index: 50;
    background: rgba(15, 15, 20, 0.92);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.fh-pills-track {
    display: flex;
    gap: 12px;
    padding: 14px 24px;
    overflow-x: auto;
    scrollbar-width: none;
    max-width: 1200px;
    margin: 0 auto;
    box-sizing: border-box;
}

.fh-pills-track::-webkit-scrollbar {
    display: none;
}

.fh-pill {
    flex-shrink: 0;
    padding: 8px 20px;
    border-radius: 50px;
    background: var(--fh-bg-3);
    color: var(--fh-text-dim);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    white-space: nowrap;
    border: 1px solid transparent;
    transition: background 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

.fh-pill:hover {
    background: var(--fh-bg);
    color: var(--fh-accent);
    border-color: var(--fh-accent);
}

/* ===== STATS BAR ===== */
.fh-stats-bar {
    display: flex;
    justify-content: center;
    gap: 60px;
    padding: 50px 24px;
    background: var(--fh-bg-2);
    flex-wrap: wrap;
    text-align: center;
}

.fh-stat {
    display: flex;
    flex-direction: column;
}

.fh-stat-number {
    font-size: 2.4rem;
    font-weight: 700;
    color: var(--fh-accent);
}

.fh-stat-label {
    color: var(--fh-text-dim);
    font-size: 0.85rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-top: 4px;
}

/* ===== LATEST DROPS CAROUSEL ===== */
.fh-latest-drops {
    padding: 90px 0 60px;
    scroll-margin-top: 70px;
}

.fh-section-head {
    margin-bottom: 40px;
}

.fh-section-head.fh-centered {
    text-align: center;
}

.fh-section-head h2 {
    font-size: 2.4rem;
    margin: 0;
    font-weight: 700;
    color: var(--fh-text);
}

.fh-carousel {
    display: flex;
    gap: 24px;
    overflow-x: auto;
    padding: 10px 24px 30px;
    scroll-snap-type: x mandatory;
    scrollbar-width: thin;
    scrollbar-color: var(--fh-accent) var(--fh-bg-2);
}

.fh-carousel::-webkit-scrollbar {
    height: 6px;
}

.fh-carousel::-webkit-scrollbar-thumb {
    background: var(--fh-accent);
    border-radius: 10px;
}

.fh-drop-card {
    flex: 0 0 300px;
    scroll-snap-align: start;
    text-decoration: none;
    color: var(--fh-text);
    background: var(--fh-bg-3);
    border-radius: var(--fh-radius);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.fh-drop-card:hover {
    color: var(--fh-text);
    transform: translateY(-6px);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5);
}

.fh-drop-thumb {
    position: relative;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: var(--fh-bg-2);
}

.fh-drop-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.fh-drop-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--fh-bg-3), var(--fh-bg-2));
}

.fh-drop-card:hover .fh-drop-thumb img {
    transform: scale(1.06);
}

.fh-drop-play {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 56px;
    height: 56px;
    background: rgba(232, 93, 78, 0.85);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.1rem;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.fh-drop-card:hover .fh-drop-play {
    opacity: 1;
}

.fh-drop-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: rgba(15, 15, 20, 0.8);
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
}

.fh-drop-duration {
    position: absolute;
    bottom: 12px;
    right: 12px;
    background: var(--fh-accent);
    color: #fff;
    padding: 3px 10px;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 700;
}

.fh-drop-info {
    padding: 16px;
}

.fh-drop-info h3 {
    margin: 0 0 8px;
    font-size: 1.05rem;
    line-height: 1.3;
    color: var(--fh-text);
}

.fh-drop-price {
    color: var(--fh-accent);
    font-weight: 700;
}

/* ===== CATEGORY SHOWCASE (ZIG-ZAG) ===== */
.fh-category-showcase {
    padding: 60px 0;
    scroll-margin-top: 70px;
}

.fh-cat-block {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: stretch;
    min-height: 480px;
    position: relative;
    scroll-margin-top: 70px;
}

/* Mirrored block: image on the right, text on the left */
.fh-cat-block.fh-reverse .fh-cat-image {
    order: 2;
}

.fh-cat-block.fh-reverse .fh-cat-text {
    order: 1;
}

.fh-cat-image {
    position: relative;
    overflow: hidden;
    min-height: 320px;
    clip-path: polygon(0 0, 100% 0, 92% 100%, 0 100%);
}

.fh-cat-block.fh-reverse .fh-cat-image {
    clip-path: polygon(8% 0, 100% 0, 100% 100%, 0 100%);
}

/* The image fills the container completely, regardless of block height */
.fh-cat-image img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Subtle colour tint over the image */
.fh-cat-image::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(232, 93, 78, 0.1), rgba(15, 15, 20, 0.3));
    pointer-events: none;
}

.fh-cat-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    padding: 60px 80px;
}

.fh-cat-text h2 {
    font-size: 2.6rem;
    margin: 0 0 16px;
    font-weight: 700;
    color: var(--fh-text);
}

.fh-cat-text p {
    color: var(--fh-text-dim);
    font-size: 1.05rem;
    line-height: 1.7;
    margin: 0 0 28px;
    max-width: 420px;
}

/* ===== NEWS TIMELINE ===== */
.fh-news-section {
    padding: 90px 0;
    background: var(--fh-bg-2);
    scroll-margin-top: 70px;
}

.fh-timeline {
    position: relative;
    margin-top: 50px;
}

.fh-timeline::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 2px;
    background: linear-gradient(180deg, var(--fh-accent), transparent);
    transform: translateX(-50%);
}

.fh-timeline-item {
    position: relative;
    width: 50%;
    padding: 0 50px 50px;
    box-sizing: border-box;
}

.fh-timeline-item.fh-left {
    left: 0;
    text-align: right;
}

.fh-timeline-item.fh-right {
    left: 50%;
    text-align: left;
}

.fh-timeline-dot {
    position: absolute;
    top: 10px;
    width: 14px;
    height: 14px;
    background: var(--fh-accent);
    border-radius: 50%;
    box-shadow: 0 0 0 4px var(--fh-bg-2), 0 0 10px var(--fh-accent-glow);
}

.fh-timeline-item.fh-left .fh-timeline-dot  { right: -7px; }
.fh-timeline-item.fh-right .fh-timeline-dot { left: -7px; }

.fh-timeline-card {
    display: inline-block;
    text-align: left;
    background: var(--fh-bg-3);
    border-radius: var(--fh-radius);
    overflow: hidden;
    text-decoration: none;
    color: var(--fh-text);
    max-width: 380px;
    transition: transform 0.3s ease;
}

.fh-timeline-card:hover {
    color: var(--fh-text);
    transform: translateY(-4px);
}

.fh-timeline-image img {
    display: block;
    width: 100%;
    height: 160px;
    object-fit: cover;
}

.fh-timeline-content {
    padding: 18px 20px;
}

.fh-timeline-date {
    color: var(--fh-accent);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 1px;
}

.fh-timeline-content h3 {
    margin: 8px 0;
    font-size: 1.05rem;
    color: var(--fh-text);
}

.fh-timeline-content p {
    color: var(--fh-text-dim);
    font-size: 0.9rem;
    line-height: 1.5;
    margin: 0;
}

.fh-no-news {
    text-align: center;
    color: var(--fh-text-dim);
}

/* ===== CTA BANNER ===== */
.fh-cta-banner {
    padding: 100px 0;
    background: radial-gradient(circle at center, rgba(232, 93, 78, 0.08), var(--fh-bg) 70%);
    text-align: center;
}

.fh-cta-inner h2 {
    font-size: 2.6rem;
    font-weight: 700;
    margin: 0 0 16px;
    color: var(--fh-text);
}

.fh-cta-inner p {
    color: var(--fh-text-dim);
    margin: 0 0 30px;
    font-size: 1.1rem;
}

/* =====================================================
   RESPONSIVE DESIGN
   ===================================================== */

@media (max-width: 1024px) {
    .fh-hero-content h1 { font-size: 3rem; }

    .fh-cat-text { padding: 50px 40px; }
    .fh-cat-text h2 { font-size: 2.1rem; }

    /* Timeline: single column with the line on the left */
    .fh-timeline::before { left: 20px; }

    .fh-timeline-item,
    .fh-timeline-item.fh-left,
    .fh-timeline-item.fh-right {
        width: 100%;
        left: 0;
        text-align: left;
        padding-left: 50px;
        padding-right: 20px;
    }

    .fh-timeline-item.fh-left .fh-timeline-dot,
    .fh-timeline-item.fh-right .fh-timeline-dot {
        left: 13px;
        right: auto;
    }
}

@media (max-width: 768px) {
    .fh-hero {
        height: auto;
        min-height: 100vh;
        padding: 100px 0 60px;
    }
    .fh-hero-content h1 { font-size: 2.3rem; }
    .fh-hero-content p  { font-size: 1rem; }

    .fh-stats-bar { gap: 30px; padding: 36px 20px; }
    .fh-stat-number { font-size: 1.8rem; }

    /* Category blocks: stacked, image on top, no diagonal cut */
    .fh-cat-block {
        grid-template-columns: 1fr;
        min-height: auto;
    }

    .fh-cat-block.fh-reverse .fh-cat-image,
    .fh-cat-block.fh-reverse .fh-cat-text {
        order: 0;
    }

    .fh-cat-image,
    .fh-cat-block.fh-reverse .fh-cat-image {
        min-height: 0;
        height: 260px;
        clip-path: none;
    }

    .fh-cat-text { padding: 40px 24px; }

    .fh-drop-card { flex: 0 0 240px; }

    .fh-section-head h2 { font-size: 2rem; }
    .fh-cta-inner h2 { font-size: 2rem; }
}

@media (max-width: 480px) {
    .fh-hero-content h1 { font-size: 1.9rem; }
    .fh-hero-buttons { flex-direction: column; width: 100%; }
    .fh-btn-primary,
    .fh-btn-ghost { width: 100%; text-align: center; box-sizing: border-box; }
    .fh-cat-text .fh-btn-primary { width: auto; }
}

/* Respect the "reduce motion" accessibility setting */
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }

    .fh-scroll-indicator span::after { animation: none; }

    .fh-btn-primary,
    .fh-drop-card,
    .fh-timeline-card,
    .fh-drop-thumb img { transition: none; }
}

/* =====================================================
   FETISH HOMEPAGE V2 - THEME INTEGRATION PATCH
   Adapts the homepage to the PO Modern theme header
   and the WordPress admin bar.
   ===================================================== */

:root {
    /* Theme header is NOT fixed: 84px min-height + 1px border */
    --fh-header-height: 85px;
    /* Approximate height of the sticky pill navigation */
    --fh-nav-height: 70px;
}

/* Logged-in users: the admin bar is fixed and would cover the sticky pills */
body.admin-bar {
    --fh-sticky-offset: 32px;
}

@media (max-width: 782px) {
    body.admin-bar { --fh-sticky-offset: 46px; }
}

/* Below 600px the admin bar scrolls away with the page */
@media (max-width: 600px) {
    body.admin-bar { --fh-sticky-offset: 0px; }
}

/* Anchor jumps stop below the sticky pill navigation */
.fh-latest-drops,
.fh-category-showcase,
.fh-cat-block,
.fh-news-section {
    scroll-margin-top: calc(var(--fh-sticky-offset) + var(--fh-nav-height));
}

/* The theme sets a:hover { text-decoration: underline } - suppress it here */
.fh-homepage a,
.fh-homepage a:hover {
    text-decoration: none;
}

/* Desktop only: hero fills the viewport below the (non-fixed) theme header */
@media (min-width: 981px) {
    .fh-hero {
        height: calc(100vh - var(--fh-header-height));
        height: calc(100svh - var(--fh-header-height));
        min-height: 600px;
    }
}

/* =====================================================
   FONT: inherit the theme's system font stack so the
   homepage matches header and footer on every OS
   ===================================================== */
.fh-homepage {
    font-family: inherit;
}

/* =====================================================
   OPTIONAL: soft transition from the light theme header
   into the dark hero (remove this block to revert)
   ===================================================== */
.fh-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 140px;
    z-index: 1;
    pointer-events: none;
    background: linear-gradient(
        180deg,
        rgba(0, 0, 0, 0.45) 0%,
        rgba(0, 0, 0, 0.18) 45%,
        rgba(0, 0, 0, 0) 100%
    );
}

/* =====================================================
   FOOTER: dark variant on the homepage only
   The CTA banner fades into --fh-bg, so the footer
   continues the same surface instead of a hard cut.
   ===================================================== */
body:has(.fh-homepage) .site-footer {
    background: var(--fh-bg);
    color: var(--fh-text-dim);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

body:has(.fh-homepage) .site-footer a {
    color: var(--fh-text-dim);
}

body:has(.fh-homepage) .site-footer a:hover {
    color: var(--fh-accent);
}
/* Wallet and registration presentation; plugin templates retain their logic. */
.woocommerce .woo-wallet-my-wallet-container {
    display: grid; grid-template-columns: 200px minmax(0, 1fr);
    border: 1px solid var(--line); border-radius: 12px; overflow: hidden;
}
.woocommerce .woo-wallet-my-wallet-container .woo-wallet-sidebar {
    float: none; width: auto; padding: 24px 16px; background: var(--soft);
}
.woo-wallet-sidebar .woo-wallet-sidebar-heading { margin: 0 0 20px; font-size: 18px; }
.woo-wallet-sidebar .woo-wallet-sidebar-heading a { color: var(--ink); }
.woo-wallet-sidebar ul { padding: 0; }
.woo-wallet-sidebar ul li.card {
    margin: 12px 0; border: 1px solid var(--line); border-radius: 10px; box-shadow: none;
}
.woo-wallet-sidebar ul li.card:hover { box-shadow: none; border-color: var(--accent); }
.woo-wallet-sidebar ul li.card a { padding: 18px 12px; }
.woo-wallet-sidebar ul li.card p { margin-top: 8px; line-height: 1.4; }
.woocommerce .woo-wallet-my-wallet-container .woo-wallet-content {
    float: none; width: auto; min-width: 0; padding: 24px;
}
.woo-wallet-content .woo-wallet-content-heading {
    display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.woo-wallet-content .woo-wallet-content-h3,
.woo-wallet-content .woo-wallet-price { float: none; margin: 0; }
.woo-wallet-content .woo-wallet-price { font-size: 24px; font-weight: 700; }
.woo-wallet-content hr { border: 0; border-top: 1px solid var(--line); margin: 20px 0; }
.woo-wallet-content .woo-wallet-transactions-items { padding: 0; margin: 0; list-style: none; }
.woo-wallet-content .woo-wallet-transactions-items li {
    display: flex; justify-content: space-between; align-items: flex-start; gap: 16px;
    padding: 16px 0; border-bottom: 1px solid var(--line); overflow: visible;
}
.woo-wallet-content .woo-wallet-transactions-items li:last-child { border-bottom: 0; }
.woo-wallet-content .woo-wallet-transactions-items li div:first-child {
    float: none; max-width: none; min-width: 0; overflow-wrap: anywhere;
}
.woo-wallet-content .woo-wallet-transactions-items li div:last-child {
    float: none; flex-shrink: 0; font-weight: 650; white-space: nowrap;
}
.woo-wallet-transactions-items small { color: var(--muted); }
#wc-wallet-transaction-details { width: 100% !important; border-collapse: collapse; }
#wc-wallet-transaction-details th { background: var(--soft); color: var(--ink); }
#wc-wallet-transaction-details th, #wc-wallet-transaction-details td {
    padding: 13px 10px; border-bottom: 1px solid var(--line); vertical-align: top;
}
#wc-wallet-transaction-details mark { background: transparent; padding: 0; font-weight: 650; }
#wc-wallet-transaction-details mark.credit { color: #197f36; }
#wc-wallet-transaction-details mark.debit { color: #bf0003; }
#wc-wallet-transaction-details td { overflow-wrap: anywhere; }
#wc-wallet-transaction-details_wrapper { min-width: 0; }
#wc-wallet-transaction-details_wrapper .dataTables_length,
#wc-wallet-transaction-details_wrapper .dataTables_filter { margin-bottom: 18px; }
#wc-wallet-transaction-details_wrapper input,
#wc-wallet-transaction-details_wrapper select {
    min-height: 42px; border: 1px solid var(--line); border-radius: 8px;
    background: white; padding: 8px 10px; max-width: 100%; color: var(--ink);
}
#wc-wallet-transaction-details_wrapper .dataTables_paginate .paginate_button {
    border-radius: 8px; border: 1px solid transparent; background: transparent;
}
#wc-wallet-transaction-details_wrapper .dataTables_paginate .paginate_button.current {
    background: var(--soft); border-color: var(--line); color: var(--ink) !important;
}
#wc-wallet-transaction-details_wrapper .dataTables_paginate .paginate_button:hover {
    background: var(--soft); border-color: var(--accent); color: var(--accent) !important;
}
.ur-frontend-form {
    border: 1px solid var(--line) !important; border-radius: 12px;
    background: white; padding: 28px !important; max-width: 900px;
}
.ur-frontend-form .ur-form-row .ur-form-grid { min-width: 0; }
.ur-frontend-form .ur-form-row .ur-form-grid label { color: var(--ink); font-size: 14px; }
.ur-frontend-form input[type="text"], .ur-frontend-form input[type="email"],
.ur-frontend-form input[type="password"], .ur-frontend-form input[type="number"],
.ur-frontend-form input[type="tel"], .ur-frontend-form input[type="url"],
.ur-frontend-form select, .ur-frontend-form textarea {
    border: 1px solid var(--line) !important; border-radius: 8px !important;
    background: white; color: var(--ink); min-height: 46px; padding: 10px 12px !important;
    box-shadow: none; width: 100%;
}
.ur-frontend-form input[type="password"] { padding-right: 42px !important; }
.ur-frontend-form .description { color: var(--muted); line-height: 1.5; }
.ur-frontend-form .ur-submit-button,
.ur-frontend-form button[type="submit"], .ur-frontend-form input[type="submit"] {
    background: var(--accent) !important; color: white !important;
    border: 1px solid var(--accent) !important; border-radius: 8px !important;
    min-height: 46px; padding: 10px 24px !important; font-weight: 650; cursor: pointer;
}
.ur-frontend-form button[type="submit"]:hover,
.ur-frontend-form input[type="submit"]:hover { filter: brightness(.93); }
.ur-frontend-form :is(input, select, textarea, button):focus-visible,
#wc-wallet-transaction-details_wrapper :is(input, select, a):focus-visible,
.woo-wallet-sidebar a:focus-visible {
    outline: 2px solid var(--accent); outline-offset: 3px;
}
@media (max-width: 760px) {
    .woocommerce .woo-wallet-my-wallet-container { grid-template-columns: minmax(0, 1fr); }
    .woocommerce .woo-wallet-my-wallet-container .woo-wallet-sidebar { padding: 16px; }
    .woo-wallet-sidebar .woo-wallet-sidebar-heading { text-align: left; margin-bottom: 12px; }
    .woo-wallet-sidebar ul li.card { margin: 0; }
    .woocommerce .woo-wallet-my-wallet-container .woo-wallet-content { padding: 18px; }
    .woo-wallet-content .woo-wallet-price { font-size: 21px; }
    #wc-wallet-transaction-details_wrapper .dataTables_filter,
    #wc-wallet-transaction-details_wrapper .dataTables_length,
    #wc-wallet-transaction-details_wrapper .dataTables_info,
    #wc-wallet-transaction-details_wrapper .dataTables_paginate {
        float: none; text-align: left; margin: 12px 0;
    }
    .ur-frontend-form { padding: 20px !important; }
    .ur-frontend-form .ur-form-row { display: block !important; }
    .ur-frontend-form .ur-form-row .ur-form-grid { width: 100% !important; padding: 0 !important; }
}

/* Keep wallet transaction identifiers readable. */
#wc-wallet-transaction-details th:first-child,
#wc-wallet-transaction-details td:first-child {
    white-space: nowrap; overflow-wrap: normal; word-break: normal; min-width: 76px;
}

/* Keep transaction types and monetary amounts together on narrow screens. */
#wc-wallet-transaction-details th:nth-child(2),
#wc-wallet-transaction-details td:nth-child(2),
#wc-wallet-transaction-details th:nth-child(3),
#wc-wallet-transaction-details td:nth-child(3) {
    white-space: nowrap; overflow-wrap: normal; word-break: normal;
}
@media (max-width: 600px) {
    #wc-wallet-transaction-details th,
    #wc-wallet-transaction-details td { font-size: 13px; padding: 12px 8px; }
}

/* Let TeraWallet collapse secondary columns without horizontal scrolling. */
@media (max-width: 767px) {
    #wc-wallet-transaction-details { min-width: 0; }
    #wc-wallet-transaction-details_wrapper { max-width: 100%; }
    #wc-wallet-transaction-details tbody tr.child td {
        white-space: normal; min-width: 0; overflow-wrap: break-word;
    }
    #wc-wallet-transaction-details ul.dtr-details {
        width: 100%; white-space: normal;
    }
    #wc-wallet-transaction-details .dtr-data { overflow-wrap: break-word; }
}
