:root {
    --bg-blue: #b7cdff;
    /* WP primary blue */
    --bg-red: #f3827f;
    /* WP primary red */
    --bg-green: #9edf7d;
    /* WP primary green */
    --bg-orange: #ffd6a5;
    /* WP primary orange */
    --bg-purple: #e0b7ff;
    /* WP primary purple */

    --text-color: #141414;
}

#wpcdp .tabs {
    display: flex;
    justify-content: flex-start;
    border-bottom: 1px solid #ddd;
    margin-bottom: 15px;
}

#wpcdp .tab {
    padding: 10px 20px;
    cursor: pointer;
    font-weight: bold;
    color: var(--text-color);
}

#wpcdp .tab.active {
    color: #8b1c46;
    border-bottom: 2px solid #8b1c46;
}

#wpcdp .date {
    text-align: center;
    font-weight: bold;
    margin: 20px 15px 10px;
    color: var(--text-color);
}

#wpcdp .event {
    margin: 10px 15px;
    padding: 15px;
    border-radius: 10px;
    color: var(--text-color);
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

#wpcdp .time {
    font-size: 14px;
    margin: 0 15px;
    font-weight: bold;
    color: var(--text-color);
}

/* Blue */
#wpcdp .event-color-blue {
    background-color: var(--bg-blue);
    /* WP primary blue */
}

/* Red */
#wpcdp .event-color-red {
    background-color: var(--bg-red);
}

/* Green */
#wpcdp .event-color-green {
    background-color: var(--bg-green);
}

/* Orange */
#wpcdp .event-color-orange {
    background-color: var(--bg-orange);
}

/* Purple */
#wpcdp .event-color-purple {
    background-color: var(--bg-purple);
}

#wpcdp .event .title {
    font-size: 16px;
    font-weight: bold;
    color: var(--text-color);
}

#wpcdp .event .speakers {
    font-size: 13px;
    color: var(--text-color);
    margin-top: 3px;
}

#wpcdp .check {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 2px solid #666;
    display: inline-block;
    margin-top: 2px;
    flex-shrink: 0;
    cursor: pointer;
    background-color: #fff;
}

#wpcdp .checked {
    background: #34a853;
    border-color: #34a853;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 12px;
}

#wpcdp .tab-content {
    display: none;
    padding: 20px;
    background-color: #f9f9f9;
    border-radius: 5px;
}

#wpcdp .tab-content.show {
    display: block;
}

#wpcdp .header {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    font-size: 18px;
    font-weight: bold;
}

#wpcdp .header .back {
    margin-right: 10px;
    font-size: 20px;
    cursor: pointer;
}

#wpcdp .container {
    padding: 16px;
    background: #fff;
}

#wpcdp .tag {
    display: inline-block;
    /* background: #e57373; */
    color: var(--text-color);
    font-weight: bold;
    padding: 6px 12px;
    border-radius: 6px;
    margin-bottom: 12px;
}

#wpcdp .info {
    margin: 10px 0;
}

#wpcdp .info-item {
    display: flex;
    align-items: center;
    color: var(--text-color);
    margin: 8px 0;
    font-size: 14px;
}

#wpcdp .info-item i {
    margin-right: 10px;
    font-size: 16px;
}

#wpcdp .description {
    margin: 12px 0;
    font-size: 15px;
}

#wpcdp .section-title {
    margin: 16px 0 10px;
    font-weight: bold;
    font-size: 16px;
    color: var(--text-color);
}

#wpcdp .speaker {
    display: flex;
    align-items: center;
    margin-bottom: 14px;
}

#wpcdp .speaker-avatar {
    width: 48px;
    height: 48px;
    background: #eee;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: var(--text-color);
    margin-right: 12px;
    font-size: 16px;
    overflow: hidden; /* 🔑 ensure child image gets clipped */
}

#wpcdp .speaker-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* keep aspect ratio, fill circle */
    border-radius: 50%; /* make image circular */
    display: block;
}

#wpcdp .speaker-details {
    display: flex;
    flex-direction: column;
}

#wpcdp .speaker-name {
    color: #1a73e8;
    font-weight: bold;
    font-size: 15px;
    margin-bottom: 4px;
}

#wpcdp .speaker-sub {
    font-size: 13px;
    color: #777;
}
/* Profile */
#wpcdp .profile {
    text-align: center;
    padding: 20px 10px;
}

#wpcdp .avatar {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    background: #ddd;
    color: #500c2c;
    font-size: 28px;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 12px;
    overflow: hidden; /* 🔑 ensures image stays inside circle */
}

#wpcdp .avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* 🔑 keeps aspect ratio while filling */
    border-radius: 50%; /* makes image perfectly round */
    display: block;
}

#wpcdp .name {
    font-size: 20px;
    font-weight: bold;
    text-transform: lowercase;
}

#wpcdp .company {
    font-size: 15px;
    color: #777;
    margin-top: 5px;
}

.metmoney-history {
    max-width: 700px;
    margin: 20px auto;
    font-family: Arial, sans-serif;
}

.metmoney-balance-section {
    max-width: 700px;
    margin: 20px auto;
    padding: 12px 16px;
    background-color: #f0f8ff;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 2px 6px rgba(0,0,0,0.08);
}
.metmoney-balance-section h4 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
}
.balance-amount {
    font-size: 24px;
    font-weight: 700;
    color: #0073aa;
    margin-top: 6px;
}

.metmoney-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.metmoney-title {
    text-align: center;
    margin-bottom: 20px;
    font-size: 22px;
}

.metmoney-export-btn {
    padding: 6px 14px;
    background: #0073aa;
    color: #fff;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
}
.metmoney-export-btn:hover {
    background: #005177;
}

.metmoney-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #fff;
    border-radius: 12px;
    padding: 12px 16px;
    margin-bottom: 12px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.08);
}
.metmoney-card-left {
    display: flex;
    flex-direction: column;
}
.metmoney-user {
    font-weight: 600;
    font-size: 15px;
}
.metmoney-date {
    font-size: 13px;
    color: #666;
}
.metmoney-card-right {
    text-align: right;
}
.metmoney-card .amount {
    font-size: 16px;
    font-weight: bold;
    display: block;
}
.metmoney-card .type {
    font-size: 13px;
    color: #888;
}
.metmoney-card.credit .amount {
    color: #28a745; /* green */
}
.metmoney-card.debit .amount {
    color: #dc3545; /* red */
}

.metmoney-pagination {
    text-align: center;
    margin-top: 20px;
}
.metmoney-pagination .page-link {
    display: inline-block;
    margin: 0 4px;
    padding: 6px 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    text-decoration: none;
    color: #333;
}
.metmoney-pagination .page-link.active {
    background: #0073aa;
    color: #fff;
    border-color: #0073aa;
}
