:root {
  --primary-color: #002531;
  --secondary-color: #C23A32;
  --tertiary-color: #E0E0E0;
  --primary-font-family: interstate, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --secondary-font-family: source-serif-pro, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
  --primary-font-color: #000;
  --secondary-font-color: #fff;
  --benefit-background:  rgb(241, 236, 224);
  --how-it-works-background:  #F1F1F1;
  --dashboard-border-color: #737373;
}
/*Loyalty Phase II: Progress Bar*/
#loyaltyPoints,
#loyaltyNavigation {
  .progress-bar {
    background-color: var(--tertiary-color);
    border-radius: 25px;
    height: 15px;
    position: relative;
  }
  .progress {
    background-color: var(--secondary-color);
    border-radius: 25px;
  }
  .progress-label {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: #000;
    font-size: 10px;
  }
  .progress-label:first-child {
    left: 5px;
    ;
  }
  .progress-label:last-child {
    right: 5px;
  }
}
/*Loyalty Phase II: Nav Styling*/
#loyaltyNavigation {
  a {
    text-decoration: underline;
  }
  .nav-loyalty-links {
    font-size: 14px;
    white-space: nowrap;
    margin-right: 10px;
    font-weight: 500;
  }
  .nav-loyalty-detail {
    font-size: 11px;
  }
}
@media (min-width:992px) {
  #loyaltyNavigation {
    div,
    a,
    span {
      color: #fff;
    }
  }
}
@media (max-width:992px) {
  #loyaltyNavigation {
    div,
    a,
    span {
      color: var(--primary-color);
    }
  }
}
/*Loyalty Phase II: styleDetail/topDrop/checkout/shoppingCart pages*/
#loyaltyPoints {
  a:hover {
    color: var(--primary-color);
  }
  .loyaltyIcon {
    height: 16px;
    width:16px;
    margin-right: 5px;
  }
  .loyaltyText,
  .loyaltyText a {
    color: var(--primary-color);
    font-size: 14px;
    font-weight: 500;
  }
}
@media (min-width:992px) {
  #loyaltyPoints,
  #loyaltyNavigation {
    .progress-bar {
      width: 100%;
    }
  }
}
@media (max-width:992px) {
  #loyaltyPoints,
  #loyaltyNavigation {
    #progress.progress-bar {
      width: 10rem;
    }
  }
}
/*Rewards LP Main Container*/
#rewardsLP {
  a:hover {
    color: var(--primary-color);
  }
  position: relative;
}
#rewardsLP {
  .content-block-text {
    position: absolute;
    display: flex;
    flex-flow: column;
    top: 0;
    bottom: 0;
    right: 0;
    left: 0;
    justify-content: center;
    align-items: center;
    color: #fff;
    text-align: center;
    line-height: 1;
  }
  .heading {
    font-family: var(--secondary-font-family);
    font-weight: bold;
  }
  .copy,
  .msg {
    font-weight: 500;
    line-height: 1.5;
  }
  .btn.btn-join {
    border: 1px solid #fff;
    color: #fff;
    font-weight: bold;
  }
  .fine-text a {
    color: #fff;
    text-decoration: underline;
  }
  .fine-text a:hover {
    opacity: .5;
  }
}

@media (min-width:992px) {
  #rewardsLP {
    .content-block-text {
      padding: 0 25vw;
    }
    img.img-fluid.reward-logo {
      max-width: 8vw;
    }
    .heading {
      font-size: 3vw;
    }
    .btn.btn-join {
      padding: .75vw 5vw;
      font-size: 1vw;
    }
    .copy {
      font-size: 1vw;
    }
    .input {
      width: 100%;
      border: 0;
      border-radius: 0;
      height: 3vw;
      font-weight: 500;
      margin-bottom: 1vw;
      padding: .5rem 1rem;
      font-size: 1vw;
    }
    .msg {
      font-size: 1vw;
    }
    .fine-text {
      font-size: .75vw;
    }
  }
}

@media (max-width:992px) {
  .content-block-text {
    padding: 1.5rem;
  }
  img.img-fluid.reward-logo {
    max-width: 100px;
  }
  #rewardsLP {
    .heading {
      font-size: 2.5rem;
    }
    .btn.btn-join {
      padding: .75rem 5rem;
      font-size: 1rem;
    }
    .copy {
      font-size: .85rem;
    }
    .input {
      width: 100%;
      border: 0;
      border-radius: 0;
      height: 3rem;
      font-weight: 500;
      margin-bottom: 1rem;
      padding: .5rem 1rem;
      font-size: 1rem;
    }
    .msg {
      font-size: 1rem;
    }
    .fine-text {
      font-size: .75rem;
    }
  }
}
/*benefits.xhtml */
#loyaltyBenefits,
#loyaltyAccount,
#accountDashboard {
    a {
    text-decoration:underline;
  }
  .card-body {
    padding: 0 1.25rem 1.25rem;
}
  input[type="checkbox"] {
    -webkit-appearance: none; /* For older WebKit browsers */
    -moz-appearance: none;    /* For older Firefox browsers */
    appearance: none;          /* Standard way to remove default appearance */
  }
  input[type="checkbox"] + label::before {
    position: static;
    display: inline-block;
    height: 15px;
    width: 15px;
    content: "";
    border-radius: 50px;
    background: #fff;
    margin-right:5px;

  }
  input[type="checkbox"]:checked + label::before {
    background-color: var(--primary-color);
    border: 1px solid #fff;
  }
  a:hover {
    color: var(--primary-color);
  }
  span {
    display: block;
  }
  .benefit-heading {
    font-family: var(--secondary-font-family);
  }
  .benefit-title,
  .benefit-heading,
  .card-header button,
  .btn.btn-join {
    font-weight: bold;
    color: var(--primary-color);
    line-height: 1;
  }
  .card-header button:hover {
    text-decoration: none;
  }
  .benefit-copy {
    color: #3D3D3D;
    font-weight: 500;
  }
  .benefit-icon {
    fill: var(--secondary-color);
    display: block;
    margin: 0 auto;
  }
  .benefit-container {
    background-color: var(--benefit-background);
    position: relative;
  }
  .how-it-works {
    background-color: var(--how-it-works-background);
  }
  .accordion>.card:first-of-type {
    border-top: 1px solid #3D3D3D;
  }
  .accordion .card-header {
    border-bottom: 0;
    background: transparent;
    padding-bottom: .25rem;
  }
  .accordion>.card {
    background-color: transparent;
    border-right: none;
    border-left: none;
    border-bottom: 1px solid var(--primary-color);
    border-radius: 0;
  }
  .btn.btn-join {
    border: 1px solid #3D3D3D;
  }
  .accordion .card-header button:after {
    content: url('images/plus-dark.svg');
  }
  .accordion .card-header button[aria-expanded="true"]:after {
    content: url('images/minus-dark.svg');
  }
  .fine-print {
    font-weight: 500;
    position: absolute;
    right: 0;
    left: 0;
  }
  .table {
    max-width: 100%;
    overflow-x:hidden;
}
}
/*Desktop */
@media (min-width:992px) {
  #loyaltyBenefits,
  #loyaltyAccount,
  #accountDashboard {
    .benefit-heading {
      font-size: 2rem;
    }
    .benefit-title {
      font-size: 1.5rem;
      margin-bottom: .5rem;
    }
    .benefit-icon.small {
      width: 100%;
      height: 55px;
      margin-bottom: .5rem;
    }
    .benefit-copy {
      font-size: .85rem;
      margin: 0 auto;
    }
    .member-benefits .benefit-copy {
      max-width: 70%;
    }
    .benefit-icon.large {
      width: 100px;
      height: 100px;
      margin-bottom: 1rem;
    }
    .benefit-container {
      padding: 8rem 1rem;
      margin-bottom: 30px;
      height: 100%;
    }
    .btn.btn-join {
      padding: .75rem 5rem;
      font-size: 1rem;
      min-width: 16rem;
      margin: 0 .5rem;
    }
    /* Default state: Plus icon */
    .accordion .card-header button:after {
      width: 20px;
      margin-right: 10px;
      float: right;
    }
    /* When collapsed (aria-expanded="false"), show the Minus icon */
    .accordion .card-header button.collapsed:after {
      width: 20px;
      margin-right: 10px;
      float: right;
    }
    .fine-print {
      font-size:.6rem;
      bottom: 1rem;
      padding: 0 3rem;
    }
  }
}
/*Tablet and Mobile*/
@media (max-width:992px) {
  #loyaltyBenefits,
  #loyaltyAccount,
  #accountDashboard {
    .benefit-heading {
      font-size: 1.75rem;
    }
    .benefit-title {
      font-size: 1.15rem;
      padding-bottom: .5rem;
    }
    .benefit-icon {
      width: 100%;
      height: 50px;
      margin-bottom: .5rem;
    }
    .benefit-copy {
      font-size: .85rem;
      margin: 0 auto;
    }
    .member-benefits .benefit-copy {
      padding-bottom: 2rem;
    }
    .benefit-container {
      padding: .75rem;
      height: 15rem;
      display: flex;
      flex-flow: column;
      justify-content: center;
    }
    .btn.btn-join {
      padding: 1rem 4.5rem;
      display: block;
      margin: .5rem auto;
      max-width: 75%
    }
    .accordion .card-body,
    .accordion .card-header button {
      font-size: .9rem;
      line-height: 1.5;
    }
    .accordion .card-header button {
      display: flex;
      flex-flow: row;
      justify-content: space-between;
    }
    .accordion .card-header button:after {
      margin-right: 10px;
      margin-left: 20px;
      min-width: 14px;
      width: 14px;
    }
    .accordion .card-header button.collapsed:after {
      margin-right: 10px;
      margin-left: 20px;
      min-width: 14px;
      width: 14px;
    }
    .fine-print {
      font-size: .4rem;
      bottom: 1rem;
      padding: 0 1rem;
    }
  }
}
/*Dashboard*/
#accountDashboard {
  a:hover {
    color: var(--primary-color);
  }
  .account-name {
    color: var(--primary-color);
    font-weight: bold;
  }
  .account-number {
    color: var(--dashboard-border-color);
  }
  .reward-logo {
    width: 75px;
  }
  .rewards-credit {
    color: var(--secondary-color);
    font-weight: bold;
  }
  hr {
    border-top: 1px solid var(--dashboard-border-color);
  }
  .dashboard-container {
    border: 1px solid var(--dashboard-border-color);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    height: 100%;
  }
  .dashboard-heading {
    color: var(--primary-color);
    font-weight: 500;
  }

}

@media (min-width:992px) {
  #accountDashboard {
    .account-name,
    .dashboard-heading {
      font-size: 1.5rem;
    }
    .rewards-credit {
      font-size: 3rem;
    }
    .dashboard-container {
      padding: 3.25rem;
    }
    .progress-bar {
      width: 400px;
      height: 40px;
      background-color: var(--tertiary-color);
      overflow: hidden;
      position: relative;
      border-radius: 100px;
    }
    .progress {
      height: 100%;
      background-color: var(--secondary-color);
      width: 0;
      transition: width 0.5s;
      margin-left: 0px !important;
      border-radius: 0px;
      border-radius: 100px;
    }
    .progress-label {
      position: absolute;
      top: 50%;
      transform: translateY(-50%);
      color: var(--primary-font-color);
      font-size: 16px;
      padding: 0 10px;
      font-weight: 500;
    }
    .progress-label:first-child {
      left: 5px;
    }
    .progress-label:last-child {
      right: 5px;
    }

  }
}
@media (max-width:992px) {
  #accountDashboard {
    .account-name,
    .dashboard-heading {
      font-size: 1.5rem;
    }
    .rewards-credit {
      font-size: 3rem;
    }
    .dashboard-container {
      padding: 3.25rem;
    }
    .progress-bar {
      width: 65vw;
      height: 35px;
      background-color: var(--tertiary-color);
      overflow: hidden;
      position: relative;
      border-radius: 100px;
    }
    .progress {
      height: 100%;
      background-color: var(--secondary-color);
      width: 0;
      transition: width 0.5s;
      margin-left: 0px !important;
      border-radius: 0px;
      border-radius: 100px;
    }
    .progress-label {
      position: absolute;
      top: 50%;
      transform: translateY(-50%);
      color: var(--primary-font-color);
      font-size: 16px;
      padding: 0 10px;
      font-weight: 500;
    }
    .progress-label:first-child {
      left: 5px;
    }
    .progress-label:last-child {
      right: 5px;
    }
  }
}

#earnPoints {
  a:hover {
    color: var(--primary-color);
  }
  input[type="submit"],
  .benefit-button {
    display: block;
    background: transparent;
    border: none;
    text-align: center;
    width: 100%;
    font-weight: 500;
    text-decoration: underline;
    position: absolute;
    left: 0;
    right: 0;
  }
  .complete {
    font-weight:500;
  }
  select,
  input[type="text"] {
    height: 30px;
    width: 6rem;
    border: 1px solid var(--primary-color);
    font-weight: 500;
    padding: 0 8px;
    width: 6rem;
    font-size: .8rem;
    margin: 0 auto;
  }
  table {
    width: 100%;
  }
  label {
    padding: 0 5px;
    font-weight: 500;
  }
  td {
    display: inline-flex;
    flex-flow: row;
    align-items: center;
    justify-content: center;
  }
  .fine-print {
    font-weight: 500;
    position: absolute;
    bottom: .5rem;
    padding: 0 1rem;
    left: 0;
  }
  .text-danger,
  #copyMessage {
    font-size: .8rem;
    text-align: center;
    width: 100%;
    font-weight: 500;
  }
}
@media (min-width:992px) {
  #earnPoints {
    input[type="submit"],
    .benefit-button {
      font-size: .9rem;
      bottom: 7rem;
    }
    .complete {
      font-size:.9rem;
    }
    label {
      font-size: .8rem;
      margin: 0px;
      display:flex;
    }
    .benefit-container {
                  padding: 3rem 1rem 8.5rem;
      margin-bottom: 0px;
      height: 100%;
    }
    .fine-print {
      font-size: .4rem;
    }
  }
}
@media (max-width:992px) {
  #earnPoints {
    input[type="submit"],
    .benefit-button {
      font-size: .9rem;
      position:static;
    }
    .benefit-button.copy {
      margin-top:.5rem;
    }
    .complete {
      font-size:.9rem;
      position:static;
    }
    label {
      font-size: .8rem;
      margin-bottom: 0;
    }
    .benefit-container {
      padding: 2rem 1rem;
      height: 100%;
      justify-content: start;
    }
    .fine-print {
      font-size: .4rem;
      position:static;
      margin-top:1rem;
    }
  }
}

/*New Loyalty History Addition*/

#loyaltyHistory {
  .history-heading {
    background-color:var(--tertiary-color);
  }
  .history {
    border-bottom: 1px solid var(--tertiary-color)
  }
  .date {
    color:var(--dashboard-border-color);
    font-size:.85rem;
    font-weight:500;
  }
  .history-container {
    overflow-y: auto;
  }
}

@media (min-width:768px) {
  #loyaltyHistory {
  .history-heading,
  .history {
    padding: 0 6rem;
  }
  .dashboard-container  {
    max-height:34.7rem;
  }
 }
}

@media (max-width:768px) {
  #loyaltyHistory {
  .history-heading,
  .history {
    padding: 0 2rem;
  }
    .dashboard-container  {
    max-height:21rem;
  }
 }
}