.lpdo-order-box { margin: 18px 0 8px; }
.lpdo-order-box .lpdo-open-modal,
.lpdo-submit { width: 100%; min-height: 54px; font-size: 17px; font-weight: 700; border-radius: 8px; }
.lpdo-under-button { margin: 8px 0 0; font-size: 13px; opacity: .78; }

.lpdo-modal { position: fixed; inset: 0; z-index: 999999; display: none; }
.lpdo-modal.is-open { display: block; }
.lpdo-backdrop { position: absolute; inset: 0; background: rgba(0,0,0,.64); }
.lpdo-dialog { position: relative; width: min(620px, calc(100% - 28px)); max-height: calc(100dvh - 28px); overflow: auto; margin: 14px auto; padding: 28px; border-radius: 14px; background: #fff; box-shadow: 0 20px 70px rgba(0,0,0,.3); overscroll-behavior: contain; }
.lpdo-close { position: absolute; top: 10px; right: 12px; min-width: 40px; min-height: 40px; border: 0; background: transparent; font-size: 32px; line-height: 1; cursor: pointer; }
.lpdo-dialog h2 { margin: 0 44px 4px 0; font-size: 26px; line-height: 1.2; }
.lpdo-product-summary { margin: 7px 0 6px; font-weight: 700; }
.lpdo-intro { margin: 0 0 20px; font-size: 14px; opacity: .78; }

.lpdo-field { margin-bottom: 14px; }
.lpdo-field label { display: block; margin-bottom: 5px; font-weight: 600; }
.lpdo-field label span { font-weight: 400; opacity: .65; }
.lpdo-field input,
.lpdo-field textarea { width: 100%; box-sizing: border-box; min-height: 46px; padding: 11px 12px; border: 1px solid #c9c9c9; border-radius: 7px; background: #fff; color: #111; font-size: 16px; }
.lpdo-field input:focus,
.lpdo-field textarea:focus { outline: 2px solid currentColor; outline-offset: 1px; }
.lpdo-field textarea { min-height: 88px; resize: vertical; }
.lpdo-help { display: block; margin-top: 4px; font-size: 12px; opacity: .65; }
.lpdo-row { display: grid; grid-template-columns: 1fr 120px; gap: 12px; }
.lpdo-consent { display: flex; gap: 9px; align-items: flex-start; margin: 5px 0 16px; font-size: 13px; line-height: 1.4; }
.lpdo-consent input { margin-top: 3px; flex: 0 0 auto; }
.lpdo-form-status { margin: 12px 0 0; font-weight: 600; }
.lpdo-form-status.is-success { padding: 12px; border-radius: 8px; background: #edf8ef; }
.lpdo-form-status.is-error { padding: 12px; border-radius: 8px; background: #fff0f0; }
.lpdo-after-note { margin: 14px 0 0; font-size: 12px; opacity: .68; }
.lpdo-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
html.lpdo-modal-open, body.lpdo-modal-open { overflow: hidden; }

.lpdo-success-view { text-align: center; padding: 16px 4px 4px; }
.lpdo-success-view[hidden] { display: none !important; }
.lpdo-success-icon { display: inline-grid; place-items: center; width: 66px; height: 66px; margin: 4px auto 16px; border-radius: 50%; background: #edf8ef; font-size: 34px; font-weight: 800; }
.lpdo-success-view h2 { margin: 0 0 10px; }
.lpdo-success-view p { margin: 8px 0; }
.lpdo-order-number { display: inline-block; padding: 9px 13px; border-radius: 8px; background: #f3f4f6; font-weight: 800; letter-spacing: .02em; }
.lpdo-success-note { font-size: 13px; opacity: .72; }
.lpdo-success-close { min-width: 160px; min-height: 46px; margin-top: 12px; }

/* Direktne narudžbe: ukloni tragove klasične WooCommerce korpe. */
.woocommerce-mini-cart,
.widget_shopping_cart,
.site-header-cart,
.ast-site-header-cart,
.ast-header-woo-cart,
.wc-block-mini-cart,
.wc-block-mini-cart__button,
.wp-block-woocommerce-mini-cart,
.cart-contents,
.woocommerce a.added_to_cart,
.woocommerce .added_to_cart,
.woocommerce .ajax_add_to_cart,
.woocommerce .add_to_cart_button { display: none !important; }

/* Na pojedinačnom proizvodu originalna cart forma mora ostati skrivena. */
body.single-product form.cart,
body.single-product .single_add_to_cart_button { display: none !important; }

.lpdo-js-fallback { margin: 18px 0 10px; }

@media (max-width: 600px) {
  .lpdo-dialog { width: 100%; max-height: 100dvh; min-height: 100dvh; margin: 0; padding: 54px 16px 24px; border-radius: 0; }
  .lpdo-close { position: fixed; top: 8px; right: 10px; z-index: 2; border-radius: 50%; background: #fff; box-shadow: 0 2px 12px rgba(0,0,0,.12); }
  .lpdo-dialog h2 { font-size: 23px; }
  .lpdo-row { grid-template-columns: 1fr 96px; gap: 8px; }
  .lpdo-field { margin-bottom: 12px; }
  .lpdo-order-box .lpdo-open-modal,
  .lpdo-submit { min-height: 56px; }
}
