.summary {
  border-radius: var(--Corner-radius-lg);
  display: flex;
  flex-direction: column;
  gap: var(--Spacing-x2);
  padding: var(--Spacing-x3);
  height: 100%;
}

.header button {
  display: grid;
  grid-template-areas: "title button" "date date";
  grid-template-columns: 1fr auto;
  align-items: center;
  width: 100%;

  background-color: transparent;
  border: none;
  padding: 0;
  margin: 0;
}

.title {
  grid-area: title;
}

.chevronIcon {
  grid-area: button;
}

.date {
  align-items: center;
  display: flex;
  gap: var(--Spacing-x1);
  justify-content: flex-start;
  grid-area: date;
}

.link {
  margin-top: var(--Spacing-x1);
}

.addOns {
  display: flex;
  flex-direction: column;
  gap: var(--Spacing-x-one-and-half);
  overflow-y: auto;
}

.rateDetailsPopover {
  display: flex;
  flex-direction: column;
  gap: var(--Spacing-x-half);
  max-width: 360px;
}

.entry {
  display: flex;
  gap: var(--Spacing-x-half);
  justify-content: space-between;
}

.entry > :last-child {
  justify-items: flex-end;
}

.total {
  display: flex;
  flex-direction: column;
  gap: var(--Spacing-x2);
}

.bottomDivider {
  display: none;
}

.modalContent {
  width: 560px;
}

.terms {
  margin-top: var(--Spacing-x3);
  margin-bottom: var(--Spacing-x3);
}
.termsText:nth-child(n) {
  display: flex;
  align-items: center;
  margin-bottom: var(--Spacing-x1);
}
.terms .termsIcon {
  margin-right: var(--Spacing-x1);
}

@media screen and (min-width: 1367px) {
  .bottomDivider {
    display: block;
  }

  .header {
    display: block;
  }

  .summary .header .chevronButton {
    display: none;
  }
}
