/* One responsive layout for the main ASP.NET Web Forms application. */
html, body {
  max-width: 100%;
  overflow-x: hidden;
}

.embedded-page .top-header,
.embedded-page .footer-section,
.embedded-page .back-to-top {
  display: none !important;
}

.embedded-page .page-content {
  padding-top: 0 !important;
}

/* Password visibility control */
.password-field-wrap {
  position: relative;
  width: 100%;
}

.password-field-wrap > input {
  padding-right: 46px !important;
}

.password-visibility-toggle {
  position: absolute;
  top: 50%;
  right: 10px;
  z-index: 3;
  width: 34px;
  height: 34px;
  padding: 0;
  transform: translateY(-50%);
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: #04285c;
  display: grid;
  place-items: center;
}

.password-visibility-toggle:hover,
.password-visibility-toggle:focus {
  background: #edf5ff;
  outline: none;
}

/* Profile and cashback pages */
.profile-page {
  background: #f4f7fb;
  min-height: 65vh;
}

.profile-page > .py-4.border-bottom {
  background: #fff;
  border-color: #e1e8ef !important;
}

.profile-page .breadcrumb a {
  color: #04285c;
  text-decoration: none;
}

.profile-page .section-padding > .container > h2,
.profile-page .section-padding h2.fw-bold {
  color: #04285c;
}

.profile-page .card {
  border: 0;
  border-radius: 14px !important;
  box-shadow: 0 5px 20px rgba(4, 40, 92, .07);
  overflow: hidden;
}

.profile-page .card-body {
  padding: 1.5rem;
}

.profile-page .btn-dark {
  background: #04285c;
  border-color: #04285c;
  border-radius: 8px;
}

.profile-page .btn-dark:hover,
.profile-page .btn-dark:focus {
  background: #1ea026;
  border-color: #1ea026;
}

.profile-page .btn-outline-dark {
  color: #04285c;
  border-color: #04285c;
  border-radius: 8px;
}

.profile-page .form-label {
  color: #334155;
  font-weight: 600;
  font-size: .88rem;
}

.profile-page .form-control,
.profile-page .form-select {
  min-height: 46px;
  border-color: #d6e0e9;
  border-radius: 9px;
  box-shadow: none;
}

.profile-page .form-control:focus,
.profile-page .form-select:focus {
  border-color: #1ea026;
  box-shadow: 0 0 0 .2rem rgba(30, 160, 38, .12);
}

.profile-page .table-responsive {
  background: #fff;
  border: 1px solid #dfe6ee;
  border-radius: 14px;
  box-shadow: 0 5px 20px rgba(4, 40, 92, .06);
  overflow: auto;
}

.profile-page table {
  margin-bottom: 0 !important;
  white-space: nowrap;
}

.profile-page table th {
  padding: .9rem .8rem !important;
  background: #04285c !important;
  color: #fff !important;
  border: 0 !important;
  font-size: .8rem;
  text-transform: uppercase;
  letter-spacing: .025em;
}

.profile-page table td {
  padding: .85rem .8rem !important;
  vertical-align: middle !important;
  border-color: #edf1f5 !important;
  font-size: .88rem;
}

.profile-page table tr:hover td {
  background: #f4f8fd;
}

.profile-page .list-group-item {
  padding: .9rem 1rem;
  border-color: #e3e9ef;
  color: #334155;
}

.profile-page .list-group-item.active {
  color: #fff;
  background: #04285c;
  border-color: #04285c;
}

.profile-page .list-group-item:not(.active):hover {
  color: #04285c;
  background: #edf5ff;
}

.profile-page .text-success {
  color: #1ea026 !important;
}

.profile-page .alert {
  border: 0;
  border-radius: 10px;
}

@media (max-width: 767.98px) {
  .profile-page .section-padding {
    padding-top: 28px !important;
  }

  .profile-page .card-body {
    padding: 1.15rem;
  }

  .profile-page .d-flex.justify-content-between.align-items-center {
    align-items: flex-start !important;
    gap: .75rem;
    flex-wrap: wrap;
  }
}

/* Profile and cashback menu */
.account-menu-trigger {
  display: flex;
  align-items: center;
  gap: .45rem;
  font-weight: 600;
}

.site-back-button {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  flex: 1 1 auto;
  width: fit-content;
  min-width: 0;
  color: #04285c;
  font-weight: 700;
  text-decoration: none;
}

.site-back-button i {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  flex: 0 0 40px;
  border: 1px solid #dce3eb;
  border-radius: 50%;
  background: #fff;
  font-size: 1.2rem;
  box-shadow: 0 3px 10px rgba(4, 40, 92, .08);
}

.site-back-button:hover,
.site-back-button:focus {
  color: #1ea026;
}

.internal-header-links {
  display: flex;
  align-items: center;
  gap: .75rem;
  flex: 1 1 auto;
  min-width: 0;
}

.internal-header-links .site-back-button,
.internal-header-links .internal-page-logo {
  flex: 0 0 auto;
  margin: 0;
}

.internal-header-links .internal-page-logo {
  display: inline-flex;
  align-items: center;
}

.header-wallet-link {
  display: flex;
  align-items: center;
  gap: .4rem;
  white-space: nowrap;
  font-weight: 700;
}

.header-wallet-link i {
  color: #1ea026;
  font-size: 1.1rem;
}

.header-wallet-link span {
  color: inherit;
  font-size: 1.125rem;
}

.top-header .account-menu {
  width: 360px;
  min-width: 360px;
  max-height: calc(100vh - 110px);
  padding: 0;
  margin-top: .75rem;
  border: 1px solid #dce3eb;
  border-radius: 10px;
  box-shadow: 0 12px 32px rgba(4, 40, 92, .16);
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
}

.account-menu-greeting {
  display: flex;
  flex-direction: column;
  gap: .2rem;
  padding: 20px 24px 12px;
  color: #333;
}

.account-menu-greeting span,
.account-menu-section-title {
  color: #6b7280;
  font-size: .84rem;
}

.account-summary-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  padding: 6px 24px 16px;
  align-items: stretch;
}

.account-summary-card {
  display: flex;
  flex-direction: column;
  gap: .3rem;
  min-width: 0;
  padding: 14px 10px;
  background: #f4f7fb;
  border-radius: 8px;
  color: #333;
  font-size: .8rem;
}

.account-summary-card strong {
  color: #04285c;
  font-size: 1rem;
  overflow-wrap: anywhere;
}

.account-summary-card > span {
  white-space: nowrap;
  font-size: .72rem;
  letter-spacing: -.01em;
}

.top-header .account-menu .dropdown-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 24px;
  color: #222;
  font-size: .9rem;
}

.top-header .account-menu .dropdown-item i {
  width: 22px;
  color: #04285c;
  font-size: 1.15rem;
  text-align: center;
}

.top-header .account-menu .account-menu-symbol {
  width: 22px;
  color: #04285c;
  font-size: 1.2rem;
  font-weight: 700;
  line-height: 1;
  text-align: center;
}

.top-header .account-menu .dropdown-item:hover,
.top-header .account-menu .dropdown-item:focus {
  color: #04285c;
  background: #eef5ff;
}

.account-menu-section-title {
  padding: 4px 24px 6px;
}

.top-header .account-menu .dropdown-divider {
  margin: 0;
  border-color: #dce3eb;
}

@media (max-width: 575.98px) {
  .top-header .account-menu {
    width: min(92vw, 360px) !important;
    min-width: 0 !important;
    max-height: min(72vh, 580px) !important;
    overflow-y: auto;
  }

  .account-menu-greeting {
    padding: 16px 18px 10px;
  }

  .account-summary-row {
    padding: 6px 18px 14px;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 8px;
  }

  .account-summary-card {
    padding: 12px 7px;
  }

  .account-summary-card > span {
    font-size: .62rem;
  }

  .top-header .account-menu .dropdown-item {
    padding: 11px 18px;
  }
}

img, svg, video, canvas {
  max-width: 100%;
}

.table-responsive {
  -webkit-overflow-scrolling: touch;
}

.form-control, .form-select, .input-group, .btn {
  max-width: 100%;
}

@media (max-width: 1199.98px) {
  .top-header .navbar {
    min-height: 64px;
    flex-wrap: nowrap;
    gap: .65rem !important;
    padding-left: .75rem;
    padding-right: .75rem;
  }

  .top-header .navbar-brand {
    display: flex;
    align-items: center;
    flex: 1 1 auto;
    min-width: 0;
    margin: 0;
  }

  .top-header .navbar-brand .logo-img {
    width: auto;
    max-width: 150px;
    max-height: 42px;
    object-fit: contain;
  }

  .top-header .internal-header-links .internal-page-logo {
    flex: 0 0 auto;
  }

  .top-header .secondary-menu {
    flex: 0 0 auto;
    gap: .15rem;
  }

  .top-header .secondary-menu .nav-link {
    padding: .45rem;
  }

  .top-header .offcanvas {
    width: min(88vw, 360px);
  }

  .top-header .dropdown-menu,
  .top-header .dropdown-large-menu {
    width: 100%;
    min-width: 0;
    max-height: 55vh;
    overflow-y: auto;
    box-shadow: none;
  }

  .page-content,
  .section-padding {
    min-width: 0;
  }

  .product-grid .card,
  .latest-live-offers .card,
  .featured-campaigns .card {
    width: 100%;
  }
}

@media (max-width: 767.98px) {
  .top-header .navbar-brand .logo-img {
    max-width: 118px;
    max-height: 36px;
  }

  .top-header .secondary-menu .mobile-optional {
    display: none;
  }

  .container, .container-fluid {
    --bs-gutter-x: 1.25rem;
  }

  .section-padding {
    padding-top: 32px !important;
    padding-bottom: 32px !important;
  }

  h1, .h1 { font-size: clamp(1.65rem, 8vw, 2.25rem); }
  h2, .h2 { font-size: clamp(1.4rem, 7vw, 1.9rem); }
  h3, .h3 { font-size: clamp(1.2rem, 6vw, 1.55rem); }

  .card-body {
    overflow-wrap: anywhere;
  }

  .pagination {
    flex-wrap: wrap;
    gap: .2rem;
  }

  .pagination .page-link {
    padding: .4rem .65rem;
  }

  .modal-dialog {
    margin: .5rem;
  }

  .footer-section {
    text-align: center;
  }

  .footer-widget-9 .social-link {
    justify-content: center;
  }
}

@media (max-width: 399.98px) {
  .site-back-button {
    gap: .3rem;
    font-size: .85rem;
  }

  .site-back-button i {
    width: 36px;
    height: 36px;
    flex-basis: 36px;
  }

  .top-header .navbar-brand .logo-img {
    max-width: 94px;
  }

  .top-header .secondary-menu .nav-link {
    padding: .35rem;
  }

  .header-wallet-link {
    gap: .2rem;
  }

  .header-wallet-link span {
    font-size: .7rem;
  }
}

/* Anchor the mobile Profile menu directly below its trigger. */
@media (max-width: 767.98px) {
  .top-header .secondary-menu {
    align-items: center;
    min-width: 0;
  }

  .top-header .account-menu-wrap {
    flex: 0 0 auto;
    position: relative !important;
  }

  .top-header .account-menu-trigger {
    width: 44px;
    height: 44px;
    padding: 0 !important;
    justify-content: center;
    border-radius: 50%;
  }

  .top-header .account-menu-trigger i {
    font-size: 1.45rem;
    line-height: 1;
  }

  .top-header .account-menu-wrap .account-menu {
    position: absolute !important;
    top: calc(100% + 6px) !important;
    left: auto !important;
    right: 0 !important;
    bottom: auto !important;
    width: calc(100vw - 16px) !important;
    min-width: 0 !important;
    max-width: 370px !important;
    max-height: calc(100vh - 78px) !important;
    max-height: calc(100dvh - 78px) !important;
    margin: 0 !important;
    padding-bottom: 0 !important;
    transform: none !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    border: 1px solid #dce3eb !important;
    border-radius: 12px !important;
    box-shadow: 0 14px 34px rgba(4, 40, 92, .22) !important;
    z-index: 1080;
  }

  .top-header .account-menu .account-summary-row {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) !important;
  }

  .top-header .account-menu .dropdown-item {
    min-height: 46px;
    white-space: normal;
  }
}

@media (max-width: 359.98px) {
  .top-header .account-menu .account-summary-row {
    grid-template-columns: 1fr !important;
  }

  .top-header .account-menu-wrap .account-menu {
    width: calc(100vw - 10px) !important;
  }
}
