/**
 * Styling for Product pages
 */
@media (min-width: 576px) {
  .groups-top {
    display: flex;
    margin-bottom: 1rem;
  }
  .groups-top .group-top-left {
    margin-right: 2rem;
  }
  .groups-top .group-top-right {
    flex-grow: 1;
  }
  .groups-lower {
    overflow: auto;
    margin-bottom: 1rem;
  }
}

@media (min-width: 768px) {
  .field--name-field-donation-recipient,
  .field--pre-selected {
    float: left;
  }
  #donation-recipient {
    float: right;
    width: 50%;
  }
  .credit-markup,
  .field--name-field-donation-recipient,
  .field--name-purchased-entity,
  .field--name-unit-price,
  .field--name-quantity,
  .field--name-field-contribution-gift,
  .field--name-field-dietary-requirements,
  .field--pre-selected,
  #contribution-terms,
  #edit-actions {
    width: 45%;
    margin: 0;
    overflow: hidden;
  }
}
.field-commerce-product-variations {
  /*clear: both;*/
}

  
@media (max-width: 575px) {
  .field--name-field-promotion-image {
    text-align: center;
  }
}

.field--name-field-donation-recipient {
  margin-top: 0;
}
.field--name-purchased-entity {
  display: none;
}
.terms,
#contribution-terms .inner {
  background: #f7f7f7;
  padding: 1rem;
  margin: 0;
  margin-bottom: 1rem;
  border-radius: 4px;
  font-size: .9em;
  color: var(--bs-primary);
}

.field-node--field-demo figure {
  margin: 0;
}
.node {
  border: 0;
  margin: 0;
  padding: 1rem;
  background: #eee;
}
.node h2 {
  text-align: center;
  margin: 0 1rem;
}
.node__content {
  position: relative;
}
.node .node__title-link,
.node .node__title-link:hover,
.node .node__title-link:focus,
.field-node-field-tree-project-user a {
  color: var(--bs-success);
  font-weight: 300;
}
.node .field__label {
  font-weight: 300;
}
.field--name-field-woodland-project-image img {
  width: 100%;
  height: auto;
  padding: 5% 5% 0;
}
.node .field--name-body {
  text-align: center;
}
.node .field--type-image {
  float: none;
  text-align: center;
}
[id*="wallet-body-container-"],
#wallet-body-container {
  margin-top: 1rem;
  padding: 0 5%!important;
}
.wallet {
  min-width: 250px;
  background-color: inherit!important;
  margin: 0!important;
}
.node .field--name-body {
  /*min-width: 300px;
  padding: 15px 3%!important;*/
  margin: 1rem 0!important;
}

@media screen and (max-width: 45em) {
  .wallet {
    /*margin-bottom: 30px!important;*/
    width: 100%;
  }
}

@media screen and (min-width: 45.0625em) {
  [id*="wallet-body-container-"],
  #wallet-body-container {
    display: flex;
    flex-wrap: wrap;
  }
  .wallet {
    flex-grow: 1;
    margin-right: 2.5%!important;
    padding: 0!important;
  }
  .node.field--name-body {
    flex-basis: 45%;
    flex-grow: 1;
    margin: 0!important;
  }
}

#treegen-wallet.woodland {
  border: 1px solid var(--bs-success);
  background-color: transparent;
  padding: 0; 
}
#treegen-wallet.woodland .wallet-thermometer {
  display: flex;
  justify-content: space-around;
  padding: 2.5%;
}
#treegen-wallet.woodland .table-container {
  flex-grow: 1;
  margin: 1% 5% 0 1%;
}
#treegen-wallet.woodland .thermometer {
  margin-right: 2%;
}
#treegen-wallet.woodland p.header {
  background: var(--bs-success);
  margin: 0;
  font-weight: 700;
  line-height: 2em;
  color: #fff;
  text-align: center;
}
#treegen-wallet.woodland td.table__cell {
  padding: 0.5rem 1rem!important;
}
#treegen-wallet.woodland.mini .top {
  display: flex;
  justify-content: space-evenly;
  align-items: center;
  margin-top: 5%;
}
#treegen-wallet.woodland.mini .target {
  text-align: center;
  padding: 5% 10%;
  color: #f6f8ed;
  border-radius: 5px;
  background: rgba(var(--bs-success-rgb), 0.1);
  border: 1px solid var(--bs-success);
  background-image: radial-gradient( ellipse farthest-corner at 9px 9px , rgba(var(--bs-success-rgb), 0.5), rgba(var(--bs-success-rgb), 1) 80%, rgba(var(--bs-success-rgb), 0.1) 84%);
}
#treegen-wallet.woodland.mini .target-label {
  font-weight: 700;
}
#treegen-wallet.woodland.mini .target-value {
  font-size: 2.24em;
  line-height: 1.5em;
}
#treegen-wallet.woodland.mini .chart {
  margin: 0;
  width: 100px;
  height: 100px;
}
#treegen-wallet.woodland.mini .chart span {
  font-size: 20px;
  font-weight: 500;
  margin-left: 0;
  line-height: 100px;
  width: 100px;
  color: #2e2e2e;
}
#treegen-wallet.woodland.mini canvas {
  width: 100px;
}
#treegen-wallet.woodland.mini .message {
  text-align: center;
  margin: 5% auto;
  width: 250px;
  padding: 1rem 0;
  border-radius: 4px;
}
#treegen-wallet.woodland.mini .message.first,
#treegen-wallet.woodland.mini .message.contribute {
  border: 1px solid var(--bs-success);
  color: var(--bs-danger);
}
#treegen-wallet.woodland.mini .message.achieved {
  font-weight: 700;
  background: var(--bs-success);
  color: #fff;
}
.user-credit-info-container {
  text-align: center;
}
.user-credit-info-container .danger {
  background-color: rgba(var(--bs-danger-rgb), 0.1);
  padding: 1rem;
}
.credit-markup {
  background-color: rgba(var(--bs-success-rgb), 0.1);
  padding: 1rem;
}
