:root {
  --grs-po-border: #d9d9d9;
  --grs-po-border-strong: #111;
  --grs-po-bg: #fff;
  --grs-po-bg-muted: #f6f6f6;
  --grs-po-text: #111;
  --grs-po-text-muted: #6f6f6f;
  --grs-po-radius: 6px;
}

.grs-po-wrapper {
  margin: 1.75rem 0;
  display: flex;
  flex-direction: column;
  gap: 1.9rem;
}

.grs-po-group {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.grs-po-heading-row {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  flex-wrap: wrap;
}

.grs-po-group-title {
  margin: 0;
  font-size: 2rem;
  line-height: 1.1;
  font-weight: 700;
  color: var(--grs-po-text);
  text-transform: none;
  letter-spacing: 0;
}

.grs-po-heading-info {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 1.5px solid #9a9a9a;
  color: #707070;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
}

.grs-po-heading-link {
  color: #6f7b8b;
  text-decoration: none;
  font-size: 1rem;
  font-weight: 500;
}

.grs-po-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.15rem;
}

.grs-po-option-card {
  display: block;
  margin: 0;
  cursor: pointer;
}

.grs-po-option-card input[type="radio"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.grs-po-card-face {
  min-height: 128px;
  background: var(--grs-po-bg);
  border: 1.5px solid var(--grs-po-border);
  border-radius: var(--grs-po-radius);
  padding: 1.2rem 1.15rem;
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  gap: 1rem;
  transition: border-color .2s ease, box-shadow .2s ease, background .2s ease, opacity .2s ease;
}

.grs-po-option-card:hover .grs-po-card-face {
  border-color: #a8a8a8;
}

.grs-po-option-card input[type="radio"]:checked + .grs-po-card-face {
  border-color: var(--grs-po-border-strong);
  box-shadow: inset 0 0 0 1px var(--grs-po-border-strong);
}

.grs-po-option-card.is-disabled {
  cursor: not-allowed;
}

.grs-po-option-card.is-disabled .grs-po-card-face,
.grs-po-option-card input[type="radio"]:disabled + .grs-po-card-face {
  background: var(--grs-po-bg-muted);
  color: #8b8b8b;
  opacity: .75;
}

.grs-po-card-main {
  display: flex;
  flex-direction: column;
  gap: .75rem;
}

.grs-po-card-title {
  display: block;
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.3;
  color: var(--grs-po-text);
}

.grs-po-card-description {
  display: block;
  font-size: .92rem;
  line-height: 1.28;
  color: var(--grs-po-text-muted);
}

.grs-po-card-price {
  align-self: flex-end;
  white-space: nowrap;
  font-size: 1.05rem;
  line-height: 1.2;
  font-weight: 700;
  color: var(--grs-po-text);
}

.grs-po-card-price .woocommerce-Price-amount,
.grs-po-card-price .amount {
  font-weight: 700;
}


.grs-po-tax-group .grs-po-card-face {
  min-height: 96px;
  padding-top: 1rem;
  padding-bottom: .9rem;
}

.grs-po-tax-group .grs-po-card-main {
  gap: .2rem;
}

.grs-po-tax-group .grs-po-card-price {
  margin-top: auto;
}

.grs-po-option-card.is-disabled .grs-po-card-face,
.grs-po-option-card input[type="radio"]:disabled + .grs-po-card-face {
  position: relative;
  overflow: hidden;
}

.grs-po-option-card.is-disabled .grs-po-card-face::after,
.grs-po-option-card input[type="radio"]:disabled + .grs-po-card-face::after {
  content: "";
  position: absolute;
  left: -12%;
  right: -12%;
  top: 50%;
  border-top: 2px solid rgba(160, 160, 160, 0.75);
  transform: rotate(-10deg);
  transform-origin: center;
  pointer-events: none;
}

@media (max-width: 767px) {
  .grs-po-group-title {
    font-size: 1.5rem;
  }

  .grs-po-cards {
    grid-template-columns: 1fr;
  }

  .grs-po-card-face {
    min-height: auto;
  }
}


.grs-po-summary {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1.25rem;
  background: #000;
  color: #fff;
  border-radius: 10px;
  padding: 1.35rem;
  margin-top: .25rem;
}

.grs-po-summary__left,
.grs-po-summary__right {
  display: flex;
  flex-direction: column;
  gap: .55rem;
}

.grs-po-summary__left {
  min-width: 0;
  flex: 1 1 auto;
}

.grs-po-summary__title {
  font-size: 1.1rem;
  line-height: 1.2;
  font-weight: 700;
  color: #fff;
}

.grs-po-summary__tip {
  font-size: 1rem;
  line-height: 1.3;
  font-weight: 600;
  color: #fff;
}

.grs-po-summary__condition {
  display: flex;
  align-items: center;
  gap: .7rem;
  flex-wrap: wrap;
  margin-top: .4rem;
}

.grs-po-summary__stars {
  color: #f8df00;
  letter-spacing: 1px;
  min-width: 5.5em;
}

.grs-po-summary__condition-text {
  color: #fff;
  font-size: 1rem;
  line-height: 1.35;
  font-weight: 500;
}

.grs-po-summary__right {
  text-align: right;
  flex: 0 0 auto;
}

.grs-po-summary__subtotal,
.grs-po-summary__subtotal .amount,
.grs-po-summary__subtotal .woocommerce-Price-amount {
  color: #fff;
  font-size: 1.1rem;
  font-weight: 700;
}

.grs-po-summary__stock {
  font-size: 1rem;
  line-height: 1.3;
  font-weight: 500;
}

.grs-po-summary__stock.is-in-stock {
  color: #1be21b;
}

.grs-po-summary__stock.is-in-stock::before {
  content: '\2022 ';
}

.grs-po-summary__stock.is-out-of-stock {
  color: #ff8080;
}

@media (max-width: 767px) {
  .grs-po-summary {
    flex-direction: column;
  }

  .grs-po-summary__right {
    text-align: left;
  }
}
