/* Стили для блока бонусов в ЛК */
.cpd-bonus-account {
    background: white;
    padding: 20px;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
    margin: 20px 0;
}

.cpd-bonus-main-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 25px;
}

.cpd-bonus-balance-card {
    text-align: center;
    padding: 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 8px;
}

.cpd-bonus-amount {
    font-size: 32px;
    font-weight: bold;
    margin-bottom: 5px;
}

.cpd-bonus-instructions {
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
}

.cpd-bonus-history-table {
    max-height: 300px;
    overflow-y: auto;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
}

/* Стили для чекаута */
.cpd-bonus-payment-row td {
    padding: 0 !important;
}

.cpd-bonus-checkout {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
}

.cpd-bonus-checkout h4 {
    margin: 0 0 10px 0;
}

/* Стили для выбора скидки */
.personal-discount-row select {
    width: 100%;
    padding: 8px;
    border-radius: 4px;
    border: 1px solid #ddd;
}

.cpd-active-discount-notice {
    background: #e7f3ff;
    padding: 10px;
    border-radius: 4px;
    margin-top: 10px;
    border-left: 4px solid #2271b1;
}

.cpd-admin-test-notice {
    background: #fff8e5;
    border-left: 4px solid #ffb900;
    padding: 10px;
    margin: 10px 0;
    font-size: 12px;
}

/* Адаптивность */
@media (max-width: 768px) {
    .cpd-bonus-main-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .cpd-bonus-amount {
        font-size: 24px;
    }

    .cpd-bonus-checkout {
        padding: 10px;
    }
}

@media (max-width: 480px) {
    .cpd-bonus-account {
        padding: 15px;
        margin: 10px 0;
    }

    .cpd-bonus-history-table {
        font-size: 12px;
    }
}
/* ==================== СТИЛИ ДЛЯ ЛИЧНОГО КАБИНЕТА ==================== */

/* Блок бонусов в ЛК */
.cpd-bonus-account {
    background: white;
    padding: 20px;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
    margin: 20px 0;
}

.cpd-bonus-main-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 25px;
}

.cpd-bonus-balance-card {
    text-align: center;
    padding: 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 8px;
}

.cpd-bonus-amount {
    font-size: 32px;
    font-weight: bold;
    margin-bottom: 5px;
}

.cpd-bonus-instructions {
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
}

/* БЛОК ИМЕНИННИКА */
.cpd-birthday-notice {
    background: linear-gradient(135deg, #ff6b6b 0%, #ff8e53 100%);
    color: white;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
    text-align: center;
    position: relative;
    overflow: hidden;
    animation: cpd-birthday-glow 2s infinite alternate;
}

.cpd-birthday-decorations {
    position: absolute;
    top: -20px;
    right: -20px;
    font-size: 80px;
    opacity: 0.2;
    z-index: 1;
}

.cpd-birthday-decorations .cpd-decor-cake {
    position: absolute;
    top: -20px;
    right: -20px;
}

.cpd-birthday-decorations .cpd-decor-gift {
    position: absolute;
    bottom: -20px;
    left: -20px;
    font-size: 80px;
}

.cpd-birthday-content {
    position: relative;
    z-index: 2;
}

.cpd-birthday-title {
    margin: 0 0 10px 0;
    color: white;
    font-size: 24px;
}

.cpd-birthday-message {
    margin: 0 0 15px 0;
    font-size: 16px;
}

.cpd-birthday-bonus {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 6px;
    padding: 15px;
    margin: 15px auto;
    display: inline-block;
    max-width: 300px;
}

.cpd-bonus-label {
    font-size: 14px;
    margin-bottom: 5px;
    opacity: 0.9;
}

.cpd-bonus-rate {
    font-size: 28px;
    font-weight: bold;
    margin: 10px 0;
}

.cpd-bonus-comparison {
    font-size: 14px;
    opacity: 0.9;
}

.cpd-birthday-cta {
    margin: 15px 0 0 0;
    font-size: 14px;
    opacity: 0.9;
}

@keyframes cpd-birthday-glow {
    0% {
        box-shadow: 0 0 10px rgba(255, 107, 107, 0.5);
    }
    100% {
        box-shadow: 0 0 20px rgba(255, 107, 107, 0.8);
    }
}

/* История бонусов */
.cpd-bonus-history-section {
    border-top: 1px solid #e0e0e0;
    padding-top: 20px;
}

.cpd-bonus-history-table {
    max-height: 300px;
    overflow-y: auto;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    margin-top: 15px;
}

.cpd-history-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

.cpd-history-table thead {
    background: #f8f9fa;
}

.cpd-history-table th {
    padding: 10px;
    text-align: left;
    border-bottom: 1px solid #e0e0e0;
    font-weight: 600;
}

.cpd-history-table td {
    padding: 10px;
    border-bottom: 1px solid #f0f0f0;
}

.cpd-history-row:hover {
    background: #f9f9f9;
}

.cpd-amount-earned {
    color: #46b450;
    font-weight: bold;
}

.cpd-amount-spent {
    color: #dc3232;
    font-weight: bold;
}

.cpd-history-balance {
    font-weight: bold;
    text-align: right;
}

.cpd-operation-type {
    font-weight: 500;
}

.cpd-order-info {
    font-size: 11px;
    color: #666;
    margin-top: 2px;
}

.cpd-operation-note {
    font-size: 11px;
    color: #666;
    margin-top: 2px;
    font-style: italic;
}

/* Пустая история */
.cpd-empty-history {
    text-align: center;
    padding: 30px;
    color: #666;
    background: #f8f9fa;
    border-radius: 4px;
}

.cpd-empty-subtext {
    margin: 10px 0 0 0;
    font-size: 13px;
}

/* Информация о программе */
.cpd-program-info {
    margin-top: 20px;
    padding: 15px;
    background: #fff8e5;
    border-radius: 4px;
    border-left: 4px solid #ffb900;
}

.cpd-info-content {
    font-size: 13px;
    color: #666;
}

.cpd-info-content p {
    margin: 0 0 8px 0;
}

.cpd-info-content p:last-child {
    margin-bottom: 0;
}

/* Dashboard ЛК */
.cpd-bonus-dashboard {
    background: white;
    padding: 15px;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
    margin: 20px 0;
}

.cpd-dashboard-birthday {
    background: linear-gradient(135deg, #ff6b6b 0%, #ff8e53 100%);
    color: white;
    border-radius: 6px;
    padding: 10px 15px;
    margin-bottom: 15px;
    text-align: center;
    font-size: 14px;
    font-weight: bold;
}

.cpd-bonus-dashboard-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cpd-bonus-info {
    flex: 1;
}

.cpd-bonus-description {
    font-size: 13px;
    color: #666;
}

.cpd-bonus-action {
    margin-left: 20px;
}

/* Адаптивность для ЛК */
@media (max-width: 768px) {
    .cpd-bonus-main-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .cpd-bonus-amount {
        font-size: 24px;
    }

    .cpd-birthday-title {
        font-size: 20px;
    }

    .cpd-bonus-rate {
        font-size: 22px;
    }

    .cpd-birthday-bonus {
        padding: 12px;
    }

    .cpd-bonus-dashboard-content {
        flex-direction: column;
        align-items: stretch;
        text-align: center;
    }

    .cpd-bonus-action {
        margin-left: 0;
        margin-top: 15px;
    }
}

@media (max-width: 480px) {
    .cpd-bonus-account {
        padding: 15px;
        margin: 10px 0;
    }

    .cpd-birthday-notice {
        padding: 15px;
    }

    .cpd-birthday-title {
        font-size: 18px;
    }

    .cpd-bonus-rate {
        font-size: 20px;
    }

    .cpd-history-table {
        font-size: 12px;
    }

    .cpd-history-table th,
    .cpd-history-table td {
        padding: 8px 5px;
    }

    /* Скрываем столбец "Баланс" на очень маленьких экранах */
    .cpd-history-table th:nth-child(4),
    .cpd-history-table td:nth-child(4) {
        display: none;
    }
}