/* Shared kiosk item-picker design — used by both the donation and sponsorship
   kiosk pages so a category's items look and behave the same way on either page. */
.item-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-bottom: 25px;
}
.item-card {
    position: relative;
    border: 3px solid #e9ecef;
    border-radius: 15px;
    padding: 20px 15px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
    overflow: hidden;
    min-width: 0;
    background: white;
}
.item-card:hover, .item-card.selected {
    border-color: #f5576c;
    background: #fff5f5;
}
.item-card input[type="radio"] { display: none; }
.item-name {
    font-weight: bold;
    color: #333;
    font-size: 1.1em;
    margin-bottom: 8px;
    overflow-wrap: break-word;
    word-break: break-word;
    hyphens: auto;
}
.item-amount { font-size: 1.5em; font-weight: bold; color: #f5576c; }
.item-desc { font-size: 0.9em; color: #888; margin-top: 6px; }
.selected-check {
    position: absolute; top: 8px; right: 8px;
    color: #f5576c; font-size: 1.3em; display: none;
}
.item-card.selected .selected-check { display: block; }

@media (max-width: 768px) {
    .item-grid { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; }
    .item-card { padding: 16px 10px; border-radius: 12px; }
    .item-amount { font-size: 1.3em; }
}
@media (max-width: 480px) {
    .item-grid { grid-template-columns: 1fr 1fr; gap: 8px; }
    .item-card { padding: 14px 8px; border-radius: 10px; }
    .item-name { font-size: 0.95em; }
    .item-amount { font-size: 1.2em; }
    .item-desc { font-size: 0.82em; }
}
