.gmpr-product-fields {
    margin: 18px 0;
    display: grid;
    gap: 14px;
}

.gmpr-product-group {
    margin: 0;
    padding: 12px;
    border: 1px solid #dcdcde;
    background: #fff;
}

.gmpr-product-group legend {
    padding: 0 6px;
    font-weight: 700;
}

.gmpr-product-field {
    display: grid;
    gap: 5px;
    margin-bottom: 12px;
}

.gmpr-product-field:last-child {
    margin-bottom: 0;
}

.gmpr-product-field label {
    display: grid;
    gap: 5px;
}

.gmpr-product-field input,
.gmpr-product-field select,
.gmpr-product-field textarea {
    width: 100%;
}

.gmpr-choice-list {
    display: grid;
    gap: 6px;
}

.gmpr-choice-list label {
    display: flex;
    align-items: center;
    gap: 6px;
}

.gmpr-choice-visual,
.gmpr-choice-swatch {
    width: 28px;
    height: 28px;
    flex: 0 0 28px;
    border: 1px solid #dcdcde;
    object-fit: cover;
}

.gmpr-choice-swatch {
    display: inline-block;
}

.gmpr-product-field small {
    color: #646970;
}

.gmpr-product-field .gmpr-description {
    display: block;
    color: #50575e;
}

.gmpr-quantity-price-table {
    display: grid;
    gap: 8px;
    padding: 12px;
    border: 1px solid #dcdcde;
    background: #fff;
}

.gmpr-quantity-price-table > strong {
    color: #1d2327;
}

.gmpr-quantity-limits {
    color: #50575e;
    line-height: 1.4;
}

.gmpr-quantity-price-table table {
    width: 100%;
    margin: 0;
    border-collapse: collapse;
}

.gmpr-quantity-price-table th,
.gmpr-quantity-price-table td {
    padding: 8px;
    border-top: 1px solid #dcdcde;
    text-align: left;
}

.gmpr-quantity-price-table th:last-child,
.gmpr-quantity-price-table td:last-child {
    text-align: right;
}

.gmpr-quantity-price-table tbody tr.is-active {
    background: #feffc6;
}

.gmpr-quantity-price-table tbody tr.is-active td:first-child {
    font-weight: 700;
}

.gmpr-tier-choices {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
    gap: 8px;
}

.gmpr-tier-choice {
    display: grid;
    gap: 4px;
    min-width: 0;
    padding: 10px;
    border: 1px solid #c3c4c7;
    border-radius: 3px;
    background: #fff;
    color: inherit;
    text-align: left;
    cursor: pointer;
}

.gmpr-tier-choice:hover,
.gmpr-tier-choice.is-active {
    border-color: #2271b1;
    background: #f0f6fc;
}

.gmpr-tier-choice small {
    color: #646970;
}

.gmpr-template-options .gmpr-tier-choices {
    grid-template-columns: 1fr;
}

.gmpr-template-options .gmpr-tier-choice {
    grid-template-columns: auto 1fr auto;
    align-items: center;
}

.gmpr-template-options .gmpr-tier-choice small {
    grid-column: 2 / -1;
}

.gmpr-template-options .gmpr-tier-choice input {
    grid-row: 1 / 3;
}

.gmpr-tier-dropdown {
    display: grid;
    gap: 5px;
}

.gmpr-tier-dropdown select {
    width: 100%;
}

.gmpr-horizontal-scroll {
    overflow-x: auto;
}

.gmpr-template-horizontal table {
    min-width: max-content;
}

.gmpr-template-horizontal th.is-active,
.gmpr-template-horizontal td.is-active {
    background: #feffc6;
}

.gmpr-tier-tooltip summary {
    cursor: pointer;
    font-weight: 600;
}

.gmpr-tier-tooltip table {
    margin-top: 8px;
}

.gmpr-price-summary {
    display: grid;
    gap: 8px;
    padding: 12px;
    border: 1px solid #dcdcde;
    background: #f6f7f7;
}

.gmpr-price-summary[hidden] {
    display: none;
}

.gmpr-price-summary > strong {
    color: #1d2327;
}

.gmpr-price-summary-lines {
    display: grid;
    gap: 5px;
}

.gmpr-price-summary-line,
.gmpr-price-summary-total {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.gmpr-price-summary-line strong,
.gmpr-price-summary-total strong {
    white-space: nowrap;
}

.gmpr-price-summary-total {
    padding-top: 8px;
    border-top: 1px solid #dcdcde;
}

.gmpr-live-price {
    display: grid;
    gap: 10px;
    padding: 14px;
    border: 1px solid #c3c4c7;
    background: #fff;
}

.gmpr-live-price-values {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.gmpr-live-price-values > div:not(.gmpr-live-price-benefit) {
    display: grid;
    gap: 3px;
}

.gmpr-live-price-values span {
    color: #50575e;
    font-size: .9em;
}

.gmpr-live-price-values strong {
    color: #1d2327;
    font-size: 1.15em;
}

.gmpr-live-price-benefit {
    grid-column: 1 / -1;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 7px;
    padding-top: 9px;
    border-top: 1px solid #dcdcde;
}

.gmpr-live-price-benefit[hidden],
.gmpr-live-price-next[hidden] {
    display: none;
}

.gmpr-live-price-next {
    padding: 8px 10px;
    background: #f0f6fc;
    color: #135e96;
}

.gmpr-live-price-status {
    min-height: 0;
    color: #646970;
}

.gmpr-live-price.is-loading {
    opacity: .72;
}

.gmpr-live-price.has-error .gmpr-live-price-status {
    color: #b32d2e;
}

@media (max-width: 480px) {
    .gmpr-live-price-values {
        grid-template-columns: 1fr;
    }
}

.gmpr-cart-previous-price {
    opacity: .7;
}

.gmpr-cart-current-price {
    text-decoration: none;
}

.gmpr-cart-upsell {
    margin: 6px 0 0;
    color: #135e96;
    font-size: .9em;
}

.gmpr-guest-price,
.gmpr-guest-notice {
    color: #50575e;
}

.gmpr-guest-notice {
    padding: 10px 12px;
    border-left: 4px solid #2271b1;
    background: #f0f6fc;
}
