#wdl-donation-ui {
    margin-bottom: 30px;
    padding: 0;
    background: transparent;
    border: none;
}

#wdl-donation-ui h3 {
    margin-top: 0;
    margin-bottom: 20px;
    font-size: 1.4em;
    font-weight: 600;
    color: #333;
}

/* Grid Layout */
.wdl-tiers {
    display: grid;
    /* Default: Fit as many as possible, min 140px wide */
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 15px;
    margin-bottom: 25px;
}

/* Mobile Fix: Force 1 column on screens smaller than 600px */
@media (max-width: 600px) {
    .wdl-tiers {
        grid-template-columns: 1fr;
    }
}

.wdl-tier-card {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    padding: 20px 15px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    box-shadow: 0 4px 6px rgba(0,0,0,0.02);
    position: relative;
    overflow: hidden;
}

/* Hover State */
.wdl-tier-card:hover {
    border-color: #b0b0b0;
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.05);
}

/* Selected State */
.wdl-tier-card.selected {
    border-color: #0073aa;
    border-width: 2px;
    background-color: #fff;
    box-shadow: 0 8px 16px rgba(0, 115, 170, 0.15);
    transform: scale(1.05);
    z-index: 1;
}

.wdl-tier-card.selected::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0, 115, 170, 0.03);
    pointer-events: none;
}

/* Typography */
.wdl-tier-card .amount {
    display: block;
    font-size: 1.5em;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 4px;
    white-space: nowrap; /* Prevents price splitting */
}

.wdl-tier-card.selected .amount {
    color: #0073aa;
}

.wdl-tier-card .label {
    display: block;
    font-size: 0.9em;
    color: #777;
    font-weight: 500;
}

/* Highlighted Tier */
.wdl-tier-card.highlighted::after {
    content: '★ Popular';
    position: absolute;
    top: 5px;
    right: 5px;
    font-size: 0.65em;
    background: #ffd700;
    color: #333;
    padding: 2px 6px;
    border-radius: 4px;
    font-weight: bold;
}

/* Custom Input Area */
.wdl-custom {
    margin-top: 20px;
    text-align: left;
    background: #fff;
    padding: 15px;
    border-radius: 12px;
    border: 1px solid #e0e0e0;
    display: flex;
    flex-wrap: wrap; /* Allows wrapping on very small screens */
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.wdl-custom label {
    font-weight: 600;
    color: #555;
    margin-right: 15px;
    flex: 1 0 auto;
}

.wdl-input-wrapper {
    position: relative;
    flex: 0 1 200px; /* specific width for input container */
    width: 100%;
}

.wdl-input-wrapper .currency-symbol {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #888;
    font-weight: bold;
    z-index: 2;
    pointer-events: none;
}

.wdl-custom input {
    width: 100%;
    /* Increased padding-left to 55px to prevent overlap with Ksh/Currency */
    padding: 10px 10px 10px 55px !important; 
    border: 1px solid #ccc;
    border-radius: 8px !important;
    font-size: 1em;
    outline: none;
    transition: border 0.2s;
    height: 45px; /* Fixed height for consistency */
}

.wdl-custom input:focus {
    border-color: #0073aa;
    box-shadow: 0 0 0 2px rgba(0,115,170,0.1);
}