/**
 * Layout.
 */
main.page-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: auto;
  grid-template-areas:
    "header header"
    "header-menu header-menu"
    "sub-menu sub-menu"
    "agree-to-sell agree-to-sell";
}

.header-menu {
  grid-area: header;
}

.dropdown-menu {
  grid-area: header-menu;
}

.internal-sub-menu {
  grid-area: sub-menu;
}

.agree-to-sell-section {
  grid-area: agree-to-sell;
}

.sections-split {
  margin-top: 48px;
  margin-bottom: 0;
  border-bottom: 1px solid var(--bmweb-gray);
}

/**
 * agree-to-sell section.
 */
.agree-to-sell-section {
  margin-top: 84px;
}

@media only screen and (max-width: 950px) {
  .agree-to-sell-section {
    margin-top: 32px;
  }
}

.agree-to-sell-section .section-title-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin-bottom: 28px;
}

.agree-to-sell-section .section-title-row h2 {
  margin: 0;
}

.agree-to-sell-section .section-title-row .view-all-button {
  border-bottom: 2px solid var(--bmweb-lavender);
  text-decoration: none;
  grid-column-start: none;
}

@media only screen and (max-width: 950px) {
  .agree-to-sell-section .section-title-row {
    padding: 0 16px;
  }

  .agree-to-sell-section .section-title-row .view-all-button {
    display: none;
  }
}

.agree-to-sell-table {
  background: var(--bmweb-white);
  border: 1px solid var(--bmweb-light-gray);
}

.agree-to-sell-table tbody,
.agree-to-sell-table .header-row {
  border: none;
}

.agree-to-sell-table .date-column {
  width: 10%;
}
.agree-to-sell-table .amount-column {
  width: 40%;
}
.agree-to-sell-table .price-column {
  width: 15%;
}
.agree-to-sell-table .sum-column {
  width: 15%;
}
.agree-to-sell-table .type-column {
  width: 10%;
}
.agree-to-sell-table .status-column {
  width: 10%;
}

@media only screen and (max-width: 600px) {
  .agree-to-sell-table .header-row {
    display: none;
  }

  .agree-to-sell-table .price-column,
  .agree-to-sell-table .sum-column,
  .agree-to-sell-table .status-column {
    display: none;
  }

  .agree-to-sell-table .date-column {
    width: 20%;
  }
  .agree-to-sell-table .amount-column {
    width: 60%;
  }
  .agree-to-sell-table .type-column {
    width: 20%;
  }
}

@media only screen and (max-width: 950px) {
  .agree-to-sell-table .status-column {
    display: none;
  }

  .agree-to-sell-table .date-column {
    width: 20%;
  }
  .agree-to-sell-table .amount-column {
    width: 25%;
  }
  .agree-to-sell-table .price-column {
    width: 15%;
  }
  .agree-to-sell-table .sum-column {
    width: 15%;
  }
  .agree-to-sell-table .type-column {
    width: 15%;
  }
}

.agree-to-sell-table .header-row,
.agree-to-sell-table .content-row {
  border-bottom: 1px solid var(--bmweb-light-gray);
}

.agree-to-sell-table .content-row:last-child {
  border-bottom: none;
}

.agree-to-sell-table th {
  padding: 12px 16px;
  border-top: none;
  text-align: left;
  font-family: var(--bmweb-font-family);
  font-size: var(--bmweb-font-size-base);
  font-weight: 500;
  line-height: 24px;
}

.agree-to-sell-table td {
  padding: 12px 16px;
  font-family: var(--bmweb-font-family);
  font-size: var(--bmweb-font-size-base);
  font-weight: 500;
  line-height: 24px;
  text-align: left;
}

.agree-to-sell-table td.border-right {
  border-right: 1px solid var(--bmweb-light-gray);
}

.agree-to-sell-table td.border-left {
  border-left: 1px solid var(--bmweb-light-gray);
}

.buy-type {
  display: flex;
  align-items: center;
  background: var(--bmweb-buy-light-green);
  padding: 4px 12px;
  border-radius: 4px;
}

.buy-type span {
  font-family: var(--bmweb-font-family);
  font-size: var(--bmweb-font-size-base);
  font-weight: 500;
  line-height: 24px;
  margin-right: 8px;
}

.buy-type .arrow-icon {
  fill: var(--bmweb-buy-dark-green);
}

.sell-type {
  display: flex;
  align-items: center;
  background: var(--bmweb-light-lavender);
  padding: 4px 12px;
  border-radius: 4px;
}

.sell-type span {
  font-family: var(--bmweb-font-family);
  font-size: var(--bmweb-font-size-base);
  font-weight: 500;
  line-height: 24px;
  margin-right: 8px;
}

.sell-type .arrow-icon {
  fill: var(--bmweb-lavender);
}



/**
 * Price section.
 */
.price-section {
  margin-top: 31px;
}

.price-section .section-title-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin-bottom: 28px;
}

.price-section .section-title-row h2 {
  margin: 0;
}

@media only screen and (max-width: 950px) {
  .price-section .section-title-row {
    padding: 0 16px;
  }
}

#price-chart .gridline {
  stroke: black;
  shape-rendering: crispEdges;
  stroke-opacity: 0.2;
}

price-chart {
  display: block;
  background: var(--bmweb-white);
  padding: 32px 30px;
  margin-bottom: 96px;
}

@media only screen and (max-width: 950px) {
  price-chart {
    padding: 16px;
    margin-bottom: 0;
  }
}

price-metrics {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  grid-template-areas: 'label buy-price sell-price';
  column-gap: 16px;
  margin-bottom: 115px;
}

@media only screen and (max-width: 950px) {
  price-metrics {
    margin-bottom: 42px;
    grid-template-columns: 1fr 1fr;
    grid-template-areas:
      'label buy-price'
      '. sell-price';
  }
}

price-metrics p {
  margin: 0;
}

price-metrics > label {
  grid-area: label;
}

buy-price-24,
sell-price-24 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-radius: 8px;
  padding: 12px 20px;
  align-items: center;
}

buy-price-24 {
  grid-area: buy-price;
  background: var(--bmweb-buy-light-green);
}

sell-price-24 {
  grid-area: sell-price;
  background: var(--bmweb-light-lavender);
}

@media only screen and (max-width: 950px) {
  sell-price-24 {
    margin-top: 6px;
  }
}

buy-price-24 > p,
sell-price-24 > p {
  text-align: right;
}
