/* Responsive floating summary for select menu */
.floating-summary {
    position: fixed;
    right: 24px;
    top: 80px;
    width: 320px;
    max-width: 90vw;
    background: #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.07);
    border-radius: 10px;
    padding: 18px 16px;
    z-index: 100;
}
@media (max-width: 600px) {
    .floating-summary {
        position: static;
        width: 100%;
        max-width: 100%;
        margin: 16px 0;
        box-shadow: none;
        border-radius: 0;
        padding: 12px 8px;
    }
}
.hidden { display: none; }

body {
    font-family: Arial, sans-serif;
    margin: 40px;
}

h1 {
    text-align: center;
}

form {
    max-width: 500px;
    margin: auto;
}

label {
    display: block;
    margin-top: 15px;
    font-weight: bold;
}

input, select {
    width: 100%;
    padding: 8px;
    margin-top: 5px;
    box-sizing: border-box;
}

button {
    margin-top: 20px;
    padding: 10px 15px;
    font-size: 16px;
    cursor: pointer;
}

.success-message {
    margin-top: 20px;
    color: green;
    font-weight: bold;
}

/* Product selection styling */
#productList {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.category-box {
    border: 1.5px solid #e0e0e0;
    padding: 20px;
    border-radius: 12px;
    background: #fafafa;
}

.category-title {
    font-weight: 600;
    margin-bottom: 18px;
    text-align: center;
    font-size: 1.2em;
}

.product-item {
    display: flex;
    align-items: center;
    gap: 16px; /* increased space between checkbox and text */
    margin-bottom: 16px; /* more spacing between items */
}

.product-item input {
    margin-right: 0;
    width: 22px;
    height: 22px;
    accent-color: #007bff;
    cursor: pointer;
}

/* Floating summary section */
.floating-summary {
    position: fixed;
    top: 120px;
    right: 60px;
    width: 260px;
    min-height: 120px;
    background: #fffbe6;
    border: 2px solid #ffe58f;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.07);
    padding: 18px 16px;
    z-index: 1000;
    font-size: 1em;
}

.floating-summary h3 {
    margin-top: 0;
    font-size: 1.1em;
    font-weight: 600;
    text-align: center;
}

.floating-summary ul {
    margin: 0;
    padding-left: 18px;
}
