* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

:root {
  --mockup-scale: 0.711;
}

html,
body {
  margin: 0;
  width: 100%;
  min-height: 100%;
  font-family: Arial, Helvetica, sans-serif;
  color: #141414;
  background: #fff;
  overflow-x: hidden;
}

body {
  font-size: 20px;
}

a {
  color: #2676b9;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.page {
  width: 2048px;
  min-width: 2048px;
  min-height: 100vh;
  zoom: var(--mockup-scale);
}

.fdic-bar {
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  color: #6e6e6e;
  font-size: 16px;
  font-style: italic;
  border-top: 1px solid #ddd;
  border-bottom: 1px solid #e3e3e3;
  background: #f7f7f7;
}

.fdic-bar strong {
  color: #00517a;
  font-size: 25px;
  font-style: normal;
  letter-spacing: -1px;
}

.masthead {
  height: 126px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding: 31px 72px 0 32px;
  background:
    linear-gradient(150deg, transparent 0 11%, rgba(255,255,255,.22) 11% 21%, transparent 21% 38%, rgba(255,255,255,.23) 38% 50%, transparent 50% 70%, rgba(255,255,255,.23) 70% 80%, transparent 80%),
    #d7d3cc;
}

.brand-block {
  display: flex;
  align-items: center;
  min-width: 850px;
}

.boa-wordmark {
  color: #333;
  font-size: 31px;
  font-weight: 700;
  letter-spacing: 2px;
  line-height: 1;
  white-space: nowrap;
}

.flag-mark {
  width: 86px;
  height: 45px;
  margin: -4px 21px 0 11px;
  overflow: hidden;
}

.flag-mark img {
  display: block;
  width: 88px;
  height: auto;
}

.product-title {
  padding-left: 5px;
  color: #5a554f;
  font-size: 29px;
  font-weight: 400;
  white-space: nowrap;
}

.utility {
  min-width: 600px;
  color: #111;
  font-size: 18px;
  text-align: right;
}

.utility-row {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  white-space: nowrap;
}

.pipe {
  width: 1px;
  height: 25px;
  border-left: 1px dotted #595959;
}

.cart-icon {
  position: relative;
  width: 25px;
  height: 22px;
  border-bottom: 4px solid #111;
  border-left: 3px solid #111;
  transform: skewX(-10deg);
}

.cart-icon::before {
  content: "";
  position: absolute;
  left: -6px;
  top: -5px;
  width: 7px;
  height: 4px;
  background: #111;
  transform: rotate(16deg);
}

.cart-icon::after {
  content: "";
  position: absolute;
  left: 1px;
  bottom: -11px;
  width: 28px;
  height: 8px;
  background:
    radial-gradient(circle at 4px 4px, #111 0 4px, transparent 4px),
    radial-gradient(circle at 23px 4px, #111 0 4px, transparent 4px);
}

.lock-icon {
  position: relative;
  width: 17px;
  height: 18px;
  border-radius: 2px;
  background: #111;
}

.lock-icon::before {
  content: "";
  position: absolute;
  left: 3px;
  top: -12px;
  width: 11px;
  height: 13px;
  border: 3px solid #111;
  border-bottom: 0;
  border-radius: 9px 9px 0 0;
}

.search-link {
  margin-top: 13px;
  padding-right: 21px;
  color: #111;
  font-size: 18px;
  font-weight: 700;
}

.mag-small,
.search-box span {
  display: inline-block;
  width: 24px;
  height: 24px;
  border: 3px solid #7d7d7d;
  border-radius: 50%;
  vertical-align: middle;
}

.mag-small::after,
.search-box span::after {
  content: "";
  display: block;
  width: 11px;
  height: 3px;
  margin: 16px 0 0 16px;
  background: #7d7d7d;
  transform: rotate(45deg);
  transform-origin: left center;
}

.primary-nav {
  height: 52px;
  display: flex;
  padding-left: 58px;
  border-bottom: 1px solid #d8d8d8;
  background: #f9f9f9;
}

.primary-nav a {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 104px;
  padding: 0 15px;
  color: #333;
  font-size: 17px;
  border-left: 1px solid #ddd;
  border-right: 1px solid #ededed;
}

.primary-nav a.active {
  background: #fff;
}

main {
  position: relative;
}

.account-header {
  height: 101px;
  display: flex;
  align-items: center;
  padding: 0 55px;
  background: #f3f3f3;
  border-bottom: 1px solid #eee;
}

.account-line {
  display: flex;
  align-items: center;
  gap: 35px;
}

.routing-link {
  padding: 0;
  color: #2676b9;
  font: inherit;
  font-size: 22px;
  background: transparent;
  border: 0;
  cursor: pointer;
}

.routing-link:hover {
  text-decoration: underline;
}

h1 {
  margin: 0;
  font-size: 28px;
  line-height: 1;
}

.edit-icon {
  position: relative;
  width: 27px;
  height: 27px;
}

.edit-icon::before {
  content: "";
  position: absolute;
  left: 11px;
  top: 0;
  width: 7px;
  height: 29px;
  border: 3px solid #777;
  border-radius: 2px;
  transform: rotate(42deg);
}

.summary {
  min-height: 279px;
  display: grid;
  grid-template-columns: 31.3% 37.4% 1fr;
  column-gap: 55px;
  padding: 32px 40px 35px 51px;
}

.amount {
  margin-top: 0;
  color: #000;
  font-size: 66px;
  font-weight: 400;
  letter-spacing: -2px;
}

.balance a {
  display: inline-block;
  margin-top: 3px;
  font-size: 23px;
  border-bottom: 1px dashed #2676b9;
}

.features h2,
.services h2 {
  margin: 2px 0 17px;
  padding-bottom: 5px;
  color: #666;
  font-size: 21px;
  border-bottom: 1px solid #d7d7d7;
}

.feature-row {
  display: grid;
  grid-template-columns: 1fr 118px;
  gap: 24px;
  margin: 0 0 16px;
  font-size: 22px;
}

.feature-row > span:last-child {
  color: #777;
  white-space: nowrap;
}

.services {
  padding-left: 118px;
}

.services a {
  display: block;
  margin-bottom: 20px;
  font-size: 23px;
}

.tabs {
  height: 65px;
  display: flex;
  align-items: flex-end;
  gap: 39px;
  padding-left: 64px;
  border-bottom: 3px solid #d8d8d8;
}

.tabs a {
  padding-bottom: 13px;
  color: #777;
  font-size: 27px;
}

.tabs a.selected {
  color: #164b7d;
  border-bottom: 3px solid #164b7d;
}

.content-grid {
  display: grid;
  grid-template-columns: minmax(900px, 1fr) 502px;
  gap: 25px;
  padding: 40px 18px 0 31px;
}

.transactions h2 {
  margin: 0 0 26px;
  color: #000;
  font-size: 37px;
  line-height: 1;
}

.controls {
  display: grid;
  grid-template-columns: 579px 641px 130px;
  align-items: start;
  gap: 33px;
}

label span,
.filter {
  color: #111;
  font-size: 22px;
  font-weight: 700;
}

.select-wrap,
.search-wrap {
  display: block;
}

.select-wrap button {
  width: 100%;
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 8px;
  padding: 0 18px;
  color: #333;
  font: inherit;
  font-size: 23px;
  text-align: left;
  background: #fff;
  border: 2px solid #aaa;
  border-radius: 4px;
}

.select-wrap b {
  width: 17px;
  height: 17px;
  border-right: 3px solid #777;
  border-bottom: 3px solid #777;
  transform: rotate(45deg);
  margin-top: -8px;
}

.search-box {
  position: relative;
  height: 68px;
  margin-top: 8px;
}

.search-box input {
  width: 100%;
  height: 68px;
  padding: 0 54px 0 12px;
  font: inherit;
  background: #fff;
  border: 2px solid #aaa;
  border-radius: 4px;
}

.search-box span {
  position: absolute;
  right: 20px;
  top: 17px;
  width: 27px;
  height: 27px;
}

.search-wrap small {
  display: block;
  margin-top: 7px;
  color: #777;
  font-size: 16px;
}

.filter {
  align-self: end;
  height: 68px;
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 30px;
  padding: 0;
  font-weight: 400;
  background: transparent;
  border: 0;
}

.filter span {
  width: 28px;
  height: 18px;
  background:
    linear-gradient(#777, #777) 0 0 / 28px 3px no-repeat,
    linear-gradient(#777, #777) 0 8px / 21px 3px no-repeat,
    linear-gradient(#777, #777) 0 16px / 13px 3px no-repeat;
}

.table-actions {
  margin: 62px 33px 32px 0;
  text-align: right;
  color: #777;
  font-size: 20px;
}

.table-actions a {
  margin: 0 12px;
}

table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
}

th,
td {
  padding: 20px 20px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid #e2e2e2;
}

th {
  color: #111;
  font-size: 18px;
  font-weight: 700;
}

td {
  color: #111;
  font-size: 19px;
  line-height: 1.35;
}

th:nth-child(1) { width: 13.5%; }
th:nth-child(2) { width: 28.5%; }
th:nth-child(3) { width: 20%; }
th:nth-child(4) { width: 12.5%; }
th:nth-child(5) { width: 13.8%; }
th:nth-child(6) { width: 11.7%; }

td:nth-child(4),
td:nth-child(5) {
  text-align: right;
}

td a {
  border-bottom: 1px dashed #2676b9;
  font-size: 24px;
}

td .edit-row {
  border-bottom: 0;
  font-size: 19px;
}

.negative {
  color: #b65461;
}

.positive {
  color: #111;
}

.checkbox {
  display: inline-block;
  width: 26px;
  height: 26px;
  border: 2px solid #999;
  border-radius: 2px;
  background: #fff;
}

.sort {
  display: inline-block;
  width: 13px;
  height: 22px;
  margin-left: 4px;
  vertical-align: -5px;
  border-left: 3px solid #777;
}

.sort::after {
  content: "";
  display: block;
  width: 13px;
  height: 13px;
  margin: 8px 0 0 -8px;
  border-right: 3px solid #777;
  border-bottom: 3px solid #777;
  transform: rotate(45deg);
}

.sidebar {
  padding-top: 0;
}

.budget-card {
  min-height: 202px;
  padding: 27px 33px;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 8px 28px rgba(0,0,0,.11);
}

.budget-card h3,
.offer-card h3 {
  margin: 0;
  color: #666;
  font-size: 22px;
}

.budget-body {
  display: flex;
  align-items: center;
  gap: 29px;
  margin-top: 42px;
}

.ring {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: conic-gradient(#d45768 0 43%, #1f8393 43% 76%, #00a64f 76% 96%, #ffd019 96% 100%);
  position: relative;
}

.ring::after {
  content: "";
  position: absolute;
  inset: 10px;
  border-radius: 50%;
  background: #fff;
}

.budget-body a {
  font-size: 23px;
}

.offer-card {
  width: 294px;
  min-height: 288px;
  margin: 27px auto 0;
  padding: 12px 8px 11px;
  border: 2px solid #d4d4d4;
  border-radius: 4px;
  box-shadow: 0 0 8px rgba(0,0,0,.05);
}

.offer-card h3 {
  color: #c75063;
  font-size: 18px;
  font-weight: 700;
}

.offer-card p {
  margin: 8px 0;
  color: #666;
  font-size: 16px;
  line-height: 1.4;
}

.credit-card {
  position: relative;
  width: 113px;
  height: 68px;
  margin: 6px 0 0 22px;
  border-radius: 3px;
  background: linear-gradient(135deg, #c31324, #e13939);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.25);
}

.chip {
  position: absolute;
  left: 9px;
  top: 23px;
  width: 13px;
  height: 10px;
  border-radius: 2px;
  background: #ddd;
}

.mini-logo {
  position: absolute;
  left: 42px;
  top: 17px;
  width: 30px;
  height: 18px;
  background:
    linear-gradient(150deg, transparent 0 28%, #fff 28% 36%, transparent 36% 47%, #fff 47% 55%, transparent 55% 100%);
  opacity: .85;
}

.circles {
  position: absolute;
  right: 7px;
  bottom: 7px;
  width: 27px;
  height: 20px;
  background:
    radial-gradient(circle at 10px 10px, rgba(255,0,0,.75) 0 10px, transparent 10px),
    radial-gradient(circle at 18px 10px, rgba(255,180,0,.85) 0 10px, transparent 10px);
}

.offer-card .bonus {
  margin-left: 22px;
  font-size: 13px;
  line-height: 1.45;
}

.offer-card > a {
  display: block;
  color: #c75063;
  font-size: 18px;
  font-weight: 700;
  text-align: right;
}

.deals-card {
  width: 470px;
  min-height: 360px;
  margin: 40px 0 0 auto;
  padding: 29px 22px 25px;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 8px 28px rgba(0,0,0,.11);
}

.deals-card h3 {
  margin: 0 0 31px;
  color: #777;
  font-size: 17px;
  font-weight: 700;
}

.deal-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.deal-item {
  height: 160px;
  padding: 45px 10px 10px;
  text-align: center;
  border: 1px solid #dcdcdc;
  border-radius: 10px;
  box-shadow: 0 1px 5px rgba(0,0,0,.08);
}

.deal-item strong {
  display: block;
  min-height: 30px;
  color: #0c3b70;
  font-size: 14px;
}

.deal-item span,
.deal-item b {
  display: block;
  color: #333;
  font-size: 12px;
  line-height: 1.35;
}

.deal-item b {
  font-weight: 700;
}

.deal-item.dell {
  padding-top: 34px;
}

.deal-item.dell strong {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 63px;
  height: 63px;
  margin-bottom: 12px;
  color: #fff;
  background: #0b7eb6;
}

.deal-item.macys {
  padding-top: 38px;
}

.deal-item.macys strong {
  color: #222;
  font-size: 28px;
  font-weight: 400;
}

.deal-item.macys strong::first-letter {
  color: #d71920;
}

.deal-controls {
  height: 58px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
}

.deal-controls button {
  width: 18px;
  height: 18px;
  padding: 0;
  background: transparent;
  border: 0;
  border-left: 4px solid #2176b5;
  border-bottom: 4px solid #2176b5;
  cursor: pointer;
}

.deal-controls button:first-child {
  transform: rotate(45deg);
}

.deal-controls button:last-child {
  transform: rotate(225deg);
}

.deal-controls span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #b7b7b7;
}

.deal-controls .active-dot {
  background: #000;
}

.deals-card > a {
  display: block;
  text-align: center;
  font-size: 24px;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 250px;
  background: rgba(0,0,0,.35);
}

.account-modal {
  position: relative;
  width: 763px;
  min-height: 655px;
  padding: 82px 31px 24px;
  color: #222;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 11px 24px rgba(0,0,0,.42);
}

.account-modal h2 {
  margin: 0 0 85px 30px;
  color: #111;
  font-size: 26px;
  line-height: 1;
}

.modal-close {
  position: absolute;
  top: 21px;
  right: 31px;
  width: 32px;
  height: 32px;
  padding: 0;
  background: #fff;
  border: 2px solid #83aed1;
  cursor: pointer;
}

.modal-close::before,
.modal-close::after {
  content: "";
  position: absolute;
  left: 5px;
  top: 14px;
  width: 20px;
  height: 2px;
  background: #777;
}

.modal-close::before {
  transform: rotate(45deg);
}

.modal-close::after {
  transform: rotate(-45deg);
}

.detail-grid {
  display: grid;
  grid-template-columns: 190px 180px 1fr;
  row-gap: 24px;
  column-gap: 22px;
  font-size: 20px;
}

.detail-grid strong {
  font-size: 20px;
}

.detail-grid .show-number {
  padding: 0;
  color: #2676b9;
  font: inherit;
  font-size: 20px;
  text-align: left;
  background: transparent;
  border: 0;
}

.account-modal p {
  margin: 6px 0 0;
  font-size: 20px;
  line-height: 1.35;
}

.account-modal hr {
  margin: 36px 0 16px;
  border: 0;
  border-top: 2px solid #ddd;
}

.account-modal .done-button {
  position: absolute;
  right: 31px;
  bottom: 23px;
  min-width: 86px;
  height: 41px;
  padding: 0 23px;
  color: #fff;
  font: inherit;
  font-size: 16px;
  font-weight: 700;
  background: #003478;
  border: 0;
  border-radius: 23px;
  cursor: pointer;
}

@media (max-width: 1400px) {
  .page {
    min-width: 1000px;
  }

  .content-grid {
    grid-template-columns: 1fr;
  }

  .sidebar {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 24px;
  }

  .offer-card {
    margin-top: 0;
  }
}
