/* My Membership Plugin Public Styles */

.card-brand i.fab {
  font-size: 50px;
  vertical-align: middle;
}

.card-details.selected {
  border: 2px solid #007bff;
  background-color: #eef6ff;
}
/* Container for the list */
#card-details-container {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

/* Card wrapper */
.card-details {
  border: 1px solid #ccc;
  border-radius: 12px;
  padding: 16px;
  width: 280px;
  background: #fff;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
  transition: all 0.2s ease;
  cursor: pointer;
}

.card-details:hover {
  border-color: #007bff;
  box-shadow: 0 4px 12px rgba(0, 123, 255, 0.1);
}

/* Selected card */
.card-details.selected {
  border-color: #007bff;
  background-color: #e9f3ff;
  box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.2);
}

/* Card content */
.card-details ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.card-details li {
  margin-bottom: 8px;
}

.card-details h4,
.card-details h5 {
  margin: 0;
  font-size: 14px;
  color: #555;
}

.card-details span {
  display: block;
  font-size: 16px;
  font-weight: 500;
  color: #222;
}


.mmp-plans-container {
    display: flex;
    flex-wrap: wrap;
    gap: 20px; /* Space between cards */
    justify-content: center; /* Center cards if they don't fill the row */
    margin-top: 30px;
    margin-bottom: 30px;
}

.mmp-plan-card {
    background-color: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 25px;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 380px; /* Adjusted minimum height for more content */
    flex: 1 1 280px; /* Allow cards to grow/shrink, with a base of 280px */
    max-width: 300px; /* Max width for individual cards */
}

.mmp-plan-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.12);
}

/* Specific styling for the highlighted card */
.mmp-plan-card.highlighted {
    background-color: #f0f4ff; /* Light blue/purple background */
    border-color: #6a0dad; /* Purple border */
    box-shadow: 0 6px 15px rgba(106, 13, 173, 0.2);
    transform: scale(1.03); /* Slightly larger to stand out */
    z-index: 1; /* Ensure it's above non-highlighted cards */
}


/* Responsive columns */
@media (min-width: 1024px) { /* Large screens: 4 columns */
    .mmp-plans-container.mmp-columns-4 .mmp-plan-card {
        width: calc(25% - 15px); /* 4 columns with gap */
    }
}

@media (min-width: 768px) and (max-width: 1023px) { /* Medium screens: 3 columns */
    .mmp-plans-container.mmp-columns-3 .mmp-plan-card,
    .mmp-plans-container.mmp-columns-4 .mmp-plan-card {
        width: calc(33.333% - 13.333px); /* 3 columns with gap */
    }
}

@media (min-width: 481px) and (max-width: 767px) { /* Small screens: 2 columns */
    .mmp-plans-container.mmp-columns-2 .mmp-plan-card,
    .mmp-plans-container.mmp-columns-3 .mmp-plan-card,
    .mmp-plans-container.mmp-columns-4 .mmp-plan-card {
        width: calc(50% - 10px); /* 2 columns with gap */
    }
}

@media (max-width: 480px) { /* Extra small screens: 1 column */
    .mmp-plans-container .mmp-plan-card {
        width: 100%; /* On mobile, stack cards */
        max-width: 300px; /* Still limit max width */
    }
}


.mmp-plan-header {
    margin-bottom: 20px;
}

.mmp-plan-title {
    font-size: 1.2em; /* Smaller, like "Tier 1" */
    font-weight: 600;
    color: #6a0dad; /* Purple for the tier name */
    margin-bottom: 5px;
}

.mmp-plan-price-block {
    display: flex;
    flex-direction: column; /* Stack price and period */
    align-items: center;
    margin-bottom: 15px;
}

.mmp-plan-price {
    font-size: 2.8em; /* Larger price */
    font-weight: bold;
    color: #333; /* Darker for main price */
    line-height: 1; /* Tighten line height */
}

.mmp-plan-period {
    font-size: 1em; /* Smaller period text */
    color: #666;
    margin-top: 5px;
}

.mmp-plan-discount {
    font-size: 0.9em;
    color: #e67e22; /* Orange for discount */
    font-weight: 500;
    margin-bottom: 15px;
}

.mmp-plan-body {
    flex-grow: 1;
    text-align: left; /* Align features to the left */
}

.mmp-plan-features {
    list-style: none;
    padding: 0;
    margin: 0;
}

.mmp-plan-features li {
    display: flex;
    align-items: flex-start; /* Align icon and text at the top */
    margin-bottom: 10px;
    color: #444;
    font-size: 0.95em;
    line-height: 1.4;
}

.mmp-plan-features li .dashicons {
    color: #4CAF50; /* Green checkmark */
    margin-right: 8px;
    font-size: 18px; /* Slightly larger icon */
    line-height: 1.4; /* Align with text */
}

.mmp-plan-features li.mmp-plan-discount-text .dashicons {
    color: #e67e22; /* Orange for discount icon */
}

.mmp-plan-features li.mmp-plan-description-item {
    font-style: italic;
    color: #777;
    margin-top: 15px; /* Space above description if present */
    border-top: 1px dashed #eee; /* Separator for description */
    padding-top: 15px;
}
.mmp-plan-features li.mmp-plan-description-item .dashicons {
    color: #777; /* Grey for info icon */
}


.mmp-plan-footer {
    margin-top: auto; /* Push footer to the bottom */
    padding-top: 20px;
}

.mmp-plan-button {
    display: inline-block;
    background-color: #6a0dad;
    color: #fff;
    padding: 12px 25px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
    transition: background-color 0.3s ease, transform 0.2s ease;
    width: 100%; /* Full width button */
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.mmp-plan-button:hover {
    background-color: #5b0ca1;
    transform: translateY(-2px);
}
.mmp-plan-button:active {
    background-color: #4c088f;
    transform: translateY(0);
}