/* Megatech: the core account screens (/hesap/*) rendered in the Megatech login/register look.
   The core templates keep their forum-* markup; these rules map it onto the Megatech form styling. */
.megabre-auth-topbar{background:#fff;padding:1rem 0;box-shadow:0 1px 3px rgba(0,0,0,.08)}
.megabre-auth-topbar .megabre-auth-logo img{height:36px;width:auto}
.megabre-auth-topbar .megabre-auth-back-btn{color:var(--color-accent,#22badf);text-decoration:none;font-size:.9rem;font-weight:500}
.megabre-auth-topbar .megabre-auth-back-btn:hover{color:var(--color-accent,#22badf);text-decoration:underline}

.megabre-auth-page section.section_gap{background:var(--bg-light,#f8f9fa)}
.megabre-auth-page .megabre-form-wrap .forum-header,
.megabre-auth-page .megabre-form-wrap .forum-nav{display:none}
.megabre-form-wrap .forum-form{max-width:none !important;margin:0 !important;background:none;border:0;padding:0;box-shadow:none}
.megabre-form-wrap .forum-field{margin-bottom:1rem}
.megabre-form-wrap .forum-field label{display:block;font-weight:500;margin-bottom:.35rem;text-transform:none;letter-spacing:0;font-size:1rem;color:inherit}
.megabre-form-wrap .forum-field input:not([type=checkbox]):not([type=radio]),
.megabre-form-wrap .forum-field select,
.megabre-form-wrap .forum-field textarea{display:block;width:100%;padding:.375rem .75rem;font-size:1rem;line-height:1.5;color:var(--bs-body-color,#212529);background:var(--bs-body-bg,#fff);border:1px solid var(--bs-border-color,#dee2e6);border-radius:8px}
.megabre-form-wrap .forum-field input:focus,
.megabre-form-wrap .forum-field select:focus,
.megabre-form-wrap .forum-field textarea:focus{border-color:var(--primary,#2C3E50);outline:0;box-shadow:none}
.megabre-form-wrap .forum-field-hint,
.megabre-form-wrap .forum-field small{display:block;margin-top:.25rem;font-size:.8rem;color:var(--text-muted,#666)}
.megabre-form-wrap .forum-form__actions{margin-top:1rem}
.megabre-form-wrap .forum-form__actions .btn,
.megabre-form-wrap .forum-form button[type=submit]{display:block;width:100%;font-size:15px;padding:12px 20px;border-radius:5px;background:var(--secondary-bg,#2C3E50);border:1px solid var(--secondary-bg,#2C3E50);color:#fff;font-weight:600;transition:all .4s}
.megabre-form-wrap .forum-form__actions .btn:hover,
.megabre-form-wrap .forum-form button[type=submit]:hover{background:var(--secondary-bg-dark,#1A252F);border-color:var(--secondary-bg-dark,#1A252F)}
.megabre-form-wrap a{color:var(--primary,#2C3E50)}
.megabre-form-wrap .forum-flash{padding:.75rem 1rem;margin-bottom:1rem;border:1px solid transparent;border-radius:.375rem}
.megabre-form-wrap .forum-flash--error,.megabre-form-wrap .forum-flash--danger{color:#842029;background:#f8d7da;border-color:#f5c2c7}
.megabre-form-wrap .forum-flash--warning{color:#664d03;background:#fff3cd;border-color:#ffecb5}
.megabre-form-wrap .forum-flash--success{color:#0f5132;background:#d1e7dd;border-color:#badbcc}
.megabre-form-wrap .forum-flash--info{color:#055160;background:#cff4fc;border-color:#b6effb}

.forum-avatar{display:inline-flex;align-items:center;justify-content:center;width:40px;height:40px;border-radius:50%;overflow:hidden;background:var(--primary,#2C3E50);color:#fff;font-weight:600;vertical-align:middle}
.forum-avatar img{width:100%;height:100%;object-fit:cover}
.forum-avatar--square{border-radius:12px}
.forum-avatar--sm{width:32px;height:32px;font-size:.8rem}
.forum-avatar--lg{width:64px;height:64px;font-size:1.5rem}
.forum-avatar--xl{width:96px;height:96px;font-size:2rem}

/* Signed-in account pages (profile, security, notifications) inside the full Megatech chrome */
.megabre-account-page{padding:2.5rem 0 3rem}

/* Customers sign in with their e-mail: the core registration form's username field is hidden (it is optional via account.username_required). */
.forum-field:has(> #reg-username){display:none}

/* cart table on phones: stacked rows instead of a sideways-scrolling table */
@media (max-width:575.98px){
  .cart-table thead{display:none}
  .cart-table tr{display:flex;flex-wrap:wrap;align-items:center;gap:0 .5rem;border-bottom:1px solid var(--bs-border-color,#dee2e6)}
  .cart-table>:not(caption)>*>*{border:0;padding:.35rem .25rem}
  .cart-table tbody td:nth-child(1){flex:1 1 100%}
  .cart-table tbody td:nth-child(2){flex:1 1 auto}
  .cart-table tbody td:nth-child(3){flex:0 0 auto;margin-left:auto}
  .cart-table tbody td:nth-child(4){flex:0 0 auto}
  .cart-table tfoot td[colspan]{flex:1 1 auto}
  .cart-table tfoot td:empty{display:none}
  .cart-table select[name="billingcycle"]{min-width:120px;font-size:.85rem}
}
