/* Checkout wait — visual only. Shown while dk-woo-direct.js holds the
   existing order/cart busy lock. Does not change save, sync, or redirect. */

@media (max-width: 768px) {

  /* The sheet spinner stays the Add to Cart lock. During checkout it would
     stack a second mask over the product preview, so it steps aside. */
  #dkShell.dk-checkout-wait #dkOrderBusyOverlay {
    background: transparent;
  }
  #dkShell.dk-checkout-wait #dkOrderBusyOverlay .dk-order-busy-spinner {
    display: none;
  }

  #dkCheckoutWait {
    position: absolute;
    inset: 0;
    z-index: 180;
    display: flex;
    align-items: center;
    justify-content: center;
    padding:
      calc(var(--dk-header-h, 56px) + 16px)
      24px
      calc(var(--dk-nav-h, 70px) + 16px);
    pointer-events: auto;
    -webkit-font-smoothing: antialiased;
  }
  #dkCheckoutWait[hidden] {
    display: none !important;
  }

  .dk-checkout-wait-veil {
    position: absolute;
    inset: 0;
    background: rgba(247, 247, 250, 0.46);
    pointer-events: none;
  }

  .dk-checkout-wait-cluster {
    position: relative;
    z-index: 1;
    box-sizing: border-box;
    width: min(272px, calc(100% - 8px));
    margin: 28px 0 0;
    padding: 22px 20px 18px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid #E5E6ED;
    border-radius: 18px;
    box-shadow: none;
  }

  .dk-checkout-wait-spinner {
    width: 28px;
    height: 28px;
    margin: 0 0 14px;
    border: 2px solid #E5E6ED;
    border-top-color: #5C56F5;
    border-radius: 50%;
    animation: dk-order-spin 0.9s linear infinite;
    flex-shrink: 0;
  }

  .dk-checkout-wait-title,
  .dk-checkout-wait-sub,
  .dk-checkout-wait-note {
    margin: 0;
    max-width: 26em;
  }

  .dk-checkout-wait-title {
    color: #1B1C2B;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.35;
    letter-spacing: 0;
  }

  .dk-checkout-wait-sub {
    margin-top: 6px;
    color: #74788B;
    font-size: 13px;
    font-weight: 400;
    line-height: 1.45;
  }

  .dk-checkout-wait-note {
    margin-top: 12px;
    color: #74788B;
    font-size: 12px;
    font-weight: 500;
    line-height: 1.4;
  }
}
