.am-member-accordion {
    border: 1px solid #ddd;
    border-radius: 4px;
    margin: 10px 0;
}

.am-accordion-header {
    padding: 15px;
    background: #f5f5f5;
    cursor: pointer;
}

.am-header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.am-title-container {
    display: flex;
    align-items: center;
    gap: 10px;
}

.am-toggle-icon {
    width: 20px;
    height: 20px;
    transition: transform 0.3s ease;
    cursor: pointer;
}

.am-accordion-header.active .am-toggle-icon {
    transform: rotate(45deg);
}

.am-accordion-title {
    font-weight: bold;
    white-space: nowrap;
}

.am-accordion-header.active .am-accordion-title {
    display: none;
}

.am-search-container {
    flex: 1;
    max-width: 300px;
    display: none;
}

.am-accordion-header.active .am-search-container {
    display: block;
}

.am-member-search {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.am-accordion-content {
    display: none;
    padding: 15px;
    border-top: 1px solid #ddd;
}

.am-members-list {
    margin-bottom: 15px;
}

.am-member-item {
    padding: 10px;
    border-bottom: 1px solid #eee;
    cursor: pointer;
}

.am-member-item:hover {
    background: #f9f9f9;
}

.am-member-name {
    font-weight: 500;
}

.am-bottom-action {
    text-align: center;
    padding: 10px;
    background: #f5f5f5;
    cursor: pointer;
    border-radius: 4px;
}

.am-bottom-action:hover {
    background: #e9e9e9;
}

/* Membership Status */
.am-status {
    display: inline-block;
    padding: 0.5em 1em;
    border-radius: 4px;
    font-weight: 600;
    text-align: center;
    margin: 0.5em 0;
}

.am-status-active {
    background-color: #dff0d8;
    color: #3c763d;
}

.am-status-expired {
    background-color: #f2dede;
    color: #a94442;
}

.am-status-none {
    background-color: #f5f5f5;
    color: #666;
}

/* Member Info */
.am-info {
    background: #f9f9f9;
    border: 1px solid #eee;
    padding: 1em;
    border-radius: 4px;
    margin: 1em 0;
}

.am-info > div {
    margin: 0.5em 0;
}

.am-info span {
    font-weight: 600;
}

/* Member Area */
.am-member-area {
    max-width: 800px;
    margin: 2em auto;
}

.am-member-area h3 {
    margin: 1.5em 0 1em;
    padding-bottom: 0.5em;
    border-bottom: 2px solid #eee;
}

.am-transactions-table {
    width: 100%;
    border-collapse: collapse;
    margin: 1em 0;
}

.am-transactions-table th,
.am-transactions-table td {
    padding: 0.75em;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.am-transactions-table th {
    background: #f5f5f5;
    font-weight: 600;
}

/* Renewal Products */
.am-renewal-products {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5em;
    margin: 1em 0;
}

.am-renewal-product {
    background: #fff;
    border: 1px solid #eee;
    padding: 1.5em;
    border-radius: 4px;
    text-align: center;
    transition: all 0.3s ease;
}

.am-renewal-product:hover {
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.am-renewal-product h4 {
    margin: 0 0 1em;
    font-size: 1.2em;
}

.am-renewal-product .price {
    font-size: 1.5em;
    color: #333;
    margin: 1em 0;
}

.am-renewal-product .button {
    display: inline-block;
    padding: 0.8em 1.5em;
    background: #2271b1;
    color: #fff;
    text-decoration: none;
    border-radius: 4px;
    transition: background 0.3s ease;
}

.am-renewal-product .button:hover {
    background: #135e96;
}

/* Login Form */
.am-member-area-login {
    max-width: 400px;
    margin: 2em auto;
    padding: 2em;
    background: #f9f9f9;
    border: 1px solid #eee;
    border-radius: 4px;
}

/* Responsive */
@media screen and (max-width: 600px) {
    .am-renewal-products {
        grid-template-columns: 1fr;
    }
    
    .am-transactions-table {
        display: block;
        overflow-x: auto;
    }
}
