/* ALTAHANY_CODEX_LAUNCH_REPAIR_V1 */
html,body{max-width:100%;overflow-x:hidden}
body{font-family:Arial,Tahoma,"Segoe UI",sans-serif}
main{min-height:auto}
main>section,.section,.ath-section{margin-block:clamp(.75rem,2vw,1.75rem)}
.pub-footer{width:100%!important;max-width:none!important;margin:0!important;border-radius:0!important}
.pub-footer>.container{width:min(100%,1280px)!important;max-width:1280px!important;margin-inline:auto!important;padding-inline:clamp(1rem,4vw,2.5rem)!important}
.ath-footer-newsletter,.ath-footer-main{margin-inline:0!important}
.ath-contact-bar svg{width:20px;height:20px;fill:currentColor;flex:none}
.ath-auth-modern{padding:clamp(1rem,4vw,3rem) 1rem!important;min-height:auto!important}
.ath-auth-modern__card{width:min(100%,680px)!important;margin-inline:auto!important;padding:clamp(1rem,3vw,2rem)!important}
.ath-auth-modern__card.is-wide{width:min(100%,820px)!important}
.ath-auth-modern__grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:1rem}
.ath-auth-modern__form label{min-width:0}
.ath-auth-modern__form input{width:100%;min-height:48px;font:inherit}
.ath-auth-modern__foot{display:flex;align-items:center;justify-content:center;gap:.6rem;flex-wrap:wrap}
.ath-auth-modern__foot a{font-weight:800;text-decoration:underline;text-underline-offset:3px}
.ath-customer-hub{width:min(100% - 2rem,1180px)!important;margin:clamp(1rem,3vw,2rem) auto!important;padding:clamp(1rem,3vw,2rem)!important}
.ath-customer-hub__header{display:flex;align-items:flex-start;justify-content:space-between;gap:1rem;flex-wrap:wrap}
.ath-account-stats-row{display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr))!important;width:100%!important;gap:.75rem!important}
.ath-account-stat{min-width:0!important;min-height:104px!important;display:flex!important;flex-direction:column!important;justify-content:center!important;align-items:center!important;padding:.8rem!important;text-decoration:none!important}
.ath-account-stat .number{font-size:clamp(1.4rem,4vw,2rem)!important;line-height:1!important}
.ath-account-stat span{font-size:.85rem!important;text-align:center!important;white-space:normal!important}
.ath-customer-grid{grid-template-columns:repeat(auto-fit,minmax(210px,1fr))!important}
.ath-customer-panels{grid-template-columns:repeat(auto-fit,minmax(280px,1fr))!important}
.ath-quote-shell{width:100%;max-width:100%;overflow:hidden}
.ath-booking-steps-v1068r3{margin-block:0 1.25rem!important}
.ath-quote-designs{grid-template-columns:repeat(auto-fit,minmax(170px,1fr))!important}
.ath-quote-design img{height:150px!important}
.ath-category-pills{display:flex;gap:.5rem;overflow-x:auto;padding-block:.35rem;scrollbar-width:thin}
.ath-category-pills a{flex:0 0 auto}
.ath-category-pills a.is-active{background:#6b3d0c!important;color:#fff!important;border-color:#6b3d0c!important}
.ath-settings-page{width:min(100%,1100px);margin-inline:auto}
.ath-settings-head{margin-bottom:1rem}
.ath-settings-head h1{margin:.2rem 0;font-size:clamp(1.5rem,4vw,2.1rem)}
.ath-settings-head p{margin:0;color:#6f6256}
.ath-settings-form{display:grid;gap:1rem}
.ath-settings-card{background:#fff;border:1px solid #eadfc8;border-radius:8px;padding:clamp(1rem,2.5vw,1.4rem);box-shadow:0 6px 18px rgba(45,31,20,.05)}
.ath-settings-card h2{margin:0 0 1rem;font-size:1.15rem}
.ath-settings-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:1rem}
.ath-settings-grid label{display:grid;gap:.4rem;min-width:0;font-weight:700}
.ath-settings-card textarea{resize:vertical}
.ath-toggle-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.75rem;margin-top:1rem}
.ath-setting-toggle{display:flex!important;align-items:center;justify-content:space-between;gap:1rem;padding:.85rem 1rem;border:1px solid #eadfc8;border-radius:8px;background:#fffaf2;cursor:pointer}
.ath-setting-toggle span{display:grid;gap:.15rem}
.ath-setting-toggle small{font-weight:400;color:#74675d}
.ath-setting-toggle input[type=checkbox]{appearance:none!important;width:48px!important;height:28px!important;min-width:48px!important;border:1px solid #cdbb9d!important;border-radius:999px!important;background:#d8d1c6!important;position:relative!important;margin:0!important;cursor:pointer}
.ath-setting-toggle input[type=checkbox]:after{content:"";position:absolute;width:22px;height:22px;top:2px;inset-inline-start:2px;border-radius:50%;background:#fff;box-shadow:0 1px 4px rgba(0,0,0,.25);transition:transform .15s ease}
.ath-setting-toggle input[type=checkbox]:checked{background:#a66a16!important;border-color:#a66a16!important}
.ath-setting-toggle input[type=checkbox]:checked:after{transform:translateX(20px)}
[dir=rtl] .ath-setting-toggle input[type=checkbox]:checked:after{transform:translateX(-20px)}
.ath-settings-save{position:sticky;bottom:0;z-index:10;padding:.75rem;background:rgba(255,253,249,.94);border-top:1px solid #eadfc8}
.ath-settings-save button{width:100%}
.admin-content{max-width:100%;overflow-x:hidden}
.admin-content .table-wrap,.admin-content .table-responsive{max-width:100%;overflow:auto}
@media(max-width:768px){
  .ath-auth-modern__grid,.ath-settings-grid,.ath-toggle-grid{grid-template-columns:1fr}
  .ath-customer-hub{width:min(100% - 1rem,1180px)!important;padding:1rem!important}
  .ath-account-stats-row{grid-template-columns:repeat(2,minmax(0,1fr))!important}
  .ath-account-stat{min-height:92px!important}
  .ath-customer-grid,.ath-customer-panels{grid-template-columns:1fr!important}
  .ath-quote-designs{grid-template-columns:repeat(2,minmax(0,1fr))!important}
  .admin-content{padding:12px!important}
  .admin-content .grid-2,.admin-content .grid-3{grid-template-columns:1fr!important}
  body{padding-bottom:calc(54px + env(safe-area-inset-bottom))}
}
@media(max-width:390px){.ath-quote-designs{grid-template-columns:1fr!important}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation-duration:.001ms!important;transition-duration:.001ms!important;scroll-behavior:auto!important}}
