/**
 * Cryptomus Product Pricing Styles
 */

.cryptomus-product-pricing,
.cryptomus-single-product-pricing {
    margin: 10px 0;
    padding: 10px;
    border-radius: 5px;
}

.cryptomus-single-product-pricing h4 {
    margin: 0 0 10px 0;
    color: #333;
    font-size: 14px;
    font-weight: 600;
}

/* ========== INLINE BADGES STYLE (DEFAULT) ========== */
.cryptomus-currency-item.cryptomus-inline-badge {
    display: inline-flex;
    align-items: center;
    margin: 3px 8px 3px 0;
    padding: 4px 8px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 3px;
    font-size: 12px;
    line-height: 1.2;
    transition: all 0.2s ease;
}

.cryptomus-currency-item.cryptomus-inline-badge:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    border-color: #ccc;
}

.cryptomus-currency-item .currency-icon {
    width: 16px;
    height: 16px;
    margin-right: 4px;
    border-radius: 50%;
    vertical-align: middle;
}

.cryptomus-currency-item .currency-code {
    font-weight: 600;
    color: #333;
    margin-right: 4px;
}

.cryptomus-currency-item .currency-price {
    color: #666;
    font-weight: 500;
}

/* ========== TOOLTIP HOVER STYLE ========== */
.cryptomus-tooltip-trigger {
    position: relative;
    display: inline-block;
    cursor: pointer;
}

.cryptomus-hover-indicator {
    display: inline-flex;
    align-items: center;
    padding: 6px 12px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.cryptomus-hover-indicator:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.cryptomus-tooltip-content {
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.9);
    color: white;
    padding: 12px;
    border-radius: 8px;
    min-width: 200px;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    margin-bottom: 8px;
}

.cryptomus-tooltip-content::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 6px solid transparent;
    border-top-color: rgba(0, 0, 0, 0.9);
}

.cryptomus-tooltip-trigger:hover .cryptomus-tooltip-content {
    opacity: 1;
    visibility: visible;
}

.cryptomus-tooltip-item {
    display: flex;
    align-items: center;
    margin: 4px 0;
    font-size: 11px;
}

.cryptomus-tooltip-item .currency-icon {
    width: 14px;
    height: 14px;
    margin-right: 6px;
}

.cryptomus-tooltip-item .currency-code {
    font-weight: 600;
    margin-right: 8px;
    min-width: 40px;
}

/* ========== EXPANDABLE SECTION STYLE ========== */
.cryptomus-expandable-section {
    margin: 10px 0;
}

.cryptomus-expand-trigger {
    background: #f7f7f7;
    border: 1px solid #ddd;
    padding: 8px 12px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
    font-weight: 500;
    color: #333;
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    transition: all 0.2s ease;
}

.cryptomus-expand-trigger:hover {
    background: #efefef;
    border-color: #ccc;
}

.cryptomus-expand-trigger .expand-arrow {
    transition: transform 0.2s ease;
}

.cryptomus-expand-trigger.expanded .expand-arrow {
    transform: rotate(180deg);
}

.cryptomus-expandable-content {
    border: 1px solid #ddd;
    border-top: none;
    padding: 10px;
    background: #fff;
    border-radius: 0 0 4px 4px;
}

.cryptomus-currency-item.cryptomus-expandable-item {
    display: flex;
    align-items: center;
    padding: 6px 0;
    border-bottom: 1px solid #f0f0f0;
}

.cryptomus-currency-item.cryptomus-expandable-item:last-child {
    border-bottom: none;
}

/* ========== COMPACT LIST STYLE ========== */
.cryptomus-compact-list {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 6px;
    padding: 8px;
}

.cryptomus-compact-header {
    font-size: 11px;
    font-weight: 600;
    color: #495057;
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.cryptomus-currency-item.cryptomus-compact-item {
    display: flex;
    align-items: center;
    margin: 3px 0;
    padding: 3px 0;
    font-size: 11px;
}

.cryptomus-compact-item .currency-info {
    display: flex;
    align-items: center;
    width: 100%;
    justify-content: space-between;
}

.cryptomus-compact-item .currency-icon {
    width: 12px;
    height: 12px;
    margin-right: 6px;
}

.cryptomus-compact-item .currency-code {
    font-weight: 600;
    color: #333;
    min-width: 35px;
}

.cryptomus-compact-item .currency-price {
    color: #666;
    font-weight: 500;
}

/* ========== PRICE TABLE STYLE ========== */
.cryptomus-price-table {
    margin: 10px 0;
}

.cryptomus-crypto-table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 4px;
    overflow: hidden;
    font-size: 12px;
}

.cryptomus-crypto-table th {
    background: #f8f9fa;
    padding: 8px 10px;
    text-align: left;
    font-weight: 600;
    color: #495057;
    border-bottom: 1px solid #dee2e6;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.cryptomus-crypto-table td {
    padding: 8px 10px;
    border-bottom: 1px solid #f0f0f0;
}

.cryptomus-table-row:last-child td {
    border-bottom: none;
}

.cryptomus-table-row:hover {
    background: #f8f9fa;
}

.cryptomus-crypto-table .currency-info {
    display: flex;
    align-items: center;
}

.cryptomus-crypto-table .currency-icon {
    width: 14px;
    height: 14px;
    margin-right: 6px;
}

.cryptomus-crypto-table .currency-code {
    font-weight: 600;
    color: #333;
}

.cryptomus-crypto-table .currency-price {
    font-weight: 500;
    color: #666;
    text-align: right;
}

/* ========== RESPONSIVE DESIGN ========== */
/* Shop page specific styles */
.cryptomus-product-pricing {
    margin-top: 8px;
    padding: 8px;
}

.cryptomus-product-pricing .cryptomus-currency-item {
    margin: 2px 4px 2px 0;
    padding: 2px 6px;
    font-size: 11px;
}

.cryptomus-product-pricing .cryptomus-currency-item .currency-icon {
    width: 14px;
    height: 14px;
}

/* Single product page styles */
.cryptomus-single-product-pricing {
    margin: 15px 0;
    padding: 15px;
}

.cryptomus-single-product-pricing .cryptomus-currency-item {
    margin: 5px 10px 5px 0;
    padding: 6px 10px;
    font-size: 13px;
}

@media (max-width: 768px) {
    .cryptomus-currency-item {
        margin: 3px 5px 3px 0;
        padding: 3px 6px;
        font-size: 11px;
    }
    
    .cryptomus-currency-item .currency-icon {
        width: 12px;
        height: 12px;
    }
    
    .cryptomus-single-product-pricing {
        padding: 10px;
    }
    
    .cryptomus-tooltip-content {
        min-width: 150px;
        font-size: 10px;
    }
    
    .cryptomus-crypto-table {
        font-size: 10px;
    }
    
    .cryptomus-crypto-table th,
    .cryptomus-crypto-table td {
        padding: 6px 8px;
    }
}

/* ========== DARK THEME SUPPORT ========== */
@media (prefers-color-scheme: dark) {
    .cryptomus-single-product-pricing h4 {
        color: #fff;
    }
    
    .cryptomus-currency-item {
        background: #1a1a1a;
        border-color: #555;
    }
    
    .cryptomus-currency-item .currency-code {
        color: #fff;
    }
    
    .cryptomus-currency-item .currency-price {
        color: #ccc;
    }
    
    .cryptomus-expand-trigger {
        background: #333;
        border-color: #555;
        color: #fff;
    }
    
    .cryptomus-expandable-content {
        background: #2a2a2a;
        border-color: #555;
    }
    
    .cryptomus-compact-list {
        background: #333;
        border-color: #555;
    }
    
    .cryptomus-compact-header {
        color: #ccc;
    }
    
    .cryptomus-crypto-table {
        background: #2a2a2a;
        border-color: #555;
    }
    
    .cryptomus-crypto-table th {
        background: #333;
        border-color: #555;
    }
    
    .cryptomus-crypto-table td {
        border-color: #444;
    }
    
    .cryptomus-table-row:hover {
        background: #333;
    }
}

/* ========== LOADING AND ERROR STATES ========== */
.cryptomus-pricing-loading {
    color: #999;
    font-style: italic;
    font-size: 12px;
    padding: 8px;
}

.cryptomus-pricing-error {
    color: #e74c3c;
    font-size: 12px;
    padding: 8px;
    background: #fdf2f2;
    border: 1px solid #f5c6cb;
    border-radius: 3px;
}
