/* Pro cart layout — AgeniDrive branding; McAfee-inspired structure/colors only */
@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700&display=swap");

:root {
  --mf-ink: #383434;
  --mf-muted: #4a4f5d;
  --mf-soft: #9b999a;
  --mf-line: #e8e5e5;
  --mf-line-2: #dee2e6;
  --mf-bg: #f2f2f2;
  --mf-card: #ffffff;
  --mf-red: #c01818;
  --mf-red-btn: #ff1c1c;
  --mf-red-hover: #7c1010;
  --mf-green: #15bc94;
  --mf-btn-off: #a19c9c;
  --mf-danger: #c01818;
  --mf-input-border: #abb2c3;
  --mf-radius: 12px;
  --mf-font: "Poppins", "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
.mf-body {
  font-family: var(--mf-font);
  color: var(--mf-ink);
  background: #fff;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-size: 15px;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
}

/* —— Header / logo (McAfee-style bar) —— */
.mf-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.7rem 2.5rem;
  background: #fff;
  box-shadow: 0 1px 4px rgb(56 52 52 / 14%);
  margin-bottom: 2.25rem;
  position: sticky;
  top: 0;
  z-index: 20;
}
.mf-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  text-decoration: none;
  color: var(--mf-red);
}
.mf-logo-mark {
  display: flex;
  flex-shrink: 0;
  line-height: 0;
}
.mf-logo-text {
  font-weight: 700;
  font-size: 1.55rem;
  letter-spacing: -0.03em;
  color: var(--mf-red);
  line-height: 1;
}
.mf-region-wrap {
  position: relative;
}
.mf-region {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.9rem;
  color: var(--mf-ink);
  cursor: pointer;
  font-weight: 500;
  font-family: inherit;
  background: none;
  border: none;
  padding: 0.35rem 0.15rem;
  border-radius: 4px;
}
.mf-region:hover,
.mf-region[aria-expanded="true"] {
  background: #f2f2f2;
}
.mf-region::after {
  content: "";
  width: 0;
  height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid #666;
  margin-left: 0.2rem;
}
.mf-region[aria-expanded="true"]::after {
  border-top: none;
  border-bottom: 5px solid #666;
}
.mf-flag {
  display: block;
  width: 22px;
  height: 14px;
  object-fit: cover;
  border-radius: 2px;
  flex-shrink: 0;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.08);
}
.mf-region-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 6px);
  z-index: 50;
  margin: 0;
  padding: 0.35rem 0;
  list-style: none;
  min-width: 220px;
  background: #fff;
  border: 1px solid var(--mf-line-2);
  border-radius: 8px;
  box-shadow: 0 8px 24px rgb(0 0 0 / 14%);
  max-height: 280px;
  overflow-y: auto;
}
.mf-region-menu[hidden] { display: none; }
.mf-region-menu li {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.55rem 0.9rem;
  cursor: pointer;
  font-size: 0.88rem;
  color: var(--mf-ink);
  font-weight: 500;
}
.mf-region-menu li:hover,
.mf-region-menu li[aria-selected="true"] {
  background: #f5f5f5;
}
.mf-region-menu li img {
  width: 22px;
  height: 14px;
  object-fit: cover;
  border-radius: 2px;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.08);
}

.mf-flash {
  width: min(1180px, 100%);
  margin: -1.25rem auto 0;
  padding: 0 2rem;
}
.mf-flash p {
  margin: 0.35rem 0;
  padding: 0.75rem 1rem;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 600;
}
.mf-flash-error {
  background: #fef6f6;
  color: var(--mf-danger);
  border: 1px solid var(--mf-danger);
}
.mf-flash-ok {
  background: #e8faf4;
  color: #166e59;
  border: 1px solid #b8e8d8;
}

/* —— Main grid —— */
.mf-main {
  width: min(1180px, 100%);
  margin: 0 auto;
  padding: 0 2.5rem 3rem;
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(300px, 0.95fr);
  gap: 3rem;
  align-items: start;
  flex: 1;
}

.mf-form-col { max-width: 640px; }

.mf-step { margin-bottom: 0.5rem; }
.mf-step-title {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 1.4rem;
  margin: 0 0 1rem;
  font-weight: 700;
  color: var(--mf-ink);
}
.mf-info {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 1.5px solid #abb2c3;
  color: #6c757d;
  font-size: 0.68rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-style: normal;
  font-family: Georgia, serif;
}
.mf-lock { color: var(--mf-ink); margin-left: 0.15rem; }

/* Inputs — white, grey border (kill blue autofill) */
.mf-input {
  width: 100%;
  height: 48px;
  border: 1px solid var(--mf-input-border);
  border-radius: 8px;
  padding: 0 0.9rem;
  font: inherit;
  font-size: 0.95rem;
  background: #fff !important;
  color: var(--mf-ink);
  box-shadow: none;
}
.mf-input::placeholder { color: #939598; font-weight: 400; }
.mf-input:focus {
  outline: none;
  border-color: var(--mf-ink);
  box-shadow: 0 0 0 1px var(--mf-ink);
}
.mf-input:-webkit-autofill,
.mf-input:-webkit-autofill:hover,
.mf-input:-webkit-autofill:focus {
  -webkit-box-shadow: 0 0 0 1000px #fff inset !important;
  -webkit-text-fill-color: var(--mf-ink) !important;
  transition: background-color 99999s ease-out;
  caret-color: var(--mf-ink);
}
.mf-hint {
  color: var(--mf-danger);
  font-size: 0.78rem;
  margin: 0.5rem 0 0;
  font-weight: 500;
}

.mf-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  width: 100%;
  max-width: 240px;
  margin: 1.35rem auto 0;
  height: 48px;
  border: none;
  border-radius: 50px;
  font: inherit;
  font-weight: 700;
  letter-spacing: 0.06em;
  cursor: pointer;
  text-transform: uppercase;
  font-size: 0.88rem;
}
.mf-btn-continue {
  background: var(--mf-btn-off);
  color: #fff;
  display: flex;
}
.mf-btn-continue:not(:disabled) { background: var(--mf-red-btn); }
.mf-btn-continue:not(:disabled):hover { background: var(--mf-red-hover); }
.mf-btn-continue:disabled { cursor: not-allowed; }

.mf-btn-place {
  background: var(--mf-btn-off);
  color: #fff;
  max-width: none;
  margin-top: 1rem;
  border: 2px solid transparent;
  border-radius: 50px;
}
.mf-btn-place:disabled {
  cursor: not-allowed;
  background: var(--mf-btn-off);
  color: #fff;
}
.mf-btn-place:not(:disabled) {
  background: var(--mf-red-btn);
  border-color: var(--mf-red-btn);
}
.mf-btn-place:not(:disabled):hover {
  background: var(--mf-red-hover);
  border-color: var(--mf-red-hover);
}

.mf-step-locked {
  pointer-events: none;
}
.mf-step-locked .mf-pay-body {
  display: none !important;
}
.mf-step-locked .mf-chevron {
  display: inline-block;
}
.mf-step:not(.mf-step-locked) .mf-chevron {
  display: none;
}
.mf-step:not(.mf-step-locked) .mf-step-head-right .mf-pay-icons {
  display: none;
}
.mf-step-collapsed .mf-step-title {
  margin-bottom: 0.35rem;
  color: var(--mf-ink);
}

.mf-step-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.75rem;
}
.mf-step-head .mf-step-title { margin-bottom: 0; }
.mf-step-head-right {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  flex-shrink: 0;
}
.mf-chevron {
  width: 0;
  height: 0;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 6px solid #abb2c3;
}
.mf-pay-icons {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin: 0;
}
.mf-pay-icons img {
  display: block;
  height: 22px;
  width: auto;
  object-fit: contain;
}
.mf-pay-body {
  margin-top: 0.25rem;
}
.mf-pay-body .mf-tabs {
  margin-top: 0.35rem;
}

.mf-email-done[hidden] {
  display: none !important;
}
.mf-email-done:not([hidden]) {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin: 0 0 0.25rem;
  font-size: 0.95rem;
  color: var(--mf-soft);
  font-weight: 500;
}
.mf-email-done #email-display { color: var(--mf-ink); font-weight: 600; }
.mf-edit {
  border: none;
  background: none;
  color: var(--mf-red);
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  text-decoration: underline;
  padding: 0;
}

.mf-fields { display: grid; gap: 0.85rem; margin: 0 0 0.5rem; }
.mf-fields-pp { margin-top: 0.25rem; }
.mf-row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.85rem;
}
.mf-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

.mf-divider {
  border: none;
  border-top: 1px solid var(--mf-line);
  margin: 1.35rem 0 1.5rem;
}

/* Tabs with active underline triangle like McAfee */
.mf-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.65rem;
  margin-bottom: 1.15rem;
}
.mf-tab {
  position: relative;
  height: 48px;
  border: 1.5px solid var(--mf-input-border);
  border-radius: 10px;
  background: #fff;
  font: inherit;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--mf-ink);
}
.mf-tab.is-active {
  border-color: var(--mf-ink);
  box-shadow: inset 0 0 0 1px var(--mf-ink);
}
.mf-tab.is-active::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -7px;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 7px solid transparent;
  border-right: 7px solid transparent;
  border-top: 7px solid var(--mf-ink);
}

.mf-agree {
  display: flex;
  gap: 0.7rem;
  align-items: flex-start;
  font-size: 0.78rem;
  line-height: 1.5;
  color: var(--mf-muted);
  margin: 0.85rem 0 0.5rem;
  background: transparent;
  border-radius: 0;
  padding: 0;
}
.mf-agree input { margin-top: 0.2rem; flex-shrink: 0; width: 16px; height: 16px; }
.mf-agree a { color: var(--mf-red); font-weight: 600; }
.mf-error {
  color: var(--mf-danger);
  font-size: 0.85rem;
  margin: 0.5rem 0;
  font-weight: 500;
}
.mf-process {
  text-align: left;
  font-size: 0.75rem;
  color: var(--mf-soft);
  margin: 0.75rem 0 0;
  line-height: 1.4;
}

.mf-pp-note {
  margin: 0.25rem 0 1rem;
  font-size: 0.9rem;
  line-height: 1.5;
  color: var(--mf-muted);
}

.mf-btn-paypal {
  max-width: none;
  margin-top: 1rem;
  height: 52px;
  border-radius: 50px;
  background: #0070ba;
  color: #fff;
  border: none;
  text-transform: none;
  letter-spacing: 0;
  font-size: 1.05rem;
  font-weight: 700;
}
.mf-btn-paypal:hover:not(:disabled) {
  background: #005ea6;
}
.mf-btn-paypal:disabled {
  opacity: 0.75;
  cursor: wait;
}

.mf-badge {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 2.5px solid var(--mf-red);
  color: var(--mf-red);
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
}
.mf-badge svg {
  display: block;
  stroke-width: 2.2;
}

/* Summary card */
.mf-summary-col { position: sticky; top: 4.5rem; }
.mf-summary {
  background: var(--mf-card);
  border: 1px solid var(--mf-line-2);
  border-radius: var(--mf-radius);
  padding: 1.35rem 1.4rem 1.2rem;
  box-shadow: 1px 1px 16px rgb(0 0 0 / 6%), 4px 4px 12px rgb(0 0 0 / 12%);
}
.mf-sum-row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: flex-start;
}
.mf-summary h2 {
  margin: 0 0 0.4rem;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.35;
  color: var(--mf-ink);
}
.mf-meta {
  margin: 0.12rem 0;
  font-size: 0.92rem;
  color: var(--mf-muted);
}
.mf-mo {
  margin: 0.5rem 0 0;
  color: var(--mf-green);
  font-weight: 600;
  font-size: 0.88rem;
}
.mf-price-col { text-align: right; flex-shrink: 0; }
.mf-price {
  font-size: 1.15rem;
  font-weight: 700;
  white-space: nowrap;
  color: var(--mf-ink);
}
.mf-terms {
  margin-top: 1.15rem;
  padding-top: 1rem;
}
.mf-terms h3 {
  margin: 0 0 0.5rem;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--mf-ink);
}
.mf-terms p {
  margin: 0;
  font-size: 0.75rem;
  line-height: 1.55;
  color: var(--mf-muted);
}
.mf-terms a {
  color: var(--mf-red);
  font-weight: 600;
  text-decoration: underline;
}
.mf-totals {
  margin-top: 1.15rem;
  padding-top: 1rem;
  border-top: 1px solid var(--mf-line);
}
.mf-tot-row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.95rem;
  margin: 0.4rem 0;
  color: var(--mf-muted);
}
.mf-tot-row.mf-total {
  color: var(--mf-ink);
  font-size: 1.1rem;
  margin-top: 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px dashed rgba(0, 0, 0, 0.12);
}
.mf-tot-row.mf-total strong { font-weight: 700; }

.mf-notice {
  margin-top: 1.15rem;
  padding: 0.9rem 1rem;
  border-radius: 8px;
  border: 1px solid #f0c9c9;
  background: #fff8f8;
}
.mf-notice h3 {
  margin: 0 0 0.55rem;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--mf-red);
}
.mf-notice ul {
  margin: 0;
  padding-left: 1.1rem;
  font-size: 0.78rem;
  line-height: 1.55;
  color: var(--mf-muted);
}
.mf-notice li { margin: 0.35rem 0; }
.mf-notice strong { color: var(--mf-ink); }

.mf-trust {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.85rem;
  margin-top: 1.5rem;
  text-align: center;
}
.mf-trust-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.72rem;
  line-height: 1.35;
  color: var(--mf-muted);
  font-weight: 500;
}

.mf-foot {
  display: flex;
  flex-wrap: wrap;
  gap: 1.1rem;
  justify-content: center;
  align-items: center;
  padding: 1.35rem;
  border-top: 1px solid var(--mf-line);
  background: #fff;
  font-size: 0.82rem;
  color: var(--mf-soft);
}
.mf-foot a { color: var(--mf-soft); text-decoration: none; }
.mf-foot a:hover { color: var(--mf-red); }

@media (max-width: 900px) {
  .mf-top { padding: 0.65rem 1rem; margin-bottom: 1rem; }
  .mf-logo-text { font-size: 1.25rem; }
  .mf-main {
    grid-template-columns: 1fr;
    padding: 0 1rem 2rem;
    gap: 1.25rem;
  }
  .mf-form-col { max-width: none; }
  .mf-summary-col { order: -1; position: static; }
  .mf-row-2 { grid-template-columns: 1fr; }
  .mf-trust { grid-template-columns: 1fr; }
  .mf-trust-item {
    flex-direction: row;
    text-align: left;
    justify-content: flex-start;
  }
}
