.cc-container {
    background-color: #bfcb50;
    padding: 25px;
    border-radius: 15px;
    font-family: sans-serif;
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: nowrap;
    overflow-x: auto; /* allows scroll if fields overflow */
    box-sizing: border-box;
    width: 100%;
    max-width: 100%;
}

.cc-container label {
    color: white;
    font-size: 14px;
    margin: 0;
    white-space: nowrap;
}

.cc-container input,
.cc-container select,
#cc-result {
    padding: 12px 14px;
    border-radius: 12px;
    border: none;
    font-size: 14px;
    box-sizing: border-box;
    height: 42px;
    min-width: 150px; /* sets readable minimum width */
    flex: 0 0 auto; /* prevents shrinking */
}

#cc-amount {
    width: 160px;
}

#cc-result {
    background-color: #f1f1f1;
    font-weight: bold;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #333;
    width: 150px;
    flex-shrink: 0;
}

/* Mobile layout stacks everything vertically */
@media (max-width: 768px) {
    .cc-container {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
        flex-wrap: wrap;
    }

    .cc-container input,
    .cc-container select,
    #cc-result {
        width: 100% !important;
        min-width: unset;
    }
}