/* =============================================
   Osclass Robokassa Plugin Styles
   ============================================= */

/* Общие стили */
.or-admin-wrap {
    max-width: 1200px;
    margin: 20px 20px 0 0;
    background: #fff;
    padding: 20px;
    border-radius: 5px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.or-admin-wrap h1 {
    font-size: 24px;
    margin: 0 0 20px 0;
    padding-bottom: 10px;
    border-bottom: 2px solid #eee;
}

/* Админ-секции */
.or-admin-section {
    margin-bottom: 30px;
    padding: 20px;
    background: #f9f9f9;
    border-radius: 5px;
}

.or-admin-section h2 {
    font-size: 18px;
    margin: 0 0 15px 0;
    padding-bottom: 5px;
    border-bottom: 1px solid #ddd;
}

/* Поля ввода */
.or-field {
    margin-bottom: 15px;
}

.or-field label {
    display: block;
    font-weight: bold;
    margin-bottom: 5px;
    font-size: 14px;
}

.or-field input[type="text"],
.or-field input[type="number"],
.or-field input[type="password"],
.or-field select {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

.or-desc {
    font-size: 12px;
    color: #666;
    margin-top: 5px;
}

/* Кнопки */
.or-button {
    display: inline-block;
    padding: 10px 20px;
    background: #f5f5f5;
    border: 1px solid #ddd;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    text-decoration: none;
    color: #333;
}

.or-button-primary {
    background: #0073aa;
    border-color: #0073aa;
    color: #fff;
}

.or-button-primary:hover {
    background: #005a87;
}

.or-admin-actions {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

/* Таблицы */
.or-transactions-table,
.or-tariffs-table,
.or-promocodes-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 15px;
	color: var(--white);
}

.or-transactions-table th,
.or-tariffs-table th,
.or-promocodes-table th {
    /*background: #f1f1f1;*/
    padding: 12px;
    text-align: left;
    font-weight: bold;
    border-bottom: 1px solid #ddd;
}

.or-transactions-table td,
.or-tariffs-table td,
.or-promocodes-table td {
    padding: 10px 12px;
    border-bottom: 1px solid #eee;
}

.or-empty {
    text-align: center;
    color: #999;
    padding: 40px !important;
}

/* Статусы */
.or-status {
    display: inline-block;
    padding: 3px 8px;
    border-radius: 3px;
    font-size: 12px;
    font-weight: bold;
}

.or-status-pending {
    background: #ffc107;
    color: #333;
}

.or-status-completed {
    background: #28a745;
    color: #fff;
}

.or-status-failed,
.or-status-cancelled {
    background: #dc3545;
    color: #fff;
}

/* Фильтры */
.or-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
    padding: 15px;
    background: #f9f9f9;
    border-radius: 5px;
}

.or-filters input,
.or-filters select {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

/* Фронтенд стили */
.or-balance-header {
    display: inline-block;
    margin-right: 15px;
    padding: 5px 10px;
    background: #f0f0f0;
    border-radius: 20px;
    font-size: 14px;
}

.or-balance-header i {
    margin-right: 5px;
    color: #0073aa;
}

.or-balance-header .or-topup-link {
    margin-left: 8px;
    color: #28a745;
    text-decoration: none;
}

/* Страница кошелька */
.or-wallet-page {
    max-width: 1000px;
    margin: 0 auto;
    padding: 20px;
}

.or-wallet-balance {
    text-align: center;
    padding: 30px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 10px;
    color: #fff;
    margin-bottom: 30px;
}

.or-wallet-balance h2 {
    margin: 0 0 10px 0;
    font-size: 18px;
    opacity: 0.9;
}

.or-balance-amount {
    font-size: 48px;
    font-weight: bold;
    margin: 15px 0;
}

.or-topup-button {
    display: inline-block;
    padding: 10px 25px;
    background: rgba(255,255,255,0.2);
    border-radius: 30px;
    color: #fff;
    text-decoration: none;
    transition: background 0.3s;
}

.or-topup-button:hover {
    background: rgba(255,255,255,0.3);
    color: #fff;
}

/* Страница пополнения */
.or-topup-page {
    max-width: 600px;
    margin: 0 auto;
    padding: 20px;
}

.or-topup-form {
    background: #fff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    margin-bottom: 30px;
}

.or-topup-form .or-field {
    margin-bottom: 20px;
}

.or-topup-form label {
    display: block;
    font-weight: bold;
    margin-bottom: 8px;
}

.or-topup-form input {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 16px;
}

.or-bonus-info {
    background: #e8f5e9;
    padding: 12px;
    border-radius: 5px;
    margin: 20px 0;
    text-align: center;
    color: #2e7d32;
}

.or-bonus-info i {
    margin-right: 8px;
}

.or-topup-info {
    background: #f5f5f5;
    padding: 20px;
    border-radius: 10px;
}

.or-topup-info h3 {
    margin: 0 0 15px 0;
}

.or-topup-info ol {
    margin: 0;
    padding-left: 20px;
}

.or-topup-info li {
    margin: 10px 0;
}

/* Кнопки услуг на странице объявления */
.or-item-services {
    margin: 20px 0;
    padding: 15px;
    /*background: #f9f9f9;*/
    border-radius: 8px;
}

.or-item-services h4 {
    margin: 0 0 15px 0;
}

.or-services-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 15px;
}

.or-service-btn {
    padding: 8px 16px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
    transition: transform 0.2s, opacity 0.2s;
}

.or-service-btn:hover {
    transform: translateY(-2px);
}

.or-bump-btn {
    background: #2196f3;
    color: #fff;
}

.or-highlight-btn {
    background: #ff9800;
    color: #fff;
}

.or-premium-btn {
    background: #9c27b0;
    color: #fff;
}

.or-promocode-block {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

.or-promocode-block input {
    flex: 1;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.or-promocode-block button {
    padding: 8px 16px;
    background: #4caf50;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

/* Кнопка Robokassa */
.or-robokassa-btn {
    display: inline-block;
    padding: 12px 24px;
    background: #00a859;
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    transition: background 0.3s;
}

.or-robokassa-btn:hover {
    background: #008545;
}

/* Суммы в таблице */
.or-amount {
    font-weight: bold;
}

.or-amount-deposit {
    color: #28a745;
}

.or-amount-withdraw {
    color: #dc3545;
}

/* Пагинация */
.or-pagination {
    margin-top: 20px;
    text-align: center;
}

.or-pagination a,
.or-pagination span {
    display: inline-block;
    padding: 8px 12px;
    margin: 0 2px;
    border: 1px solid #ddd;
    border-radius: 4px;
    text-decoration: none;
    color: var(--white);
}

.or-pagination .or-active {
    background: #0073aa;
    border-color: #0073aa;
    color: #fff;
}

/* Адаптивность */
@media (max-width: 768px) {
    .or-services-buttons {
        flex-direction: column;
    }
    
    .or-service-btn {
        width: 100%;
    }
    
    .or-transactions-table {
        font-size: 12px;
    }
    
    .or-transactions-table th,
    .or-transactions-table td {
        padding: 2px;
    }
}

.or-topup-page {
    min-width: 350px;
    margin: 0 auto;
    padding: 20px;
}
.or-wallet-info {
    margin-bottom: 30px;
}
.or-balance-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 15px;
    padding: 30px;
    text-align: center;
    color: #fff;
}
.or-balance-label {
    font-size: 16px;
    opacity: 0.9;
    margin-bottom: 10px;
}
.or-balance-amount {
    font-size: 48px;
    font-weight: bold;
}
.or-topup-form-container {
    background: #fff;
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    margin-bottom: 30px;
}
.or-topup-form-container h2 {
    margin: 0 0 25px 0;
    padding-bottom: 15px;
    border-bottom: 2px solid #f0f0f0;
}
.or-form-group {
    margin-bottom: 20px;
}
.or-form-group label {
    display: block;
    font-weight: bold;
    margin-bottom: 8px;
    color: #333;
}
.or-amount-input input {
    width: 100%;
    padding: 15px;
    font-size: 24px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    text-align: center;
}
.or-promocode-input {
    display: flex;
    gap: 10px;
}
.or-promocode-input input {
    flex: 1;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
}
.or-hint {
    font-size: 12px;
    color: #999;
    margin-top: 5px;
}
.or-bonus-info {
    background: #e8f5e9;
    padding: 12px 15px;
    border-radius: 8px;
    margin: 20px 0;
    color: #2e7d32;
}
.or-bonus-info i {
    margin-right: 8px;
}
.or-test-mode-warning {
    background: #fff3e0;
    padding: 12px 15px;
    border-radius: 8px;
    margin: 20px 0;
    color: #e65100;
}
.or-test-mode-warning i {
    margin-right: 8px;
}

/* Страница оплаты услуги */
.or-service-pay-page {
    max-width: 600px;
    margin: 40px auto;
    padding: 20px;
    color: var(--white);
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.or-service-pay-page h1 {
    margin: 0 0 20px 0;
    padding-bottom: 10px;
    border-bottom: 2px solid #f0f0f0;
    font-size: 24px;
}

.or-service-info,
.or-balance-info {
    color: var(--white);
    padding: 15px;
    border-radius: 5px;
    margin-bottom: 20px;
}

.or-service-info p,
.or-balance-info p {
    margin: 5px 0;
}

.or-warning {
    background: #fff3e0;
    padding: 15px;
    border-radius: 5px;
    margin-bottom: 20px;
    color: #e65100;
}

.or-payment-form {
    margin-bottom: 15px;
}

.or-button {
    display: inline-block;
    width: 100%;
    padding: 12px 20px;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    text-align: center;
    text-decoration: none;
}

.or-button-success {
    background: #28a745;
    color: #fff;
}

.or-button-success:hover {
    background: #218838;
}

.or-button-robokassa {
    background: #00a859;
    color: #fff;
}

.or-button-robokassa:hover {
    background: #008545;
}

.or-button-secondary {
    background: #6c757d;
    color: #fff;
    width: auto;
    padding: 8px 16px;
}

.or-button-back {
    background: #6c757d;
    color: #fff;
    display: inline-block;
    width: auto;
}

.or-promocode-form {
    margin: 20px 0;
    padding-top: 15px;
    border-top: 1px solid #eee;
}

.or-promocode-form h3 {
    margin: 0 0 10px 0;
    font-size: 16px;
}

.or-promocode-form input {
    padding: 8px 12px;
    width: 200px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.or-back-link {
    text-align: center;
    margin-top: 20px;
}

/* Выделение объявления */
.or-item-highlighted {
    background-color: #FFF8E1;
    border-left: 4px solid #FFC107;
    transition: all 0.3s ease;
}

.or-item-highlighted:hover {
    background-color: #FFF3CD;
}

/* Выделение объявления */
.or-item-highlighted {
    background-color: #FFF8E1;
    border-left: 4px solid #FFC107;
    transition: all 0.3s ease;
}

.or-item-highlighted:hover {
    background-color: #FFF3CD;
}

/* =============================================
   Услуги продвижения на странице объявления
   ============================================= */

.or-item-services {
    margin: 25px 0;
    padding: 20px;
    /*background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 16px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);*/
}

.or-item-services h4 {
    margin: 0 0 15px 0;
    font-size: 18px;
    font-weight: 600;
    color: #333;
    display: flex;
    align-items: center;
    gap: 10px;
}

.or-services-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.or-service-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 24px;
    border: none;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    background: #fff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.or-service-btn i {
    font-size: 16px;
    transition: transform 0.2s;
}

.or-service-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.15);
}

.or-service-btn:hover i {
    transform: scale(1.1);
}

/* Кнопка Поднять объявление */
.or-service-btn[href*="service=bump"] {
    background: linear-gradient(135deg, #2196F3 0%, #1976D2 100%);
    color: #fff;
	width: 100%;
	text-align: center;
}

.or-service-btn[href*="service=bump"]:hover {
    background: linear-gradient(135deg, #1976D2 0%, #0D47A1 100%);
}

/* Кнопка Выделить объявление */
.or-service-btn[href*="service=highlight"] {
    background: linear-gradient(135deg, #FF9800 0%, #F57C00 100%);
    color: #fff;
	width: 100%;
	text-align: center;
}

.or-service-btn[href*="service=highlight"]:hover {
    background: linear-gradient(135deg, #F57C00 0%, #E65100 100%);
}

/* Кнопка Сделать премиум */
.or-service-btn[href*="service=premium"] {
    background: linear-gradient(135deg, #9C27B0 0%, #7B1FA2 100%);
    color: #fff;
	width: 100%;
	text-align: center;
}

.or-service-btn[href*="service=premium"]:hover {
    background: linear-gradient(135deg, #7B1FA2 0%, #4A148C 100%);
}

.or-payment-methods {
    margin: 20px 0;
}
.or-payment-method {
    display: flex;
    align-items: center;
    padding: 15px;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    margin-bottom: 10px;
    cursor: pointer;
}
.or-payment-method:hover {
    color: var(--white);
    border-color: #0073aa;
}
.or-payment-radio {
    margin-right: 15px;
}
.or-payment-radio input {
    width: 18px;
    height: 18px;
    cursor: pointer;
}
.or-payment-info {
    flex: 1;
}
.or-payment-info label {
    cursor: pointer;
    font-weight: 600;
}
.or-payment-desc {
    display: block;
    font-size: 12px;
    color: var(--white-40);
    margin-top: 3px;
    font-weight: normal;
}
.or-payment-icons i {
    font-size: 24px;
    margin-left: 10px;
    color: #666;
}
.or-payment-tbank .or-payment-icons i {
    font-size: 24px;
    margin-left: 10px;
    color: #666;
}

.or-button-tbank {
    background: #00a859;
    color: #fff;
}
.or-button-tbank:hover {
    background: #008545;
}

/* Адаптивность для мобильных */
@media (max-width: 768px) {
    .or-services-buttons {
        flex-direction: column;
    }
    
    .or-service-btn {
        justify-content: center;
        padding: 10px 20px;
    }
}

.or-item-services h4 i {
    margin-right: 8px;
    color: #ff9800;
}

.lk-promo-chip.is-disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.lk-promo-chip.is-disabled .lk-promo-checkbox:checked + .lk-promo-chip-check {
    opacity: 0.7;
}

/* ============================================
   My Services Page Styles
   ============================================ */

.or-my-services {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.or-my-services h1 {
    font-size: 24px;
    margin-bottom: 30px;
    color: var(--white);
}

/* Balance Cards */
.or-services-balance {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.or-service-card {
    flex: 1;
    min-width: 150px;
    text-align: center;
    padding: 25px 20px;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
    transition: transform 0.2s, box-shadow 0.2s;
}

.or-service-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
}

.or-service-bumps { border-top: 4px solid #3498db; }
.or-service-highlights { border-top: 4px solid #f39c12; }
.or-service-premiums { border-top: 4px solid #9b59b6; }

.or-service-icon i {
    font-size: 32px;
    color: #666;
}

.or-service-count {
    font-size: 32px;
    font-weight: 700;
    margin: 12px 0 5px;
    color: #1a1a2e;
}

.or-service-name {
    font-size: 14px;
    color: #666;
}

/* Item Header */
.or-item-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.or-item-image {
    width: 60px;
    height: 60px;
    flex-shrink: 0;
    border-radius: 10px;
    overflow: hidden;
    background: #e8e8e8;
}

.or-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.or-item-no-image {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #e8e8e8;
    color: #999;
    font-size: 20px;
}

.or-item-info {
    flex: 1;
}

.or-item-title {
    font-size: 16px;
    font-weight: 600;
    color: #1a1a2e;
    text-decoration: none;
    display: inline-block;
    margin-bottom: 8px;
}

.or-item-title:hover {
    color: #3498db;
}

.or-premium-badge {
    display: inline-block;
    background: linear-gradient(135deg, #e8b800, #d4a000);
    color: #1a1a2e;
    font-size: 11px;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 20px;
    margin-left: 10px;
}

.or-expire-badge {
    display: inline-block;
    font-size: 11px;
    padding: 3px 10px;
    border-radius: 20px;
    margin-left: 10px;
}

.or-expire-highlight {
    background: #fff3e0;
    color: #e65100;
}

.or-expire-premium {
    background: #f3e5f5;
    color: #7b1fa2;
}

/* Item Actions */
.or-item-actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    border-top: 1px solid #eee;
    padding-top: 15px;
}

.or-action-item {
    flex: 1;
    min-width: 120px;
}

.or-active-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 500;
    width: 100%;
    justify-content: center;
}

.or-active-bump {
    background: #e3f2fd;
    color: #1976d2;
}

.or-active-highlight {
    background: #fff3e0;
    color: #e65100;
}

.or-active-premium {
    background: #f3e5f5;
    color: #7b1fa2;
}

.or-apply-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 8px 14px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s;
    width: 100%;
    cursor: pointer;
    border: none;
}

.or-apply-bump {
    background: #3498db;
    color: #fff;
}

.or-apply-bump:hover {
    background: #2980b9;
    transform: translateY(-1px);
}

.or-apply-highlight {
    background: #f39c12;
    color: #fff;
}

.or-apply-highlight:hover {
    background: #e67e22;
    transform: translateY(-1px);
}

.or-apply-premium {
    background: #9b59b6;
    color: #fff;
}

.or-apply-premium:hover {
    background: #8e44ad;
    transform: translateY(-1px);
}

.or-no-service {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 8px 14px;
    border-radius: 8px;
    font-size: 13px;
    color: #999;
    background: #f0f0f0;
    width: 100%;
}

/* Empty Message */
.or-empty-message {
    text-align: center;
    padding: 60px 20px;
    color: #999;
}

/* Buy More Button */
.or-buy-more {
    text-align: center;
    margin-top: 20px;
}

.or-button-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #6366f1;
    color: #fff;
    padding: 12px 28px;
    border-radius: 30px;
    text-decoration: none;
    font-size: 15px;
    font-weight: 600;
    transition: all 0.2s;
}

.or-button-primary:hover {
    background: #4f46e5;
    transform: translateY(-2px);
}

/* Responsive */
@media (max-width: 768px) {
    .or-services-balance {
        gap: 12px;
    }
    
    .or-service-card {
        min-width: 100px;
        padding: 15px 12px;
    }
    
    .or-service-count {
        font-size: 24px;
    }
    
    .or-service-icon i {
        font-size: 24px;
    }
    
    .or-item-header {
        flex-direction: column;
        text-align: center;
    }
    
    .or-item-actions {
        flex-direction: column;
    }
    
    .or-action-item {
        width: 100%;
    }
    
    .or-items-list h2 {
        padding: 15px;
        font-size: 16px;
    }
    
    .or-item-card {
        padding: 12px;
    }
}

@media (max-width: 480px) {
    .or-my-services {
        padding: 15px;
    }
    
    .or-service-card {
        padding: 12px 10px;
    }
    
    .or-service-count {
        font-size: 20px;
    }
    
    .or-service-name {
        font-size: 11px;
    }
    
    .or-item-title {
        font-size: 14px;
    }
}