/* My Membership (member portal). Cards and layout come from profile.css. */

.membership-status {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 1.4rem;
    font-weight: 700;
    color: #111;
}

.membership-status .member-status-dot {
    width: 0.8em;
    height: 0.8em;
}

.membership-expiry {
    margin: 6px 0 16px;
    color: #444;
}

.membership-facts {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 12px;
    margin: 0;
}

.membership-facts dt {
    font-size: 0.8rem;
    color: #666;
    font-weight: 600;
}

.membership-facts dd {
    margin: 2px 0 0;
    color: #111;
}

.membership-blocked {
    background: #fff8e1;
    border-left: 4px solid #f59e0b;
    padding: 12px 14px;
    border-radius: 6px;
    color: #5f4300;
    margin: 0;
}

.membership-muted {
    color: #666;
    margin: 0;
}

.renew-options {
    border: 0;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 10px;
}

.renew-option {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    padding: 12px 14px;
    border: 2px solid #e5e7eb;
    border-radius: 10px;
    cursor: pointer;
    background: #fff;
    color: #111;
}

.renew-option:has(input:checked) {
    border-color: var(--trim-color, #2563eb);
    background: #f5f8ff;
}

.renew-option input {
    margin-top: 4px;
}

.renew-option-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.renew-option-head {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    font-weight: 600;
}

.renew-option-preview {
    color: #444;
    font-size: 0.9rem;
}

.renew-option-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 4px;
}

.renew-tag {
    font-size: 0.75rem;
    background: #eef2ff;
    color: #3730a3;
    border-radius: 999px;
    padding: 2px 8px;
}

.renew-tag--current {
    background: #e8f5e9;
    color: #1b5e20;
}

.renew-actions {
    display: flex;
    justify-content: flex-end;
    margin-top: 16px;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}


/* Family card */
.membership-covered {
    background: #eef2ff;
    border-left: 4px solid #6366f1;
    padding: 10px 14px;
    border-radius: 6px;
    color: #312e81;
    margin: 0 0 16px;
}

.family-form {
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid #eee;
}

.family-form h3 {
    margin: 0 0 12px;
    font-size: 1.05rem;
}

.family-help {
    margin-top: 8px;
    font-size: 0.9rem;
}

.btn-link-danger {
    background: none;
    border: none;
    color: #c62828;
    cursor: pointer;
    font-weight: 600;
    padding: 4px 6px;
}
