/* NorPeptide static cart — styles for the client-side cart/checkout UI.
   Palette follows the site's Elementor globals: text #020817, brand blue
   #1689C2, light surfaces #F5FBFF/#C7E6FB, borders #E7ECEC, 15px radius. */

/* mini-cart drawer content */
.widget_shopping_cart_content .woocommerce-mini-cart {
  list-style: none; margin: 0; padding: 0;
}
.widget_shopping_cart_content .mini_cart_item {
  display: grid; grid-template-columns: 24px 64px 1fr; gap: 10px;
  align-items: center; padding: 12px 0; border-bottom: 1px solid #eee;
}
.widget_shopping_cart_content .mini_cart_item > a:not(.remove) {
  display: contents; color: inherit; text-decoration: none; font-weight: 600;
}
.widget_shopping_cart_content .mini_cart_item img {
  width: 64px; height: 64px; object-fit: contain; border-radius: 8px; background: #f6f6f6;
}
.widget_shopping_cart_content .mini_cart_item .remove {
  color: #b00; font-size: 20px; text-decoration: none; line-height: 1;
}
.widget_shopping_cart_content .mini_cart_item .quantity {
  grid-column: 3; font-size: .9em; color: #555;
}
.widget_shopping_cart_content .woocommerce-mini-cart__total {
  display: flex; justify-content: space-between; padding: 14px 0; font-size: 1.05em;
}
.widget_shopping_cart_content .woocommerce-mini-cart__buttons {
  display: grid; gap: 10px; margin: 0;
}
.widget_shopping_cart_content .woocommerce-mini-cart__buttons .button {
  display: block; text-align: center; padding: 13px 18px; border-radius: 15px;
  background: #C7E6FB; color: #020817; font-weight: 700; text-decoration: none;
}
.widget_shopping_cart_content .woocommerce-mini-cart__buttons .button.checkout {
  background: #1689C2; color: #fff;
}
.widget_shopping_cart_content .woocommerce-mini-cart__empty-message {
  padding: 24px 0; text-align: center; color: #666;
}

/* generic pieces */
.np-btn {
  display: inline-block; background: #1689C2; color: #fff !important; font-weight: 800;
  padding: 15px 34px; border-radius: 15px; border: 0; cursor: pointer;
  text-decoration: none !important; font-size: 16px; line-height: 1.2;
}
.np-btn:hover { opacity: .92; }
.np-empty, .np-confirm { text-align: center; padding: 60px 20px; }
.np-empty h2, .np-confirm h2 { margin-bottom: 14px; }
.np-confirm p { margin-bottom: 26px; }

/* cart page */
.np-cart { max-width: 1100px; margin: 0 auto; padding: 10px 20px 60px; }
.np-cart-table { width: 100%; border-collapse: collapse; }
.np-cart-table th {
  text-align: left; padding: 12px 10px; border-bottom: 2px solid #020817;
  font-size: .85em; text-transform: uppercase; letter-spacing: .04em;
}
.np-cart-table td { padding: 16px 10px; border-bottom: 1px solid #e8e8e8; vertical-align: middle; }
.np-col-img img { width: 76px; height: 76px; object-fit: contain; border-radius: 10px; background: #f6f6f6; }
.np-col-name a { font-weight: 700; color: #020817; text-decoration: none; }
.np-attrs { font-size: .85em; color: #667; margin-top: 3px; }
.np-qty { display: inline-flex; align-items: center; gap: 12px; border: 1px solid #E7ECEC; border-radius: 15px; padding: 6px 12px; }
.np-qty button {
  border: 0; background: none; font-size: 18px; font-weight: 800; cursor: pointer; color: #020817;
  width: 24px; height: 24px; line-height: 1;
}
.np-remove { color: #b00; font-size: 22px; text-decoration: none; }
.np-cart-totals { margin-left: auto; max-width: 380px; padding-top: 26px; }
.np-total-row { display: flex; justify-content: space-between; padding: 10px 0; border-bottom: 1px solid #eee; }
.np-total-row.np-grand { font-size: 1.15em; font-weight: 800; border-bottom: 0; }
.np-checkout-btn { display: block; text-align: center; margin-top: 18px; }

/* checkout page — two-column WooCommerce-style layout.
   The mirrored theme caps this page's content box at 900px — break out to a
   comfortable centered width (parent is viewport-centered, so the negative
   margin trick recenters cleanly). */
.np-checkout {
  --np-co-w: min(1200px, calc(100vw - 40px));
  width: var(--np-co-w);
  margin-left: calc((100% - var(--np-co-w)) / 2);
  padding: 4px 0 70px;
}
.np-co-steps {
  display: flex; align-items: center; justify-content: center; gap: 12px;
  margin: 4px 0 26px; font-size: .88em; color: #8A97A3; font-weight: 600;
}
.np-co-step { display: inline-flex; align-items: center; gap: 6px; }
.np-co-step-done { color: #166534; }
.np-co-step-active {
  color: #fff; background: #1689C2; padding: 4px 14px; border-radius: 20px;
}
.np-co-step-sep { width: 34px; height: 2px; background: #DCE5EA; border-radius: 2px; }
.np-checkout-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(340px, .9fr); gap: 26px; align-items: start; }
.np-co-main { display: grid; gap: 18px; min-width: 0; }
.np-co-side { display: grid; gap: 18px; position: sticky; top: 18px; min-width: 0; }
@media (max-width: 900px) {
  .np-checkout-grid { grid-template-columns: 1fr; }
  .np-co-side { position: static; }
  .np-cart-table .np-col-img { display: none; }
}
.np-co-card {
  background: #fff; border: 1px solid #E3EAEE; border-radius: 16px;
  padding: 24px 24px 20px; box-shadow: 0 2px 14px rgba(2, 8, 23, .05);
}
.np-co-card h3 {
  display: flex; align-items: center; gap: 10px; margin: 0 0 18px;
  padding-bottom: 14px; border-bottom: 1px solid #EEF3F6;
  font-size: 1.04em; color: #020817; letter-spacing: -.01em;
}
.np-co-summary h3, .np-co-side .np-co-card h3 { border-bottom-color: #E1EEF5; }
/* the left-column sections breathe more so their height balances the grouped
   payment column */
.np-co-main .np-co-card { padding: 30px 28px 26px; }
/* grid items default to min-width:auto — a single long nowrap tile text
   (shipping) would otherwise inflate the whole left track and shove the
   cards underneath the sticky side column */
.np-co-main > .np-co-card { min-width: 0; }
.np-ship-option .np-pay-text { min-width: 0; }
/* shipping tiles WRAP their text (the sendekode instructions must be
   readable) — and nowrap here was what inflated the track min-content */
.np-ship-option .np-pay-text strong,
.np-ship-option .np-pay-text small { white-space: normal; overflow: visible; text-overflow: clip; }
.np-co-main .np-co-card h3 { margin-bottom: 24px; padding-bottom: 16px; }
.np-step {
  display: inline-flex; align-items: center; justify-content: center;
  width: 26px; height: 26px; border-radius: 50%;
  background: linear-gradient(135deg, #1689C2, #0E6DA0); color: #fff;
  font-size: .72em; font-weight: 800; flex: 0 0 auto;
  box-shadow: 0 2px 6px rgba(22, 137, 194, .35);
}
.np-optional { font-weight: 400; font-size: .8em; color: #667; }
/* :not(.np-pay-option) is load-bearing: this ID-selector rule would otherwise
   outrank the tiles' display:flex and stack their contents vertically */
#np-checkout-form label:not(.np-pay-option) { display: block; margin-bottom: 20px; font-weight: 600; font-size: .9em; color: #24303A; }
#np-checkout-form label.np-pay-option { display: flex; margin-bottom: 0; font-weight: 400; font-size: 1em; }
#np-checkout-form input:not([type="radio"]), #np-checkout-form textarea {
  display: block; width: 100%; margin-top: 7px; padding: 14px 15px;
  border: 1px solid #DFE7EA; border-radius: 10px; font: inherit; background: #FBFDFE;
  transition: border-color .15s ease, background .15s ease;
}
#np-checkout-form input:not([type="radio"]):focus, #np-checkout-form textarea:focus {
  outline: none; border-color: #1689C2; background: #fff; box-shadow: 0 0 0 3px rgba(22, 137, 194, .12);
}
.np-note-label { margin-bottom: 2px !important; }
.np-row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 480px) { .np-row2 { grid-template-columns: 1fr; } }
.np-place-order {
  width: 100%; font-size: 17px; padding: 17px 34px;
  background: linear-gradient(135deg, #1689C2, #0E6DA0);
  box-shadow: 0 6px 18px rgba(22, 137, 194, .35);
  transition: transform .12s ease, box-shadow .12s ease, opacity .12s ease;
}
.np-place-order:hover { transform: translateY(-1px); box-shadow: 0 8px 22px rgba(22, 137, 194, .42); opacity: 1; }
.np-place-order:disabled { opacity: .65; cursor: wait; transform: none; }
.np-checkout-error {
  margin-top: 12px; padding: 11px 14px; border-radius: 10px;
  background: #FDF0F0; border: 1px solid #F2C7C7;
  color: #A02020; font-weight: 600; font-size: .9em;
}

/* order summary card */
.np-co-summary { background: #F5FBFF; border-color: #DBEBF5; }
.np-sum-item {
  display: grid; grid-template-columns: 46px 1fr auto; gap: 12px; align-items: center;
  padding: 9px 0; border-bottom: 1px solid #E1EEF5;
}
.np-sum-thumb {
  width: 46px; height: 46px; object-fit: contain; border-radius: 9px;
  background: #fff; border: 1px solid #E1EEF5; display: block;
}
.np-sum-name { font-weight: 700; font-size: .9em; color: #020817; min-width: 0; }
.np-sum-name small { display: block; font-weight: 400; color: #667; font-size: .86em; }
.np-sum-price { font-size: .9em; white-space: nowrap; }
.np-sum-line { display: flex; justify-content: space-between; gap: 14px; padding: 9px 0; border-bottom: 1px solid #E1EEF5; font-size: .95em; }
.np-sum-line.np-grand { font-weight: 800; font-size: 1.12em; border-bottom: 0; padding-top: 13px; }

/* shipping selector + Norgespakke sendekode */
.np-ship-badge {
  display: inline-block; margin-left: 6px; padding: 1px 8px; border-radius: 20px;
  background: #D6F5E1; color: #166534; font-size: .72em; font-weight: 700; vertical-align: 1px;
}
.np-ship-code { margin-top: 4px; padding: 13px 14px 6px; background: #F5FBFF; border: 1px dashed #9CC9E3; border-radius: 10px; }
.np-ship-help { margin: 8px 0 6px; font-size: .8em; color: #395B64; line-height: 1.5; }

/* payment method selector (WooCommerce-style tiles) */
.np-pay-heading { margin: 22px 0 12px; }
.np-pay-methods { display: grid; gap: 6px; margin-bottom: 6px; }
.np-pay-option {
  position: relative;
  display: flex; align-items: center; gap: 10px; padding: 8px 34px 8px 10px;
  border: 1.5px solid #E3EAEE; border-radius: 10px; cursor: pointer;
  background: #fff;
  transition: border-color .15s ease, background .15s ease, box-shadow .15s ease;
}
.np-pay-option:hover { border-color: #9CC9E3; box-shadow: 0 2px 8px rgba(22, 137, 194, .1); }
.np-pay-option.np-pay-selected {
  border-color: #1689C2; background: #F5FBFF;
  box-shadow: 0 0 0 1px #1689C2;
}
.np-pay-option input[type="radio"] {
  accent-color: #1689C2; width: 16px; height: 16px; flex: 0 0 auto; margin: 0;
}
.np-pay-icon {
  display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto;
  width: 30px; height: 30px; border-radius: 8px;
}
.np-pay-icon svg { width: 18px; height: 18px; }
.np-icon-card { color: #1689C2; background: #E8F4FB; }
.np-icon-crypto { color: #A15C07; background: #FBF0DC; }
.np-icon-bank { color: #166534; background: #E2F5E9; }
.np-icon-manual { color: #475467; background: #EEF2F5; }
.np-pay-text { display: flex; flex-direction: column; gap: 0; min-width: 0; }
.np-pay-text strong { font-size: .88em; color: #020817; line-height: 1.3; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.np-pay-text small {
  font-size: .74em; color: #5B6B76; line-height: 1.3;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.np-badge-anbefalt {
  display: inline-block; margin-left: 6px; padding: 1px 8px; border-radius: 20px;
  background: #D6F5E1; color: #166534; font-size: .7em; font-weight: 800;
  vertical-align: 1px; letter-spacing: .02em;
}
.np-pay-check {
  position: absolute; right: 10px; top: 50%; transform: translateY(-50%);
  width: 18px; height: 18px; border-radius: 50%;
  display: none; align-items: center; justify-content: center;
  background: #1689C2; color: #fff;
}
.np-pay-check svg { width: 11px; height: 11px; }
.np-pay-selected .np-pay-check { display: inline-flex; }
.np-pay-loading { padding: 14px; color: #667; font-size: .9em; }
.np-pay-more {
  width: 100%; padding: 10px 14px; border: 1.5px dashed #C4D6E0; border-radius: 12px;
  background: #FBFDFE; color: #1689C2; font: inherit; font-size: .88em; font-weight: 700;
  cursor: pointer; transition: background .15s ease, border-color .15s ease;
}
.np-pay-more:hover { background: #F0F8FD; border-color: #1689C2; }
.np-pay-note-small { font-size: .78em; color: #74838E; margin: 8px 0 0; line-height: 1.45; }

/* brand + trust rows under the place-order button */
.np-brand-row { display: flex; justify-content: center; gap: 8px; margin-top: 14px; flex-wrap: wrap; }
.np-brand-chip {
  padding: 3px 11px; border: 1px solid #E3EAEE; border-radius: 7px; background: #fff;
  font-size: .74em; font-weight: 800; color: #33424D; letter-spacing: .02em;
}
.np-trust-row {
  display: flex; justify-content: center; gap: 18px; flex-wrap: wrap;
  margin-top: 14px; padding-top: 14px; border-top: 1px solid #EEF3F6;
}
.np-trust-item {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: .78em; color: #395B64; font-weight: 600;
}
.np-trust-item svg { color: #1689C2; }
.np-confirm-msg { white-space: pre-line; text-align: left; max-width: 520px; margin: 0 auto 20px; background: #F5FBFF; border-radius: 10px; padding: 16px 18px; }

/* toast */
#np-toast {
  position: fixed; left: 50%; bottom: 30px; transform: translateX(-50%) translateY(20px);
  background: #020817; color: #fff; padding: 13px 26px; border-radius: 15px;
  font-weight: 700; opacity: 0; pointer-events: none; transition: all .25s ease; z-index: 99999;
}
#np-toast.np-toast-show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* the Elementor side-cart drawer is not used on the mirror (its widget CSS
   is lazy-loaded by WordPress and never ships) — keep it inert and make sure
   nothing can cover the page or lock scrolling */
.elementor-menu-cart__container { display: none !important; }
body.np-cart-open { overflow: auto; }

/* /takk/ — order confirmation landing (payment success redirects) */
.np-takk { max-width: 640px; margin: 0 auto; }
.np-takk-check { width: 64px; height: 64px; line-height: 64px; margin: 0 auto 18px; border-radius: 50%; background: #E6F7EE; color: #1F9D55; font-size: 34px; font-weight: 700; }
.np-takk-steps { text-align: left; max-width: 520px; margin: 0 auto 26px; padding-left: 24px; }
.np-takk-steps li { margin-bottom: 12px; line-height: 1.5; }
.np-takk-help { font-size: 0.95em; color: #555; }

/* /betal/ — on-site guided crypto payment. Brand-scoped under the page-root
   ID: the theme kit styles bare `button` at higher specificity than a single
   class, so every visual property is set explicitly (that leak was what made
   buttons render off-brand/red). Brand: #1689C2 / #F5FBFF / #395B64. */
#np-static-betal .np-betal { max-width: 680px; margin: 0 auto; padding: 44px 16px 80px; }
#np-static-betal .np-betal-head { text-align: center; margin-bottom: 26px; }
#np-static-betal .np-betal-head h2 { margin-bottom: 6px; color: #24303A; }
#np-static-betal .np-betal-ordre { color: #1689C2; }
#np-static-betal .np-betal-sum { font-size: 1.4em; font-weight: 800; color: #24303A; }
#np-static-betal .np-betal-lead { text-align: center; margin-bottom: 18px; color: #24303A; }
#np-static-betal .np-coin-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; margin-bottom: 18px; }
#np-static-betal .np-coin {
  display: flex; flex-direction: column; align-items: center; gap: 3px;
  padding: 14px 8px; margin: 0; border: 1.5px solid #DFE7EA; border-radius: 12px;
  background: #fff; color: #24303A; font: inherit; text-transform: none;
  box-shadow: none; cursor: pointer; appearance: none; -webkit-appearance: none;
  transition: border-color .15s, box-shadow .15s, transform .15s, background .15s;
}
#np-static-betal .np-coin:hover { background: #F5FBFF; border-color: #1689C2; box-shadow: 0 3px 12px rgba(22, 137, 194, .14); transform: translateY(-1px); }
#np-static-betal .np-coin:disabled { opacity: .55; cursor: wait; transform: none; }
#np-static-betal .np-coin-name { font-weight: 700; color: #24303A; }
#np-static-betal .np-coin-net { font-size: .78em; color: #66788A; }
#np-static-betal .np-betal-card {
  background: #fff; border: 1px solid #E3EAF0; border-top: 4px solid #1689C2;
  border-radius: 16px; padding: 30px 24px; text-align: center;
  box-shadow: 0 4px 20px rgba(20, 40, 60, .07);
}
#np-static-betal .np-betal-amt { font-size: 1.2em; color: #1689C2; }
#np-static-betal .np-betal-qr { display: flex; justify-content: center; margin: 18px 0 8px; }
#np-static-betal .np-betal-qr img, #np-static-betal .np-betal-qr canvas { border: 8px solid #fff; box-shadow: 0 0 0 1px #E3EAF0, 0 2px 10px rgba(20, 40, 60, .08); border-radius: 10px; }
#np-static-betal .np-betal-addrlabel { margin: 12px 0 6px; color: #66788A; }
#np-static-betal .np-betal-addr { display: flex; align-items: center; justify-content: center; gap: 10px; flex-wrap: wrap; margin-bottom: 14px; }
#np-static-betal .np-betal-addr code { background: #F5FBFF; border: 1px solid #DFE7EA; border-radius: 8px; padding: 9px 13px; font-size: .86em; word-break: break-all; max-width: 100%; color: #24303A; }
#np-static-betal .np-copy {
  border: 1.5px solid #1689C2; color: #1689C2; background: #fff; border-radius: 999px;
  padding: 7px 16px; font: inherit; font-size: .85em; font-weight: 600; cursor: pointer;
  white-space: nowrap; text-transform: none; box-shadow: none;
  appearance: none; -webkit-appearance: none; transition: background .15s, color .15s;
}
#np-static-betal .np-copy:hover { background: #1689C2; color: #fff; }
#np-static-betal .np-betal-net { font-size: .9em; color: #395B64; background: #F5FBFF; border: 1px solid #D6E9F5; border-radius: 10px; padding: 9px 14px; margin: 8px auto; max-width: 500px; }
#np-static-betal .np-betal-status {
  display: inline-flex; align-items: center; gap: 10px; margin: 18px auto 4px;
  padding: 11px 20px; border-radius: 999px; background: #F5FBFF;
  border: 1px solid #D6E9F5; font-weight: 600; color: #24303A;
}
#np-static-betal .np-betal-dot { width: 10px; height: 10px; border-radius: 50%; background: #1689C2; animation: np-pulse 1.6s ease-in-out infinite; }
#np-static-betal .np-betal-status[data-status="confirming"] .np-betal-dot { background: #61CE70; }
#np-static-betal .np-betal-status[data-status="partially_paid"] .np-betal-dot,
#np-static-betal .np-betal-status[data-status="failed"] .np-betal-dot,
#np-static-betal .np-betal-status[data-status="expired"] .np-betal-dot { background: #C0392B; animation: none; }
@keyframes np-pulse { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }
#np-static-betal .np-betal-note { font-size: .88em; color: #66788A; margin-top: 12px; }
#np-static-betal .np-betal-wait { text-align: center; padding: 30px 0; color: #66788A; }
#np-static-betal .np-betal-error { color: #C0392B; text-align: center; margin-bottom: 12px; }

/* grouped payment methods — each category explains itself (incl. the card
   group's one-time ID-check note) */
.np-pay-group { margin-bottom: 16px; }
.np-pay-group:last-of-type { margin-bottom: 8px; }
.np-pay-group-head { margin: 0 0 8px; }
.np-pay-group-head strong { display: block; font-size: 0.82em; text-transform: uppercase; letter-spacing: 0.05em; color: #33536B; }
.np-pay-group-head small { display: block; color: #66788A; line-height: 1.45; margin-top: 3px; font-size: 0.84em; }
