#custom-loading-indicator,
#custom-loading-indicator * {
    box-sizing: border-box;
}
#custom-loading-indicator {
    position: fixed;
    z-index: 2147483647;
    inset: 0;
    display: none;
    width: 100%;
    height: 100%;
    margin: 0 !important;
    padding: 0 !important;
    background-color: rgba(0, 0, 0, .5);
}
.custom-loading-indicator__box {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 300px;
    min-height: 115px;
    padding: 85px 15px 10px;
    margin: 0;
    background: #fff;
    border-radius: 5px;
    color: #000;
    font-family: Arial, sans-serif;
    font-size: 17px;
    line-height: 1.3;
    text-align: center;
    transform: translate(-50%, -50%);
}
.custom-loading-indicator__box::before {
    position: absolute;
    top: 8px;
    left: 50%;
    width: 70px;
    height: 70px;
    margin-left: -35px;
    background: none center center no-repeat transparent;
    content: "";
}

/* 10. Funnel additions ------------------------------------------------------------------ */
/* Apple Pay / Google Pay button beside PayPal (assets/js/wallet-pay.js). The wallet box
   starts [hidden], so PayPal keeps the full width until Stripe reports Apple Pay or Google
   Pay; then the two share the row, stacked on phones. */
.express-payment__buttons { display: flex; gap: 12px; }
.express-payment__buttons > * { flex: 1; min-width: 0; }
.express-payment__wallet[hidden] { display: none; }
#wallet-pay-element { min-height: 55px; }
@media (max-width: 600px) {
    .express-payment__buttons { flex-direction: column; }
    .express-payment__buttons > * { flex: 0 0 auto; }
}

/* Package and summary images: the Package images stay square. */
.productPacItem_v2__image,
.productCard__imageContainer img { object-fit: contain; }

/* Error pop-up for failed orders (built by checkout-v5.js; same element as v4 and v7). */
#error_handler_overlay { align-items: center; background: rgba(0, 0, 0, .55); display: flex; inset: 0; justify-content: center; padding: 20px; position: fixed; z-index: 10100; }
#error_handler_overlay .error_handler_body { background: #fff; border-radius: 16px; box-shadow: 0 24px 80px rgba(0, 0, 0, .3); max-width: 420px; padding: 28px 24px 22px; position: relative; text-align: center; width: 100%; }
#error_handler_overlay .error_handler_title { color: #b42318; font-family: Roboto, sans-serif; font-size: 18px; font-weight: 700; line-height: 1.3; margin: 0 24px 10px; }
#error_handler_overlay #error_handler_message { color: #333; font-family: Roboto, sans-serif; font-size: 15px; line-height: 1.5; }
#error_handler_overlay_close { align-items: center; background: #f2f2f2; border: 0; border-radius: 50%; color: #000; cursor: pointer; display: flex; font-size: 22px; height: 32px; justify-content: center; line-height: 1; position: absolute; right: 12px; top: 12px; width: 32px; }
#error_handler_overlay .error_handler_ok { background: #2c0d4c; border: 0; border-radius: 999px; color: #fff; cursor: pointer; font-family: Roboto, sans-serif; font-size: 15px; font-weight: 700; margin-top: 18px; min-height: 48px; padding: 10px 24px; width: 100%; }
#error_handler_overlay .error_handler_ok:hover { filter: brightness(1.2); }
