/* Welcome and purchase type. Keep these rules after the main stylesheet. */
.buyer-header-link {border:0;background:none;color:inherit;font:inherit;cursor:pointer;padding:3px 0;text-decoration:underline;text-underline-offset:3px;}
.cart-buyer-type {display:flex;gap:12px;align-items:center;justify-content:space-between;margin:16px 25px 0;padding:10px 12px;border-radius:8px;background:var(--blue-soft);font-size:11px;}
.cart-buyer-type button {border:0;background:none;color:var(--blue);font-size:10px;font-weight:600;padding:3px;}
.cart-item-info .cart-item-price {font-size:9px;line-height:1.7;color:var(--blue);}
.product-price {margin-bottom:16px;}
.price-presentation {display:block;line-height:1.8;}
.buyer-dialog {
  width:min(650px,calc(100% - 32px));
  max-height:calc(100dvh - 32px);
  margin:auto;
  padding:0;
  overflow:auto;
  color:var(--text,#182a42);
  background:#fff;
  border:1px solid #dce6f3;
  border-radius:26px;
  box-shadow:0 30px 100px rgba(13,37,73,.26);
}

.buyer-dialog::backdrop {
  background:rgba(12,28,51,.55);
  backdrop-filter:blur(5px);
}

.buyer-dialog[open] {
  animation:buyer-enter .22s ease-out;
}

.buyer-dialog-inner {
  position:relative;
  padding:38px;
  text-align:center;
}

.buyer-dialog-close {
  position:absolute;
  top:14px;
  right:14px;
  width:38px;
  height:38px;
  display:grid;
  place-items:center;
  padding:0;
  background:#f5f7fb;
  color:#596b83;
  border:1px solid #e7ecf4;
  border-radius:50%;
  cursor:pointer;
}

.buyer-dialog-close svg {
  width:18px;
  height:18px;
}

.buyer-dialog-close:hover {
  color:var(--blue,#1464e8);
  background:#edf4ff;
}

.buyer-dialog-brand {
  display:inline-flex;
  align-items:center;
  gap:8px;
  margin:0 26px 14px;
  color:var(--blue,#1464e8);
  font-size:11px;
  line-height:1.4;
  font-weight:800;
  letter-spacing:1.3px;
  text-transform:uppercase;
}

.buyer-dialog-brand::before {
  content:"";
  width:7px;
  height:7px;
  flex:none;
  background:currentColor;
  border-radius:50%;
}

.buyer-dialog h2 {
  margin:0 0 12px;
  font-family:'Plus Jakarta Sans',Inter,Arial,sans-serif;
  font-size:32px;
  line-height:1.2;
  letter-spacing:-1.2px;
  font-weight:800;
}

.buyer-dialog-description {
  max-width:440px;
  margin:0 auto;
  color:var(--text-muted,#687486);
  font-size:14px;
  line-height:1.6;
}

.buyer-choices {
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:14px;
  margin:26px 0 20px;
}

.buyer-choice {
  display:flex;
  flex-direction:column;
  align-items:flex-start;
  gap:0;
  min-width:0;
  padding:22px;
  text-align:left;
  color:var(--text,#182a42);
  background:#fbfcfe;
  border:1.5px solid #dde6f1;
  border-radius:18px;
  cursor:pointer;
  transition:background .18s,border-color .18s,box-shadow .18s,transform .18s;
}

.buyer-choice:hover {
  background:#f2f7ff;
  border-color:var(--blue,#1464e8);
  box-shadow:0 5px 18px rgba(20,100,232,.08);
  transform:translateY(-2px);
}

.buyer-choice-icon {
  display:grid;
  place-items:center;
  width:44px;
  height:44px;
  margin-bottom:17px;
  color:var(--blue,#1464e8);
  background:#edf4ff;
  border-radius:12px;
}

.buyer-choice-icon svg {
  width:25px;
  height:25px;
}

.buyer-choice-title {
  display:block;
  font-family:'Plus Jakarta Sans',Inter,Arial,sans-serif;
  font-size:21px;
  line-height:1.3;
  font-weight:800;
  letter-spacing:-.5px;
}

.buyer-choice-copy {
  display:block;
  margin:7px 0 19px;
  color:var(--text-muted,#687486);
  font-size:13px;
  line-height:1.6;
}

.buyer-choice-action {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:8px;
  width:100%;
  margin-top:auto;
  color:var(--blue,#1464e8);
  font-size:12px;
  line-height:1.5;
  font-weight:750;
}

.buyer-choice-action svg {
  width:17px;
  height:17px;
}

.buyer-dialog-note {
  margin:0;
  color:var(--text-muted,#687486);
  font-size:12px;
  line-height:1.6;
}

.buyer-choice:focus-visible,
.buyer-dialog-close:focus-visible,
.buyer-toggle button:focus-visible {
  outline:3px solid #74a7ff;
  outline-offset:4px;
}

.buyer-catalog-controls {
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  justify-content:space-between;
  gap:12px 24px;
  margin:0 0 22px;
}

.buyer-toggle {
  display:inline-flex;
  align-items:center;
  flex-wrap:wrap;
  gap:4px;
  padding:5px;
  background:#edf2f9;
  border:1px solid #e0e7f1;
  border-radius:13px;
}

.buyer-toggle button {
  min-height:40px;
  padding:8px 18px;
  color:#53647d;
  background:transparent;
  border:1px solid transparent;
  border-radius:9px;
  font-size:13px;
  line-height:1.5;
  font-weight:700;
  cursor:pointer;
}

.buyer-toggle button:hover {
  color:var(--blue,#1464e8);
}

.buyer-toggle button[aria-pressed="true"] {
  color:#fff;
  background:var(--blue,#1464e8);
  box-shadow:0 2px 5px rgba(20,100,232,.15);
}

.buyer-price-note {
  flex:1 1 280px;
  max-width:640px;
  color:var(--text-muted,#687486);
  font-size:12px;
  line-height:1.6;
}

.product-price {
  display:grid;
  gap:3px;
  margin:12px 0;
  text-align:left;
}

.price-caption {
  display:block;
  color:var(--blue,#1464e8);
  font-size:10px;
  line-height:1.5;
  font-weight:750;
  letter-spacing:.45px;
  text-transform:uppercase;
}

.price-amount {
  display:block;
  color:var(--navy,#14253d);
  font-size:17px;
  line-height:1.35;
  font-weight:800;
}

.price-presentation {
  display:block;
  color:var(--text-muted,#687486);
  font-size:11px;
  line-height:1.5;
}

.modal-price {
  display:grid;
  gap:5px;
  margin:0 0 20px;
  padding:14px 16px;
  background:var(--blue-soft,#edf4ff);
  border:1px solid #dfebfd;
  border-radius:12px;
}

.modal-price .price-amount {
  font-size:20px;
}

@keyframes buyer-enter {
  from {opacity:0;transform:translateY(10px) scale(.985)}
  to {opacity:1;transform:translateY(0) scale(1)}
}

@media (max-width:480px) {
  .buyer-dialog {
    width:calc(100% - 24px);
    max-height:calc(100dvh - 24px);
    border-radius:22px;
  }

  .buyer-dialog-inner {
    padding:29px 20px 23px;
  }

  .buyer-dialog-close {
    top:10px;
    right:10px;
    width:34px;
    height:34px;
  }

  .buyer-dialog-brand {
    margin:8px 16px 15px;
    font-size:9px;
    letter-spacing:1px;
  }

  .buyer-dialog h2 {
    margin-bottom:10px;
    font-size:25px;
    letter-spacing:-.8px;
  }

  .buyer-dialog-description {
    font-size:12px;
    line-height:1.65;
  }

  .buyer-choices {
    grid-template-columns:1fr;
    gap:10px;
    margin:20px 0 16px;
  }

  .buyer-choice {
    position:relative;
    display:grid;
    grid-template-columns:40px minmax(0,1fr);
    align-items:start;
    gap:0 12px;
    padding:16px;
    border-radius:14px;
  }

  .buyer-choice-icon {
    grid-row:1 / 4;
    width:40px;
    height:40px;
    margin:0;
    border-radius:11px;
  }

  .buyer-choice-icon svg {
    width:23px;
    height:23px;
  }

  .buyer-choice-title {
    font-size:18px;
  }

  .buyer-choice-copy {
    grid-column:2;
    margin:4px 0 10px;
    font-size:11px;
    line-height:1.5;
  }

  .buyer-choice-action {
    grid-column:2;
    font-size:10px;
  }

  .buyer-dialog-note {
    font-size:10px;
  }

  .buyer-catalog-controls {
    align-items:stretch;
    gap:12px;
  }

  .buyer-toggle {
    display:flex;
    width:100%;
  }

  .buyer-toggle button {
    flex:1;
    padding-inline:10px;
    font-size:12px;
  }

  .buyer-price-note {
    flex-basis:100%;
    font-size:11px;
  }

  .product-price {
    margin:10px 0;
  }

  .price-amount {
    font-size:15px;
  }

  .price-presentation {
    font-size:10px;
  }
}

@media (prefers-reduced-motion:reduce) {
  .buyer-dialog[open] {animation:none}
  .buyer-choice {transition:none}
  .buyer-choice:hover {transform:none}
}
