body {
    font-family: sans-serif;
    margin: 0;
    background-color: #f0f0f0;
    touch-action: manipulation; /* Disable pinch zoom */
}

.menu-container {
    width: 98%; /* Use a percentage width - THIS IS THE KEY CHANGE */
    max-width: 400px; /* Still keep a max-width */
    margin: 0 auto; /* Back to original margin */
    padding: 20px; /* Back to original padding */
    padding-bottom: 100px;
    background-color: white;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    box-sizing: border-box; /* Include padding and border in width */
}

.header {
    width: 100%;
    margin-bottom: 20px;
    border-radius: 15px;
    overflow: hidden;
}

.header-image {
    width: 100%;
    height: auto;
    display: block;
}

.input-company-name{
    font-weight: 700;
	color: #627C85;
    font-size: 18px;
    height: 50px;
    display: flex;
    align-items: center;
    padding-left: 0px;
    width: 100%;
    margin-bottom: 0px;
}

.input-company-description{
    font-weight: 0;
	color: #627C85;
    font-size: 14px;
    height: 30px;
    display: flex;
    align-items: center;
	margin-top: -10px;
    padding-left: 0px;
    width: 100%;
    margin-bottom: 10px;
}

.input-group-title {
    font-weight: 700;
    font-size: 18px;
    height: 50px;
    display: flex;
    align-items: center;
    padding-left: 0px;
    width: 100%;
    margin-bottom: 10px;
}

.category-title {
    font-weight: 700;
    font-size: 18px;
    height: 50px;
    display: flex;
    align-items: center;
    padding-left: 0px;
    width: 100%;
    margin-bottom: 10px;
}

.menu-items {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.item {
    display: grid;
    grid-template-columns: 140px 1fr; /* Original grid columns */
    border-bottom: 1px solid #ddd;
    padding-bottom: 10px;
    align-items: start;
    gap: 10px;
}

.image {
    grid-column: 1;
    grid-row: 1 / 3;
    align-self: start;
}

.image img {
    width: 140px; /* Original image width */
    height: 170px; /* Original image height */
    border-radius: 10px;
    object-fit: cover;
}

.details {
    grid-column: 2;
    grid-row: 1;
}

.name {
    font-weight: bold;
    margin-bottom: 5px;
}

.stars {
    color: gold;
    margin-bottom: 5px;
}

.price {
    color: #000000;
    margin-bottom: 5px;
}

.description {
    font-size: 14px;
    color: #555;
    margin-bottom: 10px;
}

.quantity {
    grid-column: 2;
    grid-row: 2;
    display: flex;
    align-items: center;
    margin-top: 10px;
}

.quantity button {
    width: 30px;
    height: 30px;
    border: none;
    background-color: #eee;
    cursor: pointer;
    padding: 0;
    margin: 0 5px;
}

.quantity .count {
    margin: 0 10px;
    font-size: 16px;
    contentEditable: true;
    inputmode: "numeric";
    cursor: text;
    min-width: 30px;
    text-align: center;
}

.submit-order {
    position: fixed;
    font-size: 16px;
    font-weight: 600;
    bottom: 0;
    color: white;
    background-color: #4CAF50 !important;
    padding: 20px 20px;
    border: none;
    border-radius: 0px;
    cursor: pointer;
    width: 100%;
    box-sizing: border-box;
    appearance: none !important;
}

/*  STYLES FOR THE INPUT FIELDS  */
.input-group {
    margin-bottom: 20px;
}

.input-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #333;
}

.input-group input[type="text"],
.input-group input[type="tel"] {
    width: 100%;
    padding: 12px;
    border: 1px solid #ced4da;
    border-radius: 5px;
    font-size: 16px;
    color: #333;
    box-sizing: border-box;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.input-group input[type="text"]:focus,
.input-group input[type="tel"]:focus {
    color: #495057;
    background-color: #fff;
    border-color: #80bdff;
    outline: 0;
    box-shadow: 0 0 0 0.2rem rgba(0,123,255,.25);
}

/* Styling for the intlTelInput container (if used) */
.intl-tel-input {
    display: block;
}

.intl-tel-input .iti-selected-flag {
    background-color: transparent;
    border-right: none;
}

.intl-tel-input .iti-arrow {
    border-left: 0.3em solid #333;
}

.intl-tel-input input[type="tel"] {
    padding-left: 50px;
}

/* Error message styling */
.error-message {
    color: #dc3545;
    font-size: 14px;
    margin-top: 5px;
    display: none; /* Initially hidden */
}

.input-group.invalid + .error-message, /* Show when input has .invalid class */
.input-group .invalid + .error-message { /* Also works if .invalid is directly on input */
    display: block;
}


/* Media Query for Larger Screens (Tablets and Desktops) */
@media (min-width: 768px) {
    .menu-container, .submit-order {
        display: none;
    }
}