.ps-widget p {
    margin: 0;
}

.ps-grid {
    display: grid;
    grid-template-columns: repeat(4,1fr);
    gap: 25px 15px;
}

.ps-card {
    background-color: #f8f8f8;
    border: 1px solid #E2E2E2;
    position: relative;
    cursor: pointer;
    border-radius: 8px;
    text-align: center;
    transition: .3s;
    position: relative;
}

.ps-card::after {
    content: '';
    position: absolute;
    top: 8px;
    right: 8px;
    width: 15px;
    height: 15px;
    background: #fff url('data:image/svg+xml,%3Csvg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 26 22" fill="none" stroke="%23FA3457" stroke-width="3" stroke-linecap="round" stroke-linejoin="round"%3E%3Cpolyline points="20 6 9 17 4 12"/%3E%3C/svg%3E') center/14px no-repeat;
    border-radius: 50%;
    z-index: 2;
    opacity: 0;
}

.ps-card.ps-card--selected::after {
    opacity: 1;
}

.ps-card__top {
    border-bottom: 1px solid #E2E2E2;
    padding: 11px 4px;
    background-color: #f2f8ff;
    transition: .3s;
    display: flex;
    border-radius: 8px 8px 0 0;
    flex-direction: column;
}

.ps-card__top .ps-card__number {
    color: #FA3457;
    line-height: 1;
    margin-bottom: 2px;
    transition: .3s;
    font-size: 24px;
    font-weight: 900;
}

.ps-card__top .ps-card__title {
    line-height: 1;
    font-size: 14px;
    color: #383b3e;
    transition: .3s;
    text-transform: capitalize;
}

.ps-card__bottom {
    padding: 8px 4px 6px;
    line-height: 1;
    font-size: 14px;
    color: #383b3e;
    transition: .3s;
}

.ps-card.ps-card--selected .ps-card__top {
    background-color: #FA3457;
}

.ps-card.ps-card--selected {
    border-color: #FA3457;
}

.ps-card.ps-card--selected  .ps-card__top .ps-card__number, .ps-card.ps-card--selected  .ps-card__top .ps-card__title {
    color: #fff;
}

span.ps-badge-best {
    position: absolute;
    background-color: #FA3457;
    width: max-content;
    font-size: 12px;
    line-height: 1;
    padding: 4px 9px;
    text-transform: uppercase;
    left: 50%;
    top: -12px;
    transform: translateX(-50%);
    border-radius: 4px;
    color: #fff;
    z-index: 4;
}

.ps-summary {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 40px;
}

.ps-summary__label {
    font-size: 14px;
    line-height: normal;
    font-weight: 400;
    color: #383b3e;
    font-style: italic;
}

.ps-summary__coupon {
    color: #6d6d6d;
    font-size: 15px;
    line-height: 23px;
    font-weight: 400;
}

.btn-wrapper {
    width: 236px;
    margin: 20px auto 0;
    position: relative;
}

button.ps-buy-btn {
    cursor: pointer;
    background-color: #FA3457;
    text-align: center;
    color: #fff;
    font-size: 16px;
    font-weight: 500;
    padding: 15px 10px;
    min-width: 210px;
    border-radius: 10px;
    border: none;
    transition: .3s;
}

.ps-loading {
    width: 20px;
    height: 20px;
    background: rgba(255, 255, 255, 0.8);
    z-index: 9999;
    position: absolute;
    bottom: 0;
    right: -8px;
}

.ps-spinner {
    display: block;
    width: 20px;
    height: 20px;
    border: 2px solid #eee;
    border-top: 2px solid #FA3457;
    border-radius: 50%;
    animation: ps-spin 0.8s linear infinite;
}

@keyframes ps-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.ps-summary__prices {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
}

.ps-summary__original {
    color: #6d6d6d;
    font-size: 14px;
    line-height: normal;
    font-weight: 500;
    text-decoration: line-through;
}

.ps-summary__sale {
    color: #FA3457;
    font-size: 34px;
    line-height: 46px;
    font-weight: 900;
}

.ps-summary__badge.ps-val-discount-badge {
    background-color: #22bf3a;
    font-size: 14px;
    line-height: 1;
    padding: 3px 9px;
    border-radius: 4px;
    color: #fff;
    font-weight: 400;
}


@media (max-width: 767px) {
.ps-grid {
    gap: 22px 16px;
    grid-template-columns: repeat(3,1fr);
}
.ps-card__top {
    padding: 7px 4px;
}
.ps-card__bottom {
    padding: 8px 4px 6px;
    font-size: 12px;
}
.ps-card__top .ps-card__number {
    font-size: 18px;
}
.ps-card__top .ps-card__title {
    font-size: 12px;
}
span.ps-badge-best {
    font-size: 9px;
    padding: 3px 5px;
    top: -10px;
}
.ps-card::after {
    top: 4px;
    right: 4px;
    width: 12px;
    height: 12px;
    background: #fff url('data:image/svg+xml,%3Csvg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 30 20" fill="none" stroke="%23FA3457" stroke-width="3" stroke-linecap="round" stroke-linejoin="round"%3E%3Cpolyline points="21 6 9 17 3 11"/%3E%3C/svg%3E') center/14px no-repeat;
}
}