/**
 * Recent Transactions Shortcode Styles
 */

.pmp-recent-transactions {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen-Sans, Ubuntu, Cantarell, 'Helvetica Neue', sans-serif;
    font-size: 14px;
    line-height: 1.5;
}

.pmp-recent-transactions-message {
    padding: 15px;
    background: #f0f0f1;
    border-left: 4px solid #72aee6;
    color: #2c3338;
    margin: 0;
}

.pmp-transactions-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.pmp-transaction-item {
    margin-bottom: 12px;
    border: 1px solid #dcdcde;
    border-radius: 4px;
    overflow: hidden;
    transition: box-shadow 0.2s ease;
}

.pmp-transaction-item:hover {
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.pmp-transaction-item:last-child {
    margin-bottom: 0;
}

.pmp-transaction-link,
.pmp-transaction-manual {
    display: flex;
    align-items: center;
    padding: 10px;
    text-decoration: none;
    color: inherit;
}

.pmp-transaction-link:hover .pmp-transaction-name {
    color: #2271b1;
}

.pmp-transaction-icon {
    position: relative;
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    margin-right: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f6f7f7;
    border-radius: 4px;
    overflow: hidden;
}

.pmp-transaction-thumbnail {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.pmp-metal-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    font-weight: 600;
    font-size: 16px;
    color: #fff;
    border-radius: 4px;
}

.pmp-metal-icon.pmp-metal-gold {
    background: linear-gradient(135deg, #d4af37 0%, #f9d976 100%);
}

.pmp-metal-icon.pmp-metal-silver {
    background: linear-gradient(135deg, #8e9eab 0%, #c0c0c0 100%);
}

.pmp-metal-icon.pmp-metal-platinum {
    background: linear-gradient(135deg, #56CCF2 0%, #2F80ED 100%);
}

.pmp-metal-icon.pmp-metal-palladium {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.pmp-wc-badge {
    position: absolute;
    bottom: 2px;
    right: 2px;
    width: 18px;
    height: 18px;
    background: #96588a;
    color: #fff;
    border-radius: 3px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.pmp-wc-badge svg {
    width: 12px;
    height: 12px;
}

.pmp-transaction-details {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.pmp-transaction-name {
    font-weight: 500;
    color: #1d2327;
    margin-bottom: 4px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.pmp-transaction-meta {
    font-size: 12px;
    color: #646970;
}

/* Responsive adjustments */
@media (max-width: 600px) {
    .pmp-transaction-icon {
        width: 40px;
        height: 40px;
        margin-right: 10px;
    }

    .pmp-metal-icon {
        font-size: 14px;
    }

    .pmp-transaction-name {
        font-size: 13px;
    }

    .pmp-transaction-meta {
        font-size: 11px;
    }
}
