/**
 * Class Credits Frontend Styles
 *
 * @package ITC_Class_Credits
 */

/* Credit Section Styles */
.itc-credits-section {
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 20px;
    margin: 20px 0;
}

.itc-credits-section h3 {
    margin: 0 0 15px 0;
    color: #333;
    font-size: 18px;
    font-weight: 600;
}

.itc-credits-info {
    margin-bottom: 15px;
}

.itc-credits-info p {
    margin: 5px 0;
    font-size: 14px;
}

.itc-credits-info strong {
    color: #333;
}

/* Enhanced Apply Credits Control */
.itc-credits-apply-enhanced {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border: 2px solid #007cba;
    border-radius: 12px;
    padding: 20px;
    margin: 20px 0;
    box-shadow: 0 4px 12px rgba(0, 124, 186, 0.1);
}

.itc-credits-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #dee2e6;
}

.itc-credits-header h4 {
    margin: 0;
    color: #007cba;
    font-size: 18px;
    font-weight: 600;
}

.itc-available-credits {
    background: #d4edda;
    color: #155724;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
}

.itc-credits-controls {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.itc-amount-input-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.itc-amount-input-group label {
    font-weight: 600;
    color: #333;
    font-size: 14px;
}

.itc-input-group {
    display: flex;
    align-items: center;
    border: 2px solid #ddd;
    border-radius: 8px;
    background: #fff;
    transition: border-color 0.2s ease;
    flex-grow: 1;
    min-width: 150px;
    max-width: 250px;
}

.itc-input-group:focus-within {
    border-color: #007cba;
    box-shadow: 0 0 0 3px rgba(0, 124, 186, 0.1);
}

.itc-input-prefix {
    padding: 12px 8px 12px 12px;
    color: #6c757d;
    font-weight: 600;
    font-size: 16px;
    background: #f8f9fa;
    border-right: 1px solid #ddd;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.itc-credit-input-enhanced {
    flex: 1;
    padding: 12px;
    border: none;
    background: transparent;
    font-size: 16px;
    font-weight: 600;
    outline: none;
}

.itc-credit-input-enhanced:focus {
    outline: none;
    border-color: #007cba;
    box-shadow: 0 0 0 3px rgba(0, 124, 186, 0.1);
}

/* Quick amounts section removed per user request */

.itc-credits-horizontal-layout {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
}

.itc-credits-title {
    margin: 0;
    font-size: 0.9em; /* 40% smaller than default h4 */
    color: #333;
    white-space: nowrap;
    flex-shrink: 0;
    text-align: left;
}

.itc-available-credits {
    color: #28a745;
    font-weight: 600;
    white-space: nowrap;
    flex-shrink: 0;
}

.itc-apply-credits-enhanced {
    background: linear-gradient(135deg, #007cba 0%, #005a87 100%);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 124, 186, 0.3);
    white-space: nowrap;
    flex-shrink: 0;
    align-self: center;
}

.itc-apply-credits-enhanced:hover {
    background: linear-gradient(135deg, #005a87 0%, #004066 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 124, 186, 0.4);
}

.itc-apply-credits-enhanced:active {
    transform: translateY(0);
}

.itc-apply-credits-enhanced:disabled {
    background: #6c757d;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.itc-credits-feedback {
    margin-top: 10px;
    padding: 10px 15px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
}

.itc-credits-feedback.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.itc-credits-feedback.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.itc-credits-feedback.warning {
    background: #fff3cd;
    color: #856404;
    border: 1px solid #ffeaa7;
}

/* Legacy styling for backward compatibility */
.itc-credits-apply {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.itc-credits-apply label {
    font-weight: 600;
    color: #333;
    min-width: 120px;
}

.itc-credit-input {
    width: 150px;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

.itc-credits-apply .button {
    background: #007cba;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    text-decoration: none;
    display: inline-block;
}

.itc-credits-apply .button:hover {
    background: #005a87;
}

.itc-credits-disabled {
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    border-radius: 4px;
    padding: 15px;
    margin: 20px 0;
}

.itc-credits-disabled p {
    margin: 0 0 10px 0;
    color: #856404;
    font-weight: 600;
}

.itc-credits-disabled ul {
    margin: 0;
    padding-left: 20px;
    color: #856404;
}

.itc-credits-disabled li {
    margin: 5px 0;
}

/* Sale Pricing Notice */
.itc-sale-notice {
    background: #e7f3ff;
    border: 1px solid #b3d9ff;
    border-radius: 4px;
    padding: 15px;
    margin: 15px 0;
}

.itc-sale-notice p {
    margin: 0 0 8px 0;
    color: #0056b3;
    font-size: 14px;
}

.itc-sale-notice p:last-child {
    margin-bottom: 0;
}

.itc-sale-notice strong {
    color: #003d82;
}

/* Split Tender Information */
.itc-split-tender {
    background: #f0f8ff;
    border-left: 4px solid #007cba;
    padding: 10px 15px;
    margin: 10px 0;
    border-radius: 0 4px 4px 0;
}

.itc-split-tender strong {
    color: #007cba;
}

/* My Account Navigation - Class Credits Integration */
.woocommerce-MyAccount-navigation ul li a[href*="class-credits"] {
    color: #007cba;
    font-weight: 600;
}

.woocommerce-MyAccount-navigation ul li.is-active a[href*="class-credits"] {
    background: #007cba;
    color: #fff;
}

/* Transaction History Table Styling */
.itc-ledger-table-wrapper {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    margin: 20px 0;
}

.itc-ledger-table {
    width: 100%;
    border-collapse: collapse;
    margin: 0;
    font-size: 14px;
}

.itc-ledger-table thead {
    background: #f8f9fa;
    border-bottom: 2px solid #e9ecef;
}

.itc-ledger-table thead th {
    padding: 16px 12px;
    text-align: left;
    font-weight: 600;
    color: #495057;
    border: none;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.itc-ledger-table tbody tr {
    border-bottom: 1px solid #f1f3f4;
    transition: background-color 0.2s ease;
}

.itc-ledger-table tbody tr:hover {
    background-color: #f8f9fa;
}

.itc-ledger-table tbody tr:last-child {
    border-bottom: none;
}

.itc-ledger-table tbody td {
    padding: 16px 12px;
    vertical-align: middle;
    border: none;
}

/* Column-specific styling */
.itc-date {
    color: #6c757d;
    font-size: 13px;
    white-space: nowrap;
}

.itc-type {
    text-align: center;
}

.itc-expires {
    text-align: center;
    font-size: 13px;
}

.itc-expiry-date {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 4px;
    font-weight: 500;
}

.itc-expiry-date.expires-normal {
    color: #6c757d;
    background: #f8f9fa;
}

.itc-expiry-date.expiring-soon {
    color: #856404;
    background: #fff3cd;
}

.itc-expiry-date.expired {
    color: #721c24;
    background: #f8d7da;
}

.itc-no-expiry {
    color: #6c757d;
    font-style: italic;
}

/* How To Use Section Styling */
.itc-info-section {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 20px;
    margin: 20px 0;
}

.itc-info-section h3 {
    margin-top: 0;
    margin-bottom: 15px;
    color: #333;
    font-size: 18px;
    font-weight: 600;
}

.itc-info-content ul {
    margin: 0 0 15px 0;
    padding-left: 20px;
}

.itc-info-content li {
    margin-bottom: 8px;
    line-height: 1.5;
}

.itc-policy-note {
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    border-radius: 4px;
    padding: 12px 15px;
    margin: 15px 0 0 0;
    color: #856404;
    font-size: 14px;
}

.itc-policy-note strong {
    color: #533f03;
}

.itc-policy-note a {
    color: #856404;
    text-decoration: underline;
}

.itc-policy-note a:hover {
    color: #533f03;
}

.itc-type-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.itc-type-purchase {
    background: #d4edda;
    color: #155724;
}

.itc-type-redeem {
    background: #f8d7da;
    color: #721c24;
}

.itc-type-refund_to_wallet {
    background: #d1ecf1;
    color: #0c5460;
}

.itc-type-transfer_in {
    background: #d4edda;
    color: #155724;
}

.itc-type-transfer_out {
    background: #f8d7da;
    color: #721c24;
}

.itc-type-expire {
    background: #fff3cd;
    color: #856404;
}

.itc-type-extend {
    background: #d1ecf1;
    color: #0c5460;
}

.itc-type-admin_adjustment {
    background: #e2e3e5;
    color: #383d41;
}

.itc-amount {
    text-align: right;
    font-weight: 600;
}

.itc-amount-value.positive {
    color: #28a745;
}

.itc-amount-value.negative {
    color: #dc3545;
}

.itc-order {
    text-align: center;
}

.itc-order-link {
    color: #007cba;
    text-decoration: none;
    font-weight: 500;
    padding: 4px 8px;
    border-radius: 4px;
    transition: background-color 0.2s ease;
}

.itc-order-link:hover {
    background-color: #e7f3ff;
    text-decoration: none;
}

.itc-order-number {
    color: #6c757d;
    font-family: monospace;
}

.itc-no-order,
.itc-no-notes {
    color: #adb5bd;
    font-style: italic;
}

.itc-notes {
    max-width: 200px;
}

.itc-notes-text {
    display: block;
    color: #495057;
    line-height: 1.4;
}

/* Responsive design */
@media (max-width: 768px) {
    .itc-ledger-table-wrapper {
        overflow-x: auto;
    }
    
    .itc-ledger-table {
        min-width: 600px;
    }
    
    .itc-ledger-table thead th,
    .itc-ledger-table tbody td {
        padding: 12px 8px;
    }
    
    .itc-notes {
        max-width: 150px;
    }
}

/* Empty state */
.itc-ledger-empty {
    text-align: center;
    padding: 40px 20px;
    color: #6c757d;
}

.itc-ledger-empty h4 {
    margin: 0 0 10px 0;
    color: #495057;
}

.itc-ledger-empty p {
    margin: 0;
    font-size: 14px;
}

/* Class Length Options */
.itc-class-length-section {
    background: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 20px;
    margin: 20px 0;
}

.itc-class-length-section h3 {
    margin-top: 0;
    color: #333;
}

.itc-class-length-option {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    padding: 15px;
    margin: 15px 0;
}

.itc-class-length-option h4 {
    margin-top: 0;
    margin-bottom: 10px;
    color: #333;
}

.itc-class-length-details {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.itc-current-option,
.itc-alternative-option {
    padding: 8px 12px;
    border-radius: 4px;
}

.itc-current-option {
    background: #e8f4fd;
    border-left: 3px solid #007cba;
}

.itc-alternative-option {
    background: #f0f8ff;
    border-left: 3px solid #28a745;
}

.itc-price-difference {
    font-weight: bold;
    margin-left: 8px;
}

.itc-price-difference.positive {
    color: #28a745;
}

.itc-price-difference.negative {
    color: #dc3545;
}

.itc-class-length-actions {
    margin-top: 10px;
}

.itc-switch-class-length {
    background: #007cba;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
}

.itc-switch-class-length:hover {
    background: #005a87;
}

.itc-switch-class-length:disabled {
    background: #ccc;
    cursor: not-allowed;
}

/* Training Package Notices */
.itc-package-notice {
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 15px;
    margin: 15px 0;
}

.itc-package-notice p {
    margin: 0 0 8px 0;
    font-size: 14px;
}

.itc-package-notice p:last-child {
    margin-bottom: 0;
}

.itc-package-notice strong {
    font-weight: 600;
}

.itc-package-success {
    background: #d4edda;
    border-color: #c3e6cb;
}

.itc-package-success p {
    color: #155724;
}

.itc-package-success strong {
    color: #0f5132;
}

.itc-package-info {
    background: #d1ecf1;
    border-color: #bee5eb;
}

.itc-package-info p {
    color: #0c5460;
}

.itc-package-info strong {
    color: #0a4b53;
}

.itc-package-warning {
    background: #fff3cd;
    border-color: #ffeaa7;
}

.itc-package-warning p {
    color: #856404;
}

.itc-package-warning strong {
    color: #6c5a00;
}

.itc-package-warning ul {
    margin: 10px 0 0 0;
    padding-left: 20px;
}

.itc-package-warning li {
    margin: 5px 0;
    color: #856404;
}

/* Notification Styles */
.itc-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background: white;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 15px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 9999;
    max-width: 400px;
    min-width: 300px;
}

.itc-notification-success {
    border-left: 4px solid #28a745;
}

.itc-notification-error {
    border-left: 4px solid #dc3545;
}

.itc-notification-title {
    font-weight: 600;
    margin-bottom: 5px;
    color: #333;
}

.itc-notification-message {
    color: #666;
    font-size: 14px;
}

.itc-notification-close {
    position: absolute;
    top: 10px;
    right: 10px;
    background: none;
    border: none;
    font-size: 18px;
    cursor: pointer;
    color: #999;
}

.itc-notification-close:hover {
    color: #333;
}

/* My Account Styles */
.itc-class-credits-shortcode {
    margin: 20px 0;
}

.itc-class-credits-account {
    max-width: 1200px;
    margin: 0 auto;
}

.itc-class-credits-account h2,
.itc-class-credits-account h3 {
    color: #333;
    margin-bottom: 15px;
}

/* Balance and Expiring Row Layout */
.itc-balance-expiring-row {
    display: flex;
    gap: 20px;
    margin: 20px 0;
}

.itc-balance-section,
.itc-expiring-section {
    flex: 1;
    padding: 20px;
    border-radius: 8px;
}

/* Balance Display */
.itc-balance-section {
    background: #d4edda;
    border: 1px solid #c3e6cb;
}

.itc-balance-display {
    text-align: center;
}

.itc-balance-amount {
    font-size: 2.5em;
    font-weight: bold;
    color: #28a745;
    display: block;
    margin-bottom: 5px;
}

.itc-balance-description {
    color: #666;
    margin: 0;
}

.itc-expiring-section {
    background: #fff3cd;
    border: 1px solid #ffeaa7;
}

.itc-expiring-section h2 {
    margin-top: 0;
    margin-bottom: 15px;
    color: #856404;
}

.itc-no-expiring {
    text-align: center;
    color: #856404;
    font-style: italic;
    padding: 20px 0;
}

.itc-expiring-list {
    display: grid;
    gap: 10px;
}

.itc-expiring-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px;
    background: white;
    border-radius: 4px;
    border-left: 4px solid #ffc107;
}

.itc-expiring-item.urgent {
    border-left-color: #dc3545;
}

.itc-expiring-item.warning {
    border-left-color: #fd7e14;
}

.itc-expiring-amount {
    font-weight: bold;
    font-size: 1.1em;
}

.itc-expiring-details {
    text-align: right;
    font-size: 0.9em;
    color: #666;
}

.itc-expiring-date {
    display: block;
}

.itc-expiring-days {
    display: block;
    font-weight: bold;
}

.itc-ledger-section {
    margin-bottom: 30px;
}

.itc-ledger-table-wrapper {
    overflow-x: auto;
    margin-bottom: 15px;
}

.itc-ledger-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.itc-ledger-table th,
.itc-ledger-table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.itc-ledger-table th {
    background: #f8f9fa;
    font-weight: 600;
    color: #333;
}

.itc-ledger-table .itc-date {
    width: 120px;
}

.itc-ledger-table .itc-type {
    width: 150px;
}

.itc-ledger-table .itc-amount {
    width: 120px;
    text-align: right;
}

.itc-ledger-table .itc-order {
    width: 100px;
}

.itc-type-badge {
    display: inline-block;
    padding: 3px 8px;
    border-radius: 12px;
    font-size: 0.85em;
    font-weight: 500;
    text-transform: capitalize;
}

.itc-type-purchase {
    background: #d4edda;
    color: #155724;
}

.itc-type-redeem {
    background: #f8d7da;
    color: #721c24;
}

.itc-type-refund_to_wallet {
    background: #d1ecf1;
    color: #0c5460;
}

.itc-type-transfer_in {
    background: #d4edda;
    color: #155724;
}

.itc-type-transfer_out {
    background: #f8d7da;
    color: #721c24;
}

.itc-type-admin_adjustment {
    background: #e2e3e5;
    color: #383d41;
}

.itc-type-cancellation_credit {
    background: #fff3cd;
    color: #856404;
}

.itc-amount-value.positive {
    color: #28a745;
}

.itc-amount-value.negative {
    color: #dc3545;
}

.itc-order-link {
    color: #007cba;
    text-decoration: none;
}

.itc-order-link:hover {
    text-decoration: underline;
}

.itc-no-order,
.itc-no-notes {
    color: #999;
    font-style: italic;
}

.itc-notes-text {
    cursor: help;
}

.itc-ledger-footer {
    margin-top: 15px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 4px;
}

.itc-ledger-note {
    margin: 0;
    font-size: 0.9em;
    color: #666;
    text-align: center;
}

.itc-ledger-empty {
    text-align: center;
    padding: 40px 20px;
    background: #f8f9fa;
    border-radius: 8px;
}

.itc-ledger-empty h4 {
    margin-bottom: 10px;
    color: #666;
}

.itc-ledger-empty p {
    color: #888;
    margin: 0;
}

.itc-info-section {
    background: #e9ecef;
    border-radius: 8px;
    padding: 20px;
}

.itc-info-content ul {
    margin: 0;
    padding-left: 20px;
}

.itc-info-content li {
    margin-bottom: 8px;
    color: #555;
}

@media (max-width: 768px) {
    .itc-expiring-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }
    
    .itc-expiring-details {
        text-align: left;
    }
    
    .itc-ledger-table {
        font-size: 0.9em;
    }
    
    .itc-ledger-table th,
    .itc-ledger-table td {
        padding: 8px 6px;
    }
    
    .itc-notes-text {
        max-width: 100px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
        display: inline-block;
    }
}

.itc-balance-section {
    background: #e8f5e8;
    border: 1px solid #c3e6c3;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
    text-align: center;
}

.itc-balance-section h3 {
    margin: 0 0 10px 0;
    color: #2d5a2d;
    font-size: 18px;
}

.itc-balance-amount {
    font-size: 32px;
    font-weight: bold;
    color: #28a745;
    margin: 0;
}

.itc-expiring-section {
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
}

.itc-expiring-section h3 {
    margin: 0 0 15px 0;
    color: #856404;
    font-size: 18px;
}

.itc-expiring-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.itc-expiring-list li {
    padding: 8px 0;
    border-bottom: 1px solid #ffeaa7;
    font-size: 14px;
}

.itc-expiring-list li:last-child {
    border-bottom: none;
}

.itc-expiry-today {
    color: #dc3545;
    font-weight: bold;
}

.itc-expiry-soon {
    color: #fd7e14;
    font-weight: bold;
}

.itc-expiry-month {
    color: #856404;
}

.itc-ledger-section {
    background: white;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
}

.itc-ledger-section h3 {
    margin: 0 0 15px 0;
    color: #333;
    font-size: 18px;
}

.itc-ledger-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.itc-ledger-table th,
.itc-ledger-table td {
    padding: 10px;
    text-align: left;
    border-bottom: 1px solid #dee2e6;
}

.itc-ledger-table th {
    background: #f8f9fa;
    font-weight: 600;
    color: #333;
}

.itc-ledger-table tr:hover {
    background: #f8f9fa;
}

/* Ledger Type Colors */
.itc-type-purchase {
    color: #28a745;
}

.itc-type-redeem {
    color: #dc3545;
}

.itc-type-refund {
    color: #17a2b8;
}

.itc-type-transfer-in {
    color: #28a745;
}

.itc-type-transfer-out {
    color: #dc3545;
}

.itc-type-expire {
    color: #6c757d;
}

.itc-type-extend {
    color: #fd7e14;
}

.itc-type-admin {
    color: #6f42c1;
}

/* Balance Widget */
.itc-balance-widget {
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 15px;
    text-align: center;
    margin: 10px 0;
}

.itc-balance-widget h4 {
    margin: 0 0 10px 0;
    color: #333;
    font-size: 16px;
}

.itc-balance-widget .itc-balance-amount {
    font-size: 24px;
    font-weight: bold;
    color: #28a745;
    margin: 10px 0;
}

.itc-balance-widget .button {
    background: #007cba;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    text-decoration: none;
    display: inline-block;
    font-size: 14px;
}

.itc-balance-widget .button:hover {
    background: #005a87;
    color: white;
}

/* Expiring Notice */
.itc-expiring-notice {
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    border-radius: 4px;
    padding: 15px;
    margin: 20px 0;
}

.itc-expiring-notice p {
    margin: 0;
    color: #856404;
}

.itc-expiring-notice a {
    color: #856404;
    text-decoration: underline;
}

.itc-expiring-notice a:hover {
    color: #533f03;
}

/* Pagination */
.itc-pagination {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 20px 0;
    padding: 15px 0;
    border-top: 1px solid #dee2e6;
}

.itc-pagination-info {
    color: #666;
    font-size: 14px;
}

.itc-pagination-links {
    display: flex;
    gap: 5px;
}

.itc-pagination-links a,
.itc-pagination-links span {
    padding: 8px 12px;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    text-decoration: none;
    color: #333;
    font-size: 14px;
}

.itc-pagination-links a:hover {
    background: #f8f9fa;
}

.itc-pagination-current {
    background: #007cba;
    color: white;
    border-color: #007cba;
}

/* Responsive Design */
@media (max-width: 768px) {
    .itc-balance-expiring-row {
        flex-direction: column;
        gap: 15px;
    }
    
    .itc-balance-section,
    .itc-expiring-section {
        margin-bottom: 0;
    }
    
    .itc-credits-apply {
        flex-direction: column;
        align-items: stretch;
    }
    
    .itc-credit-input {
        width: 100%;
    }
    
    .itc-ledger-table {
        font-size: 12px;
    }
    
    .itc-ledger-table th,
    .itc-ledger-table td {
        padding: 8px 5px;
    }
    
    .itc-pagination {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
    
    .itc-notification {
        right: 10px;
        left: 10px;
        max-width: none;
        min-width: auto;
    }
}

/* WooCommerce Integration */
.woocommerce-cart .itc-credits-section,
.woocommerce-checkout .itc-credits-section {
    margin: 20px 0;
}

/* Email Styles */
@import url('itc-emails.css');

.woocommerce-cart .itc-credits-section h3,
.woocommerce-checkout .itc-credits-section h3 {
    font-size: 16px;
}

.woocommerce-order-class-credits {
    margin: 30px 0;
}

.woocommerce-order-class-credits h2 {
    margin-bottom: 20px;
    color: #333;
}

.class_credits_details {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
}

.class_credits_details th,
.class_credits_details td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #dee2e6;
}

.class_credits_details th {
    background: #f8f9fa;
    font-weight: 600;
    color: #333;
}
