/**
 * Copyright © New Perspectives. All rights reserved.
 * Cart Totals Reordering and Styling
 * 
 * This file reorders cart totals elements and adds custom styling
 * to the Grand Total including VAT line
 */

.cart-totals .table-wrapper tbody {
    display: flex !important;
    flex-direction: column !important;
}

.cart-totals .table-wrapper tbody tr {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    width: 100% !important;
}

.cart-totals .table-wrapper tbody th,
.cart-totals .table-wrapper tbody td {
    text-align: right !important;
}

.cart-totals .table-wrapper tbody th.mark {
    text-align: left !important;
    flex: 1 !important;
}

.cart-totals .table-wrapper tbody td.amount {
    text-align: right !important;
}

.cart-totals .table-wrapper .totals.sub {
    order: 1 !important;
}

.cart-totals .table-wrapper .totals.shipping {
    order: 2 !important;
}

.cart-totals .table-wrapper .totals-tax {
    order: 3 !important;
}

.cart-totals .table-wrapper .grand.totals.excl {
    order: 4 !important;
}

.cart-totals .table-wrapper .grand.totals.incl {
    order: 5 !important;
}

.cart-totals .table-wrapper .grand.totals.incl .amount {
    font-weight: 650 !important;
}

.cart-totals .table-wrapper .grand.totals.incl .amount .price {
    font-weight: 650 !important;
}

.cart-totals .table-wrapper .grand.totals.incl .amount strong {
    font-weight: 650 !important;
}

.cart-totals .table-wrapper .grand.totals.incl .amount strong .price {
    font-weight: 650 !important;
}

.cart-totals .table-wrapper .grand.totals:not(.excl):not(.incl) {
    order: 5 !important;
}

/**
 * Copyright (c) New Perspectives. All rights reserved.
 *
 * Cart page: the way to the checkout stays in sight (cart-checkout-cta-1118, owner 2026-11-18).
 * Linked by Magento_Checkout/layout/checkout_cart_index.xml only; plain CSS, no LESS build. The parts are switched on by
 * body classes of the same layout (np-cta-w1, np-cta-w3, np-cta-w4; theme 1.0.56), see
 * Magento_Checkout/templates/cart/np-cta.phtml.
 * Text colours on white: #256D9E 5.6:1, #5C6670 5.9:1 (WCAG AA); the theme's button blue #3F91C5 is 3.5:1 and is only
 * used for borders and filled buttons here.
 */

.np-cart-cta-bar {
    display: none;
}

/* The Stock Live Watcher notice now lives in .cart-container (layout move): first, then the form (the theme gives
   .form-cart order -1 and .cart-summary order 10). */
.cart-container > .stock-live-watcher-notice {
    order: -3;
}

/* Summary order (w1, w4): totals, checkout button, discount code, shipping estimate, anything else. */
body.np-cta-w1 .cart-container .cart-summary,
body.np-cta-w4 .cart-container .cart-summary {
    display: flex;
    flex-direction: column;
}
body.np-cta-w1 .cart-container .cart-summary > *,
body.np-cta-w4 .cart-container .cart-summary > * {
    order: 5;
}
body.np-cta-w1 .cart-container .cart-summary > .cart-totals,
body.np-cta-w4 .cart-container .cart-summary > .cart-totals {
    order: 1;
}
body.np-cta-w1 .cart-container .cart-summary > .checkout-methods-items,
body.np-cta-w4 .cart-container .cart-summary > .checkout-methods-items {
    order: 2;
    margin-top: 1.6rem;
    margin-bottom: 0;
}
body.np-cta-w1 .cart-container .cart-summary > #block-discount,
body.np-cta-w4 .cart-container .cart-summary > #block-discount {
    order: 3;
    margin-top: 2.8rem;
    margin-bottom: 0 !important;
}
body.np-cta-w1 .cart-container .cart-summary > #block-shipping,
body.np-cta-w4 .cart-container .cart-summary > #block-shipping {
    order: 4;
    margin-top: 1.2rem;
    margin-bottom: 0;
}

/* w4: one primary action. "Fortsett å handle" and "Tøm handlekurv" become links, "Oppdater handlekurv" an outlined
   button (the quantity buttons update the cart by themselves, cartAjaxQtyUpdate.js). */
body.np-cta-w4 .cart-container .cart.main.actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: .8rem 2.4rem;
}
body.np-cta-w4 .cart-container .cart.main.actions .action.continue,
body.np-cta-w4 .cart-container .cart.main.actions #empty_cart_button {
    order: 1;
    min-width: 0;
    margin: 0 !important;
    padding: .8rem 0;
    border: 0;
    border-radius: 0;
    background: none;
    box-shadow: none;
    font-weight: 500;
    line-height: 2.2rem;
    text-align: left;
}
body.np-cta-w4 .cart-container .cart.main.actions .action.continue {
    margin-right: auto !important;
    color: #256d9e;
    font-size: 1.6rem;
}
body.np-cta-w4 .cart-container .cart.main.actions .action.continue:before {
    content: "";
    display: inline-block !important;
    width: .8rem;
    height: .8rem;
    margin: 0 1rem .2rem .2rem;
    border-left: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(45deg);
    vertical-align: middle;
}
body.np-cta-w4 .cart-container .cart.main.actions #empty_cart_button {
    order: 2;
    color: #5c6670;
    font-size: 1.4rem;
    text-decoration: underline;
    text-underline-offset: .3rem;
}
body.np-cta-w4 .cart-container .cart.main.actions .action.update {
    order: 3;
    min-width: 0;
    margin: 0 !important;
    border: 2px solid #256d9e;
    background: #fff;
    color: #256d9e;
}
body.np-cta-w4 .cart-container .cart.main.actions .action.continue:hover,
body.np-cta-w4 .cart-container .cart.main.actions .action.continue:focus,
body.np-cta-w4 .cart-container .cart.main.actions #empty_cart_button:hover,
body.np-cta-w4 .cart-container .cart.main.actions #empty_cart_button:focus {
    background: none;
    color: #1b5277;
    text-decoration: underline;
}
body.np-cta-w4 .cart-container .cart.main.actions .action.update:hover,
body.np-cta-w4 .cart-container .cart.main.actions .action.update:focus {
    border-color: #1b5277;
    background: #eef5fa;
    color: #1b5277;
}
body.np-cta-w4 .cart-container .cart.main.actions .action.update:after,
body.np-cta-w4 .cart-container .cart.main.actions #empty_cart_button:after,
body.np-cta-w4 .cart-container .cart.main.actions .action.continue:after {
    display: none;
}

/* w1: from 1024 px the summary is a card right of the items and stays in sight while the list scrolls.
   mage/sticky (Magento_Theme/web/js/theme.js) writes an inline top on .cart-summary: the important top wins. */
@media (min-width: 1024px) {
    /* The card spans every row; the last row is 1fr, so a card taller than the items grows that row only and leaves
       no gap between the notice, the item table and the actions. */
    body.np-cta-w1 .cart-container {
        display: grid !important;
        grid-template-columns: minmax(0, 1fr) 34rem;
        grid-template-rows: repeat(5, auto) 1fr;
        column-gap: 3.2rem;
        align-items: start;
    }
    body.np-cta-w1 .cart-container > * {
        grid-column: 1;
        min-width: 0;
    }
    body.np-cta-w1 .cart-container > .cart-summary {
        grid-column: 2;
        grid-row: 1 / -1;
        align-self: start;
        position: sticky !important;
        top: var(--np-cta-sticky-top, 24px) !important;
        margin: 0;
        padding: 2.4rem;
        border: 1px solid rgba(11, 34, 54, .08);
        border-radius: 16px;
        background: #f9f9f9;
    }
    body.np-cta-w1 .cart-container .cart-summary > .cart-totals {
        margin-top: 0 !important;
    }
    body.np-cta-w1 .cart-container .cart-summary #cart-totals table tr th,
    body.np-cta-w1 .cart-container .cart-summary #cart-totals table tr td {
        padding-top: .6rem;
        padding-bottom: .6rem;
    }
    body.np-cta-w1 .cart-container .cart-summary > .checkout-methods-items {
        padding: 0;
        text-align: center;
    }
    body.np-cta-w1 .cart-container .cart-summary > .checkout-methods-items .item {
        margin: 0;
    }
    body.np-cta-w1 .cart-container .cart-summary > .checkout-methods-items .action.primary.checkout {
        width: 100%;
        margin: 0;
    }
    body.np-cta-w1 .cart-container .cart-summary #block-discount,
    body.np-cta-w1 .cart-container .cart-summary #block-shipping {
        background: transparent;
    }
}
@media (min-width: 1440px) {
    body.np-cta-w1 .cart-container {
        grid-template-columns: minmax(0, 1fr) 38rem;
        column-gap: 4.8rem;
    }
}

/* w3: a bar at the bottom of the screen while no other checkout button is in sight: on phones and tablets while the
   summary is below, on a low laptop window (1280 x 590 .. 1366 x 768: the summary card's button sits just under the
   first screen there, clone 2026-11-18) until the card's button scrolls in. It slides with a transform only (no layout
   shift) and sits above the phone's bottom bar and an unanswered CookieYes bar (--np-cta-lift, set by np-cta.phtml).
   Hidden it is not focusable (visibility). */
@media all {
    body.np-cta-w3 .np-cart-cta-bar {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 1.2rem;
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 450;
        padding: 1rem 1.6rem max(1rem, env(safe-area-inset-bottom, 0px));
        border-top: 1px solid rgba(11, 34, 54, .08);
        background: #fff;
        box-shadow: 0 -6px 18px rgba(11, 34, 54, .1);
        transform: translate3d(0, calc(100% + 24px), 0);
        visibility: hidden;
        transition: transform .22s ease, visibility 0s linear .22s;
    }
    body.np-cta-w3 .np-cart-cta-bar.np-cart-cta-bar--shown {
        transform: translate3d(0, calc(-1 * var(--np-cta-lift, 0px)), 0);
        visibility: visible;
        transition: transform .22s ease, visibility 0s;
    }
    body.np-cta-w3 .np-cart-cta-bar__total {
        display: flex;
        flex-direction: column;
        min-width: 0;
        line-height: 1.2;
    }
    body.np-cta-w3 .np-cart-cta-bar__label {
        overflow: hidden;
        color: #5c6670;
        font-size: 1.2rem;
        white-space: nowrap;
        text-overflow: ellipsis;
    }
    body.np-cta-w3 .np-cart-cta-bar__amount {
        color: #111;
        font-size: 1.7rem;
        font-weight: 650;
        white-space: nowrap;
    }
    body.np-cta-w3 .np-cart-cta-bar .np-cart-cta__button {
        flex: 0 0 auto;
        margin: 0;
        padding-left: 1.6rem;
        padding-right: 1.6rem;
        font-size: 1.5rem;
        white-space: nowrap;
    }
    body.np-cta-w3 .page-wrapper:after {
        content: "";
        display: block;
        height: 7.2rem;
    }
}
@media (min-width: 1024px) {
    body.np-cta-w3 .np-cart-cta-bar {
        justify-content: flex-end;
        gap: 2.4rem;
        padding-left: max(2.4rem, calc((100% - 117rem) / 2));
        padding-right: max(2.4rem, calc((100% - 117rem) / 2));
    }
    body.np-cta-w3 .np-cart-cta-bar__total {
        flex-direction: row;
        align-items: baseline;
        gap: .8rem;
    }
    body.np-cta-w3 .np-cart-cta-bar__label {
        font-size: 1.4rem;
    }
    body.np-cta-w3 .np-cart-cta-bar .np-cart-cta__button {
        min-width: 22.4rem;
    }
}
@media (prefers-reduced-motion: reduce) {
    body.np-cta-w3 .np-cart-cta-bar,
    body.np-cta-w3 .np-cart-cta-bar.np-cart-cta-bar--shown {
        transition: none;
    }
}
/**
 * Copyright © New Perspectives. All rights reserved.
 *
 * Cart page items: actions and quantity buttons a finger can hit (theme 1.0.58, cart-item-actions, owner 2026-11-19).
 *
 * Before: the item actions were bare font icons of 20-24 px (gear "edit", cross "remove", heart "move to wish list"
 * for a signed-in customer) touching each other without a gap, in the top right corner of the phone card and as grey
 * #999 glyphs stacked at the right of the desktop row; the quantity pill was 30 px high.
 *
 * Now, at every width: one row of labelled buttons under the item, right aligned, "Fjern" last; each button at least
 * 44 x 44 px with 8 px between them (WCAG 2.5.5 / Apple HIG 44 pt, Material 48 dp), the icon an inline SVG of the
 * templates (no icon font). The quantity pill 44 px high with buttons at least 44 px wide; touch-action manipulation
 * so quick taps do not zoom the page on iOS; a dimmed minus at 1 (cartAjaxQtyUpdate.js no longer goes below 1); a
 * visible "updating" state while the cart waits for its update.
 *
 * Linked by Magento_Checkout/layout/checkout_cart_index.xml only. Selectors start at body.checkout-cart-index to sit
 * above the Bluesky rules of styles-m/styles-l by specificity alone (no important flags).
 */

/* ---- Item actions: one row of labelled buttons ---- */
body.checkout-cart-index .cart-container .cart.table-wrapper .items .item .item-actions,
body.checkout-cart-index .cart-container .cart.table-wrapper .items .item-actions {
    position: static;
    display: table-row;
    top: auto;
    right: auto;
    bottom: auto;
}

body.checkout-cart-index .cart-container .cart.table-wrapper .items .item-actions td {
    padding: 0 0 12px;
    text-align: right;
    border: 0;
}

body.checkout-cart-index .cart-container .cart.table-wrapper .items .item .item-actions .actions-toolbar {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: flex-end;
    align-items: center;
    gap: 8px;
    margin: 0;
    text-align: right;
}

body.checkout-cart-index .cart-container .cart.table-wrapper .items .item-actions .actions-toolbar a.np-item-action,
body.checkout-cart-index .cart-container .cart.table-wrapper .items .item-actions .actions-toolbar > .action.np-item-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    box-sizing: border-box;
    min-width: 44px;
    min-height: 44px;
    margin: 0;
    padding: 0 12px;
    border: 1px solid transparent;
    border-radius: 22px;
    background: none;
    color: var(--heading__color__base, #222);
    font-size: 15px;
    font-weight: 500;
    line-height: 1.2;
    text-decoration: none;
    white-space: nowrap;
    cursor: pointer;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
    transition: background-color .15s ease, color .15s ease, border-color .15s ease;
}

/* The Bluesky font glyph before the link is replaced by the SVG of the template. */
body.checkout-cart-index .cart-container .cart.table-wrapper .items .item-actions .actions-toolbar a.np-item-action:before {
    content: none;
    display: none;
}

/* The label was a visually hidden span (font-size 0 link, clipped span); now it shows. */
body.checkout-cart-index .cart-container .cart.table-wrapper .items .item-actions .actions-toolbar a.np-item-action > .np-item-action__label {
    position: static;
    width: auto;
    height: auto;
    margin: 0;
    padding: 0;
    overflow: visible;
    clip: auto;
    border: 0;
    font-size: inherit;
    color: inherit;
}

body.checkout-cart-index .cart-container .cart.table-wrapper .items .item-actions .actions-toolbar a.np-item-action > .np-item-action__icon {
    flex: 0 0 auto;
    width: 20px;
    height: 20px;
}

body.checkout-cart-index .cart-container .cart.table-wrapper .items .item-actions .actions-toolbar a.np-item-action:hover {
    background: #f2f2f2;
    color: var(--heading__color__base, #222);
}

body.checkout-cart-index .cart-container .cart.table-wrapper .items .item-actions .actions-toolbar a.np-item-action--remove:hover {
    background: #fdecec;
    color: #b42318;
}

body.checkout-cart-index .cart-container .cart.table-wrapper .items .item-actions .actions-toolbar a.np-item-action:active {
    background: #e6e6e6;
}

body.checkout-cart-index .cart-container .cart.table-wrapper .items .item-actions .actions-toolbar a.np-item-action:focus-visible {
    outline: 2px solid var(--link__color, #1979c3);
    outline-offset: 2px;
}

/* Phones (Bluesky card layout below 768 px): the row closes the card, a thin line above it like the line under the
   product; the card no longer needs room in its corner for the old icons. */
@media (max-width: 767px) {
    /* The card (tbody) is a flex row there: let the action row wrap under the item at full width. */
    body.checkout-cart-index .cart-container .cart.table-wrapper .items tbody.cart.item {
        flex-wrap: wrap;
    }

    body.checkout-cart-index .cart-container .cart.table-wrapper .items tbody.cart.item > .item-info {
        flex: 1 1 100%;
    }

    body.checkout-cart-index .cart-container .cart.table-wrapper .items tbody.cart.item > .item-actions {
        display: block;
        flex: 0 0 100%;
        width: 100%;
    }

    body.checkout-cart-index .cart-container .cart.table-wrapper .items .item-actions td {
        display: block;
        padding: 8px 12px 12px;
        border-top: 1px solid var(--border-color__base, #eee);
    }

    /* Three actions (signed-in customer, product with options) fit one line from 375 px. */
    body.checkout-cart-index .cart-container .cart.table-wrapper .items .item .item-actions .actions-toolbar {
        gap: 4px;
    }

    body.checkout-cart-index .cart-container .cart.table-wrapper .items .item-actions .actions-toolbar a.action.np-item-action {
        padding: 0 8px;
        gap: 5px;
    }
}

/* Tables (768 px and up): the action row tucks under the item row instead of a second full row of padding. */
@media (min-width: 768px) {
    body.checkout-cart-index .cart-container .cart.table-wrapper .items tbody.cart.item > .item-info > td {
        padding-bottom: 0;
    }

    body.checkout-cart-index .cart-container .cart.table-wrapper .items .item-actions td {
        padding: 4px 0 12px;
    }
}

/* ---- Quantity: 44 px pill, buttons a finger can hit ---- */
body.checkout-cart-index .cart-container .form-cart .cart.table-wrapper .box-tocart .up-down {
    min-height: 44px;
    align-items: stretch;
}

body.checkout-cart-index .cart-container .form-cart .cart.table-wrapper .box-tocart .up-down .qty-down,
body.checkout-cart-index .cart-container .form-cart .cart.table-wrapper .box-tocart .up-down .qty-up {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    min-height: 44px;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
    user-select: none;
    -webkit-user-select: none;
}

body.checkout-cart-index .cart-container .form-cart .cart.table-wrapper .box-tocart .up-down .control.qty input.qty {
    min-height: 44px;
    touch-action: manipulation;
}

body.checkout-cart-index .cart-container .form-cart .cart.table-wrapper .box-tocart .up-down .qty-down.smallest,
body.checkout-cart-index .cart-container .form-cart .cart.table-wrapper .box-tocart .up-down .qty-down[aria-disabled="true"] {
    opacity: .35;
    cursor: default;
}

/* While the cart waits for its update (cartAjaxQtyUpdate.js sets the class on the item and the form). */
body.checkout-cart-index .cart-container .cart.table-wrapper .cart.item.np-qty-pending .col.subtotal .price,
body.checkout-cart-index .cart-container .cart.table-wrapper .cart.item.np-qty-pending .col.subtotal .cart-price {
    opacity: .45;
}

body.checkout-cart-index .cart-container .cart.table-wrapper .cart.item .np-qty-status {
    display: block;
    min-height: 1.4em;
    margin-top: 4px;
    font-size: 13px;
    line-height: 1.4;
    color: #555;
    text-align: center;
}

body.checkout-cart-index .cart-container .cart.table-wrapper .cart.item .np-qty-status:empty {
    min-height: 0;
    margin: 0;
}
/**
 * Copyright (c) New Perspectives. All rights reserved.
 *
 * Cart summary sections "Bruk rabattkode" (#block-discount) and "Estimer frakt og leveringstid" (#block-shipping):
 * quiet cards (owner-fixes item koszyk-panele, owner chose candidate A, Q0051 2026-11-20). Linked by
 * Magento_Checkout/layout/checkout_cart_index.xml after np-cart-cta.css; plain CSS, no LESS build. The rules are the
 * candidate the owner saw on eight screens (dock tools/klon-browser-qa/cart-summary-candidates.mjs, scenario
 * `cartsummary`); !important because the Bluesky theme LESS styles these sections with long selectors.
 *
 * Field: the discount field always below its label and as wide as the section (the label and a field of at least
 * 220 px shared one row from 768 px, wider than the summary column, so the section cut the field and its hint off;
 * the hint is now "Rabattkode", coupon.phtml + i18n). Shipping: the estimate form and the rates on one left edge.
 * Cards: white, 1 px border #e3e6ea, radius 12 px, soft shadow, 16 px apart; a thin line under an open title and
 * above the rates.
 */

.checkout-cart-index .cart-container #block-discount .content .fieldset.coupon {
    flex-direction: column !important;
    flex-wrap: nowrap !important;
    align-items: stretch !important;
    gap: 12px !important;
}
.checkout-cart-index .cart-container #block-discount .content .fieldset.coupon .field {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 6px !important;
    flex: 0 0 auto !important;
    width: 100% !important;
    min-width: 0 !important;
}
.checkout-cart-index .cart-container #block-discount .content .fieldset.coupon .field .label {
    white-space: normal !important;
    font-weight: 500 !important;
}
.checkout-cart-index .cart-container #block-discount .content .fieldset.coupon .field .control {
    flex: 0 0 auto !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: none !important;
}
.checkout-cart-index .cart-container #block-discount .content .actions-toolbar {
    flex: 0 0 auto !important;
    width: 100% !important;
}
.checkout-cart-index .cart-container #block-shipping #shipping-zip-form,
.checkout-cart-index .cart-container #block-shipping #shipping-zip-form .fieldset.estimate {
    margin: 0 !important;
    padding: 0 !important;
}
.checkout-cart-index .cart-container #block-shipping #shipping-zip-form .fieldset.estimate > br {
    display: none !important;
}
.checkout-cart-index .cart-container #block-shipping #shipping-zip-form .fieldset.estimate .field {
    margin-left: 0 !important;
    padding-left: 0 !important;
}
.checkout-cart-index .cart-container #block-shipping #co-shipping-method-form,
.checkout-cart-index .cart-container #block-shipping #co-shipping-method-form .fieldset.rate {
    margin-left: 0 !important;
    padding-left: 0 !important;
}

.checkout-cart-index .cart-container #block-discount,
.checkout-cart-index .cart-container #block-shipping {
    background: #fff !important;
    border: 1px solid #e3e6ea !important;
    border-radius: 12px !important;
    box-shadow: 0 1px 2px rgba(16, 24, 40, .05) !important;
    overflow: hidden !important;
    margin: 16px 0 0 !important;
    padding: 0 !important;
}
.checkout-cart-index .cart-container #block-discount > .title,
.checkout-cart-index .cart-container #block-shipping > .title {
    background: #fff !important;
    border: 0 !important;
    border-radius: 0 !important;
    padding: 16px 18px !important;
}
.checkout-cart-index .cart-container #block-discount > .title:hover,
.checkout-cart-index .cart-container #block-shipping > .title:hover {
    background: #f6f8fa !important;
}
.checkout-cart-index .cart-container #block-discount.active > .title,
.checkout-cart-index .cart-container #block-shipping.active > .title {
    border-bottom: 1px solid #edf0f3 !important;
}
.checkout-cart-index .cart-container #block-discount > .content,
.checkout-cart-index .cart-container #block-shipping > .content {
    background: #fff !important;
}
.checkout-cart-index .cart-container #block-discount.active > .content,
.checkout-cart-index .cart-container #block-shipping.active > .content {
    padding: 16px 18px 18px !important;
}
.checkout-cart-index .cart-container #block-shipping #co-shipping-method-form .fieldset.rate {
    margin-top: 14px !important;
    padding-top: 14px !important;
    border-top: 1px solid #edf0f3 !important;
}