/* --- GLOBAL BASE --- */
:root {
    --primary: #ffcc00; /* Anleggsgul */
    --primary-hover: #e6b800;
    --dark: #121212;
    --dark-accent: #000000;
    --light-bg: #f4f7f6;
    --text-main: #000000;
    --white: #ffffff;
    --border: #dfe6e9;
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    scroll-behavior: smooth;
}

html,
body {
    width: 100%;
    overflow-x: hidden;
}

body {
    font-family: 'Inter', sans-serif;
    background: var(--light-bg);
    color: var(--text-main);
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* --- NAVIGASJON --- */
.site-header {
    background: var(--dark);
    color: var(--white);
    padding: 1.2rem 0;
    z-index: 1000;
    border-bottom: 3px solid var(--primary);
    position: relative;
}

.nav-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.8rem;
    font-weight: 900;
    letter-spacing: -1px;
}

.logo span {
    color: var(--primary);
}

.logo img {
    height: 40px;
    width: auto;
    display: block;
}

.main-nav a {
    color: #bdc3c7;
    text-decoration: none;
    margin-left: 2rem;
    font-weight: 600;
    font-size: 0.95rem;
    transition: 0.3s;
}

.main-nav a:hover {
    color: var(--primary);
}

.nav-cta {
    background: var(--primary);
    color: var(--dark) !important;
    padding: 0.6rem 1.2rem;
    border-radius: 6px;
}

/* --- HERO --- */
.hero-home {
    position: relative;
    color: var(--white);
    text-align: left;
    overflow: hidden;
    min-height: 360px;
    display: flex;
    align-items: center;
    padding: 0;
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    display: block;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.75);
    z-index: 1;
}

.hero-inner {
    position: relative;
    z-index: 2;
    width: 100%;
    padding-top: 50px;
    padding-bottom: 11px;
}

.hero-content h1 {
    font-size: 4rem;
    font-weight: 900;
    line-height: 1;
    margin-bottom: 20px;
}

.hero-content h1 span {
    color: var(--primary);
}

.hero-content p {
    font-size: 1.2rem;
    max-width: 600px;
    margin-bottom: 30px;
    color: #dfe6e9;
}

@media (max-width: 768px) {
    .hero-home {
        min-height: 300px;
    }

    .hero-inner {
        padding-top: 50px;
        padding-bottom: 11px;
    }

    .hero-content h1 {
        font-size: 2.8rem;
    }
}

/* --- DESIGNER SEKSJON --- */
.designer-section {
    padding: 80px 0;
    background: #fff;
    position: relative;
    z-index: 1;
}

.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-header h2 {
    font-size: 2.5rem;
    font-weight: 900;
}

.configurator-grid {
    display: grid;
    grid-template-columns: 400px 1fr;
    gap: 40px;
    align-items: start;
    font-family: 'Bebas Neue', sans-serif;
    position: relative;
    z-index: 1;
}

/* --- KORT & STEG --- */
.card {
    background: var(--white);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 1;
}

.step {
    position: absolute;
    top: -12px;
    left: -12px;
    background: var(--dark);
    color: var(--primary);
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    z-index: 2;
}

.title-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

h3 {
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #636e72;
}

/* --- INPUTS & KNAPPER --- */
.text-input {
    width: 100%;
    padding: 12px;
    border: 2px solid var(--border);
    border-radius: 8px;
    margin-bottom: 8px;
    font-size: 1rem;
    background: #fff;
    color: #000;
}

.text-input:focus {
    border-color: var(--primary);
    outline: none;
}

.add-btn {
    background: var(--dark);
    color: var(--white);
    border: none;
    padding: 6px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 700;
    font-size: 0.8rem;
    position: relative;
    z-index: 5;
}

.remove-line {
    background: #ff7675;
    color: white;
    border: none;
    padding: 0 12px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: bold;
    position: relative;
    z-index: 5;
}

.custom-select {
    width: 100%;
    padding: 12px;
    border-radius: 8px;
    border: 2px solid var(--border);
    cursor: pointer;
    background: #fff;
    color: #000;
}

/* --- FARGEVALG --- */
.color-options {
    display: flex;
    gap: 12px;
    margin-top: 1rem;
    align-items: center;
    flex-wrap: wrap;
}

.color-btn {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    cursor: pointer;
    border: 3px solid transparent;
    transition: 0.2s;
    position: relative;
    z-index: 5;
}

.color-btn.active {
    border-color: var(--dark);
    transform: scale(1.1);
    outline: 3px solid #ffcc00;
    outline-offset: 2px;
}

.color-picker-small {
    width: 40px;
    height: 40px;
    border: none;
    background: none;
    cursor: pointer;
    position: relative;
    z-index: 5;
}

/* --- PREVIEW WINDOW --- */
.preview-column {
    position: relative;
    z-index: 1;
}

.preview-window {
    width: 100%;
    height: 480px;
    background: #fff;
    border-radius: 20px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border: 2px solid var(--border);
    transition: background-color 0.3s ease;
    background-color: white !important;
    isolation: isolate;
    z-index: 1;
}

.transparent-bg {
    background-image: radial-gradient(#d1d1d1 1px, transparent 1px);
    background-size: 25px 25px;
}

.preview-window.dark-preview {
    background-color: #2d3436 !important;
    background-image: radial-gradient(#444 1px, transparent 1px) !important;
}

.sticker-element {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    z-index: 1;
}

.draggable {
    position: absolute;
    top: 50px;
    cursor: move;
    z-index: 2;
    max-width: 100%;
}

#logo-img {
    width: 100%;
    height: auto;
    display: block;
    pointer-events: none;
}

.text-stack {
    display: flex;
    flex-direction: column;
    align-items: center;
    z-index: 1;
    pointer-events: none;
}

.text-line-output {
    margin: 0;
    font-weight: 900;
    line-height: 1;
    text-transform: uppercase;
    white-space: nowrap;
    font-size: 45px !important;
    color: var(--dark);
    transition: color 0.3s ease;
}

/* --- LINJAL --- */
.ruler-h {
    position: absolute !important;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    z-index: 3;
}

.ruler-line::after {
    right: 0;
}

/* --- PRIS OG BESTILLING --- */
.price-card {
    background: var(--dark);
    color: var(--white);
    padding: 1.5rem 2rem;
    border-radius: 16px;
    margin-top: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    position: relative;
    z-index: 20;
}

.grid-footer {
    grid-column: 2 / 3;
    width: 100%;
    max-width: none;
    margin-top: 20px;
}

#submitDesignBtn,
.buy-button-full {
    background:#ffcc00;
    color:#000;
    border:none;
    width: 100%;
    display: block;
    box-sizing: border-box;
}

.buy-button:hover,
.buy-button-full:hover,
#submitDesignBtn:hover {
    transform: scale(1.03);
    background: var(--white);
}

.buy-button:disabled,
.buy-button-full:disabled,
#submitDesignBtn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* --- TJENESTER & KONTAKT --- */
.services-section {
    padding: 80px 0;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.controls > .card:first-of-type,
.step-number {
    display: none !important;
}

.service-card {
    text-align: center;
}

.service-card h3 {
    color: var(--dark);
    font-size: 1.4rem;
    margin-bottom: 10px;
    font-weight: 800;
}

.service-card p {
    color: var(--text-main);
    font-size: 1rem;
}

.contact-section {
    padding: 100px 0;
    background: var(--white);
    position: relative;
    z-index: 1;
}

.contact-card {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.contact-card h2 {
    font-size: 2.5rem;
    font-weight: 900;
    margin-bottom: 10px;
}

.contact-form {
    margin-top: 40px;
    text-align: left;
}

.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 15px;
    border: 2px solid var(--border);
    border-radius: 10px;
    font-family: inherit;
    font-size: 1rem;
    background: #fff;
    color: #000;
}

.btn-dark {
    background: var(--dark);
    color: var(--white);
    border: none;
    padding: 1.2rem;
    border-radius: 10px;
    font-weight: 800;
    font-size: 1.1rem;
    cursor: pointer;
    width: 100%;
    transition: 0.3s;
    margin-top: 10px;
    position: relative;
    z-index: 5;
}

.btn-dark:hover {
    background: var(--primary);
    color: var(--dark);
}

/* --- PORTEFØLJE / FOTO-BUNKE --- */
.portfolio-section {
    padding: 90px 0;
    background: #fff;
}

.photo-stack-wrap {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 30px 0 10px;
}

.photo-stack {
    position: relative;
    width: 100%;
    max-width: 500px;
    aspect-ratio: 1 / 1;
    margin: 0 auto;
}

.photo-card {
    position: absolute;
    top: 50%;
    left: 50%;
    width: min(420px, 85vw);
    aspect-ratio: 1 / 1;
    background: #ffffff;
    padding: 10px;
    border-radius: 14px;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.16);
    border: 1px solid rgba(0, 0, 0, 0.08);
    transform-origin: center center;
    transition:
        transform 0.9s ease,
        opacity 0.9s ease,
        box-shadow 0.9s ease;
    overflow: hidden;
}

.photo-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 10px;
}

/* Øverste kort */
.photo-card.pos-0 {
    z-index: 5;
    opacity: 1;
    transform: translate(-50%, -50%) rotate(-2deg) scale(1);
    box-shadow: 0 22px 48px rgba(0, 0, 0, 0.2);
}

/* Kort nr 2 */
.photo-card.pos-1 {
    z-index: 4;
    opacity: 1;
    transform: translate(-50%, -50%) rotate(3deg) translate(14px, 8px) scale(0.98);
}

/* Kort nr 3 */
.photo-card.pos-2 {
    z-index: 3;
    opacity: 1;
    transform: translate(-50%, -50%) rotate(-4deg) translate(-12px, 14px) scale(0.96);
}

/* Kort nr 4 */
.photo-card.pos-3 {
    z-index: 2;
    opacity: 0.9;
    transform: translate(-50%, -50%) rotate(5deg) translate(10px, 20px) scale(0.94);
}

/* Kort nr 5 */
.photo-card.pos-4 {
    z-index: 1;
    opacity: 0.85;
    transform: translate(-50%, -50%) rotate(-5deg) translate(-8px, 24px) scale(0.92);
}

/* Kort som flyttes */
.photo-card.moving-out {
    z-index: 6;
    transform: translate(-50%, -56%) rotate(8deg) scale(1.03);
    box-shadow: 0 28px 60px rgba(0, 0, 0, 0.24);
}

@media (max-width: 768px) {
    .portfolio-section {
        padding: 70px 0;
    }

    .photo-stack {
        width: 100%;
        max-width: 320px;
        aspect-ratio: 1 / 1;
        margin: 0 auto;
    }

    .photo-card {
        width: 100%;
        aspect-ratio: 1 / 1;
        padding: 8px;
        border-radius: 12px;
    }

    .photo-card img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        border-radius: 8px;
    }

    .photo-card.pos-0 {
        transform: translate(-50%, -50%) rotate(-2deg) scale(1);
    }

    .photo-card.pos-1 {
        transform: translate(-50%, -50%) rotate(3deg) translate(8px, 6px) scale(0.985);
    }

    .photo-card.pos-2 {
        transform: translate(-50%, -50%) rotate(-4deg) translate(-7px, 10px) scale(0.97);
    }

    .photo-card.pos-3 {
        transform: translate(-50%, -50%) rotate(5deg) translate(6px, 14px) scale(0.955);
    }

    .photo-card.pos-4 {
        transform: translate(-50%, -50%) rotate(-5deg) translate(-5px, 18px) scale(0.94);
    }

    .photo-card.moving-out {
        transform: translate(-50%, -55%) rotate(7deg) scale(1.02);
    }
}

/* --- FOOTER --- */
.site-footer {
    background: #000;
    color: #7f8c8d;
    padding: 60px 0 30px;
}

.footer-bottom {
    border-top: 1px solid #2d3436;
    padding-top: 30px;
    text-align: center;
    font-size: 0.8rem;
}

/* --- MODAL --- */
.modal {
    display: none;
    position: fixed;
    z-index: 99999;
    inset: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(6px);
    justify-content: center;
    align-items: center;
    pointer-events: none;
}

.modal.show {
    display: flex;
    pointer-events: auto;
}

.modal-content {
    background: white;
    padding: 30px;
    border-radius: 16px;
    width: 90%;
    max-width: 420px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.35);
    position: relative;
    animation: modalFade 0.25s ease;
}

@keyframes modalFade {
    from {
        transform: translateY(-20px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.close-modal {
    position: absolute;
    right: 20px;
    top: 15px;
    font-size: 24px;
    cursor: pointer;
    color: #666;
    line-height: 1;
}

.modal h2 {
    margin-bottom: 10px;
    color: #333;
}

.modal p {
    margin-bottom: 20px;
    color: #666;
    font-size: 0.9rem;
}

/* --- EKSTRA INNHOLD --- */
.bn2-promo {
    background: linear-gradient(135deg, #ffffff 0%, #f3f3f3 100%);
    border-left: 5px solid #ffcc00;
    padding: 50px !important;
    margin: 40px 0;
}

.badge {
    background: #ffcc00;
    color: #000;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 800;
    text-transform: uppercase;
    display: inline-block;
    margin-bottom: 15px;
}

.feature-list {
    list-style: none;
    padding: 0;
    margin: 25px 0;
}

.feature-list li {
    margin-bottom: 10px;
    display: flex;
    align-items: center;
}

.feature-list li::before {
    content: "✓";
    color: #27ae60;
    font-weight: bold;
    margin-right: 10px;
}

.machine-graphic {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: center;
    align-content: center;
    height: 100%;
}

.sticker-tag {
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    font-weight: bold;
    transform: rotate(-3deg);
}

.sticker-tag:nth-child(2) {
    transform: rotate(5deg);
    background: #ffcc00;
}

/* --- RESPONSIVITET TABLET --- */
@media (max-width: 900px) {
    .configurator-grid {
        grid-template-columns: 1fr;
    }

    .hero-content h1 {
        font-size: 2.8rem;
    }

    .grid-2 {
        grid-template-columns: 1fr;
    }
}

/* --- MOBILOPTIMALISERING --- */
@media (max-width: 768px) {
    .configurator-grid {
        display: flex !important;
        flex-direction: column !important;
        padding: 20px !important;
        gap: 15px !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    .preview-column {
        order: -1;
        width: 100% !important;
        padding: 0 !important;
        margin: 0 0 10px 0 !important;
    }

    .preview-window {
        height: 220px !important;
        width: 100% !important;
        display: flex !important;
        flex-direction: column !important;
        justify-content: center !important;
        align-items: center !important;
        position: relative;
        overflow: hidden;
        background: white !important;
        border-radius: 15px !important;
        border: 1px solid #ddd !important;
    }

    .text-line-output {
        font-size: 38px !important;
        line-height: 0.95 !important;
    }

    .text-stack {
        gap: 5px;
    }

    .card {
        width: 100% !important;
        padding: 20px !important;
        border-radius: 15px !important;
        border: 1px solid #ddd !important;
        box-shadow: none !important;
        margin: 0 !important;
        box-sizing: border-box !important;
    }

    .controls > .card:first-of-type,
    .step,
    .step-number {
        display: none !important;
    }
    .input-row {
        display: flex !important;
        gap: 10px;
        align-items: center;
        margin-bottom: 12px;
    }

    .text-input {
        flex-grow: 1;
        height: 48px;
        border-radius: 10px;
        border: 1px solid #ccc;
        padding: 0 15px;
        font-size: 16px;
    }

    .remove-line {
        width: 45px !important;
        height: 45px !important;
        min-width: 45px;
        border-radius: 50% !important;
        background: #ff8a8a !important;
        display: flex;
        align-items: center;
        justify-content: center;
        border: none;
        padding: 0;
    }

    .add-btn {
        background: #27ae60 !important;
        color: white !important;
        border-radius: 20px !important;
        padding: 8px 18px !important;
        font-size: 14px !important;
        font-weight: 700 !important;
    }

    .color-options {
        display: flex !important;
        flex-wrap: wrap !important;
        gap: 12px !important;
        justify-content: flex-start !important;
    }

    .color-btn {
        width: 42px !important;
        height: 42px !important;
        border-radius: 50% !important;
        border: 1px solid #ddd !important;
        flex-shrink: 0;
    }

    input[type="range"] {
        width: 100% !important;
        height: 10px;
        cursor: pointer;
    }

    .price-card {
        width: 100% !important;
        padding: 0 !important;
        margin: 5px 0 0 0 !important;
        background: transparent !important;
        box-shadow: none !important;
        display: block !important;
        position: relative !important;
        z-index: 20 !important;
    }

    .grid-footer {
        grid-column: 1 / -1;
        margin-top: 20px;
        position: relative;
        z-index: 20;
    }

    #submitDesignBtn,
    .buy-button-full,
    .buy-button {
        width: 100% !important;
        display: block !important;
        min-height: 60px !important;
        background-color: #ffcc00 !important;
        color: #000000 !important;
        border: none !important;
        border-radius: 12px !important;
        font-size: 1.2rem !important;
        font-weight: 900 !important;
        text-transform: none !important;
        cursor: pointer !important;
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15) !important;
        margin-top: 20px !important;
        padding: 0 20px !important;
        position: relative !important;
        z-index: 30 !important;
        pointer-events: auto !important;
    }

    .site-header {
        position: sticky;
        top: 0;
        z-index: 2000;
        padding: 10px 0 !important;
    }

    .logo img {
        height: 35px !important;
    }

    .main-nav {
        display: none;
    }
}

.hero-home {
    background-size:300%;
    background-repeat: no-repeat;
    background-position: center center;
    padding: 50px 20px 11px;
}
/* --- FARGE & BREDDE KORT --- */
.style-card {
    background: #ffffff !important;
    border: 1px solid #d9d9d9 !important;
    border-radius: 18px !important;
    padding: 18px 18px 16px 18px !important;
    box-shadow: none !important;
}

.style-card h3 {
    font-family: 'Inter', sans-serif;
    font-size: 1.05rem;
    font-weight: 600;
    text-transform: none;
    letter-spacing: 0;
    color: #111;
    margin-bottom: 14px;
}

.style-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    flex-wrap: wrap;
}

.color-picker-group {
    display: flex;
    align-items: flex-start;
    gap: 14px;
}

.color-choice {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    min-width: 32px;
}

.color-choice span {
    font-family: 'Inter', sans-serif;
    font-size: 0.72rem;
    color: #222;
    line-height: 1;
}

/* Fargeknapper */
.style-card .color-btn,
.style-card .color-picker-small {
    width: 34px !important;
    height: 34px !important;
    border-radius: 50% !important;
    padding: 0 !important;
    margin: 0 !important;
    flex-shrink: 0;
    appearance: none;
    -webkit-appearance: none;
    
}

.style-card .color-btn {
    border: 2px solid #cfcfcf !important;
    background: #000;
    cursor: pointer;
    outline: none;
    box-shadow: none;
    transform: none !important;
}

.style-card .white-btn {
    background: #f5f5f5 !important;
    border: 2px solid #cfcfcf !important;
}

.style-card .color-btn.active {
    outline: none !important;
    border: 3px solid #111 !important;
    transform: none !important;
}

.style-card .color-picker-small {
    border: 2px solid #cfcfcf !important;
    background: none;
    cursor: pointer;
    overflow: hidden;
}

/* Slider capsule */
.slider-box {
    display: flex;
    align-items: center;
    gap: 12px;
    background: #f7f7f7;
    border: 2px solid #d7d7d7;
    border-radius: 16px;
    padding: 8px 12px;
    min-width: 190px;
}

.slider-box label {
    font-family: 'Inter', sans-serif;
    font-size: 0.72rem;
    color: #222;
    white-space: nowrap;
    margin: 0;
}

.slider-box .slider,
.slider-box input[type="range"] {
    width: 110px;
    margin: 0;
    accent-color: #4a80f0;
    cursor: pointer;
}

/* Fjern gammel spacing på denne delen */
.style-card .input-group {
    margin: 0;
}

/* Mobil */
@media (max-width: 768px) {
    .style-row {
        align-items: flex-start;
        gap: 14px;
    }

    .slider-box {
        width: 100%;
        min-width: unset;
        justify-content: space-between;
    }

    .slider-box .slider,
    .slider-box input[type="range"] {
        width: 100%;
        max-width: 140px;
    }
}

@media (max-width: 768px) {

    /* skjul de små taggene */
    .sticker-tag {
        display: none;
    }

    /* skjul punktlisten */
    .feature-list {
        display: none;
    }

    /* litt mindre padding */
    .bn2-promo {
        padding: 30px !important;
        margin: 20px ;
        text-align: center;
    }

    /* mer kompakt tekst */
    .promo-text p {
        font-size: 0.95rem;
        max-width: 320px;
        margin: 0 auto 20px auto;
    }

    /* sentrer knapp */
    .promo-text .btn-dark {
        max-width: 260px;
        margin: 0 auto;
    }

}


@media (min-width: 901px) {

    .container {
        max-width: 1180px;
    }

    .designer-section {
        padding: 70px 0 90px;
    }

    .section-header {
        margin-bottom: 36px;
    }

    .section-header h2 {
        font-size: 3rem;
        margin-bottom: 8px;
    }

    .section-header p {
        font-size: 1.05rem;
        color: #555;
    }

    .configurator-grid {
        display: grid;
        grid-template-columns: 320px 1fr;
        gap: 28px 36px;
        align-items: start;
    }

    .controls {
        display: flex;
        flex-direction: column;
        gap: 16px;
    }

    .controls .card {
        margin-bottom: 0;
    }

    .card {
        border-radius: 18px;
        padding: 20px;
        box-shadow: none;
        border: 1px solid #d8d8d8;
    }

    .preview-column {
        width: 100%;
    }

    .preview-window {
        height: 450px;
        border-radius: 20px;
        border: 1px solid #d8d8d8;
        box-shadow: none;
    }

    .text-line-output {
        font-size: 58px !important;
        line-height: 0.95 !important;
    }

    .ruler-h {
        bottom: 18px;
    }

    .grid-footer {
        grid-column: 2 / 3;
        width: 100%;
        margin-top: 8px;
    }

    .grid-footer p {
        margin-bottom: 8px !important;
        font-size: 0.8rem !important;
        color: #666;
        text-align: center;
    }

    #submitDesignBtn,
    .buy-button-full {
        width: 100%;
        min-height: 56px;
        border-radius: 14px;
        font-size: 1.05rem;
        font-weight: 900;
        box-shadow: none;
        border: 1px solid #222;
    }

    #textInputsSection .title-row {
        margin-bottom: 14px;
    }

    #textInputsSection h3 {
        font-size: 0.95rem;
    }

    .input-row {
        display: flex;
        align-items: center;
        gap: 10px;
        margin-bottom: 10px;
    }

    .input-row .text-input {
        margin-bottom: 0;
        height: 46px;
    }

    .remove-line {
        width: 34px;
        min-width: 34px;
        height: 34px;
        border-radius: 8px;
        padding: 0;
    }

    .add-btn {
        font-size: 0.75rem;
        padding: 8px 12px;
        border-radius: 8px;
    }

    /* Farge & bredde mer lik mobil */
    .style-card {
        padding: 18px !important;
        border-radius: 18px !important;
    }

    .style-card h3 {
        font-size: 0.95rem;
        margin-bottom: 14px;
    }

    .style-row {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        gap: 14px;
    }

    .color-picker-group {
        display: flex;
        gap: 16px;
        width: 100%;
    }

    .color-choice {
        min-width: 42px;
        gap: 6px;
    }

    .color-choice span {
        font-size: 0.72rem;
    }

    .style-card .color-btn,
    .style-card .color-picker-small {
        width: 34px !important;
        height: 34px !important;
    }

    .slider-box {
        width: 100%;
        min-width: unset;
        justify-content: space-between;
        padding: 10px 14px;
        border-radius: 16px;
    }

    .slider-box label {
        font-size: 0.75rem;
    }

    .slider-box .slider,
    .slider-box input[type="range"] {
        width: 150px;
        max-width: 150px;
    }
}

.mobile-cta {
position:fixed;
bottom:0;
left:0;
width:100%;
background:#ffcc00;
color:#000;
text-align:center;
padding:16px;
font-weight:800;
z-index:9999;
}



@media(min-width:900px){
.mobile-cta{
display:none;
}
}