.cc-container {
    background-color: #bccb32;
    padding: 25px;
    border-radius: 15px;
    font-family: sans-serif;
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: nowrap;
    overflow-x: auto;
    box-sizing: border-box;
    width: 100%;
    max-width: 1200px; /* Desktop max width */
    margin: 0 auto; /* Centre container */
}

.cc-container label {
    color: #544b40;
    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;
    max-width: 170px; /* Limit max width on desktop */
    flex: 0 0 auto;
    width: 100%; /* Allow fluid layout within limit */
}

#cc-amount {
    width: 100px;
}

#cc-result {
    background-color: #f1f1f1;
    font-weight: bold;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #544b40;
    width: 100px;
    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;
        max-width: 100%;
    }

    .cc-container input,
    .cc-container select,
    #cc-result {
        width: 100% !important;
        min-width: unset;
        max-width: unset; /* Remove max width on mobile */
    }
}