/* Initial state - open by default */
body:not(.checkout-loaded) .opc-block-summary .items-in-cart .content {
    display: block !important;
}

/* After the page is fully loaded, remove the !important flag to allow toggle */
body.checkout-loaded .opc-block-summary .items-in-cart .content {
    display: block; /* No !important here */
}

/* After the page is loaded and user has clicked to close, allow it to be closed */
body.checkout-loaded .opc-block-summary .items-in-cart:not(.active) .content {
    display: none !important;
}

/* Arrow icon when open (minus icon) */
.opc-block-summary .items-in-cart.active > .title:after {
    content: '\e621';
    display: none !important;
}

/* Arrow icon when closed (plus icon) */
.opc-block-summary .items-in-cart:not(.active) > .title:after {
    content: '\e622';
    display: none !important;
}

/* Ensure the Order Summary container is always visible */
.opc-block-summary .items-in-cart {
    display: block !important;
}

/* Styles for minicart items wrapper - allow height to adjust naturally */
.minicart-items-wrapper {
    height: auto !important;
    overflow: visible;
}
