.sso-menu{--sso-green:#326c35;max-width:1200px;margin:auto}.sso-heading{margin-bottom:24px}.sso-heading h2{margin-bottom:6px}.sso-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(230px,1fr));gap:24px}.sso-card{border:1px solid #e0e6df;border-radius:14px;padding:20px;background:#fff;display:flex;flex-direction:column;align-items:flex-start}.sso-card img{width:100%;aspect-ratio:4/3;object-fit:cover;border-radius:9px;margin-bottom:14px}.sso-card h3{font-size:1.2rem;margin:0 0 12px}.sso-card .button{margin-top:auto;background:var(--sso-green);color:#fff;border-radius:6px;padding:10px 16px;text-decoration:none}.sso-notice{background:#f3f6ef;border-left:4px solid var(--sso-green);padding:16px}.sso-fields{width:100%;margin-bottom:20px}.sso-fields label{display:block;font-weight:600}.sso-fields select,.sso-fields textarea{display:block;width:100%;margin-top:6px;padding:10px;border:1px solid #aaa;border-radius:4px;background:#fff;color:#222}.sso-fields textarea{min-height:90px}.sso-fields [hidden]{display:none!important}.sso-fields .sso-field{margin-bottom:14px}@media(max-width:520px){.sso-grid{grid-template-columns:1fr}.sso-card{padding:16px}}

/* Elementor stretches all children of form.cart unless the meal fields take a full row.
   Scope these overrides to Salad Scene forms. :has() applies before JavaScript;
   the class is a fallback for older browsers. Theme button colours are retained. */
form.cart.sso-cart-form,
form.cart:has(.sso-fields) {
    display: flex !important;
    flex-flow: row wrap !important;
    align-items: flex-start !important;
    align-content: flex-start;
    gap: 12px !important;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
}
form.cart.sso-cart-form > .sso-fields,
form.cart:has(.sso-fields) > .sso-fields {
    flex: 0 0 100% !important;
    width: 100% !important;
    min-width: 0;
    max-width: 100%;
    margin: 0 !important;
    box-sizing: border-box;
}
form.cart.sso-cart-form .sso-fields p,
form.cart:has(.sso-fields) .sso-fields p {
    margin: 0 0 16px;
    width: 100%;
    min-width: 0;
}
form.cart.sso-cart-form .sso-fields select,
form.cart.sso-cart-form .sso-fields textarea,
form.cart:has(.sso-fields) .sso-fields select,
form.cart:has(.sso-fields) .sso-fields textarea {
    box-sizing: border-box;
    width: 100% !important;
    max-width: 100%;
    min-width: 0;
    font-size: 16px;
    font-family: inherit;
    line-height: 1.5;
}
form.cart.sso-cart-form .sso-fields select,
form.cart:has(.sso-fields) .sso-fields select { min-height: 48px; }
form.cart.sso-cart-form .sso-fields textarea,
form.cart:has(.sso-fields) .sso-fields textarea {
    height: auto !important;
    min-height: 104px;
    resize: vertical;
}
form.cart.sso-cart-form > .quantity,
form.cart:has(.sso-fields) > .quantity {
    flex: 0 0 88px !important;
    width: 88px !important;
    min-width: 0 !important;
    max-width: 100%;
    height: 48px !important;
    min-height: 48px !important;
    max-height: 48px !important;
    margin: 0 !important;
    align-self: flex-start !important;
    float: none !important;
    box-sizing: border-box;
}
form.cart.sso-cart-form > .quantity input.qty,
form.cart:has(.sso-fields) > .quantity input.qty {
    display: block;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    height: 48px !important;
    min-height: 48px !important;
    max-height: 48px !important;
    margin: 0 !important;
    padding: 8px !important;
    box-sizing: border-box;
    border: 1px solid #aaa;
    border-radius: 6px;
    background: #fff;
    color: #222;
    font-size: 16px;
    line-height: normal;
    text-align: center;
}
form.cart.sso-cart-form > .single_add_to_cart_button,
form.cart:has(.sso-fields) > .single_add_to_cart_button {
    display: inline-flex !important;
    flex: 1 1 160px !important;
    align-items: center;
    justify-content: center;
    align-self: flex-start !important;
    width: auto !important;
    max-width: 100%;
    min-width: 0 !important;
    height: auto !important;
    min-height: 48px !important;
    margin: 0 !important;
    padding: 12px 20px !important;
    float: none !important;
    box-sizing: border-box;
    border-radius: 8px;
    line-height: 1.5 !important;
    white-space: normal;
    text-align: center;
    overflow-wrap: anywhere;
}

/* Native radio groups: one explicit selection per group, large clickable labels. */
.sso-fields fieldset.sso-radio-group {
    display: block;
    min-inline-size: 0;
    width: 100%;
    margin: 0 0 20px;
    padding: 0;
    border: 0;
}
.sso-fields .sso-radio-group legend {
    float: none;
    width: 100%;
    margin: 0 0 8px;
    padding: 0;
    color: inherit;
    font: inherit;
    font-weight: 600;
}
.sso-fields .sso-required { font-size: .85em; font-weight: 400; }
.sso-fields .sso-radio-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 180px), 1fr));
    gap: 10px;
    min-width: 0;
}
.sso-fields label.sso-radio-option {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
    min-height: 48px;
    margin: 0;
    padding: 12px;
    box-sizing: border-box;
    border: 1px solid #aaa;
    border-radius: 7px;
    background: #fff;
    color: #222;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.4;
    cursor: pointer;
}
.sso-fields .sso-radio-option input[type="radio"] {
    appearance: auto;
    -webkit-appearance: radio;
    display: inline-block;
    flex: 0 0 18px;
    width: 18px;
    min-width: 18px;
    height: 18px;
    min-height: 18px;
    margin: 0;
    padding: 0;
    accent-color: #00663b;
    cursor: pointer;
}
.sso-fields .sso-radio-option span { min-width: 0; overflow-wrap: anywhere; }
.sso-fields .sso-radio-option:has(input:checked) {
    border-color: #00663b;
    background: #eff8f0;
    box-shadow: inset 0 0 0 1px #00663b;
}
.sso-fields .sso-radio-option:focus-within { outline: 2px solid #00663b; outline-offset: 2px; }
.sso-fields .sso-radio-group[hidden] { display: none !important; }

/* The shortcode must fill its Elementor widget before the grid can size tracks. */
.elementor-widget-shortcode:has(.sso-menu),
.elementor-widget-shortcode:has(.sso-menu) > .elementor-widget-container,
.elementor-shortcode:has(> .sso-menu) {
    width: 100%;
    min-width: 0;
    max-width: 100%;
}
.sso-menu {
    display: block;
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
}
.sso-menu .sso-grid {
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    grid-auto-flow: row;
    grid-auto-rows: auto;
    align-items: stretch;
    gap: 24px;
    width: 100% !important;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
}
.sso-menu .sso-card {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    grid-column: auto;
    grid-row: auto;
    width: auto !important;
    max-width: none;
    min-width: 0;
    height: auto;
    margin: 0;
    padding: 18px;
    float: none;
    box-sizing: border-box;
    overflow-wrap: anywhere;
}
.sso-menu .sso-card img {
    display: block;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    height: auto;
    aspect-ratio: 4 / 3;
    object-fit: cover;
}
.sso-menu .sso-card h3 {
    font-size: clamp(15px, 1.5vw, 20px);
    line-height: 1.35;
}
.sso-menu .sso-card p { margin: 0 0 12px; font-size: 15px; line-height: 1.4; }
.sso-menu .sso-card .button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    min-height: 44px;
    margin-top: auto;
    padding: 10px 12px;
    box-sizing: border-box;
    font-size: 14px;
    line-height: 1.4;
    white-space: normal;
    text-align: center;
    overflow-wrap: anywhere;
}
@media (max-width: 1024px) {
    .sso-menu .sso-grid { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; gap: 18px; }
    .sso-menu .sso-card { padding: 14px; }
}
@media (max-width: 767px) {
    .sso-menu .sso-grid { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; gap: 12px; }
    .sso-menu .sso-card { padding: 12px; border-radius: 10px; }
    .sso-menu .sso-card h3 { font-size: 15px; }
    .sso-menu .sso-card p { font-size: 13px; }
    .sso-menu .sso-card .button { padding: 10px 8px; font-size: 13px; }
}

.sso-menu .sso-card .sso-image-link {
    display: block;
    width: 100%;
    min-width: 0;
    margin-bottom: 14px;
    border-radius: 9px;
    line-height: 0;
}
.sso-menu .sso-card .sso-image-link img { margin: 0; }
.sso-menu .sso-card .button,
.sso-menu .sso-card .button:hover,
.sso-menu .sso-card .button:focus,
.sso-menu .sso-card .button:active {
    background: #fbce42 !important;
    color: #006238 !important;
    text-transform: none !important;
}
.sso-menu .sso-card .button:hover { text-decoration: underline; }
.sso-menu .sso-card .sso-image-link:focus-visible,
.sso-menu .sso-card .button:focus-visible { outline: 3px solid #006238; outline-offset: 3px; }

/* Order-received page only. Native WooCommerce tables and payment actions remain. */
.sso-order-received .site-main {
    padding-top: clamp(104px, 9vw, 144px);
    padding-bottom: 40px;
}
.sso-order-received:has(.sso-confirmation) .site-main > .page-header { display: none; }
.sso-order-received .woocommerce-order {
    width: 100%;
    max-width: 1120px;
    min-width: 0;
    margin: 0 auto;
    padding: 0 20px;
    box-sizing: border-box;
    color: #253a30;
}
.sso-order-received .woocommerce-order:has(.sso-confirmation) > .woocommerce-thankyou-order-received { display: none; }
.sso-order-received .sso-confirmation {
    display: flex;
    align-items: flex-start;
    gap: 24px;
    margin: 0 0 28px;
    padding: clamp(24px, 4vw, 44px);
    border: 1px solid #cfe4d5;
    border-top: 6px solid #fbce42;
    border-radius: 20px;
    background: #f0f8f1;
    box-shadow: 0 8px 28px rgba(0, 65, 36, .06);
    box-sizing: border-box;
}
.sso-order-received .sso-confirmation__icon {
    display: grid;
    place-items: center;
    flex: 0 0 64px;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: #006238;
    color: #fff;
}
.sso-order-received .sso-confirmation__icon svg { width: 36px; height: 36px; }
.sso-order-received .sso-confirmation__content { min-width: 0; }
.sso-order-received .sso-confirmation .sso-confirmation__brand {
    margin: 0 0 8px;
    color: #006238;
    font-size: 13px;
    line-height: 1.4;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
}
.sso-order-received .sso-confirmation .sso-confirmation__status {
    display: inline-block;
    margin: 0 0 12px;
    padding: 5px 10px;
    border-radius: 30px;
    background: #d9efde;
    color: #00532f;
    font-size: 13px;
    font-weight: 600;
}
.sso-order-received .sso-confirmation h1 {
    margin: 0 0 12px;
    padding: 0;
    color: #006238;
    font-size: clamp(27px, 3.2vw, 42px);
    line-height: 1.15;
    font-weight: 700;
    overflow-wrap: anywhere;
}
.sso-order-received .sso-confirmation .sso-confirmation__message { margin: 0; font-size: 16px; line-height: 1.65; color: #43584b; }
.sso-order-received .sso-confirmation--pending { background: #fff9e7; border-color: #f0dfa5; }
.sso-order-received .sso-confirmation--pending .sso-confirmation__status { background: #fceab1; color: #68500b; }
.sso-order-received .sso-confirmation--pending .sso-confirmation__icon { background: #876515; }
.sso-order-received .sso-confirmation--failed,
.sso-order-received .sso-confirmation--cancelled { background: #fff3ef; border-color: #efd5cc; border-top-color: #bd4a2c; }
.sso-order-received .sso-confirmation--failed .sso-confirmation__icon,
.sso-order-received .sso-confirmation--cancelled .sso-confirmation__icon { background: #a33c24; }
.sso-order-received .sso-confirmation--failed .sso-confirmation__status,
.sso-order-received .sso-confirmation--cancelled .sso-confirmation__status { background: #f7ded5; color: #7d2d1b; }
.sso-order-received .woocommerce ul.woocommerce-order-overview {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 150px), 1fr));
    gap: 12px;
    width: 100%;
    margin: 0 0 32px;
    padding: 0;
    list-style: none;
}
.sso-order-received .woocommerce ul.woocommerce-order-overview::before,
.sso-order-received .woocommerce ul.woocommerce-order-overview::after { display: none; }
.sso-order-received .woocommerce ul.woocommerce-order-overview li {
    float: none;
    min-width: 0;
    margin: 0;
    padding: 16px;
    border: 1px solid #e1e8e0;
    border-radius: 12px;
    background: #fff;
    font-size: 11px;
    line-height: 1.5;
    letter-spacing: .03em;
    color: #617166;
    overflow-wrap: anywhere;
    box-sizing: border-box;
}
.sso-order-received .woocommerce ul.woocommerce-order-overview li strong { display: block; margin-top: 7px; color: #174b31; font-size: 16px; line-height: 1.4; letter-spacing: normal; }
.sso-order-received .woocommerce-order h2 { margin: 30px 0 16px; color: #006238; font-size: clamp(23px, 2.5vw, 29px); line-height: 1.25; }
.sso-order-received .woocommerce table.woocommerce-table--order-details {
    width: 100%;
    max-width: 100%;
    margin: 0 0 28px;
    border: 1px solid #dde6dc;
    border-collapse: separate;
    border-spacing: 0;
    border-radius: 14px;
    overflow: hidden;
    table-layout: fixed;
    background: #fff;
    box-shadow: 0 4px 20px rgba(0, 65, 36, .03);
}
.sso-order-received .woocommerce table.woocommerce-table--order-details th,
.sso-order-received .woocommerce table.woocommerce-table--order-details td { padding: 18px 22px; border: 0; line-height: 1.55; overflow-wrap: anywhere; }
.sso-order-received .woocommerce table.woocommerce-table--order-details th:first-child,
.sso-order-received .woocommerce table.woocommerce-table--order-details td:first-child { width: 68%; text-align: left; }
.sso-order-received .woocommerce table.woocommerce-table--order-details th:last-child,
.sso-order-received .woocommerce table.woocommerce-table--order-details td:last-child { width: 32%; text-align: right; }
.sso-order-received .woocommerce table.woocommerce-table--order-details thead th { background: #006238; color: #fff; font-size: 15px; font-weight: 600; }
.sso-order-received .woocommerce table.woocommerce-table--order-details tbody td { vertical-align: top; border-bottom: 1px solid #e6ece4; font-size: 16px; }
.sso-order-received .woocommerce table.woocommerce-table--order-details tbody tr:nth-child(even) td { background: #fafcf8; }
.sso-order-received .woocommerce table.woocommerce-table--order-details .product-name > a { color: #006238 !important; font-weight: 700; text-decoration: none; }
.sso-order-received .woocommerce table.woocommerce-table--order-details .product-name > a:hover { text-decoration: underline; }
.sso-order-received .woocommerce table.woocommerce-table--order-details .product-quantity { white-space: nowrap; color: #617166; font-weight: 400; }
.sso-order-received .woocommerce .wc-item-meta { margin: 10px 0 0; padding: 0; list-style: none; }
.sso-order-received .woocommerce .wc-item-meta li { display: block; float: none; width: auto; margin: 0 0 5px; padding: 0; border: 0; font-size: 14px; line-height: 1.5; color: #53665a; }
.sso-order-received .woocommerce .wc-item-meta li strong { float: none; display: inline; margin-right: 4px; color: #384d3e; }
.sso-order-received .woocommerce .wc-item-meta li p { display: inline; margin: 0; padding: 0; font-size: inherit; line-height: inherit; }
.sso-order-received .woocommerce table.woocommerce-table--order-details tfoot th,
.sso-order-received .woocommerce table.woocommerce-table--order-details tfoot td { background: #f0f5ec; border-top: 1px solid #dce6d7; color: #214c31; font-size: 15px; }
.sso-order-received .woocommerce table.woocommerce-table--order-details tfoot td { font-weight: 700; }
.sso-order-received .woocommerce .woocommerce-customer-details { margin-bottom: 28px; }
.sso-order-received .woocommerce .woocommerce-customer-details address { width: 100%; min-width: 0; padding: 22px; border: 1px solid #dde6dc; border-radius: 14px; background: #fff; color: #43584b; font-style: normal; line-height: 1.7; overflow-wrap: anywhere; box-sizing: border-box; }
.sso-order-received .woocommerce .woocommerce-customer-details address p { margin: 8px 0 0; overflow-wrap: anywhere; }
.sso-order-received .sso-pickup-card { margin: 24px 0; padding: 22px 24px; border-left: 5px solid #fbce42; border-radius: 12px; background: #f6f8ed; }
.sso-order-received .sso-pickup-card h2 { margin: 0 0 8px; font-size: 20px; }
.sso-order-received .sso-pickup-card p { margin: 0; color: #43584b; line-height: 1.65; }
@media (max-width: 600px) {
    .sso-order-received .woocommerce-order { padding: 0 14px; }
    .sso-order-received .sso-confirmation { gap: 14px; padding: 22px 18px; border-radius: 14px; }
    .sso-order-received .sso-confirmation__icon { flex-basis: 40px; width: 40px; height: 40px; }
    .sso-order-received .sso-confirmation__icon svg { width: 26px; height: 26px; }
    .sso-order-received .sso-confirmation h1 { font-size: 26px; }
    .sso-order-received .sso-confirmation .sso-confirmation__message { font-size: 14px; }
    .sso-order-received .woocommerce ul.woocommerce-order-overview { gap: 10px; }
    .sso-order-received .woocommerce ul.woocommerce-order-overview li { padding: 12px; }
    .sso-order-received .woocommerce ul.woocommerce-order-overview li strong { font-size: 14px; }
    .sso-order-received .woocommerce table.woocommerce-table--order-details th,
    .sso-order-received .woocommerce table.woocommerce-table--order-details td { padding: 13px 12px; }
    .sso-order-received .woocommerce table.woocommerce-table--order-details th:first-child,
    .sso-order-received .woocommerce table.woocommerce-table--order-details td:first-child { width: 65%; }
    .sso-order-received .woocommerce table.woocommerce-table--order-details th:last-child,
    .sso-order-received .woocommerce table.woocommerce-table--order-details td:last-child { width: 35%; }
    .sso-order-received .woocommerce table.woocommerce-table--order-details tbody td { font-size: 14px; }
    .sso-order-received .woocommerce .wc-item-meta li { font-size: 13px; }
}
@media (max-width: 360px) {
    .sso-order-received .sso-confirmation { flex-direction: column; }
}
