/* Configure & buy pages (e.g. m365-business-premium-buy.php).
   Loaded after css/home.css and reuses its tokens and hm- components (.hm-btn, .hm-more).
   Scoped under .pdp. */

.pdp .hm-sec { padding-top: 24px; }

/* Breadcrumb */
.pdp .pdp-crumb { list-style: none; padding: 0; margin: 0 0 18px; display: flex; flex-wrap: wrap; gap: 4px; font-size: 13px; color: var(--hm-muted); }
.pdp .pdp-crumb li { font-size: 13px; }
.pdp .pdp-crumb li + li::before { content: "\203A"; margin: 0 6px 0 2px; color: #9a9a9a; }
.pdp .pdp-crumb a { color: var(--hm-muted); }
.pdp .pdp-crumb a:hover { color: var(--hm-primary); }

/* Two columns: information | buy box */
.pdp .pdp-grid { display: grid; grid-template-columns: 1fr; gap: 28px; align-items: start; }
@media (min-width: 992px) { .pdp .pdp-grid { grid-template-columns: minmax(0, 1.55fr) minmax(340px, 1fr); gap: 40px; } }

/* Left column */
.pdp .pdp-top { display: flex; align-items: center; gap: 18px; margin-bottom: 12px; }
.pdp .pdp-box { flex: 0 0 auto; width: 96px; height: auto; }
@media (min-width: 768px) { .pdp .pdp-box { width: 120px; } }
.pdp .pdp-pill {
  display: inline-block; background: var(--hm-tint); color: var(--hm-primary);
  font-size: 12.5px; font-weight: 600; border-radius: 12px; padding: 3px 10px;
}
.pdp h1 { font-size: 28px; line-height: 1.2; margin: 8px 0 0; }
@media (min-width: 992px) { .pdp h1 { font-size: 36px; } }
.pdp .pdp-lead { color: var(--hm-muted); font-size: 16px; margin: 0 0 18px; max-width: 760px; }

.pdp .pdp-tabs { display: flex; gap: 22px; border-bottom: 1px solid var(--hm-border); margin: 26px 0 20px; overflow-x: auto; }
.pdp .pdp-tabs button,
.pdp .pdp-tabs a {
  padding: 9px 0; font-size: 15px; font-weight: 600; white-space: nowrap; line-height: 1.4;
  color: var(--hm-muted); background: none; border: 0; border-bottom: 3px solid transparent; border-radius: 0;
  text-decoration: none; margin-bottom: -1px;
}
.pdp .pdp-tabs button:hover, .pdp .pdp-tabs a:hover { color: var(--hm-text); }
.pdp .pdp-tabs .pdp-tab-cur { color: var(--hm-text); border-bottom-color: var(--hm-primary); }
.pdp .pdp-tabs .pdp-tab-link::after { content: "\203A"; margin-left: 5px; }
/* Section box: Overview, Add-ons and License Terms scroll inside it */
.pdp .pdp-scroll {
  position: relative;              /* offsetTop of sections is measured from here */
  max-height: 60vh; overflow-y: auto; overscroll-behavior: contain;
  margin-top: -20px; padding: 20px 6px 24px 2px;
  scroll-behavior: smooth;
}
@media (min-width: 992px) { .pdp .pdp-scroll { max-height: 520px; } }
.pdp .pdp-scroll:focus { outline: 2px solid rgba(2, 112, 198, .25); outline-offset: 2px; }
.pdp .pdp-panel + .pdp-panel { margin-top: 8px; }
.pdp .pdp-panel > .pdp-h2:first-child { margin-top: 24px; }
@media (prefers-reduced-motion: reduce) { .pdp .pdp-scroll { scroll-behavior: auto; } }

.pdp .pdp-h2 { font-size: 22px; margin: 32px 0 14px; scroll-margin-top: 20px; }
.pdp .pdp-cards { display: grid; grid-template-columns: 1fr; gap: 14px; scroll-margin-top: 20px; }
@media (min-width: 600px) { .pdp .pdp-cards { grid-template-columns: repeat(3, 1fr); } }
.pdp .pdp-card {
  display: flex; flex-direction: column; gap: 4px;
  background: #fff; border: 1px solid var(--hm-border); border-radius: var(--hm-radius); padding: 18px;
}
.pdp .pdp-card > .fas { font-size: 22px; color: var(--hm-primary); margin-bottom: 8px; }
.pdp .pdp-card-icon { width: 30px; height: 30px; margin-bottom: 8px; }
.pdp .pdp-card strong { font-size: 15px; }
.pdp .pdp-card span { font-size: 13.5px; color: var(--hm-muted); }
.pdp .pdp-card-price { margin: 8px 0 8px; font-size: 16px; margin-top: auto; padding-top: 8px; }
.pdp .pdp-card-price small { color: var(--hm-muted); font-size: 12.5px; }
.pdp .pdp-card .hm-more { align-self: flex-start; }
/* Add-on buttons ("Add to my quote" / "Switch to the bundle") and selected cards */
.pdp .pdp-add {
  align-self: stretch; margin-top: 4px;
  border: 1.5px solid var(--hm-primary); border-radius: var(--hm-radius-btn);
  background: #fff; color: var(--hm-primary);
  padding: 7px 12px; font-size: 13.5px; font-weight: 600;
  transition: background-color .15s ease, color .15s ease;
}
.pdp .pdp-add:hover { background: var(--hm-tint); }
.pdp .pdp-add.pdp-add-on { background: var(--hm-primary); color: #fff; }
.pdp .pdp-add.pdp-add-on:hover { background: var(--hm-primary-dark); }
.pdp .pdp-add:disabled { cursor: default; opacity: 1; }
.pdp .pdp-card { transition: border-color .15s ease, box-shadow .15s ease; }
.pdp .pdp-card.pdp-card-on { border-color: var(--hm-primary); box-shadow: 0 0 0 1px var(--hm-primary); }
.pdp .pdp-save { font-size: 13px; font-weight: 600; color: #13795b; }
.pdp .pdp-sum-add { font-size: 13px; color: var(--hm-text); }
.pdp .pdp-sum-add span:first-child { color: var(--hm-muted); }
.pdp .pdp-link-btn {
  align-self: flex-start; border: 0; background: none; padding: 0;
  color: var(--hm-primary); font-weight: 600; text-align: left;
}
.pdp .pdp-link-btn::after { content: "\203A"; margin-left: 5px; }
.pdp .pdp-link-btn:hover { color: var(--hm-primary-dark); text-decoration: underline; }

.pdp .pdp-table-wrap { overflow-x: auto; }
.pdp .pdp-table { width: 100%; border-collapse: collapse; font-size: 14px; background: #fff; }
.pdp .pdp-table th { background: var(--hm-alt); color: #3a3a3a; font-weight: 600; text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--hm-border); }
.pdp .pdp-table td { padding: 10px 12px; border-bottom: 1px solid var(--hm-border); vertical-align: top; }

/* Buy box */
.pdp .pdp-buy {
  background: #fff; border: 1px solid var(--hm-border); border-radius: var(--hm-radius); padding: 22px;
  box-shadow: 0 1.6px 3.6px rgba(0, 0, 0, .13), 0 8px 24px rgba(0, 0, 0, .08);
  scroll-margin-top: 20px;
}
@media (min-width: 992px) { .pdp .pdp-buy { position: sticky; top: 20px; } }
.pdp .pdp-buy h3 { font-size: 18px; margin: 0 0 12px; }
.pdp .pdp-buy small { display: block; font-size: 12.5px; color: var(--hm-muted); font-weight: 400; }

.pdp .pdp-seg { display: grid; grid-template-columns: 1fr 1fr; border: 1px solid var(--hm-border); border-radius: 6px; overflow: hidden; margin-bottom: 12px; }
.pdp .pdp-seg button { border: 0; background: #fff; padding: 9px 8px; font-size: 13.5px; font-weight: 600; color: var(--hm-text); line-height: 1.25; }
.pdp .pdp-seg button + button { border-left: 1px solid var(--hm-border); }
.pdp .pdp-seg button.pdp-seg-on { background: var(--hm-primary); color: #fff; }

.pdp .pdp-opts { display: flex; flex-direction: column; gap: 8px; }
.pdp .pdp-opt {
  display: flex; justify-content: space-between; align-items: center; gap: 10px; width: 100%;
  background: #fff; border: 1.5px solid var(--hm-border); border-radius: var(--hm-radius);
  padding: 11px 14px; text-align: left; font-size: 14px; color: var(--hm-text);
}
.pdp .pdp-opt:hover { border-color: #b9c9da; }
.pdp .pdp-opt.pdp-opt-on { border-color: var(--hm-primary); background: var(--hm-tint); }
.pdp .pdp-opt-r { text-align: right; white-space: nowrap; }
.pdp .pdp-best { display: inline-block; background: #e3f4ec; color: #13795b; border-radius: 10px; padding: 0 7px; font-size: 11.5px; font-weight: 600; }

.pdp .pdp-qty-row { display: flex; justify-content: space-between; align-items: center; margin: 16px 0 14px; }
.pdp .pdp-qty { display: inline-flex; align-items: center; border: 1px solid var(--hm-border); border-radius: 6px; overflow: hidden; }
.pdp .pdp-qty button { border: 0; background: #fff; width: 38px; height: 38px; font-size: 18px; color: var(--hm-primary); }
.pdp .pdp-qty button:hover { background: var(--hm-alt); }
.pdp .pdp-qty input {
  width: 60px; height: 38px; border: 0; border-left: 1px solid var(--hm-border); border-right: 1px solid var(--hm-border);
  text-align: center; font-size: 15px; -moz-appearance: textfield;
}
.pdp .pdp-qty input::-webkit-outer-spin-button, .pdp .pdp-qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

.pdp .pdp-sum { display: flex; justify-content: space-between; gap: 10px; padding: 5px 0; font-size: 14px; }
.pdp .pdp-sum-muted { color: var(--hm-muted); font-size: 13px; }
.pdp .pdp-sum-total { border-top: 1px solid var(--hm-border); margin-top: 6px; padding-top: 10px; font-size: 17px; font-weight: 700; }
.pdp .pdp-year { font-size: 12.5px; color: var(--hm-muted); margin-bottom: 12px; }
.pdp .pdp-sum-head { border-top: 1px solid var(--hm-border); margin-top: 6px; padding-top: 12px; font-size: 13px; font-weight: 700; letter-spacing: .3px; text-transform: uppercase; color: var(--hm-muted); }

.pdp a.hm-btn.pdp-cta { display: block; width: 100%; margin-top: 10px; }
.pdp .pdp-cta .fa-phone-alt { margin-right: 6px; }
.pdp .pdp-fin { font-size: 13px; text-align: center; margin-top: 10px; color: var(--hm-muted); }
.pdp .pdp-note { margin-top: 14px; background: #e3f4ec; color: #0b4d3a; border-radius: 6px; padding: 9px 12px; font-size: 13px; }
.pdp .pdp-note .fas { margin-right: 6px; }
.pdp .pdp-meta { margin-top: 12px; font-size: 12.5px; color: var(--hm-muted); display: flex; flex-direction: column; gap: 4px; }
.pdp .pdp-mono { font-family: Consolas, "Cascadia Mono", monospace; }
