/* Vue.js v-cloak: elrejti a nyers template kódot amíg a JS inicializálódik */
[v-cloak] {
    display: none !important;
}

:root {
    /* BRAND COLORS */
    --brand-orange: #F9B233;
    --brand-dark: #1E1F21;
    --brand-gray: #6b7280;

    --primary: var(--brand-orange);
    --text-main: var(--brand-dark);

    --bg-page: #f4f4f5;
    --bg-card: #ffffff;
    --border: #e4e4e7;
    --danger: #ef4444;
    --badge-green: #6EE7B7;
}

/* FŐ KONTÉNER */
.cpp-wrapper {
    font-family: 'Inter', sans-serif;
    color: var(--text-main);
    padding: 40px 0;
    box-sizing: border-box;
    background-color: var(--bg-page);
    position: relative;
    overflow-x: hidden;

    /* Full-width background using pseudo-element */
}

.cpp-wrapper::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    right: 50%;
    bottom: 0;
    margin-left: -50vw;
    margin-right: -50vw;
    background-color: var(--bg-page);
    z-index: -1;
}

.cpp-container {
    max-width: 1280px;
    width: 100%;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 30px;
    box-sizing: border-box;
}

/* STICKY ÖSSZEGZÉS */
.sticky-summary {
    position: sticky !important;
    top: 40px !important;
    /* Távolság a sticky menütől */
    align-self: flex-start;
}

/* RESZPONZÍV (Mobil) */
@media (max-width: 1000px) {
    .cpp-container {
        grid-template-columns: 1fr;
    }

    /* Mobilon kikapcsoljuk a ragadást */
    .sticky-summary {
        position: static !important;
    }
}

/* KÁRTYÁK */
.cpp-card {
    background: var(--bg-card);
    border-radius: 8px;
    padding: 25px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    margin-bottom: 20px;
    border: 1px solid transparent;
}

.cpp-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid #f0f0f0;
    padding-bottom: 15px;
    margin-bottom: 20px;
}

.cpp-card-title {
    font-size: 1.1rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0;
    color: var(--brand-dark);
}

.cpp-step-number {
    background: var(--primary);
    color: #1E1F21;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    font-weight: 700;
}

/* INPUTOK */
.cpp-input-row {
    display: flex;
    gap: 20px;
    margin-bottom: 15px;
}

.cpp-input-group {
    flex: 1;
}

.cpp-wrapper label {
    display: block;
    font-weight: 700;
    font-size: 0.85rem;
    margin-bottom: 6px;
    color: var(--brand-dark);
}

.required-star {
    color: var(--danger);
    margin-left: 2px;
}

.cpp-wrapper input[type="text"],
.cpp-wrapper input[type="number"],
.cpp-wrapper input[type="email"],
.cpp-wrapper input[type="tel"],
.cpp-wrapper select,
.cpp-wrapper textarea {
    width: 100%;
    padding: 12px;
    border: 2px solid var(--border);
    border-radius: 6px;
    font-size: 1rem;
    box-sizing: border-box;
    background: #fafafa;
    transition: 0.2s;
    color: var(--brand-dark);
    font-weight: 500;
    font-family: inherit;
}

.cpp-wrapper input:focus,
.cpp-wrapper select:focus,
.cpp-wrapper textarea:focus {
    outline: none;
    border-color: var(--primary);
    background: #fff;
}

.cpp-wrapper textarea {
    resize: vertical;
    min-height: 80px;
}

/* GRID VÁLASZTÓK */
.grid-options {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 15px;
}

.option-card {
    border: 2px solid var(--border);
    border-radius: 8px;
    padding: 15px;
    cursor: pointer;
    transition: 0.2s;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    height: 100%;
    box-sizing: border-box;
    background: #fff;
    overflow: hidden;
}

.option-card:hover {
    border-color: #ddd;
    transform: translateY(-2px);
}

/* OPTION CARD ACTIVE */
.option-card.active {
    background-color: #fff;
    border: 2px solid var(--brand-orange);
    box-shadow: none;
    color: var(--brand-dark);
}

.option-card.active .option-icon {
    color: var(--brand-orange);
}

.option-card.disabled {
    opacity: 0.4;
    filter: grayscale(1);
    cursor: not-allowed;
    background: #f4f4f5;
    pointer-events: none;
}

/* KÉPEK */
.option-img-container {
    width: 100%;
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 10px;
    overflow: hidden;
    border-radius: 4px;
    background: #fff;
}

.option-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.option-icon {
    font-size: 2rem;
    color: var(--brand-dark);
    margin-bottom: 15px;
    transition: color 0.2s;
}

.option-name {
    font-weight: 800;
    margin-bottom: 8px;
    color: var(--brand-dark);
    line-height: 1.2;
    font-size: 0.95rem;
}

.cpp-material-description {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 14px 16px;
    margin-top: 16px;
    font-size: 0.9rem;
    color: #334155;
    line-height: 1.5;
}

.cpp-material-description i {
    font-size: 1.2rem;
    color: #64748b;
    flex-shrink: 0;
    margin-top: 1px;
}

.cpp-order-only-info {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    border-radius: 8px;
    padding: 12px 16px;
    margin-bottom: 12px;
    font-size: 0.85rem;
    color: #1e40af;
}

.cpp-order-only-info i {
    font-size: 1.2rem;
    flex-shrink: 0;
}

.cpp-order-only-warning {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #fefce8;
    border: 1px solid #fde047;
    border-radius: 8px;
    padding: 10px 14px;
    margin-bottom: 12px;
    font-size: 0.85rem;
    color: #92400e;
}

.cpp-order-only-warning i {
    font-size: 1.2rem;
    color: #f59e0b;
    flex-shrink: 0;
}

.radio-item.disabled {
    opacity: 0.45;
    cursor: not-allowed;
    pointer-events: none;
}

.cpp-order-only-badge {
    display: inline-block;
    background: #f97316;
    color: #fff;
    font-size: 0.65rem;
    font-weight: 600;
    line-height: 1;
    padding: 3px 8px;
    border-radius: 9999px;
    vertical-align: middle;
    margin-left: 6px;
    white-space: nowrap;
}

.option-desc {
    font-size: 0.8rem;
    color: #666;
    flex-grow: 1;
    line-height: 1.4;
    margin-bottom: 10px;
}

.option-price {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--brand-dark);
    margin-top: auto;
    padding-top: 10px;
    border-top: 1px dashed #ddd;
    width: 100%;
}

.badge-popular {
    position: absolute;
    top: 0;
    right: 0;
    background: var(--badge-green);
    color: #064e3b;
    font-size: 0.65rem;
    font-weight: 800;
    padding: 4px 8px;
    border-bottom-left-radius: 8px;
    border-top-right-radius: 6px;
    z-index: 2;
}

/* VIZUÁLIS VÁSZON */
.preview-box {
    height: 320px;
    background: #e4e4e7;
    border-radius: 8px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
    background-image: linear-gradient(#d4d4d8 1px, transparent 1px), linear-gradient(90deg, #d4d4d8 1px, transparent 1px);
    background-size: 40px 40px;
}

.molino-visual {
    background: var(--brand-dark);
    box-shadow: 0 15px 25px -5px rgba(0, 0, 0, 0.3);
    transition: all 0.5s;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--brand-orange);
    font-weight: 800;
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.ringli-dot {
    position: absolute;
    background: #d4d4d8;
    border: 1px solid #71717a;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    z-index: 10;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

.tunnel-lines {
    position: absolute;
    width: 100%;
    height: 100%;
    border-top: 2px dashed rgba(255, 255, 255, 0.4);
    border-bottom: 2px dashed rgba(255, 255, 255, 0.4);
    box-sizing: border-box;
}

.angel-tape-border {
    position: absolute;
    width: 100%;
    height: 100%;
    border: 6px solid rgba(255, 255, 255, 0.2);
    box-sizing: border-box;
}

/* UPLOAD ZONE */
.file-upload-zone {
    border: 2px dashed var(--border);
    border-radius: 8px;
    padding: 30px;
    text-align: center;
    cursor: pointer;
    transition: 0.2s;
    background: #fafafa;
    margin-top: 15px;
    grid-column: 1 / -1;
}

.file-upload-zone:hover {
    border-color: var(--primary);
    background: #fffbf2;
}

.file-upload-zone.has-file {
    border-color: #10b981;
    background: #ecfdf5;
}

.upload-icon {
    font-size: 2rem;
    color: #a1a1aa;
    margin-bottom: 10px;
}

.upload-text {
    font-weight: 600;
    color: var(--brand-dark);
}

.upload-hint {
    font-size: 0.8rem;
    color: #666;
    margin-top: 5px;
}

.file-list {
    margin-top: 10px;
    text-align: left;
}

.file-item {
    font-size: 0.85rem;
    background: #fff;
    padding: 5px 10px;
    border: 1px solid #eee;
    border-radius: 4px;
    margin-bottom: 5px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.remove-file {
    color: var(--danger);
    cursor: pointer;
    font-weight: bold;
}

/* RADIO LISTA */
.radio-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.radio-item {
    display: flex;
    align-items: center;
    padding: 12px;
    border: 2px solid var(--border);
    border-radius: 8px;
    cursor: pointer;
    transition: 0.2s;
}

.radio-item:hover {
    background: #fafafa;
}

.radio-item.active {
    background-color: #fff;
    border-color: var(--brand-orange);
    box-shadow: none;
    color: var(--brand-dark);
}

.radio-item.active .radio-circle {
    background-color: var(--brand-orange);
    border: none;
    width: 22px;
    height: 22px;
}

.radio-item.active .radio-circle::after {
    display: none;
}

.radio-circle {
    width: 18px;
    height: 18px;
    border: 2px solid #a1a1aa;
    border-radius: 50%;
    margin-right: 12px;
    position: relative;
}

/* --- ÖSSZEGZÉS SÁV (STICKY JAVÍTVA) --- */
/* --- ÖSSZEGZÉS SÁV (STICKY JAVÍTVA) --- */
.sticky-summary {
    position: -webkit-sticky;
    position: sticky;
    top: 40px;
    z-index: 99;
    height: auto;
    max-height: calc(100vh - 80px);
    /* Vieport - margins */
    display: flex;
    flex-direction: column;
    overflow: hidden;
    /* Hide overflow of the card itself */
}

.summary-scrollable-content {
    flex: 1;
    overflow-y: auto;
    padding-right: 20px;
    /* Space for scrollbar */
    min-height: 0;
    /* Important for flex child scrolling */
    /* margin-right: -5px; Removed to equalize margins */
    padding-bottom: 10px;
}

/* Custom scrollbar for webkit */
.summary-scrollable-content::-webkit-scrollbar {
    width: 6px;
}

.summary-scrollable-content::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.summary-scrollable-content::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 3px;
}

.summary-scrollable-content::-webkit-scrollbar-thumb:hover {
    background: #aaa;
}

.summary-fixed-bottom {
    flex: 0 0 auto;
    background: #fff;
    z-index: 10;
    border-top: 1px solid #eee;
    padding-top: 15px;
    margin-top: 0;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.02);
    /* Subtle shadow separator */
}

/* TÖBBI STÍLUS */
.summary-param-block,
.summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    padding-bottom: 12px;
    font-size: 0.95rem;
    color: #52525b;
    border-bottom: 1px solid #eee;
}

.summary-param-block:last-child {
    border-bottom: none;
}

.param-label {
    font-weight: 700;
    color: var(--brand-dark);
}

.param-value {
    text-align: right;
    color: #52525b;
}

.param-value.highlight {
    color: #52525b;
    font-weight: 500;
}

.summary-row span:first-child {
    font-weight: 500;
    color: #52525b;
}

.summary-row span:last-child {
    text-align: right;
    font-weight: 700;
    color: var(--brand-dark);
    min-width: 100px;
}

.summary-row.discount-row {
    color: var(--brand-dark);
}

.summary-row.discount-row span {
    font-weight: 800 !important;
    color: #374151 !important;
}

.summary-separator {
    border-top: 1px dashed #d4d4d8;
    margin: 20px 0;
}

.size-block {
    border-top: 1px solid #eee;
    padding-top: 12px;
}

.total-price-block {
    text-align: right;
    margin-top: 20px;
    background: #fafafa;
    padding: 15px;
    border-radius: 8px;
    border: 1px solid #eee;
}

.net-price {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--brand-dark);
    line-height: 1;
    letter-spacing: -0.5px;
}

.gross-price {
    font-size: 0.85rem;
    color: #71717a;
    margin-top: 4px;
}

.btn-order {
    width: 100%;
    padding: 18px;
    background: var(--primary);
    color: #1E1F21;
    border: none;
    border-radius: 6px;
    font-size: 1.1rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: 0.2s;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-top: 15px;
}

.btn-order:hover {
    background: #fbbf24;
    transform: translateY(-1px);
}

.btn-order:disabled {
    background: #d4d4d8;
    color: #a1a1aa;
    cursor: not-allowed;
}

.section-subtitle {
    margin: 20px 0 10px 0;
    font-size: 1rem;
    color: var(--brand-dark);
    border-bottom: 1px solid #eee;
    padding-bottom: 5px;
    font-weight: 700;
}

.checkbox-wrapper {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
    cursor: pointer;
    font-size: 0.9rem;
}

.cpp-wrapper input[type="checkbox"],
.cpp-wrapper input[type="radio"] {
    width: 18px;
    height: 18px;
    accent-color: auto;
}

.alert-box {
    background: #fff7ed;
    border-left: 4px solid var(--brand-orange);
    padding: 10px;
    font-size: 0.85rem;
    color: #9a3412;
    margin-top: 10px;
}

.discount-banner {
    background: var(--brand-dark);
    color: var(--primary);
    padding: 15px;
    border-radius: 6px;
    margin-top: 15px;
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 0.9rem;
}

.discount-progress {
    height: 6px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 3px;
    margin-top: 8px;
    overflow: hidden;
    flex: 1;
}

.discount-bar {
    height: 100%;
    background: var(--primary);
    transition: width 0.3s;
}

/* VÉSZMEGOLDÁS: Ha a sablon tiltja a sticky-t */
body,
html {
    overflow-x: hidden !important;
    overflow-y: visible !important;
}

.site-content,
#content,
.elementor-section-wrap {
    overflow: visible !important;
}

/* === SZÓRÓLAP KALKULÁTOR === */
.flyer-size-presets {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 15px;
}

.flyer-preset-btn {
    padding: 10px 16px;
    border: 2px solid var(--border);
    border-radius: 8px;
    background: #fff;
    cursor: pointer;
    font-family: inherit;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--brand-dark);
    transition: all 0.2s;
    text-align: center;
    line-height: 1.3;
}

.flyer-preset-btn:hover {
    border-color: #bbb;
    transform: translateY(-1px);
}

.flyer-preset-btn.active {
    border-color: var(--brand-orange);
    background: #fffbf2;
    box-shadow: 0 0 0 1px var(--brand-orange);
}

.flyer-preset-btn small {
    font-weight: 500;
    color: #666;
    font-size: 0.75rem;
}

@media (max-width: 700px) {
    .cpp-card div[style*="grid-template-columns: 1fr 1fr"] {
        grid-template-columns: 1fr !important;
    }
}

/* Custom Select (Select2-proof) – MINDEN kalkulátorra */
.cpp-wrapper .cpp-custom-select {
    position: relative !important;
    cursor: pointer !important;
    user-select: none;
    -webkit-user-select: none;
}

.cpp-wrapper .cpp-custom-select-value {
    width: 100% !important;
    padding: 12px 14px !important;
    border: 2px solid var(--border) !important;
    border-radius: 6px !important;
    font-size: 1rem !important;
    font-weight: 600 !important;
    background: #fafafa !important;
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    transition: border-color 0.2s;
    box-sizing: border-box !important;
    color: var(--brand-dark) !important;
    line-height: 1.4 !important;
    min-height: 46px !important;
}

.cpp-wrapper .cpp-custom-select-value:hover {
    border-color: #bbb !important;
}

.cpp-wrapper .cpp-select-arrow {
    font-size: 0.9rem;
    color: #999;
    transition: transform 0.2s;
    display: inline-block !important;
}

.cpp-wrapper .cpp-select-arrow.open {
    transform: rotate(180deg);
}

.cpp-wrapper .cpp-custom-select-options {
    position: absolute !important;
    top: 100% !important;
    left: 0 !important;
    right: 0 !important;
    z-index: 9999 !important;
    background: #fff !important;
    border: 2px solid var(--border) !important;
    border-top: none !important;
    border-radius: 0 0 6px 6px !important;
    max-height: 250px !important;
    overflow-y: auto !important;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15) !important;
}

.cpp-wrapper .cpp-custom-select-option {
    padding: 10px 14px !important;
    font-size: 0.95rem !important;
    font-weight: 600 !important;
    transition: background 0.15s;
    cursor: pointer !important;
    color: var(--brand-dark) !important;
    background: #fff !important;
}

.cpp-wrapper .cpp-custom-select-option:hover {
    background: #f5f5f5 !important;
}

.cpp-wrapper .cpp-custom-select-option.active {
    background: #fffbf2 !important;
    color: var(--brand-orange) !important;
}

/* Ensure sticky-summary doesn't clip the dropdown */
.sticky-summary {
    overflow: visible !important;
}

/* Help Buttons */
.cpp-help-btn {
    text-decoration: none;
    background: #fff;
    border: 1px solid #d1d5db;
    color: #374151;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.5s;
    display: inline-block;
}

.cpp-help-btn:hover {
    background: var(--brand-dark);
    color: #ffffff;
    border-color: var(--brand-dark);
    text-decoration: none !important;
}

/* =============================================
   HAJTOTT SZÓRÓLAP PREVIEW
   ============================================= */
/* Override: a hajtott szórólap preview-nak több hely kell (2 diagram + legend) */
.preview-box.ff-preview-box {
    height: auto;
    min-height: 200px;
    overflow: visible;
    flex-direction: column;
    padding: 20px 15px;
}

.ff-preview-row {
    display: flex;
    justify-content: center;
    gap: 25px;
    flex-wrap: wrap;
    align-items: flex-start;
}

.ff-preview-info {
    text-align: center;
    margin-top: 10px;
}

.ff-preview-section {
    text-align: center;
    margin-bottom: 5px;
}

.ff-preview-label {
    font-weight: 600;
    font-size: 0.85rem;
    color: #71717a;
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.ff-preview-sheet {
    display: inline-grid;
    border: 2px solid #a1a1aa;
    border-radius: 3px;
    background: #ffffff;
    position: relative;
    box-shadow: 0 1px 4px rgba(0,0,0,0.08);
}

.ff-preview-panel {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    border-left: 2px dashed #F9B233;
    background: repeating-linear-gradient(
        45deg,
        transparent,
        transparent 8px,
        rgba(249,178,51,0.04) 8px,
        rgba(249,178,51,0.04) 16px
    );
}

/* Első panel minden sorban: nincs bal szélén hajtásvonal */
.ff-cols-2 > .ff-preview-panel:nth-child(2n+1),
.ff-cols-3 > .ff-preview-panel:nth-child(3n+1),
.ff-cols-4 > .ff-preview-panel:nth-child(4n+1),
.ff-cols-5 > .ff-preview-panel:nth-child(5n+1) {
    border-left: none;
}

/* 2×2 grid (8k kereszt hajtás) - vízszintes hajtásvonal a 2. sor tetején */
.ff-rows-2 > .ff-preview-panel:nth-child(n+3) {
    border-top: 2px dashed #F9B233;
}

.ff-panel-num {
    font-size: 1.1rem;
    font-weight: 800;
    color: #F9B233;
    background: rgba(249,178,51,0.12);
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.ff-panel-highlight {
    background: rgba(249,178,51,0.08);
}

.ff-panel-highlight .ff-panel-num {
    background: #F9B233;
    color: #fff;
}

.ff-preview-dims {
    font-size: 0.82rem;
    color: #52525b;
}

.ff-preview-legend {
    display: flex;
    justify-content: center;
    gap: 18px;
    margin-top: 12px;
    font-size: 0.72rem;
    color: #71717a;
}

.ff-legend-item {
    display: flex;
    align-items: center;
    gap: 4px;
}

.ff-legend-color {
    display: inline-block;
    width: 14px;
    height: 10px;
    border-radius: 2px;
}

.ff-legend-bleed {
    background: #e4e4e7;
    border: 1px solid #a1a1aa;
}

.ff-legend-fold {
    border-top: 2px dashed #F9B233;
    height: 0;
    width: 14px;
}

.ff-legend-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: rgba(249,178,51,0.15);
    color: #F9B233;
    font-weight: 800;
    font-size: 0.65rem;
}

/* =============================================
   EGYEDI MENNYISÉG BEVITEL
   ============================================= */
.cpp-custom-qty-btn {
    width: 100%;
    padding: 10px 14px;
    border: 2px dashed var(--border);
    border-radius: 6px;
    background: transparent;
    cursor: pointer;
    font-family: inherit;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--brand-gray);
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.cpp-custom-qty-btn:hover {
    border-color: var(--brand-orange);
    color: var(--brand-dark);
    background: #fffbf2;
}

.cpp-custom-qty-input-wrap {
    display: flex;
    align-items: center;
    gap: 0;
    border: 2px solid var(--brand-orange);
    border-radius: 6px;
    background: #fff;
    overflow: hidden;
}

.cpp-custom-qty-input {
    flex: 1;
    border: none !important;
    padding: 12px 14px !important;
    font-size: 1rem !important;
    font-weight: 700 !important;
    background: #fff !important;
    outline: none !important;
    min-width: 0;
    -moz-appearance: textfield;
}

.cpp-custom-qty-input::-webkit-outer-spin-button,
.cpp-custom-qty-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.cpp-custom-qty-unit {
    padding: 12px 14px;
    font-weight: 700;
    color: var(--brand-gray);
    background: #f4f4f5;
    font-size: 0.9rem;
    white-space: nowrap;
    border-left: 1px solid var(--border);
}

.cpp-custom-qty-back {
    background: none;
    border: none;
    cursor: pointer;
    font-family: inherit;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--brand-gray);
    padding: 8px 0 0 0;
    display: flex;
    align-items: center;
    gap: 2px;
    transition: color 0.2s;
}

.cpp-custom-qty-back:hover {
    color: var(--brand-orange);
}

/* =============================================
   PLAKÁT MÉRET PRESET GOMBOK
   ============================================= */
.cpp-preset-btn {
    padding: 10px 18px;
    border: 2px solid var(--border);
    border-radius: 8px;
    background: #fff;
    cursor: pointer;
    font-family: inherit;
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-main);
    transition: all 0.2s;
    text-align: center;
    min-width: 80px;
}

.cpp-preset-btn:hover {
    border-color: var(--brand-orange);
    background: #fffbf2;
}

.cpp-preset-btn.active {
    border-color: var(--brand-orange);
    background: var(--brand-orange);
    color: #fff;
}

.cpp-preset-btn.active small {
    opacity: 1 !important;
    color: rgba(255,255,255,0.85);
}

.cpp-transfer-link-warning {
    color: var(--danger);
    font-size: 13px;
    margin-top: 4px;
}

.cpp-input-group input.cpp-input-error {
    border-color: var(--danger);
}

.cpp-transfer-link-wrapper {
    position: relative;
    display: flex;
    align-items: stretch;
}

.cpp-transfer-link-wrapper input {
    flex: 1;
    min-width: 0;
}

.cpp-transfer-link-wrapper input:not(:last-child) {
    border-top-right-radius: 0 !important;
    border-bottom-right-radius: 0 !important;
}

.cpp-transfer-link-check {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 0 14px;
    background: var(--primary);
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    border: 2px solid var(--primary);
    border-left: none;
    border-radius: 0 6px 6px 0;
    cursor: pointer;
    white-space: nowrap;
    text-decoration: none;
    transition: filter 0.2s;
}

.cpp-transfer-link-check:hover {
    filter: brightness(0.9);
    color: #fff;
}

/* =============================================
   LIGHTBOX (anyag preview nagyítás)
   ============================================= */
.cpp-lightbox-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.cpp-lightbox {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
    cursor: default;
}

.cpp-lightbox-img {
    max-width: 90vw;
    max-height: 80vh;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.cpp-lightbox-close {
    position: absolute;
    top: -15px;
    right: -15px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: none;
    background: #fff;
    color: var(--brand-dark);
    font-size: 1.5rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    transition: transform 0.2s;
    line-height: 1;
}

.cpp-lightbox-close:hover {
    transform: scale(1.1);
}

.cpp-lightbox-caption {
    text-align: center;
    color: #fff;
    font-weight: 600;
    font-size: 0.95rem;
    margin-top: 12px;
}

.cpp-lightbox-counter {
    display: inline-block;
    margin-left: 10px;
    font-size: 0.85rem;
    font-weight: 400;
    opacity: 0.7;
}

/* Lightbox navigációs nyilak */
.cpp-lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.9);
    color: var(--brand-dark);
    font-size: 1.8rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    transition: transform 0.2s, background 0.2s;
    line-height: 1;
    z-index: 10;
}

.cpp-lightbox-nav:hover {
    transform: translateY(-50%) scale(1.1);
    background: #fff;
}

.cpp-lightbox-prev {
    left: -22px;
}

.cpp-lightbox-next {
    right: -22px;
}

@media (max-width: 700px) {
    .cpp-lightbox-prev {
        left: 8px;
    }
    .cpp-lightbox-next {
        right: 8px;
    }
}

/* Galéria kép számláló badge az anyag kártyán */
/* Anyag kártya kép zoom ikon overlay */
.cpp-material-img-wrap {
    position: relative;
    cursor: zoom-in;
}

.cpp-material-zoom-icon {
    position: absolute;
    bottom: 6px;
    right: 6px;
    background: rgba(0, 0, 0, 0.5);
    color: #fff;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    opacity: 0;
    transition: opacity 0.2s;
}

.cpp-material-img-wrap:hover .cpp-material-zoom-icon {
    opacity: 1;
}