/* MY CYBERTEL — WIDER ACCOUNT WORKSPACE
   Widen the authenticated customer portal without changing the locked
   welcome artwork, product images, card mechanics or guest/login screens. */
html[data-system-finish] body.cyb1000 #page-account.is-authenticated #cyb1600Account.c16-account-panel {
  box-sizing:border-box!important;
  width:calc(100% - clamp(24px,4vw,80px))!important;
  max-width:1840px!important;
  min-width:0!important;
  margin:clamp(18px,2.1vw,30px) auto 42px!important;
  padding:clamp(16px,1.55vw,29px)!important;
  border:0!important;
  border-radius:0!important;
  background:#fff!important;
  box-shadow:none!important;
}
html[data-system-finish] body.cyb1000 #page-account.is-authenticated #cyb1600Account,
html[data-system-finish] body.cyb1000 #page-account.is-authenticated #cyb1600Account * {
  box-sizing:border-box;
}
html[data-system-finish] body.cyb1000 #page-account.is-authenticated #cyb1600Account > .c3-account-header {
  display:block!important;
  width:100%!important;
  max-width:100%!important;
  min-width:0!important;
  margin:0 0 clamp(15px,1.35vw,23px)!important;
}
/* The banner's photography, curves, content, height and controls remain unchanged. */
html[data-system-finish] body.cyb1000 #page-account.is-authenticated #cyb1600Account > .c3-account-header .c3-account-summary {
  box-sizing:border-box!important;
  width:100%!important;
  max-width:100%!important;
  min-width:0!important;
}
html[data-system-finish] body.cyb1000 #page-account.is-authenticated #cyb1600Account .c3-account-grid {
  display:grid!important;
  grid-template-columns:minmax(0,1fr)!important;
  align-items:start!important;
  gap:clamp(14px,1.25vw,22px)!important;
  width:100%!important;
  max-width:100%!important;
  min-width:0!important;
  margin:0!important;
  padding:0!important;
}
/* Existing sections retain their hierarchy. Prevent narrow legacy columns. */
html[data-system-finish] body.cyb1000 #page-account.is-authenticated #cyb1600Account .c3-account-grid > :is(#accountRequests,#accountReviews,#accountSaved,#accountProfile,#accountDocuments) {
  min-width:0!important;
  max-width:100%!important;
  width:100%!important;
  margin-inline:0!important;
  grid-column:1/-1!important;
}
html[data-system-finish] body.cyb1000 #page-account.is-authenticated #cyb1600Account :is(#accountRequests,#accountReviews,#accountSaved,#accountProfile,#accountDocuments) {
  scroll-margin-top:94px!important;
}
html[data-system-finish] body.cyb1000 #page-account.is-authenticated #cyb1600Account #accountSaved .c3-saved-grid {
  width:100%!important;
  max-width:100%!important;
  min-width:0!important;
}
/* Give history and account feedback enough room for readable metadata. */
html[data-system-finish] body.cyb1000 #page-account.is-authenticated #cyb1600Account #accountRequests .cyb-register-table,
html[data-system-finish] body.cyb1000 #page-account.is-authenticated #cyb1600Account #accountReviews .cyb-my-review-list {
  box-sizing:border-box!important;
  width:100%!important;
  min-width:0!important;
  max-width:100%!important;
}
/* The profile-photo widget also occupies the width of the account workspace.
   Its original photo/upload/remove controls remain functional and visible. */
html[data-system-finish] body.cyb1000 #page-account.is-authenticated #cyb1600Account .c3-account-grid > #cybCustomerAvatar.cyb-account-avatar {
  box-sizing:border-box!important;
  width:100%!important;
  max-width:100%!important;
  min-width:0!important;
  grid-column:1/-1!important;
  margin:0!important;
}
@media(min-width:980px) {
  html[data-system-finish] body.cyb1000 #page-account.is-authenticated #cyb1600Account #cybCustomerAvatar.cyb-account-avatar {
    display:grid!important;
    grid-template-columns:minmax(225px,1fr) auto minmax(210px,.85fr)!important;
    grid-template-rows:auto auto!important;
    grid-template-areas:"copy controls tip" "status status status"!important;
    align-items:center!important;
    gap:8px clamp(18px,2vw,36px)!important;
    min-height:0!important;
    padding:18px 25px 14px!important;
  }
  html[data-system-finish] body.cyb1000 #page-account.is-authenticated #cyb1600Account #cybCustomerAvatar .cyb-avatar-copy {grid-area:copy!important;min-width:0!important;}
  html[data-system-finish] body.cyb1000 #page-account.is-authenticated #cyb1600Account #cybCustomerAvatar .cyb-avatar-controls {grid-area:controls!important;min-width:0!important;}
  html[data-system-finish] body.cyb1000 #page-account.is-authenticated #cyb1600Account #cybCustomerAvatar .cyb-avatar-tip {
    grid-area:tip!important;
    width:100%!important;
    max-width:45ch!important;
    margin:0!important;
    color:#677f92!important;
    font-size:12px!important;
    line-height:1.6!important;
  }
  html[data-system-finish] body.cyb1000 #page-account.is-authenticated #cyb1600Account #cybCustomerAvatar .cyb-avatar-status {
    grid-area:status!important;
    width:100%!important;
    margin:0!important;
    min-height:1em!important;
    font-size:11px!important;
    line-height:1.5!important;
  }
}
@media(min-width:980px) and (max-width:1199px) {
  html[data-system-finish] body.cyb1000 #page-account.is-authenticated #cyb1600Account #cybCustomerAvatar.cyb-account-avatar {
    grid-template-columns:minmax(180px,1fr) auto minmax(160px,.7fr)!important;
    gap:8px 16px!important;
  }
}

/* At large desktop widths, pair Saved Products and My Details.
   Both remain real forms/product cards with no new or repeated content. */
@media(min-width:1550px) {
  html[data-system-finish] body.cyb1000 #page-account.is-authenticated #cyb1600Account .c3-account-grid {
    grid-template-columns:minmax(0,1.65fr) minmax(415px,1fr)!important;
    column-gap:clamp(18px,1.5vw,27px)!important;
  }
  html[data-system-finish] body.cyb1000 #page-account.is-authenticated #cyb1600Account .c3-account-grid > #accountSaved {
    grid-column:1!important;
    grid-row:auto!important;
    align-self:start!important;
  }
  html[data-system-finish] body.cyb1000 #page-account.is-authenticated #cyb1600Account .c3-account-grid > #accountProfile {
    grid-column:2!important;
    grid-row:auto!important;
    align-self:start!important;
  }
}
/* Use the available space in My Details without pushing the form to one edge.
   Keep email help immediately underneath its email field. */
@media(min-width:980px) and (max-width:1549px) {
  html[data-system-finish] body.cyb1000 #page-account.is-authenticated #cyb1600Account #accountProfile #c16ProfileForm {
    display:grid!important;
    grid-template-columns:minmax(0,1fr) minmax(0,1fr)!important;
    grid-template-areas:
      "names names"
      "email phone"
      "help phone"
      "address address"
      "preference submit"
      "status status"!important;
    gap:0 clamp(17px,2vw,30px)!important;
    align-items:start!important;
    width:100%!important;
    min-width:0!important;
  }
  html[data-system-finish] body.cyb1000 #page-account.is-authenticated #cyb1600Account #c16ProfileForm > .c3-profile-names {grid-area:names!important;}
  html[data-system-finish] body.cyb1000 #page-account.is-authenticated #cyb1600Account #c16ProfileForm > .cyb-profile-email-label {grid-area:email!important;}
  html[data-system-finish] body.cyb1000 #page-account.is-authenticated #cyb1600Account #c16ProfileForm > .cyb-profile-email-help {grid-area:help!important;}
  html[data-system-finish] body.cyb1000 #page-account.is-authenticated #cyb1600Account #c16ProfileForm > label:has([name="phone"]) {grid-area:phone!important;}
  html[data-system-finish] body.cyb1000 #page-account.is-authenticated #cyb1600Account #c16ProfileForm > label:has([name="address"]) {grid-area:address!important;}
  html[data-system-finish] body.cyb1000 #page-account.is-authenticated #cyb1600Account #c16ProfileForm > .c3-preference {grid-area:preference!important;align-self:center!important;}
  html[data-system-finish] body.cyb1000 #page-account.is-authenticated #cyb1600Account #c16ProfileForm > :is(button[type="submit"],button:not([type]),a.c16-btn.primary) {
    grid-area:submit!important;
    width:fit-content!important;
    max-width:100%!important;
    justify-self:end!important;
    align-self:center!important;
  }
  html[data-system-finish] body.cyb1000 #page-account.is-authenticated #cyb1600Account #c16ProfileForm > #accountProfileStatus {grid-area:status!important;}
}
/* The locked compact saved-product image layout remains authoritative. */
@media(max-width:979px) {
  html[data-system-finish] body.cyb1000 #page-account.is-authenticated #cyb1600Account.c16-account-panel {
    width:calc(100% - 32px)!important;
    padding:16px!important;
    margin:19px auto 30px!important;
  }
  html[data-system-finish] body.cyb1000 #page-account.is-authenticated #cyb1600Account .c3-account-grid {
    grid-template-columns:minmax(0,1fr)!important;
  }
}
@media(max-width:620px) {
  html[data-system-finish] body.cyb1000 #page-account.is-authenticated #cyb1600Account.c16-account-panel {
    width:calc(100% - 16px)!important;
    padding:8px!important;
    margin:12px auto 23px!important;
  }
  html[data-system-finish] body.cyb1000 #page-account.is-authenticated #cyb1600Account .c3-account-grid {
    gap:13px!important;
  }
}
@media(prefers-reduced-motion:reduce) {
  html[data-system-finish] body.cyb1000 #page-account.is-authenticated #cyb1600Account {scroll-behavior:auto!important;}
}

/* Welcome banner optical proportions: let the ACCOUNT remain wide while this
   editorial hero retains its approved visual balance. Avoid scaling device
   photography or distorting the curved transition. */
@media(min-width:901px) {
  html[data-system-finish] body.cyb1000 #page-account.is-authenticated #cyb1600Account > .c3-account-header.cyb-welcome-banner {
    box-sizing:border-box!important;
    width:100%!important;
    max-width:1600px!important;
    min-height:clamp(236px,15vw,264px)!important;
    height:auto!important;
    margin:0 auto clamp(15px,1.35vw,23px)!important;
  }
  html[data-system-finish] body.cyb1000 #page-account.is-authenticated #cyb1600Account > .cyb-welcome-banner > .cyb-welcome-copy {
    min-height:clamp(236px,15vw,264px)!important;
  }
  html[data-system-finish] body.cyb1000 #page-account.is-authenticated #cyb1600Account .cyb-welcome-scene > img {
    width:100%!important;
    height:100%!important;
    object-fit:cover!important;
    transform:none!important;
  }
}
