/* Kundens kostnadsförslagssida (/k/<token>) i UrBrevs nya design. Läggs efter approve.css och omega.css. Allt är avgränsat till .ux-* eller till formuläret. */
html { scroll-behavior: smooth; }
#ub-form { scroll-margin-top: 1rem; }
.ux-hero { position: relative; background: #0b1116 center / cover no-repeat; color: #fff; text-align: center; padding: 6.2rem 1.5rem 5.2rem; overflow: hidden; }
.ux-hero:before { content: ""; position: absolute; inset: 0; background: radial-gradient(ellipse 55% 60% at 50% 50%, rgba(6, 10, 14, .38), rgba(6, 10, 14, 0) 100%), linear-gradient(180deg, rgba(6, 10, 14, .5), rgba(6, 10, 14, .42) 55%, rgba(6, 10, 14, .62)); }
.ux-hero.ux-plain:before { background: none; }
.ux-hero > * { position: relative; }
.ux-hero { text-shadow: 0 1px 18px rgba(6, 10, 14, .55); }
.ux-eyebrow { font-size: .78rem; letter-spacing: .38em; text-transform: uppercase; font-weight: 700; color: #fff; margin-bottom: 1.4rem; }
.ux-hero h1 { color: #fff !important; font-size: clamp(1.7rem, 4.4vw, 3rem); letter-spacing: .1em; font-weight: 300; margin: 0; }
.ux-hero h1.ux-price { font-size: clamp(3.6rem, 10vw, 7rem); font-weight: 200; letter-spacing: .06em; line-height: 1; text-transform: none; margin-top: 1.4rem; }
.ux-hero h1.ux-price small { font-size: .38em; letter-spacing: .2em; margin-left: .2em; font-weight: 300; }
.ux-valid { margin-top: 1.6rem; font-size: .82rem; letter-spacing: .24em; text-transform: uppercase; color: rgba(255, 255, 255, .95); font-weight: 400; }
.ux-rule { width: 44px; height: 1px; background: #a98237; margin: 1.8rem auto; }
.ux-case { font-size: .95rem; letter-spacing: .14em; text-transform: uppercase; color: rgba(255, 255, 255, .95); line-height: 1.9; font-weight: 400; }
.ux-t { max-width: 640px; margin: 1.6rem auto 0; color: rgba(255, 255, 255, .95); font-size: 1rem; font-weight: 400; line-height: 1.75; }
.ux-t.ux-sm { font-size: .92rem; }
a.ux-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 3.6rem; padding: .9rem 2.6rem; margin-top: 2.4rem; border: 1px solid rgba(255, 255, 255, .85); background: transparent; color: #fff !important; font: 400 .74rem Lato, sans-serif; letter-spacing: .26em; text-transform: uppercase; text-decoration: none; text-align: center; line-height: 1.5; border-bottom: 1px solid rgba(255, 255, 255, .85) !important; }
a.ux-btn:hover { background: #fff; color: #0b1116 !important; }
.ux-steps { display: flex; max-width: 560px; margin: 3rem auto 0; }
.ux-steps div { flex: 1; border-top: 2px solid rgba(255, 255, 255, .35); padding: .8rem .4rem 0 0; text-align: left; font-size: .6rem; letter-spacing: .14em; text-transform: uppercase; font-weight: 400; color: rgba(255, 255, 255, .78); }
.ux-steps div b { display: block; font-size: 1.1rem; font-weight: 300; letter-spacing: .06em; color: #c9a45a; margin-bottom: .2rem; }
.ux-steps div.on { border-top-color: #fff; color: #fff; font-weight: 700; }
.ux-steps div.done { border-top-color: #fff; }

.ux-s { padding: 5rem 0; background: #fff; }
.ux-s.ux-soft { background: #f5f6f7; }
.ux-wrap { max-width: 1040px; margin: 0 auto; padding: 0 1.5rem; }
.ux-wrap.ux-narrow { max-width: 780px; }
.ux-sec { margin-bottom: 2.4rem; }
.ux-eb { font-size: .78rem; letter-spacing: .42em; text-transform: uppercase; font-weight: 400; color: #a98237; margin-bottom: .9rem; }
.ux-sec h2 { font-size: clamp(1.3rem, 2.6vw, 1.9rem); margin: 0; }
.ux-two { display: grid; grid-template-columns: 1.5fr 1fr; gap: 3.5rem; align-items: start; }
ul.ux-dash { list-style: none; margin: 0; padding: 0; }
ul.ux-dash li { padding: .95rem 0 .95rem 2rem; border-top: 1px solid #d9dee2; position: relative; line-height: 1.6; font-size: 1.02rem; color: #1b2329; margin: 0; }
ul.ux-dash li:before { content: ""; position: absolute; left: 0; top: 1.75rem; width: 1rem; height: 1px; background: #a98237; }
ul.ux-dash li:last-child { border-bottom: 1px solid #d9dee2; }
.ux-note { margin: 1.4rem 0 0; color: #4a545c; font-size: .95rem; line-height: 1.7; }
.ux-plain-t { color: #4a545c; line-height: 1.75; }
.ux-card { border: 1px solid #d9dee2; padding: 1.8rem 1.8rem 1.2rem; background: #fff; }
.ux-card h3 { font-size: .78rem; letter-spacing: .3em; font-weight: 400; margin: 0 0 1rem; color: #a98237; }
.ux-card dl { margin: 0; }
.ux-card dl div { display: flex; justify-content: space-between; gap: 1rem; padding: .8rem 0; border-top: 1px solid #d9dee2; font-size: .95rem; }
.ux-card dt { font-size: .68rem; letter-spacing: .22em; text-transform: uppercase; color: #8a949b; font-weight: 400; padding-top: .2rem; }
.ux-card dd { margin: 0; color: #0b1116; font-weight: 400; text-align: right; }
.ux-ins { display: flex; gap: 1.8rem; align-items: center; margin-top: 2.6rem; padding: 1.6rem 1.8rem; border: 1px solid #d9dee2; background: #fff; }
.ux-ins svg { width: 64px; height: 64px; flex: none; }
.ux-ins strong { display: block; font-weight: 400; letter-spacing: .2em; text-transform: uppercase; font-size: .78rem; color: #0b1116; margin-bottom: .3rem; }
.ux-ins span { font-size: .95rem; color: #4a545c; line-height: 1.6; }
.ux-ins a { color: #0b1116; text-decoration: underline; border-bottom: 0; }

/* tillval */
.ub-options { margin: 0 0 1.6rem; }
.ub-opt { margin: 0; padding: 1.1rem 0; border-top: 1px solid #d9dee2; }
.ub-opt:last-child { border-bottom: 1px solid #d9dee2; }
.ub-opt label { margin: 0; text-transform: none; letter-spacing: normal; font-size: 1rem; font-weight: 300; }
.ub-opt-note { font-size: .86rem; color: #4a545c; margin: .3rem 0 .6rem; line-height: 1.55; opacity: 1; }
.ub-price { font-weight: 400; letter-spacing: .06em; }
#ub-approve input[type="checkbox"] + label:before { border-radius: 0 !important; border: 1px solid #0b1116 !important; background: #fff !important; width: 1.4rem; height: 1.4rem; line-height: 1.3rem; font-size: .75rem; }
#ub-approve input[type="checkbox"]:checked + label:before { background-color: #0b1116 !important; border-color: #0b1116 !important; color: #fff; }
#ub-approve input[type="checkbox"]:focus + label:before { border-color: #0b1116; box-shadow: none; }
.ux-total { display: flex; justify-content: space-between; align-items: baseline; margin-top: 1.6rem; padding: 1.5rem 1.8rem; background: #0b1116; color: #fff; }
.ux-total span { font-size: .74rem; letter-spacing: .3em; text-transform: uppercase; }
.ux-total b { font-size: 2rem; font-weight: 200; letter-spacing: .06em; }
.ub-left { background: rgba(169, 130, 55, .13); color: #7c5d1f; border-radius: 0; }
.ub-info { border-radius: 50%; border-color: #0b1116; color: #0b1116; }
.ub-info:hover, .ub-info:focus { background: #0b1116; color: #fff; }

/* formulär: raka kanter */
.ux-s .fields { margin: 2rem 0; }
.ux-s .field label { font-size: .72rem; letter-spacing: .22em; text-transform: uppercase; font-weight: 400; color: #0b1116; }
.ux-s .field input[type="text"] { height: 3.4rem; }
.ub-phone { border-radius: 0; border: 1px solid #d9dee2; height: 3.4rem; }
.ub-phone:focus-within { border-color: #0b1116; box-shadow: none; }
.ub-phone input[type="text"], .field.ub-invalid .ub-phone input[type="text"] { border-radius: 0; }
.ub-cc .ub-cc-btn { border-radius: 0; border-right: 1px solid #d9dee2; }
.ub-cc .ub-cc-list { border-radius: 0; border: 1px solid #d9dee2; }
.ub-fine { color: #8a949b; }
.ub-fine a { color: #0b1116; }
.ux-s .button.primary.fit { width: 100%; }

@media (max-width: 760px) {
    .ux-hero { padding: 4.6rem 1.2rem 4rem; }
    .ux-two { grid-template-columns: 1fr; gap: 2.2rem; }
    .ux-s { padding: 3.6rem 0; }
    .ux-ins { flex-direction: column; text-align: center; gap: 1rem; }
    .ux-total b { font-size: 1.6rem; }
    .ux-case { font-size: .82rem; }
    .ux-eyebrow { letter-spacing: .3em; }
}

/* fältens placering oberoende av mallens egna formulärregler */
.ux-s .fields { display: grid !important; grid-template-columns: 1fr 1fr; gap: 1.6rem; margin: 2rem 0; }
.ux-s .fields .field { margin: 0 !important; padding: 0 !important; width: auto !important; max-width: none !important; grid-column: 1 / -1; position: relative; }
.ux-s .fields .field.half { grid-column: auto; }
.ux-s .fields .field.ub-hp { position: absolute !important; }
.ux-s .fields .field > label { display: block; margin: 0 0 .5rem !important; }
.ux-total b { color: #fff !important; }
.ux-s ul.actions { display: block; margin: 0; padding: 0; }
.ux-s ul.actions li { display: block; padding: 0; width: 100%; }
.ux-s .button.primary.fit { display: flex; width: 100%; }
@media (max-width: 560px) { .ux-s .fields { grid-template-columns: 1fr; } .ux-s .fields .field.half { grid-column: 1 / -1; } }
.ux-s .button.primary { border-bottom: 1px solid #0b1116 !important; }

/* godkänt-läget (tack efter godkännandet) */
.ux-thanks .qf-thanks { max-width: 680px; margin: 0 auto; }
.ux-thanks .qf-done-title, .ux-thanks h1 { color: #fff !important; font-size: clamp(1.7rem, 4.4vw, 3rem); letter-spacing: .1em; font-weight: 300; text-transform: uppercase; margin: 0 0 1.6rem; }
.ux-thanks .qf-thanks-body p { color: rgba(255, 255, 255, .95); font-weight: 400; font-size: 1rem; line-height: 1.75; margin: 0 0 1.1rem; }
.ux-thanks .qf-thanks-body a { color: #fff; text-decoration: underline; border-bottom: 0; }
.ux-thanks .qf-thanks-heading { color: #fff !important; font-size: .78rem; letter-spacing: .3em; margin: 2rem 0 0; }
.ux-thanks .qf-thanks-action { margin-top: .4rem; }
.ux-thanks .ux-steps { margin-top: 3rem; }

/* popupen "Prioriterat ärende" i nya designen: raka kanter, tunn versal Lato, guldlinje */
.ub-pop-backdrop { background: rgba(6, 10, 14, .55); }
.ub-pop-box { border-radius: 0; border: 1px solid #0b1116; box-shadow: 0 10px 40px rgba(0, 0, 0, .25); min-height: 0; }
.ub-pop-grid { min-height: 460px; }
.ub-pop-content { background: #fff; }
.ub-pop-box h1 { font-family: "Lato", Helvetica, sans-serif; font-weight: 300; text-transform: uppercase; letter-spacing: .1em; font-size: 1.7rem; line-height: 1.25; color: #0b1116; margin: 0; }
.ub-pop-box h1:after { content: ""; display: block; width: 44px; height: 1px; background: #a98237; margin: 1.3rem auto 1.5rem; }
.ub-pop-box p { font-family: "Lato", Helvetica, sans-serif; font-weight: 300; font-size: 1rem; line-height: 1.75; color: #4a545c; }
.ub-pop-close { width: 36px; height: 36px; top: 14px; right: 14px; }
.ub-pop-close:before, .ub-pop-close:after { left: 8px; top: 17px; width: 20px; height: 1px; border-radius: 0; background: #0b1116; }
@media screen and (max-width: 736px) {
    .ub-pop-box { border-radius: 0; padding: 52px 20px calc(24px + env(safe-area-inset-bottom, 0px)); border: 0; border-top: 1px solid #0b1116; }
    .ub-pop-grid { min-height: 0; }
    .ub-pop-box h1 { font-size: 1.4rem; margin-bottom: 0; }
    .ub-pop-close { top: 10px; right: 10px; }
}

/* De alternativa lägena (utgånget, ersatt, redan godkänt): titel i bilden, texten i en sektion under */
.ux-hero.ux-titlehero { min-height: clamp(300px, 42vh, 420px); display: flex; flex-direction: column; justify-content: center; align-items: center; padding: 4.5rem 1.5rem; }
.ux-body { padding: 4.2rem 1.5rem 5rem; text-align: center; background: #fff; }
.ux-bin { max-width: 640px; margin: 0 auto; }
.ux-bin p { color: #4a545c; font-size: 1.02rem; line-height: 1.8; margin: 0 0 1.2rem; }
a.ux-btn.ux-dark { background: #0b1116; border: 1px solid #0b1116; border-bottom: 1px solid #0b1116 !important; color: #fff !important; margin-top: 1.4rem; }
a.ux-btn.ux-dark:hover { background: transparent; color: #0b1116 !important; }
.ux-body .ux-steps { margin-top: 3.4rem; }
.ux-body .ux-steps div { border-top-color: #d9dee2; color: #8a949b; }
.ux-body .ux-steps div.on { border-top-color: #0b1116; color: #0b1116; }
.ux-body .ux-steps div.done { border-top-color: #0b1116; }
.ux-body .ux-steps div b { color: #a98237; }
@media (max-width: 760px) { .ux-hero.ux-titlehero { padding: 3.6rem 1.2rem; } .ux-body { padding: 3rem 1.2rem 4rem; } }

/* Presentkort (Har du ett presentkort?) */
.ub-gift { margin-top: 1.4rem; }
.ub-gift [hidden] { display: none !important; }
.ub-gift-add { display: inline-flex; align-items: center; gap: .7rem; background: none; border: 0; padding: .4rem 0; font: 300 .95rem Lato, sans-serif; color: #4a545c; cursor: pointer; box-shadow: none; text-transform: none; letter-spacing: 0; height: auto; line-height: 1.4; }
.ub-gift-add i { display: inline-flex; align-items: center; justify-content: center; width: 20px; height: 20px; border: 1px solid #0b1116; color: #0b1116; font-style: normal; font-size: 16px; line-height: 1; }
.ub-gift-add:hover { color: #0b1116; }
.ub-gift-box { margin-top: .9rem; }
.ub-gift-row { display: flex; gap: .6rem; }
.ub-gift-row input { flex: 1; min-width: 0; letter-spacing: .18em; text-transform: uppercase; font-weight: 400; }
.ub-gift-row button { flex: none; height: auto; padding: 0 1.4rem; border: 1px solid #0b1116; background: #fff; color: #0b1116; font: 400 .72rem Lato, sans-serif; letter-spacing: .24em; text-transform: uppercase; cursor: pointer; box-shadow: none; line-height: 1; }
.ub-gift-row button:hover { background: #0b1116; color: #fff; }
.ub-gift-ok { display: flex; align-items: center; gap: .8rem; margin-top: .9rem; padding: .85rem 1rem; border: 1px solid #3d7a5a; background: #f3f8f5; color: #0b1116; font: 300 .92rem Lato, sans-serif; }
.ub-gift-ok svg { flex: none; color: #3d7a5a; }
.ub-gift-ok b { font-weight: 700; }
.ub-gift-ok button, .ub-gift-ok button:hover { color: #4a545c !important; }
.ub-gift-ok button { margin-left: auto; background: none; border: 0; padding: 0; height: auto; box-shadow: none; font: 400 .68rem Lato, sans-serif; letter-spacing: .2em; text-transform: uppercase; color: #4a545c; text-decoration: underline; cursor: pointer; line-height: 1.4; }
.ub-gift-rows { margin-top: .6rem; }
.ub-gift-rows > div { display: flex; justify-content: space-between; align-items: baseline; padding: .8rem 0; border-top: 1px solid #d9dee2; font: 300 .95rem Lato, sans-serif; color: #0b1116; }
.ub-gift-rows > div:first-child { border-top: 0; }
.ub-gift-rows > div > span:first-child { font: 400 .68rem Lato, sans-serif; letter-spacing: .24em; text-transform: uppercase; color: #8a949b; }
.ub-gift-rows .m span:last-child { color: #3d7a5a; font-weight: 400; }
.ub-gift-rows .pay { border-top: 1px solid #0b1116; padding-top: 1rem; }
.ub-gift-rows .pay span { font: 700 .72rem Lato, sans-serif; letter-spacing: .24em; text-transform: uppercase; color: #0b1116; }
.ub-gift-rows .pay b { font-size: 1.7rem; font-weight: 300; letter-spacing: .04em; }
.ub-gift-rows p { margin: .4rem 0 0; font: 300 .85rem/1.6 Lato, sans-serif; color: #4a545c; }

/* Presentkortsfältet: raka hörn som övriga knappar och fält */
.ub-gift button, .ub-gift input, .ub-gift-ok, .ub-gift-add i { border-radius: 0 !important; -webkit-appearance: none; appearance: none; }

/* Presentkortsknapparna: färgerna måste vinna över sajtens "button { color: blå !important }" */
.ub-gift-row button { background: #fff !important; color: #0b1116 !important; border: 1px solid #0b1116 !important; }
.ub-gift-row button:hover, .ub-gift-row button:focus, .ub-gift-row button:active { background: #0b1116 !important; color: #fff !important; }
.ub-gift-add, .ub-gift-add:hover, .ub-gift-add:focus, .ub-gift-add:active { background: none !important; box-shadow: none !important; }
.ub-gift-add { color: #4a545c !important; }
.ub-gift-add:hover, .ub-gift-add:focus, .ub-gift-add:active { color: #0b1116 !important; }
.ub-gift-ok button, .ub-gift-ok button:hover, .ub-gift-ok button:focus, .ub-gift-ok button:active { background: none !important; color: #4a545c !important; }

/* Flera presentkort */
.ub-gift-ok + .ub-gift-ok { margin-top: .5rem; }
.ub-gift-add { margin-top: .5rem; }
.ub-gift-cancel, .ub-gift-cancel:hover, .ub-gift-cancel:focus, .ub-gift-cancel:active { margin-top: .6rem; background: none !important; border: 0 !important; padding: 0; height: auto; box-shadow: none !important; font: 400 .68rem Lato, sans-serif; letter-spacing: .2em; text-transform: uppercase; color: #4a545c !important; cursor: pointer; border-radius: 0 !important; }
.ub-gift-cancel:hover { color: #0b1116 !important; }
@media (max-width: 480px) { .ub-gift-row input { letter-spacing: .06em; font-size: .88rem; padding-left: .8rem; padding-right: .5rem; } .ub-gift-row button { padding: 0 1rem; } }

/* (samma regler som i omega.css, så kundsidorna blir rätt även innan sajtens stilmall är uppdaterad) Mina ärenden: användargubbe längst till vänster i sidhuvudet (text på dator, bara ikon på mobil) */
#header > a.ox-me { display: inline-flex; align-items: center; gap: .6rem; height: 4.4rem; line-height: 1; margin-right: auto; padding: 0 1rem 0 2rem; color: inherit; font-size: .72rem; font-weight: 400; letter-spacing: .28em; text-transform: uppercase; white-space: nowrap; border: 0; }
#header > a.ox-me svg { width: 22px; height: 22px; flex: none; }
#header > a.ox-me:hover, #header > a.ox-me:focus, #header.alt > a.ox-me:hover, #header.alt > a.ox-me:focus { color: inherit; opacity: .65; }
#header.alt > a.ox-me { color: #fff; text-shadow: 0 1px 14px rgba(0,0,0,.5); }
#header.alt > a.ox-me svg { filter: drop-shadow(0 1px 8px rgba(0,0,0,.45)); }
@media (max-width: 736px) { #header > a.ox-me span { display: none; } #header > a.ox-me { padding: 0 1rem 0 1.1rem; } }
