/**
 * Ms Miles Credit Card Widget Styling
 * Brand Colors: Teal (#2F9D9D), Dark Forest (#114040)
 */

:root {
    --ms-miles-teal: #2F9D9D;
    --ms-miles-dark: #114040;
    --ms-miles-bg: #f4f7f7;
    --pro-color: #2d8a2d;
    --con-color: #c0392b;
}

/* 1. THEME RESET: This kills the double bullets */
.cc-widget ul, 
.cc-widget li {
    list-style-type: none !important;
    list-style-image: none !important;
    margin: 0 !important;
    padding: 0 !important;
    text-indent: 0 !important;
}

/* 2. WIDGET CONTAINER */
.cc-widget { 
    background: var(--ms-miles-bg); 
    padding: 30px; 
    border-radius: 15px; 
    font-family: 'Open Sans', sans-serif;
}

/* 3. CARD LAYOUT */
.cc-card { 
    background: #fff; 
    border: 1px solid #e0e0e0; 
    border-radius: 12px; 
    margin-bottom: 25px; 
    padding: 0; /* Padding moved to wrap for image support */
    transition: all 0.3s ease;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
}

.cc-card:hover { 
    transform: translateY(-5px); 
    border-color: var(--ms-miles-teal); 
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

/* 4. IMAGE STYLING */
.cc-card-image-wrap {
    background: #fdfdfd;
    padding: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-bottom: 1px solid #f0f0f0;
}

.cc-card-img {
    max-width: 200px;
    height: auto;
    display: block;
    filter: drop-shadow(0 4px 8px rgba(0,0,0,0.12));
}

.cc-card-content { padding: 25px; }

/* 5. PILL FILTERS */
.cc-filters {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin: 30px 0;
    flex-wrap: wrap;
}

.cc-filter-btn {
    background-color: #ffffff !important;
    border: 2px solid var(--ms-miles-teal) !important;
    color: var(--ms-miles-teal) !important;
    padding: 8px 22px !important;
    border-radius: 50px !important;
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
}

.cc-filter-btn.active {
    background-color: var(--ms-miles-teal) !important;
    color: #ffffff !important;
}

/* 6. PROS & CONS ICONS */
.cc-analysis {
    display: grid;
    grid-template-columns: 1fr;
    gap: 15px;
    margin: 20px 0;
}

@media (min-width: 600px) {
    .cc-analysis { grid-template-columns: 1fr 1fr; }
}

.cc-pro-list li, .cc-con-list li {
    position: relative;
    padding-left: 25px !important;
    margin-bottom: 10px !important;
    font-size: 14px;
    line-height: 1.4;
}

.cc-pro-list li::before {
    content: "✔" !important;
    color: #2d8a2d;
    margin-right: 10px;
}
.cc-con-list li::before {
    content: "✖" !important;
    color: #c0392b;
    margin-right: 10px;
}

/* 7. BUTTONS */
.cc-apply-btn { 
    background: var(--ms-miles-teal); 
    color: #fff !important; 
    display: block; 
    text-align: center; 
    padding: 14px; 
    border-radius: 8px; 
    text-decoration: none !important; 
    font-weight: 700;
    margin-top: 15px;
}

.cc-apply-btn:hover { 
    background: var(--ms-miles-dark); 
}

/* Style the "X" clear button in Chrome/Safari */
#cc-search-input::-webkit-search-cancel-button {
    -webkit-appearance: none;
    height: 16px;
    width: 16px;
    background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%232F9D9D'><path d='M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z'/></svg>") no-repeat 50% 50%;
    cursor: pointer;
    margin-right: 5px;
}