/* BARICO delivery-popup 1.1.0 – isolated site-wide delivery dialog. */
html { --barico-delivery-popup-ready: 1; }
html.bdp-open, html.bdp-open body { overflow: hidden; }
html.bdp-open { scrollbar-gutter: stable; }
dialog.bdp-dialog {
  position: fixed; inset: 0; margin: auto; padding: 0;
  width: min(760px, calc(100vw - 48px)); max-width: calc(100vw - 48px);
  max-height: calc(100vh - 48px); max-height: calc(100dvh - 48px);
  border: 1px solid #e1e1e1; border-radius: 32px; overflow: hidden;
  background: #fff; color: #1a1a1a; box-shadow: 0 24px 80px rgba(0,0,0,.24);
  font: 400 14px/1.6 "Poppins", sans-serif; text-align: left;
}
dialog.bdp-dialog:not([open]) { display: none; }
dialog.bdp-dialog[open] { display: flex; flex-direction: column; animation: bdp-appear .16s ease-out; }
dialog.bdp-dialog::backdrop { background: rgba(0,0,0,.7); }
.bdp-dialog *, .bdp-dialog *::before, .bdp-dialog *::after { box-sizing: border-box; font-family: "Poppins", sans-serif; }
.bdp-dialog button { appearance: none; text-transform: none; letter-spacing: normal; }
.bdp-dialog .bdp-header { display: flex; align-items: center; gap: 16px; flex-shrink: 0; padding: 24px 28px 18px; }
.bdp-dialog .bdp-title { min-width: 0; margin: 0; padding: 0; color: #1a1a1a; font-size: 20px; font-weight: 600; line-height: 1.35; text-transform: none; letter-spacing: normal; }
.bdp-dialog .bdp-close { display: flex; align-items: center; justify-content: center; flex: 0 0 40px; width: 40px; height: 40px; margin: 0 0 0 auto; padding: 0; border: 0; border-radius: 50%; background: #f1f1f1; color: #1a1a1a; cursor: pointer; }
.bdp-dialog .bdp-close:hover { background: #e5e5e5; }
.bdp-dialog .bdp-close svg { width: 20px; height: 20px; }
.bdp-dialog .bdp-body { min-height: 0; padding: 0 28px 28px; overflow-y: auto; overscroll-behavior: contain; overflow-wrap: anywhere; }
.bdp-dialog .bdp-body p { margin: 0 0 16px; padding: 0; font-size: 13px; line-height: 1.7; }
.bdp-dialog .shipping-options-popup { width: 100%; max-width: 100%; margin: 0; padding: 0; }
.bdp-dialog .shipping-options-popup > p { color: #666; }
.bdp-dialog .shipping-row { display: grid; grid-template-columns: 64px minmax(0,1fr) max-content; align-items: center; gap: 10px 18px; margin: 0 0 10px; padding: 16px 18px; border: 1px solid #e1e1e1; border-radius: 22px; background: #f5f5f5; }
.bdp-dialog .shipping-row:last-child { margin-bottom: 0; }
.bdp-dialog .shipping-row .payment-logo { display: flex; align-items: center; justify-content: center; grid-column: 1; grid-row: 1; width: 64px; margin: 0; padding: 0; }
.bdp-dialog .shipping-row .payment-logo img { display: block; width: auto; max-width: 64px; max-height: 36px; height: auto; margin: 0; object-fit: contain; }
.bdp-dialog .shipping-row .payment-info { display: flex; align-items: center; grid-column: 2; grid-row: 1; gap: 8px; min-width: 0; max-width: none; margin: 0; padding: 0; }
.bdp-dialog .shipping-row .shipping-billing-name { color: #1a1a1a; font-size: 14px; font-weight: 600; line-height: 1.5; text-transform: none; }
.bdp-dialog .shipping-row .payment-shipping-price { display: block; grid-column: 3; grid-row: 1; margin: 0; padding: 0; color: #1a1a1a; font-size: 14px; font-weight: 600; white-space: nowrap; }
.bdp-dialog .bdp-method-info { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 28px; width: 28px; height: 28px; margin: 0; padding: 0; border: 1px solid #d8d8d8; border-radius: 50%; background: #fff; color: #666; font: 500 12px/1 "Poppins", sans-serif; cursor: pointer; }
.bdp-dialog .bdp-method-info[aria-expanded="true"] { color: #1a1a1a; border-color: #999; }
.bdp-dialog .shipping-row .bdp-method-detail { grid-column: 2 / -1; margin: 0; color: #606060; font-size: 12px; line-height: 1.7; }
.bdp-dialog .shipping-row.bdp-detail-animating { overflow: hidden; }
.bdp-dialog [hidden] { display: none !important; }
.bdp-dialog a { color: #1a1a1a; text-decoration: underline; text-underline-offset: 3px; }
.bdp-dialog button:focus-visible, .bdp-dialog a:focus-visible { outline: 2px solid #1a1a1a; outline-offset: 3px; }
.bdp-dialog .bdp-loading { display: flex; align-items: center; gap: 10px; min-height: 100px; color: #666; }
.bdp-dialog .bdp-spinner { flex: 0 0 18px; width: 18px; height: 18px; border: 2px solid #ddd; border-top-color: #666; border-radius: 50%; animation: bdp-spin .7s linear infinite; }
.bdp-dialog .bdp-error button { margin: 0 14px 8px 0; padding: 10px 18px; border: 1px solid #ddd; border-radius: 999px; background: #f5f5f5; color: #1a1a1a; font: 500 13px "Poppins", sans-serif; cursor: pointer; }
.bdp-dialog .bdp-error a { display: inline-block; font-size: 12px; }
/* The same dialog can show the article when a custom delivery link points there. */
.bdp-dialog .wysiwyg-container, .bdp-dialog .wysiwyg-container .container { width: 100%; max-width: 100%; margin: 0; padding: 0; background: transparent; }
.bdp-dialog .bdp-body h2, .bdp-dialog .bdp-body h3, .bdp-dialog .bdp-body h4 { margin: 24px 0 14px; padding: 0; color: #1a1a1a; font-size: 17px; font-weight: 600; line-height: 1.45; letter-spacing: normal; text-transform: none; }
.bdp-dialog .bdp-body h2:first-child { margin-top: 0; }
.bdp-dialog .bdp-body ul, .bdp-dialog .bdp-body ol { margin: 0 0 16px; padding: 0 0 0 22px; }
.bdp-dialog .bdp-body li { margin: 0 0 8px; padding: 0; }
.bdp-dialog .bdp-body li::before { content: none; }
.bdp-dialog .bdp-body img { max-width: 100%; height: auto; }
.bdp-dialog .option { display: flex; align-items: flex-start; gap: 18px; margin: 0 0 12px; padding: 18px; border: 1px solid #e1e1e1; border-radius: 22px; background: #f5f5f5; }
.bdp-dialog .option > img { flex: 0 0 54px; width: 54px; max-height: 40px; object-fit: contain; }
.bdp-dialog .option .details { min-width: 0; }
.bdp-dialog .option p { margin: 0 0 8px; }
.bdp-dialog .option p:last-child { margin-bottom: 0; }
.bdp-dialog .option .name, .bdp-dialog .option .price { font-weight: 600; }
.bdp-dialog table { display: block; max-width: 100%; overflow-x: auto; border-collapse: collapse; }
.bdp-dialog td, .bdp-dialog th { padding: 8px; border: 1px solid #ddd; }
@keyframes bdp-appear { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: translateY(0); } }
@keyframes bdp-spin { to { transform: rotate(360deg); } }
@media (max-width: 480px) {
  dialog.bdp-dialog { width: calc(100vw - 24px); max-width: calc(100vw - 24px); max-height: calc(100vh - 24px); max-height: calc(100dvh - 24px); border-radius: 24px; }
  .bdp-dialog .bdp-header { gap: 12px; padding: 18px 18px 16px; }
  .bdp-dialog .bdp-title { font-size: 18px; }
  .bdp-dialog .bdp-body { padding: 0 18px 22px; }
  .bdp-dialog .shipping-row { grid-template-columns: 42px minmax(0,1fr) max-content; gap: 8px 10px; padding: 14px 12px; border-radius: 20px; }
  .bdp-dialog .shipping-row .payment-logo { width: 42px; }
  .bdp-dialog .shipping-row .payment-logo img { max-width: 42px; max-height: 30px; }
  .bdp-dialog .shipping-row .shipping-billing-name, .bdp-dialog .shipping-row .payment-shipping-price { font-size: 12px; }
  .bdp-dialog .shipping-row .payment-info { flex-wrap: wrap; gap: 5px; }
  .bdp-dialog .shipping-row .bdp-method-detail { grid-column: 1 / -1; }
  .bdp-dialog .option { gap: 12px; padding: 14px; }
  .bdp-dialog .option > img { flex-basis: 42px; width: 42px; }
}
@media (prefers-reduced-motion: reduce) { dialog.bdp-dialog[open], .bdp-dialog .bdp-spinner { animation: none; } }
