/* Стили для формы оформления подписки */
.subscription-form {
    max-width: 500px;
    margin: 0 auto;
}

.plan-card {
    border: 2px solid #5cb85c;
    border-radius: 8px;
    padding: 25px;
    margin: 20px 0;
    background: #f8fff8;
    text-align: center;
}

.plan-card h3 {
    margin: 0 0 15px 0;
    color: #333;
    font-size: 20px;
}

.price {
    font-size: 28px;
    font-weight: bold;
    color: #5cb85c;
    margin-bottom: 15px;
}

.period {
    font-size: 16px;
    color: #666;
    font-weight: normal;
}

.features {
    list-style: none;
    padding: 0;
    margin: 0;
    text-align: left;
}

.features li {
    padding: 8px 0;
    color: #333;
}

.payment-options {
    margin-top: 30px;
}

.auto-renew-option {
    margin: 20px 0;
    padding: 15px;
    background: #f9f9f9;
    border-radius: 6px;
}

.auto-renew-option label {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-weight: bold;
}

.auto-renew-option input {
    margin-right: 10px;
}

.hint {
    font-size: 12px;
    color: #666;
    margin-top: 5px;
    margin-left: 24px;
}

.total-summary {
    background: #f5f5f5;
    padding: 20px;
    border-radius: 6px;
    margin: 20px 0;
}

.total-line {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
}

.total-line.final {
    border-top: 1px solid #ddd;
    padding-top: 10px;
    margin-top: 10px;
    font-size: 18px;
}

.total-amount {
    color: #5cb85c;
}

.security-notice {
    text-align: center;
    color: #666;
    font-size: 14px;
    margin-top: 15px;
}

.button.large {
    padding: 12px 30px;
    font-size: 16px;
    width: 100%;
}

/* Существующие стили управления подпиской */
.subscription-box {
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 20px;
    margin: 20px 0;
    background: #f9f9f9;
}

.info-row {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
    padding: 5px 0;
}

.info-row .label {
    font-weight: bold;
    width: 180px;
    color: #333;
}

.info-row .value {
    flex: 1;
}

.subscription-actions {
    border-top: 1px solid #ddd;
    padding-top: 15px;
    text-align: center;
}

.subscription-actions .button {
    margin: 0 5px;
}

.status-active {
    color: #090;
}

.status-canceled {
    color: #900;
}

.status-expired {
    color: #999;
}

.text-green {
    color: #090;
}

.text-red {
    color: #900;
}

.text-gray {
    color: #999;
}

.loading {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid #3498db;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}