/* ============================================================
   GOLDINKEN CLIENT PORTAL — Premium Design System (Mega Pack 7)
   ============================================================ */
html { margin-top: 0 !important; }
body { padding-top: 0 !important; margin-top: 0 !important; }
body.admin-bar { padding-top: 0 !important; margin-top: 0 !important; }
#wpadminbar { display: none !important; }
.admin-bar #wpadminbar { display: none !important; }
body.admin-bar #wpadminbar { top: -46px !important; }
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');
@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,100..1000;1,9..40,100..1000&display=swap');
@import url('https://fonts.googleapis.com/css2?family=DM+Mono:wght@400;500&display=swap');

/* ============================================================
   GOLDINKEN DESIGN TOKENS
   ============================================================ */
:root {
    /* Colors */
    --gk-primary: #f0b429;
    --gk-primary-hover: #e0a820;
    --gk-dark: #111827;
    --gk-text: #374151;
    --gk-muted: #6b7280;
    --gk-border: #e5e7eb;
    --gk-bg: #f9fafb;
    --gk-white: #ffffff;
    --gk-danger: #ef4444;
    --gk-danger-light: #fee2e2;
    --gk-success: #22c55e;
    --gk-success-light: #dcfce7;
    --gk-warning: #f0b429;
    --gk-warning-light: #fef9c3;
    /* Radius */
    --gk-radius-card: 8px;
    --gk-radius-btn: 6px;
    /* Shadows */
    --gk-shadow: 0 1px 3px rgba(0,0,0,0.1);
    --gk-shadow-md: 0 4px 12px rgba(0,0,0,0.1);
    /* Transitions */
    --gk-transition: all .15s ease;
    /* Legacy aliases */
    --gold: #f0b429;
    --gold-light: #fef3c7;
    --gold-dark: #d97706;
    --black: #111827;
    --gray-900: #1f2937;
    --gray-700: #374151;
    --gray-500: #6b7280;
    --gray-400: #9ca3af;
    --gray-300: #d1d5db;
    --gray-200: #e5e7eb;
    --gray-100: #f3f4f6;
    --gray-50: #f9fafb;
    --white: #ffffff;
    --green: #22c55e;
    --green-light: #dcfce7;
    --red: #ef4444;
    --red-light: #fee2e2;
    --blue: #3b82f6;
    --blue-light: #dbeafe;
    --radius: 8px;
    --radius-lg: 12px;
    --shadow: 0 1px 3px rgba(0,0,0,0.1);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.1);
    --shadow-lg: 0 20px 60px rgba(0,0,0,0.15);
    --transition: all .15s ease;
}

.gh-portal * { box-sizing: border-box; }
.gh-sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
/* Full width: noņem tēmas šauro konteineru un aizpilda ekrānu */
body.gh-portal-page {
	overflow-x: hidden;
}
body.gh-portal-page .gk-container--narrow {
	max-width: none !important;
	width: 100% !important;
	padding-left: 0 !important;
	padding-right: 0 !important;
}
.gh-portal {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--black);
    line-height: 1.5;
    background: #f5f5f7;
    min-height: 100vh;
    width: 100%;
    max-width: 100%;
    margin: 0;
}

/* Nav — Secondary bar, fixed below the 72px site header (injected via wp_body_open) */
.gh-portal-nav {
    background: var(--black);
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 52px;
    position: fixed;
    top: 72px; /* sits just below the fixed 72px site header */
    left: 0;
    right: 0;
    z-index: 900; /* below site header (z-index:1000) but above page content */
    box-shadow: 0 2px 8px rgba(0,0,0,0.18);
}
/* Portal page body offset: account for both fixed site header (72px) + portal nav (56px) */
body.gh-portal-page .gk-container--narrow {
    padding-top: 124px !important;
}
/* Hide the duplicate Goldinken logo — main site header is now visible */
.gh-portal-logo { display: none; }
.gh-portal-logo span { color: var(--gold); }
.gh-portal-nav-links { display: flex; gap: 2px; align-items: center; }
.gh-portal-nav-links a {
    padding: 6px 11px;
    border-radius: 8px;
    text-decoration: none;
    color: rgba(255,255,255,.65);
    font-size: 12px;
    font-weight: 500;
    transition: var(--transition);
    white-space: nowrap;
}
.gh-portal-nav-links a:hover { color: var(--white); background: rgba(255,255,255,.08); }
.gh-portal-nav-links a.active { color: var(--gold); background: rgba(240,180,41,.12); }
.gh-portal-nav-right { display: none; }
.gh-portal-user-pill { background: rgba(255,255,255,.1); color: var(--white); font-size: 12px; font-weight: 600; padding: 5px 12px; border-radius: 20px; }
.gh-portal-logout { color: rgba(255,255,255,.5); font-size: 12px; text-decoration: none; padding: 6px 10px; border-radius: 6px; transition: var(--transition); }
.gh-portal-logout:hover { color: var(--white); }
.gh-nav-burger { display: none; background: none; border: none; cursor: pointer; padding: 6px; color: var(--white); font-size: 20px; }

/* Portāla paziņojumu ikona un dropdown */
.gh-hidden { display: none !important; }
.gh-portal-notif-wrap { position: relative; }
.gh-portal-notif-btn {
    display: flex; align-items: center; gap: 4px;
    padding: 6px 11px; border: none; border-radius: 8px;
    background: transparent; color: rgba(255,255,255,.65); cursor: pointer;
    transition: var(--transition); font-size: 12px; font-weight: 500;
}
.gh-portal-notif-btn:hover { background: rgba(255,255,255,.08); color: var(--white); }
.gh-portal-notif-btn[aria-expanded="true"] { background: rgba(240,180,41,.12); color: var(--gold); }
.gh-portal-notif-icon { line-height: 1; }
.gh-portal-notif-badge {
    position: absolute; top: 2px; right: 2px; min-width: 18px; height: 18px; padding: 0 5px;
    font-size: 11px; font-weight: 700; line-height: 18px; text-align: center;
    background: var(--red); color: var(--white); border-radius: 9px; border: 2px solid var(--black);
}
.gh-portal-notif-dropdown {
    position: absolute; top: 100%; right: 0; margin-top: 8px;
    width: 360px; max-width: calc(100vw - 24px); max-height: 420px;
    background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow-lg);
    border: 1px solid var(--gray-200); overflow: hidden; z-index: 1000;
    display: flex; flex-direction: column;
}
.gh-portal-notif-dropdown[hidden] { display: none !important; }
.gh-portal-notif-header {
    display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px;
    padding: 12px 14px; border-bottom: 1px solid var(--gray-200); background: var(--gray-50);
}
.gh-portal-notif-title { font-size: 14px; font-weight: 700; color: var(--black); }
.gh-portal-notif-mark-all {
    font-size: 12px; font-weight: 600; color: var(--blue); background: none; border: none; cursor: pointer; padding: 4px 8px; border-radius: 6px;
}
.gh-portal-notif-mark-all:hover { background: var(--blue-light); color: var(--blue); }
.gh-portal-notif-list {
    overflow-y: auto; flex: 1; min-height: 120px; max-height: 340px;
}
.gh-portal-notif-loading,
.gh-portal-notif-empty { padding: 20px 14px; text-align: center; color: var(--gray-500); font-size: 13px; }
.gh-portal-notif-item { border-bottom: 1px solid var(--gray-100); }
.gh-portal-notif-item:last-child { border-bottom: none; }
.gh-portal-notif-item-inner {
    display: block; padding: 12px 14px; text-decoration: none; color: inherit; text-align: left;
    transition: background .12s ease;
}
.gh-portal-notif-item-inner:hover { background: var(--gray-50); }
.gh-portal-notif-item.gh-portal-notif-unread .gh-portal-notif-item-inner { background: rgba(59,130,246,.06); }
.gh-portal-notif-item-title { display: block; font-size: 13px; font-weight: 600; color: var(--black); margin-bottom: 2px; }
.gh-portal-notif-item-msg { display: block; font-size: 12px; color: var(--gray-600, #4b5563); margin-bottom: 4px; }
.gh-portal-notif-item-time { display: block; font-size: 11px; color: var(--gray-400); }

/* Main content container — constrained to 1200px for all pages except calculator */
.gh-portal-main { max-width: 1200px; width: 100%; margin: 0 auto; padding: 24px 24px 32px; }
/* Calculator page needs full width */
.gh-portal-main.gh-portal-main-fullwidth { max-width: 100%; }

/* Legacy nav class (backward compat) */
.gh-portal-client-name { color: var(--white); font-weight: 600; }
.gh-logout { color: rgba(255,255,255,.5) !important; }

/* Produktu grid */
.gh-products-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(380px, 1fr)); gap: 20px; }
.gh-product-card { background: #fff; border: 1px solid #e5e7eb; border-radius: 8px; padding: 20px; box-shadow: 0 1px 3px rgba(0,0,0,0.1); }
.gh-product-header { display: flex; align-items: center; gap: 8px; margin-bottom: 16px; }
.gh-product-header h3 { margin: 0; flex: 1; font-size: 16px; }
.gh-sku { background: #f3f4f6; color: #6b7280; padding: 2px 8px; border-radius: 10px; font-size: 12px; }
.gh-product-actions button { background: none; border: none; cursor: pointer; font-size: 16px; padding: 4px; opacity: .6; }
.gh-product-actions button:hover { opacity: 1; }

/* Komponenti */
.gh-component { display: flex; gap: 12px; padding: 12px; border: 1px solid #f3f4f6; border-radius: 8px; margin-bottom: 8px; }
.gh-component-preview { width: 64px; height: 64px; border: 1px solid #e5e7eb; border-radius: 6px; overflow: hidden; flex-shrink: 0; display: flex; align-items: center; justify-content: center; background: #f9fafb; }
.gh-component-preview img { width: 100%; height: 100%; object-fit: cover; }
.gh-no-preview { font-size: 28px; }
.gh-component-info { flex: 1; }
.gh-component-name { font-weight: 600; font-size: 14px; margin-bottom: 4px; }
.gh-component-meta { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 8px; }
.gh-component-actions { display: flex; gap: 6px; flex-wrap: wrap; }

/* ============================================================
   STATUS BADGES — Unified Design
   ============================================================ */
.gh-badge { padding: 3px 10px; border-radius: 12px; font-size: 11px; font-weight: 600; display: inline-block; }
.gh-badge-active, .gh-badge-success, .gh-badge-ok { background: #dcfce7; color: #166534; }
.gh-badge-warning, .gh-badge-pending { background: #fef9c3; color: #854d0e; }
.gh-badge-error, .gh-badge-danger { background: #fee2e2; color: #991b1b; }
.gh-badge-muted, .gh-badge-inactive { background: #f3f4f6; color: #6b7280; }
.gh-badge-review, .gh-badge-info { background: #dbeafe; color: #1e40af; }
.gh-badge-awaiting { background: #fef9c3; color: #854d0e; }
.gh-badge-set { background: #e0e7ff; color: #3730a3; }

/* ============================================================
   BUTTONS — 3 Types Only (Primary, Secondary, Danger)
   ============================================================ */
.gh-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 20px;
    border: 1px solid var(--gk-border);
    border-radius: var(--gk-radius-btn);
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    font-family: inherit;
    background: var(--gk-white);
    color: var(--gk-dark);
    transition: var(--gk-transition);
    text-decoration: none;
    line-height: 1.4;
}
.gh-btn:hover { background: var(--gk-bg); border-color: var(--gk-dark); }
.gh-btn:disabled { opacity: 0.5; cursor: not-allowed; }

/* Primary Button — Yellow (explicit values for reliability) */
.gh-btn-primary,
.gh-btn.gh-btn-primary,
button.gh-btn-primary,
input[type="submit"].gh-btn-primary {
    background: #f0b429;
    border-color: #f0b429;
    color: #111827;
}
.gh-btn-primary:hover,
.gh-btn.gh-btn-primary:hover,
button.gh-btn-primary:hover {
    background: #e0a820;
    border-color: #e0a820;
    color: #111827;
}

/* Secondary Button — White with dark border */
.gh-btn-secondary {
    background: var(--gk-white);
    border-color: var(--gk-dark);
    color: var(--gk-dark);
}
.gh-btn-secondary:hover { background: var(--gk-bg); }

/* Danger Button — White with red border (for delete actions) */
.gh-btn-danger {
    background: var(--gk-white);
    border-color: var(--gk-danger);
    color: var(--gk-danger);
}
.gh-btn-danger:hover { background: var(--gk-danger-light); }

/* Button sizes */
.gh-btn-sm { padding: 6px 12px; font-size: 12px; }
.gh-btn-lg { padding: 12px 24px; font-size: 15px; }

/* Outline variant (legacy, alias to secondary) */
.gh-btn-outline { background: var(--gk-white); border: 1.5px solid var(--gk-border); color: var(--gk-text); }
.gh-btn-outline:hover { border-color: var(--gk-dark); color: var(--gk-dark); }

/* ============================================================
   CARDS / SECTIONS — Unified Design
   ============================================================ */
.gh-card {
    background: var(--gk-white);
    border: 1px solid var(--gk-border);
    border-radius: var(--gk-radius-card);
    padding: 20px;
    box-shadow: var(--gk-shadow);
}
.gh-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--gk-border);
}
.gh-card-title {
    margin: 0;
    font-size: 16px;
    font-weight: 700;
    color: var(--gk-dark);
}

/* ============================================================
   TABLE ROWS — Clean Design
   ============================================================ */
.gh-table {
    width: 100%;
    border-collapse: collapse;
}
.gh-table th {
    text-align: left;
    padding: 12px 16px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--gk-muted);
    background: var(--gk-bg);
    border-bottom: 1px solid var(--gk-border);
}
.gh-table td {
    padding: 14px 16px;
    font-size: 14px;
    color: var(--gk-text);
    background: var(--gk-white);
    border-bottom: 1px solid var(--gk-border);
    vertical-align: middle;
}
.gh-table tr:hover td { background: var(--gk-bg); }
.gh-table tr:last-child td { border-bottom: none; }

/* ============================================================
   INPUTS — Unified Design
   ============================================================ */
.gh-input,
.gh-select,
.gh-textarea {
    width: 100%;
    padding: 10px 14px;
    background: var(--gk-white);
    border: 1px solid var(--gk-border);
    border-radius: var(--gk-radius-btn);
    font-size: 14px;
    font-family: inherit;
    color: var(--gk-dark);
    transition: var(--gk-transition);
}
.gh-input:focus,
.gh-select:focus,
.gh-textarea:focus {
    outline: none;
    border-color: var(--gk-primary);
    box-shadow: 0 0 0 3px rgba(240, 180, 41, 0.15);
}
.gh-input::placeholder { color: var(--gk-muted); }
.gh-label {
    display: block;
    margin-bottom: 6px;
    font-size: 13px;
    font-weight: 600;
    color: var(--gk-text);
}

/* ============================================================
   PAGE HEADERS — Unified Design
   ============================================================ */
.gh-page-header {
    margin-bottom: 24px;
}
.gh-page-title {
    margin: 0 0 8px 0;
    font-size: 24px;
    font-weight: 700;
    color: var(--gk-dark);
}
.gh-page-subtitle {
    margin: 0;
    font-size: 14px;
    color: var(--gk-muted);
}

/* Tukšs stāvoklis */
.gh-empty-state { text-align: center; padding: 60px 20px; color: #6b7280; }
.gh-empty-icon { font-size: 48px; margin-bottom: 16px; }
.gh-empty-state h3 { margin: 0 0 8px; color: #374151; }
.gh-section-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; flex-wrap: wrap; gap: 12px; }
.gh-section-header h2 { margin: 0; }

/* Modāļi */
.gh-modal-overlay { display: none; position: fixed; inset: 0; background: rgba(0,0,0,.5); z-index: 9999; align-items: center; justify-content: center; }
.gh-modal-box { background: #fff; border-radius: 12px; padding: 0; width: 90%; max-width: 600px; max-height: 90vh; overflow-y: auto; box-shadow: 0 20px 60px rgba(0,0,0,.3); }
.gh-modal-header { display: flex; align-items: center; padding: 20px 24px; border-bottom: 1px solid #e5e7eb; }
.gh-modal-header h3 { margin: 0; flex: 1; }
.gh-modal-close { background: none; border: none; font-size: 18px; cursor: pointer; color: #6b7280; }

/* Info popup (maketa priekšskatījums no bibliotēkas) — kā paraugā */
.gh-info-popup-box {
	max-width: 420px;
	border-radius: 14px;
	box-shadow: 0 10px 40px rgba(0,0,0,.18);
	overflow: hidden;
}
.gh-info-popup-title { font-size: 15px; font-weight: 700; color: #111827; }
.gh-info-popup-preview-wrap {
	min-height: 88px;
	background: #f9fafb;
	border-bottom: 1px solid #e5e7eb;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 16px 20px;
}
.gh-info-popup-preview-wrap .gh-info-popup-preview-img { max-width: 100%; max-height: 160px; object-fit: contain; border-radius: 8px; }
.gh-info-popup-placeholder-inner {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 4px;
	text-align: center;
}
.gh-info-popup-preview-wrap .gh-info-popup-placeholder-icon { font-size: 28px; display: block; color: #d1d5db; line-height: 1; }
.gh-info-popup-preview-wrap .gh-info-popup-placeholder-text { display: block; font-size: 12px; color: #9ca3af; }
.gh-info-popup-preview-wrap .gh-info-popup-placeholder-hint { display: block; font-size: 11px; color: #d1d5db; }
.gh-info-popup-placeholder { font-size: 28px; color: #d1d5db; }

/* Popup atvērts pie elementa (ne centrā) */
.gh-modal-overlay.gh-info-popup-anchored { align-items: flex-start; justify-content: flex-start; padding: 12px; }
.gh-info-popup-anchored .gh-info-popup-box { flex-shrink: 0; }
.gh-info-popup-body { padding: 16px 20px 20px; }
.gh-info-popup-body .gh-info-popup-grid { display: flex; flex-direction: column; gap: 0; margin-bottom: 0; }
.gh-info-popup-row { display: flex; justify-content: space-between; align-items: center; padding: 4px 0; border-bottom: 1px solid #f3f4f6; font-size: 13px; }
.gh-info-popup-lbl { color: #6b7280; }
.gh-info-popup-val { font-weight: 600; color: #111827; }
.gh-info-popup-section { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; color: #9ca3af; margin: 12px 0 6px; }
.gh-info-popup-history { margin-bottom: 12px; }
.gh-info-popup-hist-row { padding: 4px 0; font-size: 12px; border-bottom: 1px solid #f3f4f6; }
.gh-info-popup-hist-date { color: #6b7280; }
.gh-info-popup-hist-sep { color: #9ca3af; margin: 0 4px; }
.gh-info-popup-hist-qty { font-weight: 600; margin: 0 6px; }
.gh-info-popup-hist-status { font-size: 11px; color: #fff; background: #6b7280; border-radius: 10px; padding: 1px 7px; }
.gh-info-popup-hist-empty { font-size: 12px; color: #9ca3af; padding: 6px 0; }
.gh-info-popup-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.gh-info-popup-actions .gh-btn-primary { background: #f0b429; color: #111827; }
.gh-info-popup-actions #gh-info-popup-download { background: #fff; border: 1.5px solid #e5e7eb; color: #374151; }
.gh-info-popup-actions #gh-info-popup-download:hover { border-color: #111827; color: #111827; }

/* Piemēra modāls (izmērs uz ruļļa) — pārvietots uz body, vienmēr viewport vidū */
.gh-np-example-modal-overlay {
	position: fixed; top: 0; left: 0; right: 0; bottom: 0;
	background: rgba(0,0,0,.3); z-index: 10000;
	display: flex; align-items: center; justify-content: center;
	padding: 16px; box-sizing: border-box;
	overflow-y: auto;
	-webkit-overflow-scrolling: touch;
}
.gh-np-example-modal-box {
	position: fixed;
	top: 50%; left: 50%;
	transform: translate(-50%, -50%);
	z-index: 10001; box-shadow: 0 10px 40px rgba(0,0,0,.25);
	max-width: min(400px, calc(100vw - 32px)); width: 100%;
	max-height: min(90vh, 100%); overflow-y: auto;
	background: #fff; border-radius: 12px;
}
.gh-np-example-modal-box .gh-modal-body { padding: 16px 20px; }
.gh-np-example-modal-box .gh-np-roll-image-wrap { min-height: 80px; margin-bottom: 12px; }
.gh-np-example-modal-actions { flex-shrink: 0; }

/* Jauns produkts: preflight rezultāts zem faila */
.gh-np-preflight-result { font-size: 13px; line-height: 1.4; }
.gh-np-preflight-pending { background: #f9fafb; border-color: #e5e7eb; color: #6b7280; }
.gh-np-preflight-ok { background: #f0fdf4; border-color: #86efac; color: #166534; }
.gh-np-preflight-warn { background: #fffbeb; border-color: #fcd34d; color: #92400e; }
.gh-np-preflight-error { background: #fef2f2; border-color: #fca5a5; color: #b91c1c; }
.gh-badge-awaiting { background: #fef3c7; color: #92400e; }
.gh-badge-set { background: #e0e7ff; color: #3730a3; }

/* === JAUNS PRODUKTS (MAKETS) — redesign === */
.gh-new-product-page {
	--gk-yellow: #f0b429;
	--gk-black: #111827;
	--gk-white: #ffffff;
	--gk-gray-50: #f9fafb;
	--gk-gray-100: #f3f4f6;
	--gk-gray-300: #d1d5db;
	--gk-gray-500: #6b7280;
	--gk-gray-700: #374151;
	--gk-green: #22c55e;
	--gk-red: #ef4444;
	background: #f9fafb;
	min-height: 60vh;
	padding-bottom: 32px;
}

/* 2 kolonnu layout desktop */
.gh-new-product-page .gh-new-product-layout {
	display: grid;
	grid-template-columns: 1fr 320px;
	gap: 24px;
	max-width: 1100px;
	margin: 0 auto;
	padding: 0 24px;
}

.gh-new-product-page .gh-new-product-headerbar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	flex-wrap: wrap;
	margin-bottom: 14px;
}
.gh-new-product-page .gh-new-product-top-hint {
	font-size: 12px;
	color: var(--gk-gray-500);
}
.gh-new-product-page .gh-new-product-title {
	margin: 0 0 6px 0;
	font-size: 28px;
	font-weight: 800;
	line-height: 1.15;
	color: var(--gk-black);
}
.gh-new-product-page .gh-new-product-subtitle {
	margin: 0 0 18px 0;
	color: var(--gk-gray-500);
	font-size: 14px;
}

/* Mobilais */
@media (max-width: 768px) {
	.gh-new-product-page .gh-new-product-layout {
		grid-template-columns: 1fr;
		padding: 0 16px;
	}
	.gh-new-product-page .gh-new-product-sidebar {
		display: none;
	}
}

/* Forma karte */
.gh-new-product-page .gh-new-product-card {
	background: #fff;
	border: 1px solid #e5e7eb;
	border-top: 3px solid #f0b429;
	border-radius: 16px;
	box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
	padding: 24px;
}

/* Lauku grupas (scoped) */
.gh-new-product-page .gh-form-field {
	margin-bottom: 12px;
}
.gh-new-product-card > .gh-form-field:nth-child(3) {
	margin-bottom: 16px;
}
.gh-new-product-page .gh-form-field label {
	display: block;
	font-size: 13px;
	font-weight: 600;
	color: var(--gk-gray-700);
	margin-bottom: 6px;
}
.gh-new-product-page .gh-form-field label .gh-required {
	color: #f0b429;
	margin-left: 2px;
}
.gh-new-product-page .gh-form-field input,
.gh-new-product-page .gh-form-field select,
.gh-new-product-page .gh-form-field textarea {
	width: 100%;
	padding: 10px 14px;
	border: 1.5px solid #e5e7eb;
	border-radius: 8px;
	font-size: 14px;
	color: var(--gk-black);
	background: #fff;
	transition: border-color 0.15s, box-shadow 0.15s;
	box-sizing: border-box;
}
.gh-new-product-page .gh-form-field input:focus,
.gh-new-product-page .gh-form-field select:focus,
.gh-new-product-page .gh-form-field textarea:focus {
	outline: none;
	border-color: #f0b429;
	box-shadow: 0 0 0 3px rgba(240, 180, 41, 0.15);
}
.gh-new-product-page .gh-form-hint {
	font-size: 11px;
	color: #9ca3af;
	margin-top: 4px;
}
.gh-new-product-page .gh-field-error {
	margin-top: 6px;
	font-size: 12px;
	color: var(--gk-red);
	min-height: 16px;
}
.gh-new-product-page .gh-input-error {
	border-color: rgba(239, 68, 68, 0.9) !important;
	box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.12) !important;
}

/* Izmēru lauks — 2 inputi vienā rindā */
.gh-new-product-page .gh-size-inputs {
	display: flex;
	align-items: center;
	gap: 10px;
	flex-wrap: wrap;
}
.gh-new-product-page .gh-size-inputs input {
	width: 90px;
	text-align: center;
}
.gh-new-product-page .gh-size-separator {
	font-size: 18px;
	color: #9ca3af;
	font-weight: 300;
}
.gh-new-product-page .gh-size-unit {
	font-size: 13px;
	color: var(--gk-gray-500);
	white-space: nowrap;
}

/* Drag & drop zona */
.gh-new-product-page .gh-dropzone {
	border: 2px dashed var(--gk-gray-300);
	border-radius: 10px;
	padding: 32px 24px;
	text-align: center;
	cursor: pointer;
	transition: all 0.2s;
	background-color: #fafafa;
	background-image: repeating-linear-gradient(45deg, #e9ebee 0, #e9ebee 1px, transparent 0, transparent 50%);
	background-size: 8px 8px;
}
.gh-new-product-page .gh-dropzone:hover,
.gh-new-product-page .gh-dropzone.gh-dragover {
	border-color: var(--gk-yellow);
	background-color: #fffbeb;
	background-image: repeating-linear-gradient(45deg, #e9ebee 0, #e9ebee 1px, transparent 0, transparent 50%);
}
.gh-new-product-page .gh-dropzone-icon {
	font-size: 28px;
	margin-bottom: 8px;
	display: block;
	color: var(--gk-gray-500);
}
.gh-new-product-page .gh-dropzone-text {
	font-size: 14px;
	font-weight: 600;
	color: var(--gk-gray-700);
	margin-bottom: 4px;
}
.gh-new-product-page .gh-dropzone-hint {
	font-size: 12px;
	color: #9ca3af;
	line-height: 1.5;
}
.gh-new-product-page .gh-dropzone.gh-has-file {
	border-color: var(--gk-green);
	border-style: solid;
	background: #f0fdf4;
	background-image: none;
}
.gh-new-product-page .gh-dropzone-filename {
	font-size: 13px;
	color: #15803d;
	font-weight: 600;
	margin-top: 10px;
}

/* Paplašinātais bloks toggle */
.gh-new-product-page .gh-advanced-toggle {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 9px 14px;
	cursor: pointer;
	font-size: 13px;
	font-weight: 500;
	color: #374151;
	border: 1px solid #e5e7eb;
	border-left: 3px solid #f0b429;
	border-radius: 0 8px 8px 0;
	background: #f9fafb;
	width: 100%;
	margin-top: 0;
	margin-bottom: 16px;
	box-sizing: border-box;
}
.gh-new-product-page .gh-advanced-toggle:hover {
	background: #f3f4f6;
}
.gh-new-product-page .gh-advanced-toggle .gh-toggle-arrow {
	transition: transform 0.2s;
	color: #9ca3af;
	margin-left: auto;
	font-size: 14px;
}
.gh-new-product-page .gh-advanced-toggle.open .gh-toggle-arrow {
	transform: rotate(180deg);
}
.gh-new-product-page .gh-advanced-content {
	display: none;
	margin-top: 0;
	padding: 16px;
	background: #f9fafb;
	border: 1px solid #e5e7eb;
	border-top: none;
	border-left: 3px solid #f0b429;
	border-radius: 0 0 8px 0;
	margin-bottom: 0;
}
.gh-new-product-page .gh-advanced-content.open {
	display: block;
	margin-bottom: 16px;
}
.gh-new-product-page .gh-advanced-toggle.open {
	border-radius: 0 8px 0 0;
	margin-bottom: 0;
}

/* Sidebar */
.gh-new-product-page .gh-new-product-sidebar {
	position: sticky;
	top: 100px;
	align-self: start;
}
.gh-new-product-page .gh-sidebar-card {
	background: #111827;
	border: 1px solid rgba(255, 255, 255, 0.08);
	border-radius: 12px;
	padding: 24px;
	color: #fff;
}
.gh-new-product-page .gh-sidebar-card h4 {
	font-size: 13px;
	font-weight: 700;
	color: #fff;
	margin: 0 0 12px;
}
.gh-new-product-page .gh-sidebar-steps {
	list-style: none;
	padding: 0;
	margin: 0 0 20px 0;
}
.gh-new-product-page .gh-sidebar-steps li {
	display: flex;
	gap: 10px;
	align-items: flex-start;
	margin-bottom: 10px;
	font-size: 13px;
	color: #fff;
}
.gh-new-product-page .gh-step-num {
	width: 20px;
	height: 20px;
	border-radius: 50%;
	background: #f0b429;
	color: #111827;
	font-size: 11px;
	font-weight: 700;
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	margin-top: 1px;
}
.gh-new-product-page .gh-sidebar-divider {
	border: none;
	border-top: 1px solid rgba(255, 255, 255, 0.15);
	margin: 16px 0;
}
.gh-new-product-page .gh-file-requirements {
	font-size: 12px;
	color: #9ca3af;
	line-height: 1.6;
	padding-left: 18px;
	margin: 0 0 12px 0;
}
.gh-new-product-page .gh-file-requirements li {
	margin-bottom: 4px;
}
.gh-new-product-page .gh-sidebar-link {
	display: inline-block;
	font-size: 13px;
	font-weight: 600;
	color: rgba(255, 255, 255, 0.9);
	text-decoration: none;
}
.gh-new-product-page .gh-sidebar-link:hover {
	text-decoration: underline;
	color: #fff;
}

/* Pogas josla */
.gh-new-product-page .gh-form-actions {
	display: flex;
	justify-content: space-between;
	gap: 12px;
	padding-top: 12px;
	border-top: 1px solid #f3f4f6;
	margin-top: 0;
	align-items: center;
}
.gh-new-product-page .gh-btn-save {
	padding: 14px 32px;
	background: var(--gk-yellow);
	color: var(--gk-black);
	border: none;
	border-radius: 8px;
	font-size: 14px;
	font-weight: 700;
	letter-spacing: 0.3px;
	cursor: pointer;
	transition: background 0.15s;
	display: inline-flex;
	align-items: center;
	gap: 10px;
}
.gh-new-product-page .gh-btn-save:hover { background: #d9a020; }
.gh-new-product-page .gh-btn-save:disabled { opacity: 0.6; cursor: not-allowed; }
.gh-new-product-page .gh-btn-save .gh-spinner { display: none; width: 14px; height: 14px; border: 2px solid rgba(17,24,39,0.25); border-top-color: rgba(17,24,39,0.95); border-radius: 50%; }
.gh-new-product-page .gh-btn-save.is-loading .gh-spinner { display: inline-block; animation: ghspin 0.9s linear infinite; }
@keyframes ghspin { to { transform: rotate(360deg); } }

.gh-new-product-page .gh-np-message {
	margin-top: 0;
	color: #b32d2e;
	font-size: 14px;
	min-height: 0;
}
.gh-new-product-page .gh-new-product-bottom-hint {
	margin: 10px 0 0;
	font-size: 12px;
	color: var(--gk-gray-500);
}

/* Save success state (stay on same page) */
.gh-new-product-page .gh-new-product-card.gh-saved > * { display: none; }
.gh-new-product-page .gh-new-product-card.gh-saved > .gh-postsave-panel,
.gh-new-product-page .gh-new-product-card.gh-saved > .gh-save-success { display: block !important; }

.gh-new-product-page .gh-save-success {
	text-align: center;
	padding: 48px 32px;
}
.gh-new-product-page .gh-save-success-icon {
	width: 56px;
	height: 56px;
	border-radius: 50%;
	background: #f0b429;
	color: #111827;
	font-size: 24px;
	font-weight: 700;
	display: flex;
	align-items: center;
	justify-content: center;
	margin: 0 auto 16px;
}
.gh-new-product-page .gh-save-success h3 {
	font-size: 20px;
	font-weight: 700;
	margin-bottom: 8px;
}
.gh-new-product-page .gh-save-success p {
	color: #6b7280;
	margin-bottom: 24px;
}
.gh-new-product-page .gh-save-actions {
	display: flex;
	gap: 12px;
	justify-content: center;
	flex-wrap: wrap;
}

/* Post-save panel (new flow) */
.gh-new-product-page .gh-postsave-panel {
	padding: 24px 32px;
}
.gh-new-product-page .gh-postsave-header {
	display: flex;
	align-items: center;
	gap: 12px;
	margin-bottom: 20px;
}
.gh-new-product-page .gh-postsave-check {
	width: 40px;
	height: 40px;
	border-radius: 50%;
	background: #f0b429;
	color: #111827;
	font-size: 20px;
	font-weight: 700;
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
}
.gh-new-product-page .gh-postsave-title {
	font-size: 18px;
	font-weight: 700;
	color: #111827;
}
.gh-new-product-page .gh-postsave-meta {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 12px 16px;
	background: #f9fafb;
	border-radius: 8px;
	margin-bottom: 16px;
	font-size: 14px;
}
.gh-new-product-page .gh-postsave-name {
	font-weight: 600;
	color: #111827;
}
.gh-new-product-page .gh-postsave-size {
	color: #6b7280;
	font-size: 13px;
}
.gh-new-product-page .gh-postsave-file-status {
	margin-bottom: 20px;
	font-size: 13px;
}
.gh-new-product-page .gh-file-status-label {
	font-size: 11px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	color: #6b7280;
	margin-bottom: 8px;
}
.gh-new-product-page .gh-file-check-row {
	display: flex;
	gap: 16px;
	flex-wrap: wrap;
}
.gh-new-product-page .gh-file-check-item {
	display: flex;
	align-items: center;
	gap: 4px;
}
.gh-new-product-page .gh-file-check-item.ok { color: #15803d; }
.gh-new-product-page .gh-file-check-item.error { color: #dc2626; }
.gh-new-product-page .gh-file-check-item.warning { color: #d97706; }
.gh-new-product-page .gh-file-check-item.info { color: #6b7280; }
.gh-new-product-page .gh-postsave-divider {
	border: none;
	border-top: 1px solid #f3f4f6;
	margin: 20px 0;
}
.gh-new-product-page .gh-postsave-actions-label {
	font-size: 12px;
	color: #6b7280;
	margin-bottom: 12px;
}
.gh-new-product-page .gh-postsave-primary-actions {
	display: flex;
	gap: 10px;
	margin-bottom: 10px;
	flex-wrap: wrap;
}
.gh-new-product-page .gh-postsave-secondary-actions {
	display: flex;
	gap: 10px;
	flex-wrap: wrap;
}
.gh-new-product-page .gh-postsave-extra {
	display: none;
	margin-top: 20px;
	padding-top: 20px;
	border-top: 1px solid #f3f4f6;
}
.gh-new-product-page .gh-postsave-extra.open {
	display: block;
}
.gh-new-product-page .gh-postsave-extra .gh-form-field {
	margin-bottom: 16px;
}
.gh-new-product-page .gh-postsave-extra .gh-form-field label {
	display: block;
	font-size: 13px;
	font-weight: 600;
	color: #374151;
	margin-bottom: 6px;
}
.gh-new-product-page .gh-postsave-extra input,
.gh-new-product-page .gh-postsave-extra textarea {
	width: 100%;
	padding: 8px 12px;
	border: 1px solid #e5e7eb;
	border-radius: 8px;
	font-size: 14px;
	box-sizing: border-box;
}
.gh-new-product-page .gh-postsave-save-extra {
	margin-top: 8px;
}

/* === MAKETU TABULA — galvenā lapa: pievieno maketus, pasūta uzlīmes === */
/* Content sections with 1200px max-width */
.gh-library-section,
.gh-orders-section,
.gh-invoices-section,
.gh-profile-section,
.gh-cart-section {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 24px;
}
.gh-library-table-wrap {
	overflow-x: auto;
	width: 100%;
	background: #fff;
	border: 1px solid #e5e7eb;
	border-radius: 10px;
	margin-top: 8px;
	-webkit-overflow-scrolling: touch;
}
.gh-library-table { width: 100%; min-width: 960px; table-layout: fixed; border-collapse: collapse; }
.gh-label-library-table {
	width: 100%;
	table-layout: fixed;
	border-collapse: collapse;
	font-size: 13px;
}
.gh-label-library-table th,
.gh-label-library-table td {
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	padding: 10px 12px;
	text-align: left;
	vertical-align: middle;
	border-bottom: 1px solid #f3f4f6;
	box-sizing: border-box;
}
.gh-label-library-table thead th {
	background: #f9fafb;
	font-size: 11px;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	color: #6b7280;
	border-bottom: 2px solid #e5e7eb;
	position: static !important;
}
.gh-label-library-table td:empty::after { content: ''; }
.gh-cell-empty { color: #d1d5db; font-size: 12px; }

/* Kolonnu filtri zem galvenēm — dropdown ar meklēšanu (platības no colgroup) */
.gh-thead-filters th { padding: 4px 6px; background: #f3f4f6; border-bottom: 1px solid #e5e7eb; vertical-align: middle; overflow: hidden; }
.gh-thead-filters th .gh-col-filter-dropdown { min-width: 0; }
.gh-col-filter-dropdown { position: relative; display: block; width: 100%; min-width: 0; }
.gh-col-filter-btn {
	width: 100%; padding: 4px 6px; font-size: 12px; text-align: left;
	border: 1px solid #e5e7eb; border-radius: 4px; background: #fff;
	color: #374151; cursor: pointer; box-sizing: border-box;
}
.gh-col-filter-btn:hover { border-color: #d1d5db; }
.gh-col-filter-btn:focus { outline: none; border-color: #f0b429; }
.gh-col-filter-panel {
	position: absolute; top: 100%; left: 0; margin-top: 2px;
	min-width: 160px; width: max-content; max-width: 220px; max-height: 260px;
	overflow: hidden; display: flex; flex-direction: column;
	background: #fff; border: 1px solid #e5e7eb; border-radius: 6px;
	box-shadow: 0 6px 16px rgba(0,0,0,.15); z-index: 1050;
}
.gh-col-filter-search {
	width: 100%; padding: 8px 10px; font-size: 13px; border: none;
	border-bottom: 1px solid #e5e7eb; border-radius: 6px 6px 0 0;
	box-sizing: border-box; color: #374151; flex-shrink: 0;
}
.gh-col-filter-search:focus { outline: none; border-color: #f0b429; }
.gh-col-filter-search::placeholder { color: #9ca3af; }
.gh-col-filter-list {
	max-height: 200px; overflow-y: auto; padding: 4px 0; flex: 1;
}
.gh-col-filter-list .gh-col-filter-opt {
	display: flex; align-items: center; gap: 6px; padding: 5px 10px;
	cursor: pointer; font-size: 12px; margin: 0;
}
.gh-col-filter-list .gh-col-filter-opt:hover { background: #f3f4f6; }
.gh-col-filter-list .gh-filter-empty { display: block; padding: 8px; font-size: 12px; color: #9ca3af; }

/* Pasūtīšanas zona — Tirāža + Grozā atdalīta */
.gh-th-qty, .gh-td-qty,
.gh-th-cart, .gh-td-cart {
	border-left: 2px solid #f0b429 !important;
	background: #fffbeb;
}
.gh-label-library-table thead .gh-th-qty,
.gh-label-library-table thead .gh-th-cart { background: #fffbeb !important; }
.gh-label-library-table .gh-td-qty { min-width: 100px !important; }
.gh-label-library-table .gh-td-qty input.gh-qty-input {
	min-width: 72px !important; width: 80px; max-width: 100%; padding: 6px 8px;
	border: 1px solid #d1d5db; border-radius: 6px;
	font-size: 14px; text-align: center; box-sizing: border-box;
}

.gh-label-library-table tbody tr.gh-library-row { transition: background .12s; }
.gh-label-library-table tbody tr.gh-library-row:last-child td { border-bottom: none; }
.gh-label-library-table tbody tr.row-green { background: #f0fdf4; border-left: 3px solid #22c55e; }
.gh-label-library-table tbody tr.row-green:hover { background: #dcfce7; }
.gh-label-library-table tbody tr.row-yellow { background: #fefce8; border-left: 3px solid #f0b429; }
.gh-label-library-table tbody tr.row-yellow:hover { background: #fef9c3; }
.gh-label-library-table tbody tr.row-red { background: #fef2f2; border-left: 3px solid #ef4444; }
.gh-label-library-table tbody tr.row-red:hover { background: #fee2e2; }

.gh-label-library-table .gh-cell-preview-img { width: 40px; height: 40px; object-fit: contain; display: block; border-radius: 4px; }
.gh-label-library-table .gh-no-preview { display: inline-flex; width: 40px; height: 40px; align-items: center; justify-content: center; background: #f3f4f6; border-radius: 4px; font-size: 16px; color: #9ca3af; }
.gh-label-library-table .gh-th-name,
.gh-label-library-table .gh-td-name { min-width: 180px; }
.gh-label-library-table .gh-th-size,
.gh-label-library-table .gh-td-size { min-width: 130px; }
.gh-label-library-table .gh-th-size,
.gh-label-library-table .gh-td-size { min-width: 130px; }
.gh-label-library-table .gh-td-name a { font-weight: 700; color: #111827; text-decoration: none; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: block; max-width: 100%; }
.gh-label-library-table .gh-td-name a:hover { text-decoration: underline; color: #f0b429; }
.gh-label-library-table .gh-td-sku,
.gh-label-library-table .gh-td-size,
.gh-label-library-table .gh-td-material,
.gh-label-library-table .gh-td-finish,
.gh-label-library-table .gh-td-brand,
.gh-label-library-table .gh-td-category { font-size: 12px; color: #6b7280; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.gh-qty-input { min-width: 72px; width: 80px; padding: 6px 8px; border: 1.5px solid #e5e7eb; border-radius: 6px; font-size: 13px; font-weight: 700; text-align: center; box-sizing: border-box; }
.gh-add-cart { padding: 6px 14px; background: #f0b429; border: none; border-radius: 6px; font-size: 12px; font-weight: 700; cursor: pointer; white-space: nowrap; color: #111; }
.gh-add-cart:hover { background: #e0a020; color: #111; }
.gh-add-cart:disabled { background: #f3f4f6; color: #9ca3af; cursor: not-allowed; }
.gh-add-cart.in-cart { background: #dcfce7; color: #15803d; }
.gh-label-library-table .gh-td-qty,
.gh-label-library-table .gh-td-cart,
.gh-label-library-table .gh-td-info { background: inherit; box-shadow: none; white-space: nowrap; position: static !important; }
.gh-label-library-table .gh-td-cart { min-width: 120px; }
.gh-label-library-table .gh-td-info { min-width: 48px; text-align: center; }
.gh-label-library-table tbody tr.row-green .gh-td-qty,
.gh-label-library-table tbody tr.row-green .gh-td-cart,
.gh-label-library-table tbody tr.row-green .gh-td-info { background: #f0fdf4; }
.gh-label-library-table tbody tr.row-green:hover .gh-td-qty,
.gh-label-library-table tbody tr.row-green:hover .gh-td-cart,
.gh-label-library-table tbody tr.row-green:hover .gh-td-info { background: #dcfce7; }
.gh-label-library-table tbody tr.row-yellow .gh-td-qty,
.gh-label-library-table tbody tr.row-yellow .gh-td-cart,
.gh-label-library-table tbody tr.row-yellow .gh-td-info { background: #fefce8; }
.gh-label-library-table tbody tr.row-yellow:hover .gh-td-qty,
.gh-label-library-table tbody tr.row-yellow:hover .gh-td-cart,
.gh-label-library-table tbody tr.row-yellow:hover .gh-td-info { background: #fef9c3; }
.gh-label-library-table tbody tr.row-red .gh-td-qty,
.gh-label-library-table tbody tr.row-red .gh-td-cart,
.gh-label-library-table tbody tr.row-red .gh-td-info { background: #fef2f2; }
.gh-label-library-table tbody tr.row-red:hover .gh-td-qty,
.gh-label-library-table tbody tr.row-red:hover .gh-td-cart,
.gh-label-library-table tbody tr.row-red:hover .gh-td-info { background: #fee2e2; }
.gh-label-library-table thead .gh-th-qty,
.gh-label-library-table thead .gh-th-cart,
.gh-label-library-table thead .gh-th-info { background: #fffbeb !important; position: static !important; }
.gh-row-incomplete { font-size: 12px; color: #b91c1c; white-space: nowrap; display: inline-block; }
.gh-info-btn { width: 32px; height: 32px; min-width: 32px; padding: 0; border: none; border-radius: 6px; background: #e5e7eb; color: #374151; font-size: 16px; cursor: pointer; line-height: 1; display: inline-flex; align-items: center; justify-content: center; }
.gh-info-btn:hover { background: #e5e7eb; color: #111; }

.gh-lib-filters { width: 100%; align-items: center; }
.gh-lib-search { max-width: 260px; padding: 8px 12px; border: 1px solid #d1d5db; border-radius: 8px; font-size: 14px; }
.gh-filter-dropdown { position: relative; }
.gh-filter-dropdown-btn { padding: 8px 12px; border: 1px solid #d1d5db; border-radius: 8px; font-size: 14px; background: #fff; cursor: pointer; }
.gh-filter-opts { display: none; position: absolute; top: 100%; left: 0; margin-top: 4px; min-width: 180px; max-height: 240px; overflow-y: auto; background: #fff; border: 1px solid #e5e7eb; border-radius: 8px; box-shadow: 0 4px 12px rgba(0,0,0,.12); z-index: 100; padding: 8px; }
.gh-filter-opts label { display: flex; align-items: center; gap: 8px; padding: 6px 8px; cursor: pointer; font-size: 13px; }
.gh-filter-opts label:hover { background: #f3f4f6; }
.gh-filter-empty { font-size: 12px; color: #9ca3af; padding: 8px; display: block; }
.gh-filter-count { font-size: 13px; color: #6b7280; margin-left: 8px; }

.gh-checkout-bar { position: fixed; bottom: 0; left: 0; right: 0; background: #111827; color: #fff; padding: 14px 24px; display: flex; justify-content: space-between; align-items: center; z-index: 100; transform: translateY(100%); transition: transform 0.2s; box-shadow: 0 -4px 12px rgba(0,0,0,.2); }
.gh-checkout-bar.visible { transform: translateY(0); }
.gh-checkout-bar .gh-btn-primary { background: #f0b429; color: #111; }
.gh-checkout-bar .gh-btn-primary:hover { background: #e0a020; color: #111; }

.gh-library-toolbar { align-items: center; }
.gh-variants-dropdown label.gh-variant-cb-wrap:hover { background: #f3f4f6; }

/* === LIBRARY — goldinken-library-final.html reference (1:1) === */
.gh-library-modern {
	--y: #f0b429;
	--yd: #d97706;
	--ylite: #fffbeb;
	--bk: #111827;
	--wh: #fff;
	--g50: #f9fafb;
	--g100: #f3f4f6;
	--g200: #e5e7eb;
	--g400: #9ca3af;
	--g600: #4b5563;
	--g700: #374151;
	--green: #10b981;
	--glit: #d1fae5;
	--gdark: #065f46;
	--orange: #f59e0b;
	--olit: #fef3c7;
	--odark: #92400e;
	--red: #ef4444;
	--rlit: #fee2e2;
	--blue: #2563eb;
	--blit: #eff6ff;
	font-family: 'Inter', sans-serif;
	background: var(--g50);
	color: var(--bk);
}
.gh-library-modern .page { max-width: 1200px; margin: 0 auto; padding: 32px 32px 80px; }
.gh-library-modern .page-header { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 24px; flex-wrap: wrap; gap: 16px; }
.gh-library-modern .page-title { font-size: 26px; font-weight: 700; letter-spacing: -0.5px; }
.gh-library-modern .page-sub { font-size: 13px; color: var(--g600, #4b5563); margin-top: 4px; }
.gh-library-modern .btn-primary { background: var(--y, #f0b429); color: var(--bk, #111827); font-size: 14px; font-weight: 700; padding: 10px 20px; border-radius: 10px; border: none; cursor: pointer; display: inline-flex; align-items: center; gap: 8px; transition: 0.15s; text-decoration: none; white-space: nowrap; font-family: inherit; }
.gh-library-modern .btn-primary:hover { background: var(--yd, #d97706); transform: translateY(-1px); }

/* LEGEND */
.gh-library-modern .legend { display: flex; gap: 20px; margin-bottom: 16px; padding: 11px 16px; background: var(--wh, #fff); border-radius: 10px; border: 1px solid var(--g200, #e5e7eb); flex-wrap: wrap; align-items: center; }
.gh-library-modern .li { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--g600, #4b5563); }
.gh-library-modern .ld { width: 10px; height: 10px; border-radius: 3px; }
.gh-library-modern .ld-g { background: var(--green, #10b981); }
.gh-library-modern .ld-o { background: var(--orange, #f59e0b); }
.gh-library-modern .ld-e { background: var(--g200, #e5e7eb); border: 1.5px solid var(--g400, #9ca3af); }
.gh-library-modern .legend-hint { margin-left: auto; font-size: 11.5px; color: var(--g400, #9ca3af); }

/* TOOLBAR */
.gh-library-modern .toolbar { display: flex; gap: 8px; margin-bottom: 10px; align-items: center; flex-wrap: wrap; }
.gh-library-modern .search-box { flex: 1; min-width: 200px; max-width: 280px; position: relative; }
.gh-library-modern .search-box input { width: 100%; padding: 8px 12px 8px 36px; border: 1.5px solid var(--g200, #e5e7eb); border-radius: 8px; font-size: 13px; font-family: inherit; background: var(--wh, #fff); color: var(--bk, #111827); outline: none; transition: 0.15s; box-sizing: border-box; }
.gh-library-modern .search-box input:focus { border-color: var(--y, #f0b429); }
.gh-library-modern .si { position: absolute; left: 10px; top: 50%; transform: translateY(-50%); color: var(--g400, #9ca3af); font-size: 14px; pointer-events: none; }
.gh-library-modern .fsel { padding: 8px 12px; border: 1.5px solid var(--g200, #e5e7eb); border-radius: 8px; font-size: 12.5px; font-family: inherit; background: var(--wh, #fff); color: var(--g700, #374151); cursor: pointer; outline: none; transition: 0.15s; }
.gh-library-modern .fsel:focus { border-color: var(--y, #f0b429); }
.gh-library-modern .adv-btn { padding: 8px 14px; border: 1.5px solid var(--g200, #e5e7eb); border-radius: 8px; font-size: 12.5px; font-weight: 600; font-family: inherit; background: var(--wh, #fff); color: var(--g600, #4b5563); cursor: pointer; display: flex; align-items: center; gap: 6px; transition: 0.15s; white-space: nowrap; }
.gh-library-modern .adv-btn:hover { border-color: var(--g400, #9ca3af); color: var(--bk, #111827); }
.gh-library-modern .adv-btn.open { border-color: var(--bk, #111827); background: var(--bk, #111827); color: var(--wh, #fff); }
.gh-library-modern .count-badge { margin-left: auto; font-size: 12px; color: var(--g400, #9ca3af); white-space: nowrap; }

/* Filtri toggle bar */
.gh-library-modern .gh-filtri-bar { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.gh-library-modern .gh-filtri-toggle-btn { padding: 8px 16px; border: 1.5px solid var(--g200, #e5e7eb); border-radius: 8px; font-size: 12.5px; font-weight: 600; font-family: inherit; background: var(--wh, #fff); color: var(--g600, #4b5563); cursor: pointer; display: flex; align-items: center; gap: 6px; transition: 0.15s; }
.gh-library-modern .gh-filtri-toggle-btn:hover { border-color: var(--g400, #9ca3af); color: var(--bk, #111827); }
.gh-library-modern .gh-filtri-toggle-btn.active { border-color: var(--bk, #111827); background: var(--bk, #111827); color: var(--wh, #fff); }
.gh-library-modern .gh-filtri-panel { background: var(--wh, #fff); border: 1.5px solid var(--g200, #e5e7eb); border-radius: 12px; padding: 18px 20px; margin-bottom: 14px; }
.gh-library-modern .gh-filtri-panel-inner { display: flex; flex-direction: column; gap: 14px; }
.gh-library-modern .gh-filtri-row { display: flex; flex-wrap: wrap; gap: 16px; align-items: flex-start; }
.gh-library-modern .gh-filtri-group { display: flex; flex-direction: column; gap: 6px; min-width: 140px; }
.gh-library-modern .gh-filtri-search { flex: 1; min-width: 200px; }
.gh-library-modern .gh-filtri-search .search-box { max-width: none; }
.gh-library-modern .gh-filtri-label { font-size: 10.5px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; color: var(--g400, #9ca3af); }
.gh-library-modern .gh-filtri-checks { display: flex; flex-direction: column; gap: 4px; }
.gh-library-modern .gh-filtri-checks label { font-size: 12.5px; color: var(--g700, #374151); display: flex; align-items: center; gap: 6px; cursor: pointer; }

/* Archive filter toggle */
.gh-archive-toggle { display: inline-flex; border: 1.5px solid #e5e7eb; border-radius: 8px; overflow: hidden; background: #fff; }
.gh-archive-toggle .gh-toggle-btn { padding: 6px 14px; font-size: 12.5px; font-weight: 500; border: none; background: transparent; color: #6b7280; cursor: pointer; transition: all 0.15s; }
.gh-archive-toggle .gh-toggle-btn:not(:last-child) { border-right: 1px solid #e5e7eb; }
.gh-archive-toggle .gh-toggle-btn:hover { background: #f3f4f6; color: #111827; }
.gh-archive-toggle .gh-toggle-btn.active { background: #111827; color: #fff; }
.gh-archive-toggle .gh-toggle-btn.active:hover { background: #1f2937; }

/* Vairāk filtru — pogas un paneļa stils (kā paraugā) */
.gh-library-modern .gh-adv-filter-btn.adv-btn { margin-left: 4px; }
.gh-library-modern .gh-adv-filter-btn.open { border-color: #111827; background: #111827; color: #fff; }
.gh-library-modern .gh-adv-filter-panel.adv-panel { display: none; width: 100%; flex-basis: 100%; margin-top: 10px; order: 99; }
.gh-library-modern .gh-adv-filter-panel.adv-panel.vis { display: block; }
.gh-library-modern .gh-adv-filter-panel .adv-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 12px; margin-bottom: 12px; }
.gh-library-modern .gh-adv-filter-panel .adv-group label { display: block; font-size: 10.5px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; color: #9ca3af; margin-bottom: 6px; }
.gh-library-modern .gh-adv-filter-panel .gh-adv-fselect,
.gh-library-modern .gh-adv-filter-panel .gh-adv-finput { width: 100%; padding: 7px 10px; border: 1.5px solid #e5e7eb; border-radius: 7px; font-size: 12.5px; font-family: inherit; background: #fff; color: #111827; box-sizing: border-box; }
.gh-library-modern .gh-adv-filter-panel .gh-adv-fselect:focus,
.gh-library-modern .gh-adv-filter-panel .gh-adv-finput:focus { outline: none; border-color: #f0b429; }

/* ADV PANEL */
.gh-library-modern .adv-panel { display: none; background: var(--wh, #fff); border: 1.5px solid var(--g200, #e5e7eb); border-radius: 12px; padding: 18px 20px; margin-bottom: 12px; }
.gh-library-modern .adv-panel.vis { display: block; }
.gh-library-modern .adv-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 14px; margin-bottom: 14px; }
.gh-library-modern .adv-group label { display: block; font-size: 10.5px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.7px; color: var(--g400, #9ca3af); margin-bottom: 6px; }
.gh-library-modern .adv-group select, .gh-library-modern .adv-group input { width: 100%; padding: 7px 10px; border: 1.5px solid var(--g200, #e5e7eb); border-radius: 7px; font-size: 12.5px; font-family: inherit; background: var(--wh, #fff); color: var(--bk, #111827); outline: none; transition: 0.15s; box-sizing: border-box; }
.gh-library-modern .adv-group select:focus, .gh-library-modern .adv-group input:focus { border-color: var(--y, #f0b429); }
.gh-library-modern .adv-foot { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.gh-library-modern .adv-hint { font-size: 11.5px; color: var(--g400, #9ca3af); margin-left: auto; }
.gh-library-modern .btn-clear { padding: 7px 14px; border: 1.5px solid var(--g200, #e5e7eb); border-radius: 7px; font-size: 12.5px; font-family: inherit; background: var(--wh, #fff); color: var(--g600, #4b5563); cursor: pointer; transition: 0.15s; }
.gh-library-modern .btn-clear:hover { border-color: var(--red, #ef4444); color: var(--red, #ef4444); }
.gh-library-modern .btn-apply { padding: 7px 18px; border: none; border-radius: 7px; font-size: 12.5px; font-weight: 700; font-family: inherit; background: var(--y, #f0b429); color: var(--bk, #111827); cursor: pointer; transition: 0.15s; }
.gh-library-modern .btn-apply:hover { background: var(--yd, #d97706); }

/* PRODUCT GROUPS */
.gh-library-modern .pg { margin-bottom: 12px; }
.gh-library-modern .pg-header { display: flex; align-items: center; gap: 12px; padding: 12px 16px; background: var(--wh, #fff); border: 1.5px solid var(--g200, #e5e7eb); border-radius: 12px 12px 0 0; cursor: pointer; transition: 0.15s; border-bottom: none; user-select: none; flex-wrap: wrap; }
.gh-library-modern .pg-header:hover { background: var(--g50, #f9fafb); }
.gh-library-modern .pg-header.collapsed { border-radius: 12px; border-bottom: 1.5px solid var(--g200, #e5e7eb); }
.gh-library-modern .pg-name { font-size: 14px; font-weight: 700; color: var(--bk, #111827); flex: 1; }
.gh-library-modern .pg-sku { font-size: 11.5px; font-family: 'JetBrains Mono', monospace; color: var(--g400, #9ca3af); }
.gh-library-modern .pg-last { font-size: 11.5px; color: var(--blue, #2563eb); font-weight: 600; display: flex; align-items: center; gap: 4px; }
.gh-library-modern .pg-count { font-size: 11px; font-weight: 600; color: var(--g600, #4b5563); background: var(--g100, #f3f4f6); padding: 2px 9px; border-radius: 20px; }
.gh-library-modern .chevron { color: var(--g400, #9ca3af); font-size: 12px; transition: transform 0.2s; }
.gh-library-modern .pg-header.collapsed .chevron { transform: rotate(-90deg); }

/* COMPONENT LIST */
.gh-library-modern .comp-list { border-radius: 0 0 12px 12px; overflow: visible; }

/* COL HEADERS */
.gh-library-modern .col-headers { display: grid; grid-template-columns: 48px minmax(140px, 1fr) 100px 90px 90px 72px 110px 80px 130px 44px; background: var(--g50, #f9fafb); border-bottom: 2px solid var(--g200, #e5e7eb); padding: 0; }
.gh-library-modern .ch { padding: 7px 8px 7px 10px; font-size: 10.5px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.7px; color: var(--g400, #9ca3af); cursor: pointer; display: flex; align-items: center; gap: 3px; white-space: nowrap; transition: 0.1s; user-select: none; }
.gh-library-modern .ch:hover { color: var(--bk, #111827); }
.gh-library-modern .ch.sorted { color: var(--bk, #111827); }
.gh-library-modern .sort-arr { font-size: 9px; opacity: 0.35; }
.gh-library-modern .ch.sorted .sort-arr { opacity: 1; color: var(--y, #f0b429); }
.gh-library-modern .ch.no-sort { cursor: default; }

/* COMPONENT ROW */
.gh-library-modern .cr { display: grid; grid-template-columns: 48px minmax(140px, 1fr) 100px 90px 90px 72px 110px 80px 130px 44px; align-items: center; background: var(--wh, #fff); border-bottom: 1px solid var(--g100, #f3f4f6); transition: background 0.1s; position: relative; min-height: 56px; }
.gh-library-modern .cr:last-child { border-bottom: none; }
.gh-library-modern .cr:hover { background: #fafafa; }
.gh-library-modern .cr::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; }
.gh-library-modern .cr.s-ok::before { background: var(--green, #10b981); }
.gh-library-modern .cr.s-warn::before { background: var(--orange, #f59e0b); }
.gh-library-modern .cr.s-none::before { background: var(--g200, #e5e7eb); }

.gh-library-modern .c-prev { padding: 10px 0 10px 14px; }
.gh-library-modern .thumb { width: 34px; height: 34px; border-radius: 7px; background: var(--g100, #f3f4f6); border: 1.5px solid var(--g200, #e5e7eb); display: flex; align-items: center; justify-content: center; font-size: 15px; cursor: pointer; overflow: hidden; transition: 0.15s; flex-shrink: 0; }
.gh-library-modern .thumb:hover { border-color: var(--y, #f0b429); transform: scale(1.08); box-shadow: 0 2px 8px rgba(240, 180, 41, 0.3); }
.gh-library-modern .thumb img { width: 100%; height: 100%; object-fit: cover; }

/* Thumbnail lightbox for enlarged preview */
.gh-lightbox-overlay {
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: rgba(0,0,0,0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  animation: ghFadeIn 0.2s ease;
}
@keyframes ghFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
.gh-lightbox-content {
  max-width: 90vw;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.gh-lightbox-content img {
  max-width: 100%;
  max-height: 85vh;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.4);
}
.gh-lightbox-hint {
  margin-top: 16px;
  color: rgba(255,255,255,0.7);
  font-size: 13px;
}
/* Placeholder lightbox (no preview) */
.gh-lightbox-placeholder {
  background: var(--wh, #fff);
  border-radius: 16px;
  padding: 48px 64px;
  text-align: center;
}
.gh-placeholder-icon {
  font-size: 64px;
  margin-bottom: 16px;
  opacity: 0.5;
}
.gh-placeholder-text {
  font-size: 16px;
  color: var(--g500, #6b7280);
  line-height: 1.6;
}
.gh-lightbox-placeholder .gh-lightbox-hint {
  color: var(--g400, #9ca3af);
}

.gh-library-modern .c-name { padding: 10px 12px; }
.gh-library-modern .cn { font-size: 13px; font-weight: 600; color: var(--bk, #111827); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: block; cursor: pointer; transition: 0.1s; }
.gh-library-modern .cn:hover { color: var(--yd, #d97706); }
.gh-library-modern .cn-sub { font-size: 11px; color: var(--g400, #9ca3af); margin-top: 2px; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.gh-library-modern .issue-o { color: var(--odark, #92400e); font-weight: 600; }
.gh-library-modern .issue-r { color: var(--red, #ef4444); font-weight: 600; }

.gh-library-modern .cg { padding: 10px 8px; font-size: 12px; color: var(--g600, #4b5563); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gh-library-modern .mono { font-family: 'JetBrains Mono', monospace; font-size: 11.5px; }
.gh-library-modern .tag { display: inline-block; font-size: 10px; font-weight: 600; padding: 2px 7px; border-radius: 4px; letter-spacing: 0.3px; text-transform: uppercase; }
.gh-library-modern .tag-m { background: var(--g100, #f3f4f6); color: var(--g600, #4b5563); }
.gh-library-modern .tag-f { background: #f3e8ff; color: #7c3aed; }

.gh-library-modern .fs { display: inline-flex; align-items: center; gap: 5px; font-size: 11px; font-weight: 600; padding: 3px 8px; border-radius: 6px; }
.gh-library-modern .fs-ok { background: var(--glit, #d1fae5); color: var(--gdark, #065f46); }
.gh-library-modern .fs-w { background: var(--olit, #fef3c7); color: var(--odark, #92400e); }
.gh-library-modern .fs-no { background: var(--g100, #f3f4f6); color: var(--g400, #9ca3af); }

.gh-library-modern .hist-pill { display: inline-flex; align-items: center; gap: 4px; font-size: 11px; font-weight: 700; padding: 4px 9px; border-radius: 6px; background: var(--blit, #eff6ff); color: var(--blue, #2563eb); cursor: pointer; white-space: nowrap; border: none; font-family: inherit; transition: 0.1s; }
.gh-library-modern .hist-pill:hover { background: #dbeafe; }
.gh-library-modern .hist-pill.none { background: var(--g100, #f3f4f6); color: var(--g400, #9ca3af); cursor: default; font-weight: 500; }
.gh-library-modern .c-hist { padding: 8px; display: flex; align-items: center; }

.gh-library-modern .c-qty { padding: 8px 6px; }
.gh-library-modern .qty { width: 72px; padding: 6px 8px; border: 1.5px solid var(--g200, #e5e7eb); border-radius: 7px; font-size: 13px; font-weight: 600; font-family: 'JetBrains Mono', monospace; text-align: center; background: var(--wh, #fff); color: var(--bk, #111827); outline: none; transition: 0.15s; box-sizing: border-box; }
.gh-library-modern .qty:focus { border-color: var(--y, #f0b429); }
.gh-library-modern .qty:disabled { opacity: 0.3; cursor: not-allowed; }

.gh-library-modern .c-act { padding: 8px; }
.gh-library-modern .bc { background: var(--y, #f0b429); color: var(--bk, #111827); border: none; font-size: 12px; font-weight: 700; padding: 7px 12px; border-radius: 7px; cursor: pointer; font-family: inherit; white-space: nowrap; display: flex; align-items: center; gap: 4px; transition: 0.15s; flex: 1; justify-content: center; }
.gh-library-modern .bc:hover { background: var(--yd, #d97706); }
.gh-library-modern .bc.added { background: var(--glit, #d1fae5); color: var(--gdark, #065f46); }
.gh-library-modern .bc.upload { background: transparent; color: var(--yd, #d97706); border: 1.5px solid var(--y, #f0b429); font-size: 11px; }
.gh-library-modern .bc.upload:hover { background: var(--ylite, #fffbeb); }

.gh-library-modern .c-more { padding: 8px 8px 8px 0; display: flex; justify-content: center; position: relative; }
.gh-library-modern .mb { width: 28px; height: 28px; border-radius: 7px; border: 1.5px solid var(--g200, #e5e7eb); background: var(--wh, #fff); color: var(--g400, #9ca3af); font-size: 16px; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: 0.15s; font-family: inherit; line-height: 1; }
.gh-library-modern .mb:hover { border-color: var(--bk, #111827); color: var(--bk, #111827); }
/* Three-dot context menu dropdown */
.gh-row-menu { position: relative; }
.gh-menu-btn { width: 28px; height: 28px; border-radius: 7px; border: 1.5px solid var(--g200, #e5e7eb); background: var(--wh, #fff); color: var(--g400, #9ca3af); font-size: 16px; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: 0.15s; font-family: inherit; line-height: 1; }
.gh-menu-btn:hover { border-color: var(--bk, #111827); color: var(--bk, #111827); }
.gh-menu-dropdown { position: absolute; right: 0; top: 100%; margin-top: 4px; background: var(--wh, #fff); border: 1.5px solid var(--g200, #e5e7eb); border-radius: 10px; box-shadow: 0 10px 28px rgba(0, 0, 0, 0.13); z-index: 150; min-width: 140px; overflow: hidden; display: none; }
.gh-menu-dropdown.active { display: block; }
.gh-menu-item { display: block; width: 100%; padding: 10px 14px; font-size: 13px; font-weight: 500; cursor: pointer; text-align: left; color: var(--bk, #111827); background: none; border: none; font-family: inherit; text-decoration: none; transition: background 0.1s; }
.gh-menu-item:hover { background: var(--g50, #f9fafb); }
.gh-menu-delete { color: var(--red, #ef4444); }
.gh-menu-delete:hover { background: var(--rlit, #fee2e2); }
/* Thumbnail upload placeholder cursor */
.gh-thumb-upload { cursor: pointer; transition: 0.15s; }
.gh-thumb-upload:hover { background: var(--g100, #f3f4f6); transform: scale(1.05); }
.gh-library-modern .dd { position: absolute; right: 0; top: 32px; background: var(--wh, #fff); border: 1.5px solid var(--g200, #e5e7eb); border-radius: 10px; box-shadow: 0 10px 28px rgba(0, 0, 0, 0.13); z-index: 150; min-width: 175px; overflow: hidden; display: none; }
.gh-library-modern .dd.vis { display: block; }
.gh-library-modern .ddi { padding: 9px 14px; font-size: 12.5px; font-weight: 500; cursor: pointer; display: flex; align-items: center; gap: 8px; color: var(--bk, #111827); transition: 0.1s; font-family: inherit; }
.gh-library-modern .ddi:hover { background: var(--g50, #f9fafb); }
.gh-library-modern .ddi.hi { color: var(--yd, #d97706); font-weight: 700; }
.gh-library-modern .ddi.danger { color: var(--red, #ef4444); }
.gh-library-modern .ddi.danger:hover { background: var(--rlit, #fee2e2); }
.gh-library-modern .dd-sep { height: 1px; background: var(--g100, #f3f4f6); }

.gh-library-modern .cr.single { border-radius: 12px; border: 1.5px solid var(--g200, #e5e7eb); margin-bottom: 12px; overflow: visible; }
.gh-library-modern .cr.single::before { border-radius: 12px 0 0 12px; }

/* BOTTOM BAR */
.gh-library-modern .bb { position: fixed; bottom: 0; left: 0; right: 0; background: var(--bk, #111827); padding: 13px 32px; display: flex; align-items: center; justify-content: space-between; z-index: 200; border-top: 2px solid #1f2937; }
.gh-library-modern .bb-info { color: #9ca3af; font-size: 13px; }
.gh-library-modern .bb-info strong { color: var(--wh, #fff); }
.gh-library-modern .bb-btn { background: var(--y, #f0b429); color: var(--bk, #111827); font-size: 14px; font-weight: 700; padding: 10px 24px; border-radius: 9px; border: none; cursor: pointer; display: flex; align-items: center; gap: 7px; font-family: inherit; transition: 0.15s; text-decoration: none; }
.gh-library-modern .bb-btn:hover { background: var(--yd, #d97706); }

/* EMPTY */
.gh-library-modern .empty { padding: 48px; text-align: center; color: var(--g400, #9ca3af); background: var(--wh, #fff); border: 1.5px solid var(--g200, #e5e7eb); border-radius: 12px; }
.gh-library-modern .empty a { color: var(--yd, #d97706); font-weight: 600; text-decoration: none; }

/* Hook existing IDs/classes for filters (toolbar search = gh-lib-search) */
.gh-library-modern .search-box input#gh-lib-search { padding-left: 36px; }
.gh-library-modern .gh-show-archived-wrap { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--g600, #4b5563); cursor: pointer; margin-right: 8px; }
.gh-library-modern .gh-show-archived-wrap input { accent-color: var(--y, #f0b429); }

/* MAKETI TABLE RESPONSIVE — hide secondary columns on narrow screens */
@media (max-width: 768px) {
  .gh-library-modern .page { padding: 16px 16px 80px; }
  .gh-library-modern .col-headers,
  .gh-library-modern .cr {
    grid-template-columns: 44px minmax(100px, 1fr) 80px 60px 110px 40px;
  }
  /* Hide: Materiāls (4), Apdare (5), Vēsture (7), Tirāža (8) */
  .gh-library-modern .col-headers .ch:nth-child(4),
  .gh-library-modern .col-headers .ch:nth-child(5),
  .gh-library-modern .col-headers .ch:nth-child(7),
  .gh-library-modern .col-headers .ch:nth-child(8),
  .gh-library-modern .cr > div:nth-child(4),
  .gh-library-modern .cr > div:nth-child(5),
  .gh-library-modern .cr > div:nth-child(7),
  .gh-library-modern .cr > div:nth-child(8) { display: none; }
  .gh-library-modern .c-act { flex-direction: column; gap: 4px; padding: 6px; }
  .gh-library-modern .bc { font-size: 11px; padding: 6px 8px; }
}

.gh-modal-box-preview { max-width: 640px; }
.gh-preview-modal-body { padding: 16px 24px; text-align: center; }
.gh-preview-modal-img { max-width: 100%; max-height: 80vh; display: inline-block; border-radius: 8px; box-shadow: 0 10px 40px rgba(15, 23, 42, 0.4); background: #fff; }

/* Versiju timeline */
.gh-versions-timeline { padding: 16px 24px; }
.gh-version-row { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 8px; margin-bottom: 8px; border: 1px solid #e5e7eb; }
.gh-version-row.active { border-color: #6ee7b7; background: #f0fdf4; }
.gh-version-badge { font-weight: bold; font-size: 14px; min-width: 40px; }
.gh-version-details { flex: 1; }
.gh-version-date { font-size: 12px; color: #6b7280; }
.gh-version-reason { font-size: 13px; color: #374151; }
.gh-active-label { color: #065f46; font-size: 12px; font-weight: 600; }
.gh-versions-footer { padding: 16px 24px; border-top: 1px solid #e5e7eb; }

/* Upload */
.gh-upload-form { padding: 20px 24px; }
.gh-drop-zone { border: 2px dashed #d1d5db; border-radius: 8px; padding: 40px 20px; text-align: center; cursor: pointer; transition: all .2s; margin-bottom: 16px; }
.gh-drop-zone.dragging { border-color: #f0b429; background: #fffbeb; }
.gh-drop-icon { font-size: 40px; margin-bottom: 8px; }
.gh-drop-hint { font-size: 12px; color: #9ca3af; margin: 4px 0 0; }
.gh-link { color: #3b82f6; cursor: pointer; text-decoration: underline; }
.gh-progress-bar { height: 8px; background: #e5e7eb; border-radius: 4px; overflow: hidden; margin-bottom: 8px; }
.gh-progress-fill { height: 100%; background: #f0b429; width: 0; transition: width .3s; }
/* Jauns produkts: bloki ar fonu, lai klients vizuāli iet cauri */
.gh-form-blocks { max-width: 560px; }
.gh-form-block {
	background: #f8fafc;
	border: 1px solid #e2e8f0;
	border-radius: 12px;
	padding: 20px 24px;
	margin-bottom: 20px;
}
.gh-form-block-title {
	margin: 0 0 16px 0;
	font-size: 1rem;
	font-weight: 600;
	color: #1e293b;
}
.gh-form-block-desc { color: #6b7280; margin-bottom: 20px; }
.gh-form-field { margin-bottom: 12px; }
.gh-form-field label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 4px; color: #374151; }
.gh-form-field input, .gh-form-field textarea { width: 100%; border: 1px solid #d1d5db; border-radius: 6px; padding: 8px 10px; font-size: 14px; box-sizing: border-box; }
.gh-advanced-toggle { margin-bottom: 12px; }
.gh-advanced-toggle a { font-size: 13px; color: #3b82f6; }
.gh-form-actions { display: flex; gap: 8px; margin-top: 16px; }

/* Login */
.gh-portal-login { display: flex; justify-content: center; padding: 60px 20px; }
.gh-login-box { background: #fff; border-radius: 12px; padding: 40px; max-width: 400px; width: 100%; box-shadow: 0 4px 24px rgba(0,0,0,.1); text-align: center; }
.gh-login-box h2 { margin: 0 0 8px; }
.gh-login-box p { color: #6b7280; margin-bottom: 20px; }
.gh-login-box input[type="email"] { width: 100%; padding: 10px 12px; border: 1px solid #d1d5db; border-radius: 6px; font-size: 14px; margin-bottom: 12px; box-sizing: border-box; }
#gh-login-message { margin-top: 12px; font-size: 14px; min-height: 20px; }

/* Orders table */
.gh-orders-section h2 { margin-bottom: 16px; }
.gh-orders-table { width: 100%; border-collapse: collapse; }
.gh-orders-table th, .gh-orders-table td { padding: 10px 12px; text-align: left; border-bottom: 1px solid #e5e7eb; }
.gh-orders-table th { font-weight: 600; background: #f9fafb; }
.gh-status { padding: 2px 8px; border-radius: 10px; font-size: 12px; }
.gh-recurring-section h2 { margin-bottom: 16px; }
.gh-recurring-item { display: flex; justify-content: space-between; align-items: center; padding: 12px; border: 1px solid #e5e7eb; border-radius: 8px; margin-bottom: 8px; }
.gh-recurring-info { display: flex; flex-direction: column; gap: 4px; }
.gh-recurring-actions { margin-left: 12px; }

/* === TABS PIESLĒGŠANĀS LAPĀ === */
#gh-login-tabs { display: flex; gap: 4px; margin-bottom: 20px; border-bottom: 1px solid #e5e7eb; }
.gh-tab { background: none; border: none; padding: 10px 16px; cursor: pointer; color: #6b7280; font-size: 14px; border-bottom: 2px solid transparent; margin-bottom: -1px; }
.gh-tab.active { color: #111827; border-bottom-color: #f0b429; font-weight: 600; }
.gh-login-box input { display: block; width: 100%; padding: 10px 12px; border: 1px solid #d1d5db; border-radius: 6px; font-size: 14px; margin-bottom: 10px; box-sizing: border-box; }
.gh-btn-full { width: 100%; justify-content: center; }

/* === MASĪVĀ ATLASE === */
.gh-bulk-bar { display: flex; align-items: center; gap: 12px; padding: 12px 16px; background: #fffbeb; border: 1px solid #fde68a; border-radius: 8px; margin-bottom: 16px; flex-wrap: wrap; }
.gh-header-actions { display: flex; gap: 8px; }
.gh-bulk-mode .gh-component { cursor: pointer; }
.gh-bulk-mode .gh-component:hover { background: #f9fafb; }
.gh-component-checkbox { width: 18px; height: 18px; cursor: pointer; flex-shrink: 0; accent-color: #f0b429; }

/* === TOAST === */
.gh-toast { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%) translateY(100px); background: #111827; color: #fff; padding: 12px 24px; border-radius: 8px; font-size: 14px; z-index: 99999; opacity: 0; transition: all .3s; pointer-events: none; }
.gh-toast-show { opacity: 1; transform: translateX(-50%) translateY(0); }
.gh-toast-success { background: #065f46; }
.gh-toast-error { background: #991b1b; }
.gh-toast-warning { background: #92400e; }

/* === ADMIN KOMANDAS TABULA (portāla kontekstā netiek lietots, bet var būt kopīgā CSS) === */
.gh-role-badge { padding: 2px 8px; border-radius: 10px; font-size: 11px; font-weight: 600; }
.gh-role-admin { background: #dbeafe; color: #1e40af; }
.gh-role-editor { background: #d1fae5; color: #065f46; }
.gh-role-viewer { background: #f3f4f6; color: #6b7280; }

/* === TABS PIESLĒGŠANĀS LAPĀ === */
#gh-login-tabs { display: flex; gap: 4px; margin-bottom: 20px; border-bottom: 1px solid #e5e7eb; }
.gh-tab { background: none; border: none; padding: 10px 16px; cursor: pointer; color: #6b7280; font-size: 14px; border-bottom: 2px solid transparent; margin-bottom: -1px; }
.gh-tab.active { color: #111827; border-bottom-color: #f0b429; font-weight: 600; }
.gh-login-box input { display: block; width: 100%; padding: 10px 12px; border: 1px solid #d1d5db; border-radius: 6px; font-size: 14px; margin-bottom: 10px; box-sizing: border-box; }
.gh-btn-full { width: 100%; justify-content: center; }

/* === MASĪVĀ ATLASE === */
.gh-bulk-bar { display: flex; align-items: center; gap: 12px; padding: 12px 16px; background: #fffbeb; border: 1px solid #fde68a; border-radius: 8px; margin-bottom: 16px; flex-wrap: wrap; }
#gh-bulk-toolbar { display: none; }
.gh-header-actions { display: flex; gap: 8px; }
.gh-bulk-mode .gh-component { cursor: pointer; }
.gh-bulk-mode .gh-component:hover { background: #f9fafb; }
.gh-component-checkbox { width: 18px; height: 18px; cursor: pointer; flex-shrink: 0; accent-color: #f0b429; }

/* === TOAST === */
.gh-toast { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%) translateY(100px); background: #111827; color: #fff; padding: 12px 24px; border-radius: 8px; font-size: 14px; z-index: 99999; opacity: 0; transition: all .3s; pointer-events: none; }
.gh-toast-show { opacity: 1; transform: translateX(-50%) translateY(0); }
.gh-toast-success { background: #065f46; }
.gh-toast-error { background: #991b1b; }
.gh-toast-warning { background: #92400e; }

/* === ADMIN KOMANDAS TABULA (portāla kontekstā netiek lietots, bet var būt kopīgā bibliotēkā) === */
.gh-role-badge { padding: 2px 8px; border-radius: 10px; font-size: 11px; font-weight: 600; }
.gh-role-admin { background: #dbeafe; color: #1e40af; }
.gh-role-editor { background: #d1fae5; color: #065f46; }
.gh-role-viewer { background: #f3f4f6; color: #6b7280; }

/* === KALKULATORS === */
.gh-calc-modal { max-width: 520px; }
.gh-calc-component-name { font-weight: 600; color: #374151; margin-bottom: 16px; }
.gh-qty-buttons { display: flex; gap: 6px; margin-bottom: 8px; flex-wrap: wrap; }
.gh-qty-buttons button { padding: 4px 12px; border: 1px solid #d1d5db; border-radius: 20px; background: #fff; cursor: pointer; font-size: 13px; }
.gh-qty-buttons button.active { background: #f0b429; border-color: #f0b429; font-weight: 600; }
.gh-finish-checkboxes { display: flex; gap: 16px; flex-wrap: wrap; }
.gh-finish-checkboxes label { display: flex; align-items: center; gap: 6px; font-size: 14px; cursor: pointer; }
.gh-calc-result { background: #f9fafb; border-radius: 8px; padding: 16px; margin: 16px 0; }
.gh-calc-total-row { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; font-size: 18px; }
.gh-calc-total { font-size: 28px; font-weight: 700; color: #111827; }
.gh-breakdown-line { display: flex; justify-content: space-between; font-size: 13px; padding: 3px 0; color: #6b7280; }
.gh-breakdown-line.gh-discount { color: #065f46; }
.gh-breakdown-line.gh-per-unit { border-top: 1px solid #e5e7eb; margin-top: 6px; padding-top: 6px; font-weight: 600; color: #374151; }
.gh-qty-comparison { margin-top: 12px; padding-top: 12px; border-top: 1px solid #e5e7eb; }
.gh-qty-step { display: flex; justify-content: space-between; padding: 6px 8px; border-radius: 6px; cursor: pointer; font-size: 13px; }
.gh-qty-step:hover { background: #f3f4f6; }

/* === DASHBOARD === */
/* Dashboard container with 1200px constraint */
.gh-dashboard {
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    padding: 32px 24px 48px;
}

/* Hero row: welcome left + stats right */
.gh-hero-row {
    display: flex;
    align-items: stretch;
    gap: 0;
    margin-bottom: 24px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}

/* Hero welcome banner — left side */
.gh-welcome {
    flex: 1;
    background: #f0b429;
    padding: 20px 28px;
    color: #111827;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 80px;
}
.gh-welcome h2 {
    margin: 0 0 4px;
    font-size: 20px;
    font-weight: 700;
}
.gh-welcome p,
.gh-dashboard-date {
    color: rgba(17, 24, 39, 0.65);
    margin: 0;
    font-size: 13px;
}

/* Stats row — right side */
.gh-stats-row {
    display: flex;
    gap: 0;
}
.gh-stats-row .gh-stat-card {
    width: 100px;
    background: #fff;
    border: none;
    border-left: 1px solid #e5e7eb;
    border-radius: 0;
    padding: 16px 12px;
    text-align: center;
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    justify-content: center;
    transition: background .15s ease;
}
.gh-stats-row .gh-stat-card:hover {
    background: #fefce8;
}
.gh-stats-row .gh-stat-number {
    font-size: 24px;
    font-weight: 700;
    color: #111827;
    line-height: 1;
}
.gh-stats-row .gh-stat-label {
    font-size: 11px;
    color: #6b7280;
    margin-top: 4px;
    font-weight: 500;
}

/* Section titles */
.gh-dashboard-section-title {
    font-size: 18px;
    font-weight: 700;
    color: #111827;
    margin: 0 0 16px;
    padding-bottom: 8px;
    border-bottom: 2px solid #e5e7eb;
}

/* Legacy stats grid (kept for other pages if used) */
.gh-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin-bottom: 24px;
}
.gh-stat-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 16px;
    text-align: center;
    text-decoration: none;
    color: inherit;
    transition: all .15s ease;
}
.gh-stat-card:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,.08);
    border-color: #f0b429;
}
.gh-stat-alert { border-color: #fca5a5; background: #fff5f5; }
.gh-stat-warning { border-color: #fcd34d; background: #fffbeb; }
.gh-stat-icon { font-size: 24px; margin-bottom: 6px; }
.gh-stat-number { font-size: 24px; font-weight: 700; color: #111827; line-height: 1; }
.gh-stat-label { font-size: 11px; color: #6b7280; margin-top: 4px; font-weight: 500; }

/* Dashboard blocks */
.gh-dashboard-block {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 20px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}
.gh-dashboard-block-alert { border-color: #fcd34d; background: #fffbeb; }
.gh-dashboard-block h3 { margin: 0 0 12px; font-size: 15px; }
.gh-dashboard-block h4 { font-weight: 600; }
.gh-dashboard-order-row {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 12px 0;
    border-bottom: 1px solid #f3f4f6;
    flex-wrap: wrap;
}
.gh-dashboard-order-row:last-child { border-bottom: none; }
.gh-order-num { font-weight: 700; color: #111827 !important; min-width: 60px; font-size: 15px; text-decoration: none; }
.gh-order-num a, a .gh-order-num { color: #111827 !important; text-decoration: none; }
.gh-order-date { color: #6b7280; font-size: 13px; }

@media (max-width: 768px) {
    .gh-dashboard-order-row {
        flex-wrap: wrap;
        gap: 8px 12px;
        align-items: flex-start;
    }
    .gh-dashboard-order-row .gh-order-num {
        min-width: 0;
        flex: 0 0 auto;
        font-size: 14px;
    }
    .gh-dashboard-order-row .gh-order-date {
        flex: 0 0 auto;
        font-size: 12px;
    }
    .gh-dashboard-order-row .gh-badge {
        flex: 0 0 auto;
    }
    .gh-dashboard-order-row .gh-btn,
    .gh-dashboard-order-row .gh-btn-sm {
        margin-left: auto;
        flex: 0 0 auto;
    }
}

/* Quick actions — compact secondary buttons */
.gh-quick-actions {
    display: flex;
    gap: 12px;
    margin-top: 24px;
    flex-wrap: wrap;
}
.gh-quick-btn {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 10px 20px;
    text-decoration: none;
    color: #374151;
    font-size: 14px;
    font-weight: 500;
    text-align: center;
    transition: all .15s ease;
}
.gh-quick-btn:hover {
    background: #f9fafb;
    border-color: #d1d5db;
    color: #111827;
}

/* === RĒĶINI === */
.gh-invoices-section h2 { margin-bottom: 16px; }
.gh-invoices-table { width: 100%; border-collapse: collapse; }
.gh-invoices-table th, .gh-invoices-table td { padding: 10px 12px; text-align: left; border-bottom: 1px solid #e5e7eb; }
.gh-invoices-table th { font-weight: 600; background: #f9fafb; }
.gh-loading { padding: 20px; text-align: center; color: #6b7280; }

/* === Mega Pack 7: Responsive — mobilais === */
@media (max-width: 768px) {
    .gh-portal-nav { padding: 0 16px; }
    .gh-portal-nav-links {
        display: none;
        flex-direction: column;
        position: fixed;
        top: 128px; /* 72px site header + 56px portal nav */
        left: 0;
        right: 0;
        background: var(--black);
        padding: 12px;
        z-index: 899;
        border-top: 1px solid rgba(255,255,255,.08);
    }
    .gh-portal-nav-links.open { display: flex; }
    .gh-portal-nav-links a { padding: 12px 16px; border-radius: 8px; }
    .gh-nav-burger { display: block; }
    .gh-portal-user-pill { display: none; }
    .gh-portal-main { padding: 16px; }
    .gh-products-grid { grid-template-columns: 1fr; }
    /* Dashboard responsive */
    .gh-dashboard { padding: 20px 16px 32px; }
    .gh-hero-row { flex-direction: column; border-radius: 8px; }
    .gh-welcome { padding: 16px 20px; border-radius: 8px 8px 0 0; }
    .gh-welcome h2 { font-size: 18px; }
    .gh-stats-row { border-top: 1px solid #e5e7eb; }
    .gh-stats-row .gh-stat-card { flex: 1; border-left: none; border-right: 1px solid #e5e7eb; width: auto; }
    .gh-stats-row .gh-stat-card:last-child { border-right: none; }
    .gh-stats-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
    .gh-stat-card { padding: 12px 10px; }
    .gh-stat-number { font-size: 20px; }
    .gh-quick-actions { flex-direction: column; gap: 8px; margin-top: 20px; }
    .gh-quick-btn { padding: 12px 16px; width: 100%; }
    /* Content sections */
    .gh-library-section,
    .gh-orders-section,
    .gh-invoices-section,
    .gh-profile-section,
    .gh-cart-section { padding: 16px; }
    .gh-modal-box { max-width: 100%; margin: 0; border-radius: var(--radius-lg) var(--radius-lg) 0 0; position: fixed; bottom: 0; left: 0; right: 0; max-height: 90vh; }
    #gh-versions-modal { align-items: flex-end; padding: 0; }
    .gh-section-header { flex-direction: column; align-items: flex-start; }
    .gh-header-actions { width: 100%; }
    .gh-form-actions { flex-direction: column; }
    .gh-form-actions .gh-btn { width: 100%; justify-content: center; }
}
@media (max-width: 480px) {
    .gh-stats-grid { grid-template-columns: 1fr 1fr; }
    .gh-login-box { padding: 28px 20px; }
}

/* === SHIPPING OPTIONS (Mega Pack 8) === */
.gh-shipping-options { display: flex; flex-direction: column; gap: 8px; }
.gh-shipping-opt { display: flex; align-items: center; gap: 12px; border: 1.5px solid var(--gray-300); border-radius: 10px; padding: 12px 14px; cursor: pointer; transition: var(--transition); }
.gh-shipping-opt:hover { border-color: var(--gold); }
.gh-shipping-opt.selected { border-color: var(--gold); background: var(--gold-light); }
.gh-shipping-opt input { display: none; }
.gh-shipping-icon { font-size: 24px; flex-shrink: 0; }
.gh-shipping-opt-content strong { display: block; font-size: 14px; }
.gh-shipping-opt-content small { color: var(--gray-500); font-size: 12px; }

.gh-shipping-opts-calc { display: flex; flex-direction: column; gap: 6px; }
.gh-ship-opt { display: flex; align-items: center; justify-content: space-between; padding: 10px 14px; border: 1.5px solid var(--gray-300); border-radius: 8px; cursor: pointer; transition: var(--transition); font-size: 14px; }
.gh-ship-opt.active, .gh-ship-opt:has(input:checked) { border-color: var(--gold); background: var(--gold-light); font-weight: 600; }
.gh-ship-opt input { display: none; }
.gh-calc-grand-total { display: flex; justify-content: space-between; align-items: center; padding: 14px 0; border-top: 2px solid var(--black); margin-top: 12px; font-size: 18px; font-weight: 800; }

.gh-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 480px) { .gh-form-row { grid-template-columns: 1fr; } }

.gh-address-card { border: 1.5px solid var(--gray-200); border-radius: 10px; padding: 14px 16px; display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.gh-address-card.default { border-color: var(--gold); background: var(--gold-light); }
.gh-address-info { flex: 1; font-size: 14px; line-height: 1.5; }

/* === PROFILS UN IESTATĪJUMI === */
.gh-settings-section {
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    padding: 24px;
}
.gh-settings-section .gh-section-desc { margin-top: 6px; }
.gh-settings-block { margin-bottom: 24px; padding: 20px 24px; border-radius: 12px; border: 1px solid var(--gray-200); background: #fff; }
.gh-settings-block-title { margin: 0 0 6px 0; font-size: 1.05rem; font-weight: 600; color: var(--black); }
.gh-settings-block-desc { margin: 0 0 14px 0; font-size: 13px; color: var(--gray-500); line-height: 1.45; }
.gh-settings-contact .gh-form-field { margin-bottom: 10px; }
.gh-settings-contact .gh-form-field label { display: block; font-size: 13px; font-weight: 500; margin-bottom: 4px; color: var(--gray-700); }
.gh-portal-users-list { list-style: none; margin: 0 0 12px 0; padding: 0; }
.gh-portal-user-row { padding: 10px 12px; border-bottom: 1px solid var(--gray-100); display: flex; align-items: center; justify-content: space-between; }
.gh-portal-user-row:last-child { border-bottom: none; }
.gh-portal-user-info { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-size: 14px; }
.gh-portal-user-info small { color: var(--gray-500); font-size: 12px; }
.gh-settings-empty { margin: 0 0 12px 0; color: var(--gray-500); font-size: 14px; }
.gh-checkbox-row { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; font-size: 14px; margin-bottom: 4px; }
.gh-checkbox-row input[type="checkbox"] { accent-color: var(--gold); }
.gh-settings-notify .gh-form-field { margin-top: 8px; }
.gh-settings-notify .gh-form-field label { display: block; font-size: 13px; font-weight: 500; margin-bottom: 4px; }
.gh-pwa-steps { margin: 0 0 12px 0; padding-left: 20px; color: var(--gray-600); font-size: 13px; line-height: 1.6; }

/* === PREFLIGHT (Mega Pack 9A) === */
.gh-preflight-badge { display: inline-flex; align-items: center; gap: 4px; padding: 3px 10px; border-radius: 20px; font-size: 11px; font-weight: 700; }
.gh-pf-passed   { background: #d1fae5; color: #065f46; }
.gh-pf-warnings { background: #fef3c7; color: #92400e; }
.gh-pf-failed   { background: #fee2e2; color: #991b1b; }
.gh-pf-pending  { background: #dbeafe; color: #1e40af; }
.gh-pf-none     { background: #f3f4f6; color: #9ca3af; }

.gh-preflight-result { border-radius: 10px; padding: 16px; margin-top: 12px; border: 1px solid; }
.gh-pf-result-passed   { background: #f0fdf4; border-color: #6ee7b7; }
.gh-pf-result-warnings { background: #fffbeb; border-color: #fcd34d; }
.gh-pf-result-failed   { background: #fff5f5; border-color: #fca5a5; }
.gh-pf-header { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.gh-pf-score  { font-weight: 700; font-size: 13px; }
.gh-pf-date   { font-size: 11px; color: #9ca3af; margin-left: auto; }
.gh-pf-section { margin-top: 10px; font-size: 13px; }
.gh-pf-section.gh-pf-errors { color: #991b1b; }
.gh-pf-section.gh-pf-warnings,
.gh-pf-warnings-sec { color: #92400e; }
.gh-pf-fixed  { color: #065f46; }
.gh-pf-item   { padding: 3px 0 3px 12px; border-left: 2px solid currentColor; margin-top: 4px; }
.gh-version-preflight { margin-top: 6px; }

/* === PILNS MAKETA SKATS (spec 5/9) === */
.gh-layout-detail { max-width: 1000px; margin: 0 auto; padding: 20px 0; }
.gh-layout-detail-header { margin-bottom: 24px; }
.gh-layout-detail-header h2 { margin: 0 0 4px 0; font-size: 1.5rem; font-weight: 700; }
.gh-layout-product { margin: 0; color: var(--gray-500); font-size: 14px; }
.gh-layout-detail-grid { display: grid; grid-template-columns: 1fr 280px; gap: 32px; align-items: start; }
@media (max-width: 768px) { .gh-layout-detail-grid { grid-template-columns: 1fr; } }
.gh-layout-preview { background: var(--gray-100); border-radius: var(--radius); overflow: hidden; margin-bottom: 20px; max-height: 400px; display: flex; align-items: center; justify-content: center; }
.gh-layout-preview img { max-width: 100%; max-height: 400px; object-fit: contain; }
.gh-layout-preview.gh-no-preview { min-height: 120px; color: var(--gray-400); font-size: 14px; }
.gh-layout-spec { margin-bottom: 20px; }
.gh-layout-spec h3 { margin: 0 0 8px 0; font-size: 1rem; font-weight: 600; }
.gh-layout-dims { color: var(--gray-600); font-size: 14px; margin-bottom: 8px; }
.gh-layout-notes { background: var(--gray-50); padding: 12px; border-radius: 8px; font-size: 13px; margin-bottom: 12px; white-space: pre-wrap; }

/* Print spec display and form */
.gh-print-spec-display { margin: 12px 0 16px; padding: 12px 16px; background: #f8fafc; border: 1px solid #e2e8f0; border-radius: 8px; }
.gh-spec-row { display: flex; gap: 8px; font-size: 14px; margin-bottom: 6px; }
.gh-spec-row:last-of-type { margin-bottom: 10px; }
.gh-spec-label { color: #64748b; min-width: 80px; }
.gh-spec-value { color: #1e293b; font-weight: 500; }
.gh-spec-edit-btn { margin-top: 4px; }
.gh-print-spec-form { margin: 12px 0 16px; padding: 14px 16px; background: #fffbeb; border: 1px solid #fde68a; border-radius: 8px; }
.gh-spec-field { margin-bottom: 12px; }
.gh-spec-field label { display: block; font-size: 12px; font-weight: 600; color: #64748b; margin-bottom: 4px; text-transform: uppercase; letter-spacing: 0.03em; }
.gh-spec-select, .gh-spec-input { width: 100%; padding: 8px 12px; border: 1.5px solid #e2e8f0; border-radius: 6px; font-size: 14px; background: #fff; }
.gh-spec-select:focus, .gh-spec-input:focus { outline: none; border-color: #f0b429; box-shadow: 0 0 0 3px rgba(240,180,41,0.15); }
.gh-spec-actions { display: flex; gap: 10px; align-items: center; margin-top: 14px; }
.gh-spec-msg { font-size: 13px; color: #10b981; }
.gh-spec-prompt { display: inline-block; padding: 10px 16px; background: #fef3c7; border: 1px solid #fcd34d; border-radius: 6px; font-size: 13px; color: #92400e; }

.gh-layout-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.gh-layout-actions--two { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.gh-detail-edit-details { border: 1px solid var(--gray-200); border-radius: 8px; padding: 0; }
.gh-detail-edit-summary { list-style: none; cursor: pointer; padding: 8px 14px; font-size: 14px; color: var(--gray-700); display: inline-block; border-radius: 6px; }
.gh-detail-edit-summary:hover { background: var(--gray-100); color: var(--gray-900); }
.gh-detail-edit-summary::-webkit-details-marker { display: none; }
.gh-detail-edit-details[open] .gh-detail-edit-summary { margin-bottom: 0; border-radius: 8px 8px 0 0; }
.gh-detail-edit-details .gh-form-block { padding: 0 0 16px 0; }
.gh-detail-status-info { padding: 10px 14px; background: #f0f9ff; border: 1px solid #bae6fd; border-radius: 8px; font-size: 13px; color: #0369a1; margin-bottom: 16px; }
.gh-detail-version-history { margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--gray-200); }
.gh-detail-version-history-title { margin: 0 0 10px 0; font-size: 1rem; font-weight: 600; color: var(--gray-700); }
.gh-layout-detail-side { position: sticky; top: 80px; }
.gh-layout-stats, .gh-layout-orders { background: var(--white); border: 1px solid var(--gray-200); border-radius: var(--radius); padding: 16px; margin-bottom: 16px; box-shadow: var(--shadow); }
.gh-layout-stats h3, .gh-layout-orders h3 { margin: 0 0 12px 0; font-size: 14px; font-weight: 700; }
.gh-stat-total { margin-bottom: 10px; font-size: 14px; }
.gh-stat-list { margin: 0 0 0 16px; padding: 0; font-size: 13px; color: var(--gray-700); }
.gh-order-links { margin: 0; padding: 0; list-style: none; font-size: 13px; }
.gh-order-links li { margin-bottom: 6px; }
.gh-order-links a { color: var(--blue); font-weight: 500; text-decoration: none; }
.gh-order-links a:hover { text-decoration: underline; }
.gh-component-reorder { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.gh-component-name a { color: inherit; text-decoration: none; font-weight: 600; }
.gh-component-name a:hover { color: var(--gold-dark); text-decoration: underline; }
.gh-component-preview a { display: block; }
.gh-component-preview a:hover { opacity: 0.9; }

/* Onboarding block */
.gh-onboarding { margin: 2rem 0; }
.gh-onboarding-header h2 { font-size: 1.4rem; font-weight: 700; color: #111827; margin-bottom: 1.5rem; }
.gh-onboarding-section-label { font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; color: #6b7280; margin-bottom: 0.75rem; }
.gh-onboarding-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.gh-onboarding-card { background: #fff; border: 1px solid #e5e7eb; border-radius: 12px; padding: 1.25rem; }
.gh-card-badge { display: inline-block; font-size: 11px; font-weight: 600; padding: 2px 10px; border-radius: 100px; margin-bottom: 0.75rem; }
.gh-card-blue .gh-card-badge { background: #dbeafe; color: #1e40af; }
.gh-card-green .gh-card-badge { background: #dcfce7; color: #166534; }
.gh-card-icon { font-size: 24px; margin-bottom: 0.5rem; }
.gh-card-title { font-size: 15px; font-weight: 600; color: #111827; margin-bottom: 0.75rem; }
.gh-card-steps { padding-left: 1.25rem; margin: 0; }
.gh-card-steps li { font-size: 13px; color: #4b5563; line-height: 1.6; margin-bottom: 4px; }
.gh-onboarding-repeat { background: #f9fafb; border-radius: 10px; padding: 1.25rem; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.gh-repeat-step { background: #fff; border: 1px solid #e5e7eb; border-radius: 8px; padding: 8px 14px; font-size: 13px; color: #111827; }
.gh-repeat-arrow { color: #9ca3af; font-size: 16px; }
.gh-repeat-note { width: 100%; font-size: 13px; color: #6b7280; margin: 8px 0 0; line-height: 1.6; }
.gh-onboarding-tip { margin-top: 1rem; background: #fffbeb; border-left: 3px solid #f0b429; padding: 1rem 1.25rem; border-radius: 0 8px 8px 0; font-size: 13px; color: #92400e; line-height: 1.6; }
@media (max-width: 600px) { .gh-onboarding-cards { grid-template-columns: 1fr; } }

/* === KALKULATORS PORTĀLĀ === */
.gh-portal-calc-wrap { max-width: 100%; }
.gh-portal-calc-header { padding: 24px 16px 0; }
.gh-portal-calc-header h2 { margin: 0 0 4px; font-size: 1.5rem; font-weight: 700; color: #111827; }
.gh-portal-calc-header p { color: #6b7280; font-size: 14px; margin: 0 0 12px; }

.gh-calc-add-panel { max-width: 480px; margin: 0 auto 24px; padding: 20px 24px; background: #fff; border: 1px solid #e5e7eb; border-radius: 12px; }
.gh-calc-add-inner { display: flex; flex-direction: column; gap: 12px; }
.gh-calc-add-result { display: flex; justify-content: space-between; align-items: center; }
.gh-calc-add-label { font-size: 13px; color: #6b7280; }
.gh-calc-add-price { font-size: 1.25rem; font-weight: 700; color: #111827; }
.gh-calc-add-btn { width: 100%; justify-content: center; }

.gh-calc-success-panel { max-width: 400px; margin: 40px auto; text-align: center; padding: 40px 24px; background: #fff; border: 1px solid #e5e7eb; border-radius: 12px; }
.gh-calc-success-icon { width: 56px; height: 56px; border-radius: 50%; background: #dcfce7; color: #16a34a; font-size: 24px; display: flex; align-items: center; justify-content: center; margin: 0 auto 16px; font-weight: 700; }
.gh-calc-success-panel h3 { margin: 0 0 8px; font-size: 1.25rem; font-weight: 700; }
.gh-calc-success-subtitle { color: #6b7280; font-size: 14px; margin: 0 0 24px; }
.gh-calc-success-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.gh-calc-success-cart-link { display: inline-flex; align-items: center; padding: 12px 24px; }

/* === GROZS === */
.gh-cart-section { padding: 24px 16px; max-width: 1200px; }
.gh-cart-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; }

/* 3-column layout: items | delivery | summary+actions */
.gh-cart-layout { display: grid; grid-template-columns: 1fr; gap: 20px; align-items: start; }
@media (min-width: 1024px) {
	.gh-cart-layout { grid-template-columns: 40fr 35fr 25fr; }
}
/* gh-cart-summary-wrap: display:contents makes its children direct grid items */
.gh-cart-col-items, .gh-cart-col-delivery, .gh-cart-col-summary { min-width: 0; }
.gh-cart-title { margin: 0; font-size: 1.5rem; font-weight: 700; color: #111827; }
.gh-cart-items { display: flex; flex-direction: column; gap: 10px; margin-bottom: 20px; }
.gh-cart-card { background: #fff; border: 1px solid #e5e7eb; border-radius: 10px; padding: 16px; display: grid; grid-template-columns: 1fr auto; gap: 12px; align-items: start; }
.gh-cart-card:has(.gh-cart-card-thumb) { grid-template-columns: auto 1fr auto; }
.gh-cart-card-thumb { display: flex; align-items: flex-start; }
.gh-cart-card-body {}
.gh-cart-card-name { font-weight: 600; color: #111827; font-size: 0.9375rem; margin-bottom: 2px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.gh-cart-calc-badge { font-size: 10px; font-weight: 600; background: #fffbeb; color: #92400e; border: 1px solid #f0b429; border-radius: 10px; padding: 2px 7px; letter-spacing: 0.02em; }
.gh-cart-card-meta { font-size: 0.8125rem; color: #6b7280; margin-bottom: 10px; }
.gh-cart-card-qty-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.gh-cart-card-qty-row input.gh-cart-qty { width: 80px; padding: 7px 10px; border: 1px solid #d1d5db; border-radius: 6px; font-size: 0.9375rem; }
.gh-cart-calc-qty { font-size: 0.875rem; color: #374151; }
.gh-cart-card-remove { font-size: 0.8125rem; color: #6b7280; text-decoration: none; cursor: pointer; }
.gh-cart-card-remove:hover { color: #dc2626; text-decoration: none; }
.gh-cart-card-right { text-align: right; }
.gh-cart-card-price { font-weight: 700; color: #111827; font-size: 1.125rem; }
.gh-cart-card-price-excl { font-weight: 400; color: #6b7280; font-size: 0.75rem; margin-top: 2px; }
.gh-cart-empty { text-align: center; padding: 48px 24px; background: #fff; border: 1px solid #e5e7eb; border-radius: 12px; color: #6b7280; }

.gh-cart-summary { background: #fff; border: 1px solid #e5e7eb; border-radius: 10px; padding: 16px 20px; margin-bottom: 16px; }
.gh-cart-summary-row { display: flex; justify-content: space-between; align-items: center; padding: 8px 0; border-bottom: 1px solid #f3f4f6; font-size: 14px; color: #374151; }
.gh-cart-summary-row:last-child { border-bottom: none; }
.gh-cart-summary-total { font-weight: 700; font-size: 1rem; color: #111827; padding-top: 12px; }
.gh-cart-delivery-block { background: #fff; border: 1px solid #e5e7eb; border-radius: 10px; padding: 16px 20px; margin-bottom: 16px; }
.gh-cart-block-title { margin: 0 0 12px; font-size: 0.9375rem; font-weight: 600; color: #111827; }
.gh-cart-field { margin-bottom: 0; }
.gh-cart-field label { display: block; font-size: 13px; font-weight: 500; margin-bottom: 6px; color: #374151; }
.gh-cart-field input { width: 100%; padding: 9px 12px; border: 1px solid #d1d5db; border-radius: 8px; font-size: 14px; box-sizing: border-box; }
.gh-cart-field input:focus { outline: none; border-color: #f0b429; box-shadow: 0 0 0 3px rgba(240,180,41,.15); }
.gh-cart-checkout-actions { margin-top: 4px; }
.gh-cart-checkout-actions .gh-btn-save {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	font-family: 'Inter', sans-serif;
	font-size: 18px;
	font-weight: 700;
	line-height: 1;
	padding: 18px 36px;
	background: #f0b429;
	color: #0f172a;
	border: none;
	border-radius: 10px;
	cursor: pointer;
	text-decoration: none;
	transition: background 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
	box-shadow: 0 4px 14px rgba(240, 180, 41, 0.35);
	width: 100%;
}
.gh-cart-checkout-actions .gh-btn-save:hover {
	background: #d97706;
	transform: translateY(-1px);
	box-shadow: 0 6px 18px rgba(240, 180, 41, 0.5);
}
.gh-cart-checkout-actions .gh-btn-save:disabled {
	background: #e5e7eb;
	color: #94a3b8;
	cursor: not-allowed;
	box-shadow: none;
	transform: none;
}

/* --- Cart: address select --- */
.gh-select { width: 100%; padding: 9px 12px; border: 1px solid #d1d5db; border-radius: 8px; font-size: 14px; box-sizing: border-box; background: #fff; margin-bottom: 10px; }
.gh-select:focus { outline: none; border-color: #f0b429; box-shadow: 0 0 0 3px rgba(240,180,41,.15); }

/* --- Cart: carrier selection --- */
.gh-carrier-list { display: flex; flex-direction: column; gap: 8px; }
.gh-carrier-option { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border: 1.5px solid #e5e7eb; border-radius: 8px; cursor: pointer; transition: border-color .15s, background .15s; }
.gh-carrier-option:hover { border-color: #f0b429; background: #fffbeb; }
.gh-carrier-option input[type="radio"] { accent-color: #f0b429; width: 16px; height: 16px; flex-shrink: 0; }
.gh-carrier-option:has(input:checked) { border-color: #f0b429; background: #fffbeb; }
.gh-carrier-name { flex: 1; font-size: 14px; font-weight: 500; color: #111827; }
.gh-carrier-price { font-size: 13px; font-weight: 600; color: #6b7280; }
/* Z12-C: piegādes rinda ar PVN (primary) + bez PVN (secondary) */
.ghc-shipping-price { display: inline-flex; flex-direction: column; align-items: flex-end; line-height: 1.2; }
.ghc-shipping-gross { font-size: 14px; font-weight: 700; color: #111827; }
.ghc-shipping-net   { font-size: 11px; font-weight: 400; color: #9ca3af; margin-top: 1px; }

/* --- Cart: parcel dropdown with inline search --- */
.gh-parcel-dropdown-trigger:hover { border-color: #f0b429; }
.gh-parcel-dropdown-trigger:focus { outline: none; border-color: #f0b429; box-shadow: 0 0 0 2px rgba(240,180,41,0.2); }
.gh-parcel-option:hover { background: #fffbeb !important; }
.gh-add-payer-link:hover { text-decoration: underline; }

/* --- Cart: artwork status --- */
.gh-cart-artwork-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin: 4px 0 6px; font-size: 12px; }
.gh-artwork-ok { color: #059669; font-weight: 500; }
.gh-artwork-missing { color: #d97706; font-weight: 500; }
.gh-artwork-link { color: #f0b429; font-weight: 600; text-decoration: none; font-size: 12px; }
.gh-artwork-link:hover { text-decoration: underline; }

/* === APMAKSA === */
.gh-payment-page { padding: 24px 16px; max-width: 760px; }
.gh-payment-header { margin-bottom: 20px; }
.gh-payment-header h2 { margin: 8px 0 0; font-size: 1.5rem; font-weight: 700; }
.gh-payment-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
@media (max-width: 640px) { .gh-payment-layout { grid-template-columns: 1fr; } }
.gh-payment-summary {}
.gh-payment-order-num { font-size: 13px; color: #6b7280; margin-bottom: 12px; font-family: monospace; }
.gh-payment-form-wrap { background: #fff; border: 1px solid #e5e7eb; border-radius: 12px; padding: 20px 24px; }
.gh-payment-done { text-align: center; padding: 60px 24px; background: #fff; border: 1px solid #e5e7eb; border-radius: 12px; max-width: 400px; margin: 40px auto; }
.gh-payment-done-icon { width: 56px; height: 56px; border-radius: 50%; background: #dcfce7; color: #16a34a; font-size: 24px; font-weight: 700; display: flex; align-items: center; justify-content: center; margin: 0 auto 16px; }
.gh-payment-done h2 { margin: 0 0 8px; }
.gh-payment-done p { color: #6b7280; margin: 0 0 24px; font-family: monospace; }

/* ============================================================
   ONBOARDING CHECKLIST WIDGET (.gh-onb-*)
   ============================================================ */
.gh-onb-widget { background: #fff; border: 1.5px solid var(--gray-200); border-radius: 16px; padding: 24px; margin-bottom: 28px; box-shadow: 0 2px 12px rgba(0,0,0,.05); }
.gh-onb-top { margin-bottom: 20px; }
.gh-onb-title { font-size: 17px; font-weight: 700; color: var(--black); margin: 0 0 12px; }
.gh-onb-progress-wrap { height: 8px; background: var(--gray-100); border-radius: 99px; overflow: hidden; margin-bottom: 6px; }
.gh-onb-progress-fill { height: 100%; background: var(--gold); border-radius: 99px; transition: width .5s ease; }
.gh-onb-progress-label { font-size: 12px; color: var(--gray-500); font-weight: 500; }

/* List */
.gh-onb-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 2px; }
.gh-onb-item { display: flex; align-items: flex-start; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--gray-100); }
.gh-onb-item:last-child { border-bottom: none; }

/* Checkbox circle */
.gh-onb-check { flex-shrink: 0; width: 24px; height: 24px; border-radius: 50%; border: 2px solid var(--gray-300); display: flex; align-items: center; justify-content: center; background: #fff; margin-top: 1px; transition: background .2s, border-color .2s; font-size: 13px; font-weight: 700; color: #fff; }
.gh-onb-item.gh-onb-done .gh-onb-check { background: var(--green); border-color: var(--green); }
.gh-onb-item.gh-onb-done .gh-onb-check::after { content: '✓'; }

/* Item content */
.gh-onb-content { flex: 1; min-width: 0; }
.gh-onb-label { background: none; border: none; padding: 0; font-size: 15px; font-weight: 600; color: var(--black); cursor: pointer; text-align: left; line-height: 1.4; display: flex; align-items: center; gap: 6px; }
.gh-onb-label::after { content: '›'; font-size: 18px; color: var(--gray-400); transition: transform .2s; }
.gh-onb-label:hover { color: var(--gold-dark); }
.gh-onb-label-link { font-size: 15px; font-weight: 600; color: var(--black); text-decoration: none; display: flex; align-items: center; gap: 6px; }
.gh-onb-label-link::after { content: '→'; color: var(--gray-400); font-size: 14px; }
.gh-onb-label-link:hover { color: var(--gold-dark); }
.gh-onb-label-done { font-size: 14px; color: var(--gray-500); font-weight: 400; text-decoration: line-through; }
.gh-onb-item.gh-onb-done .gh-onb-label, .gh-onb-item.gh-onb-done .gh-onb-label-link { color: var(--gray-400); }

/* Collapsible sub-sections */
.gh-onb-sub { display: none; margin-top: 14px; }
.gh-onb-sub-open { display: block; }
.gh-onb-guide-body { display: none; }
.gh-onb-guide-body.gh-onb-guide-open { display: block; animation: ghOnbSlide .25s ease; }
@keyframes ghOnbSlide { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: translateY(0); } }
.gh-onb-guide-inner { padding: 16px; background: var(--gray-50); border-radius: 10px; margin-top: 4px; }

/* Type toggle */
.gh-onb-type-row { display: flex; gap: 8px; margin-bottom: 14px; }
.gh-onb-type-btn { flex: 1; display: flex; align-items: center; justify-content: center; padding: 8px 0; border: 1.5px solid var(--gray-200); border-radius: 8px; font-size: 13px; font-weight: 600; color: var(--gray-700); cursor: pointer; transition: border-color .15s, background .15s; }
.gh-onb-type-btn.gh-onb-type-active { border-color: var(--gold); background: var(--gold-light); color: var(--black); }

/* Form fields */
.gh-onb-form-grid { display: flex; flex-direction: column; gap: 10px; }
.gh-onb-flabel { font-size: 12px; font-weight: 600; color: var(--gray-700); margin-bottom: -6px; }
.gh-onb-input { width: 100%; padding: 9px 12px; border: 1.5px solid var(--gray-200); border-radius: 8px; font-size: 14px; color: var(--black); box-sizing: border-box; outline: none; font-family: inherit; transition: border-color .15s; }
.gh-onb-input:focus { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(240,180,41,.12); }
.gh-onb-check-label { display: flex; align-items: center; gap: 7px; font-size: 13px; color: var(--gray-700); cursor: pointer; }
.gh-onb-save-btn { align-self: flex-start; background: var(--gold); color: var(--black); border: none; border-radius: 8px; padding: 10px 20px; font-size: 14px; font-weight: 700; cursor: pointer; font-family: inherit; transition: background .15s; }
.gh-onb-save-btn:hover { background: var(--gold-dark); color: #fff; }
.gh-onb-save-btn:disabled { opacity: .6; cursor: not-allowed; }
.gh-onb-msg { font-size: 13px; }
@media (max-width: 600px) { .gh-onb-type-row { flex-direction: column; } }

/* ---- Artwork modal (calculator) — fixed overlay ---- */
#gh-calc-artwork-modal {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
}
#gh-calc-artwork-modal.is-open {
  display: flex;
}
/* Modal box: single scrollable white card */
.gh-am-modal-box {
  width: 600px;
  max-width: 95vw;
  max-height: 90vh;
  overflow-y: auto;
  border-radius: 12px;
  background: #fff;
  padding: 28px;
  box-shadow: 0 20px 60px rgba(0,0,0,.3);
  box-sizing: border-box;
}
/* Title bar: title + close button */
.gh-am-modal-titlebar { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; }
.gh-am-modal-title { margin: 0; font-size: 20px; font-weight: 800; color: #111827; }
.gh-am-message { font-size: 13px; min-height: 18px; margin-top: 8px; }
.gh-am-dropzone { width: 100%; box-sizing: border-box; }
.gh-am-hint { font-size: 12px; color: #9ca3af; margin: 8px 0 0; }
/* Form fields inside modal */
.gh-am-modal-box .gh-form-field { margin-bottom: 14px; }
.gh-am-modal-box .gh-form-field label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 4px; color: #374151; }
.gh-am-modal-box .gh-form-field input,
.gh-am-modal-box .gh-form-field textarea,
.gh-am-modal-box .gh-form-field select { width: 100%; border: 1px solid #d1d5db; border-radius: 6px; padding: 8px 10px; font-size: 14px; box-sizing: border-box; }
/* Advanced toggle inside modal */
.gh-am-modal-box .gh-advanced-toggle {
  display: flex; align-items: center; gap: 6px;
  background: none; border: 1px solid #e5e7eb; border-radius: 8px; cursor: pointer;
  font-size: 13px; font-weight: 600; color: #374151;
  padding: 8px 12px; margin-bottom: 4px; width: 100%; box-sizing: border-box;
}
.gh-am-modal-box .gh-advanced-toggle .gh-toggle-arrow { transition: transform .15s; }
.gh-am-modal-box .gh-advanced-toggle.open .gh-toggle-arrow { transform: rotate(180deg); }
.gh-am-modal-box .gh-advanced-content { display: none; padding-top: 8px; }
.gh-am-modal-box .gh-advanced-content.open { display: block; }
/* Save/cancel actions */
.gh-am-modal-box .gh-form-actions { display: flex; gap: 10px; align-items: center; margin-top: 20px; }
.gh-am-modal-box .gh-btn-save { padding: 12px 24px; background: #f0b429; color: #111827; border: none; border-radius: 8px; font-size: 14px; font-weight: 700; cursor: pointer; display: flex; align-items: center; gap: 6px; }
.gh-am-modal-box .gh-btn-save:hover { background: #d9a020; }
.gh-am-modal-box .gh-btn-save:disabled { opacity: .6; cursor: not-allowed; }
/* Cancel button */
.gh-am-modal-box .gh-btn-cancel { padding: 10px 20px; background: #fff; color: #6b7280; border: 1px solid #d1d5db; border-radius: 8px; font-size: 14px; cursor: pointer; }
.gh-am-modal-box .gh-btn-cancel:hover { background: #f9fafb; }
/* Dropzone content inside calculator artwork modal */
.gh-am-modal-box .gh-dropzone { border: 2px dashed #d1d5db; border-radius: 10px; padding: 24px; text-align: center; cursor: pointer; transition: border-color 0.2s; background: #fafafa; }
.gh-am-modal-box .gh-dropzone.gh-dragover { border-color: #6366f1; background: #f0f0ff; }
.gh-am-modal-box .gh-dropzone-icon { font-size: 24px; margin-bottom: 6px; display: block; }
.gh-am-modal-box .gh-dropzone-text { font-size: 14px; font-weight: 600; color: #374151; margin-bottom: 4px; }
.gh-am-modal-box .gh-dropzone-hint { font-size: 12px; color: #9ca3af; }
.gh-am-modal-box .gh-dropzone-filename { font-size: 13px; color: #374151; margin-top: 8px; }
/* Progress bar for instant upload */
.gh-am-progress-wrap { display: flex; align-items: center; gap: 10px; margin-top: 10px; }
.gh-am-progress-bar { flex: 1; height: 8px; background: #e5e7eb; border-radius: 4px; overflow: hidden; }
.gh-am-progress-fill { height: 100%; background: linear-gradient(90deg, #6366f1 0%, #8b5cf6 100%); border-radius: 4px; transition: width 0.15s ease-out; }
.gh-am-progress-text { font-size: 12px; font-weight: 600; color: #6b7280; min-width: 36px; text-align: right; }
.gh-am-progress-wrap.gh-complete .gh-am-progress-fill { background: linear-gradient(90deg, #10b981 0%, #059669 100%); }
.gh-am-progress-wrap.gh-complete .gh-am-progress-text { color: #059669; }
.gh-am-progress-wrap.gh-error .gh-am-progress-fill { background: #ef4444; }
.gh-am-progress-wrap.gh-error .gh-am-progress-text { color: #ef4444; }
/* Required star and field error */
.gh-am-modal-box .gh-required { color: #f0b429; margin-left: 2px; }
.gh-am-modal-box .gh-field-error { font-size: 12px; color: #ef4444; min-height: 16px; margin-top: 4px; }

/* ---- Calc designs section ---- */
.gh-calc-designs-section { background: #f9fafb; border: 1px solid #e5e7eb; border-radius: 10px; padding: 16px; margin-bottom: 16px; }
.gh-calc-designs-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.gh-calc-designs-title { margin: 0; font-size: 14px; font-weight: 700; color: #111827; }
.gh-calc-designs-list { display: flex; flex-direction: column; gap: 8px; }
.gh-calc-designs-empty { font-size: 13px; color: #9ca3af; margin: 0; }

/* Design card */
.gh-design-card { display: flex; align-items: center; gap: 12px; background: #fff; border: 1px solid #e5e7eb; border-radius: 8px; padding: 10px 12px; }
.gh-design-card-visual { flex-shrink: 0; width: 48px; height: 48px; display: flex; align-items: center; justify-content: center; background: #f3f4f6; border-radius: 6px; overflow: hidden; }
.gh-design-card-thumb { width: 48px; height: 48px; object-fit: cover; }
.gh-design-card-icon { display: flex; flex-direction: column; align-items: center; justify-content: center; font-size: 22px; line-height: 1; gap: 2px; }
.gh-design-card-icon span { font-size: 9px; font-weight: 700; color: #6b7280; letter-spacing: .04em; }
.gh-design-card-icon--empty { opacity: .4; }
.gh-design-card-info { flex: 1; min-width: 0; }
.gh-design-card-name { font-size: 14px; font-weight: 600; color: #111827; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gh-design-card-sku { font-size: 12px; color: #6b7280; margin-top: 2px; }
.gh-design-card-actions { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.gh-design-card-qty-label { display: flex; flex-direction: column; align-items: center; font-size: 11px; color: #6b7280; font-weight: 600; gap: 2px; }
.gh-design-card-qty { width: 68px; padding: 5px 8px; border: 1.5px solid #d1d5db; border-radius: 6px; font-size: 13px; text-align: center; }
.gh-design-card-qty:focus { border-color: var(--gold,#f0b429); outline: none; }
@media (max-width: 480px) {
  .gh-design-card { flex-wrap: wrap; }
  .gh-design-card-actions { width: 100%; justify-content: flex-end; }
}

/* ---- Unified calculator page tabs ---- */
.gh-unified-calc-page { position: relative; }
.gh-calc-tabs-header { display: flex; gap: 4px; border-bottom: 2px solid #e5e7eb; margin-bottom: 24px; }
.gh-calc-tab { background: none; border: none; border-bottom: 3px solid transparent; margin-bottom: -2px; padding: 10px 18px; font-size: 14px; font-weight: 600; color: #6b7280; cursor: pointer; font-family: inherit; transition: color .15s, border-color .15s; display: flex; align-items: center; gap: 7px; }
.gh-calc-tab:hover { color: #111827; }
.gh-calc-tab.active { color: #111827; border-bottom-color: var(--gold, #f0b429); }
.gh-calc-tab-count { background: #e5e7eb; color: #374151; border-radius: 999px; padding: 1px 7px; font-size: 11px; font-weight: 700; }
.gh-calc-tab.active .gh-calc-tab-count { background: var(--gold, #f0b429); color: #111827; }
.gh-calc-pane { }

/* ---- Calculations tab ---- */
.gh-calcs-tab-wrap { padding-top: 4px; }
.gh-calcs-filters { display: flex; gap: 8px; margin-bottom: 16px; flex-wrap: wrap; }
.gh-calcs-filter { background: #f3f4f6; border: 1.5px solid #e5e7eb; border-radius: 8px; padding: 6px 14px; font-size: 13px; font-weight: 600; color: #6b7280; cursor: pointer; font-family: inherit; transition: all .15s; }
.gh-calcs-filter:hover { border-color: #9ca3af; color: #111827; }
.gh-calcs-filter.active { background: #111827; border-color: #111827; color: #fff; }
.gh-calcs-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.gh-calcs-table th { text-align: left; padding: 10px 12px; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: #6b7280; border-bottom: 2px solid #e5e7eb; white-space: nowrap; }
.gh-calcs-table td { padding: 10px 12px; border-bottom: 1px solid #f3f4f6; vertical-align: middle; }
.gh-calcs-table tr:last-child td { border-bottom: none; }
.gh-calcs-table tbody tr:hover td { background: #f9fafb; }
.gh-calcs-actions { white-space: nowrap; display: flex; gap: 4px; align-items: center; flex-wrap: wrap; }
.gh-calcs-empty { text-align: center; padding: 48px 20px; background: #f8fafc; border-radius: 12px; border: 1px solid #e2e8f0; }

/* Status badges */
.gh-badge { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: 0.78rem; font-weight: 700; white-space: nowrap; }
.gh-badge-gray   { background: #f3f4f6; color: #374151; }
.gh-badge-yellow { background: #fef9c3; color: #92400e; }
.gh-badge-blue   { background: #dbeafe; color: #1e40af; }
.gh-badge-green  { background: #dcfce7; color: #166534; }
.gh-badge-muted  { background: #f9fafb; color: #9ca3af; border: 1px solid #e5e7eb; }

/* Danger button */
.gh-btn-danger { color: #dc2626 !important; }
.gh-btn-danger:hover { background: #fef2f2 !important; border-color: #fca5a5 !important; }

@media (max-width: 768px) {
  .gh-table-wrap { overflow-x: visible; }
  .gh-calcs-table { display: block; }
  .gh-calcs-table thead { display: none; }
  .gh-calcs-table tbody { display: flex; flex-direction: column; gap: 12px; }
  .gh-calcs-table tr {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2px 12px;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 14px 16px;
    box-shadow: 0 1px 4px rgba(0,0,0,.05);
    border-left: 4px solid #f0b429;
  }
  .gh-calcs-table tr:hover td { background: transparent; }
  .gh-calcs-table td {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 4px 0;
    border: none;
    font-size: 13px;
  }
  .gh-calcs-table td::before {
    content: attr(data-label);
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .05em;
    color: #9ca3af;
  }
  /* Nr. spans full width at top */
  .gh-calcs-table td[data-label="Nr."] {
    grid-column: 1 / -1;
    flex-direction: row;
    align-items: center;
    gap: 8px;
    padding-bottom: 8px;
    border-bottom: 1px solid #f3f4f6;
    margin-bottom: 4px;
  }
  .gh-calcs-table td[data-label="Nr."]::before { display: none; }
  .gh-calcs-table td[data-label="Nr."] strong { font-size: 15px; color: #111827; }
  /* Specifikācija spans full width */
  .gh-calcs-table td[data-label="Specifikācija"] { grid-column: 1 / -1; }
  /* Actions span full width at bottom */
  .gh-calcs-table td.gh-calcs-actions {
    grid-column: 1 / -1;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 6px;
    padding-top: 8px;
    border-top: 1px solid #f3f4f6;
    margin-top: 4px;
  }
  .gh-calcs-table td.gh-calcs-actions::before { display: none; }
}

/* ============================================================
   PROMPT_T FIXES — Mobile overflow + misc
   ============================================================ */

/* SECTION 4: Portāla kalkulators — mobile flex-wrap fix */
@media (max-width: 640px) {
  .ghc-artwork-item,
  .ghc-maket-controls,
  .ghc-checkout-type,
  .gh-portal-calc__row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    width: 100%;
    box-sizing: border-box;
  }
  .ghc-artwork-item > *,
  .ghc-maket-controls > *,
  .gh-portal-calc__row > * {
    flex: 1 1 auto;
    min-width: 0;
    max-width: 100%;
    box-sizing: border-box;
  }
  /* Buttons — full width on mobile */
  .ghc-artwork-lib-btn,
  .ghc-artwork-edit-btn,
  .ghc-btn-lib,
  .ghc-btn-upload {
    width: 100%;
    flex-basis: 100%;
  }
}

/* Container no wider than viewport */
.gh-portal-wrap,
.gh-portal-content,
.ghc-wrap {
  max-width: 100vw;
  overflow-x: hidden;
  box-sizing: border-box;
}

/* SECTION 8: Grozā Veids / Uzņēmums / Privātpersona grid */
.gh-checkout__payer-type,
.gh-cart-payer-type {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  width: 100%;
}
.gh-checkout__payer-type__label,
.gh-cart-payer-label {
  display: block;
  font-weight: 600;
  margin-bottom: 8px;
  grid-column: 1 / -1;
}
.gh-checkout__payer-option,
.gh-cart-payer-option {
  padding: 14px;
  border: 2px solid #e2e8f0;
  border-radius: 8px;
  cursor: pointer;
  text-align: center;
  transition: border-color 0.2s;
}
.gh-checkout__payer-option--active,
.gh-checkout__payer-option input:checked + label,
.gh-cart-payer-option.active {
  border-color: #f0b429;
  background: #fef9c3;
}
@media (max-width: 480px) {
  .gh-checkout__payer-type,
  .gh-cart-payer-type {
    grid-template-columns: 1fr;
  }
}

/* SECTION 5: CTA button text color fix (for <a> and <button> tags) */
/* PROMPT_Z6 Section 4: iOS Safari ignores 'color' on buttons inherited as links.
   Need -webkit-text-fill-color override with full pseudo-class coverage. */
a.gh-btn-save,
a.gh-btn-save:link,
a.gh-btn-save:visited,
a.gh-btn-save:hover,
a.gh-btn-save:active,
a.gh-btn-save:focus,
button.gh-btn-save,
button.gh-btn-save:link,
button.gh-btn-save:visited,
button.gh-btn-save:hover,
button.gh-btn-save:focus,
button.gh-btn-save:active,
.gh-btn-save,
.gh-btn-save:link,
.gh-btn-save:visited,
.gh-btn-save:hover,
.gh-btn-save:active,
.gh-btn-save:focus,
.gk-calc__cta,
.gk-calc__cta:link,
.gk-calc__cta:visited,
.gk-calc__cta:hover,
.gk-calc__cta:active,
.gk-calc__cta:focus,
a.gk-calc__cta {
  background: #f0b429 !important;
  color: #0f172a !important;
  -webkit-text-fill-color: #0f172a !important;
  text-decoration: none !important;
  font-weight: 700;
}
.gh-btn-save .gh-btn-text,
a.gh-btn-save .gh-btn-text,
button.gh-btn-save .gh-btn-text {
  color: #0f172a !important;
  -webkit-text-fill-color: #0f172a !important;
}
button.gh-btn-save:focus {
  outline: 2px solid #d97706;
  outline-offset: 2px;
}
/* Z8-C: iOS Safari applies default UA button styling (blue-tinted) when
   -webkit-appearance is the default. Force `none` so our yellow background
   and dark text actually render. Also reset the bleed for disabled state. */
button.gh-btn-save,
input.gh-btn-save,
a.gh-btn-save {
  -webkit-appearance: none !important;
  appearance: none !important;
  -webkit-tap-highlight-color: rgba(0,0,0,0);
}
button.gh-btn-save:disabled,
button.gh-btn-save[disabled] {
  background: #e5e7eb !important;
  color: #94a3b8 !important;
  -webkit-text-fill-color: #94a3b8 !important;
}

/* SECTION 6: Info poga zem materiāliem — hide */
.gk-calc__materials-info,
.gk-calc__info-btn,
.gh-calc-info-btn {
  display: none !important;
}

/* SECTION 7: Drukāt poga disabled state */
.gk-maket__print-btn[disabled],
.gh-library-print-btn[disabled] {
  opacity: 0.4;
  cursor: not-allowed;
  background: #94a3b8;
}

/* SECTION 10a: Payer modal form alignment fix */
#gh-payer-modal {
  /* PROMPT_Z5 Section E: Contain modal within viewport on iPhone — prevents horizontal scroll. */
  max-width: 100%;
  box-sizing: border-box;
  overflow-x: hidden;
}
#gh-payer-modal * {
  box-sizing: border-box;
  max-width: 100%;
}
#gh-payer-modal .gh-form-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0; /* allow flex children to shrink below content width */
}
#gh-payer-modal label {
  font-size: 13px;
  font-weight: 600;
  color: #374151;
}
#gh-payer-modal input[type="text"],
#gh-payer-modal input[type="email"],
#gh-payer-modal input[type="tel"],
#gh-payer-modal input:not([type]),
#gh-payer-modal select,
#gh-payer-modal textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1.5px solid #e5e7eb;
  border-radius: 8px;
  /* PROMPT_Z5 Section E: 16px prevents iOS Safari auto-zoom on focus that shifts layout and causes horizontal scroll. */
  font-size: 16px;
  box-sizing: border-box;
  min-width: 0;
}
#gh-payer-modal input[type="text"]:focus,
#gh-payer-modal input[type="email"]:focus,
#gh-payer-modal input[type="tel"]:focus,
#gh-payer-modal input:not([type]):focus,
#gh-payer-modal select:focus,
#gh-payer-modal textarea:focus {
  border-color: #f0b429;
  outline: none;
  box-shadow: 0 0 0 3px rgba(240,180,41,0.15);
}
@media (max-width: 640px) {
  /* PROMPT_Z5 Section E: Collapse any inline 2-column grids to single column for iPhone. */
  #gh-payer-modal [style*="grid-template-columns: 1fr 1fr"],
  #gh-payer-modal [style*="grid-template-columns:1fr 1fr"],
  #gh-payer-modal [style*="grid-template-columns: 2fr 1fr"],
  #gh-payer-modal [style*="grid-template-columns: 1fr 2fr"] {
    grid-template-columns: 1fr !important;
  }
  #gh-payer-modal {
    padding: 16px !important;
  }
}

/* PROMPT_Z6 Section 5: payer modal "Veids" radios — iPhone Safari clean flex.
   The inline styles on <label> use font-size:13px which is unsafe (triggers iOS auto-zoom
   for related inputs) and the "#gh-payer-modal *" max-width:100% rule can collide with
   radio intrinsic sizing. Force explicit sizes + static positioning + 16px labels. */
#gh-payer-modal input[type="radio"][name="gh-modal-type"],
#gh-bp-form input[type="radio"][name="gh-bp-type"] {
  position: static !important;
  width: 20px !important;
  height: 20px !important;
  min-width: 20px !important;
  min-height: 20px !important;
  max-width: 20px !important;
  max-height: 20px !important;
  flex: 0 0 20px !important;
  flex-shrink: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  top: auto !important;
  left: auto !important;
  transform: none !important;
  accent-color: #f0b429;
  vertical-align: middle;
}
#gh-payer-modal label:has(input[type="radio"][name="gh-modal-type"]),
#gh-bp-form label:has(input[type="radio"][name="gh-bp-type"]) {
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  padding: 12px 14px !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 8px !important;
  cursor: pointer !important;
  min-height: 44px !important;
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
  background: #fff !important;
  font-size: 15px !important;
  line-height: 1.4 !important;
  color: #0f172a !important;
  margin: 0 !important;
  position: static !important;
}
#gh-payer-modal label:has(input[type="radio"][name="gh-modal-type"]:checked),
#gh-bp-form label:has(input[type="radio"][name="gh-bp-type"]:checked) {
  border-color: #f0b429 !important;
  background: #fffbeb !important;
}
/* Parent wrapper (the inline `display:flex;gap:12px` div) — on mobile stack vertically. */
@media (max-width: 640px) {
  #gh-payer-modal .gh-form-field > div[style*="display:flex"][style*="gap:12px"],
  #gh-bp-form .gh-form-field > div[style*="display:flex"][style*="gap:8px"] {
    flex-direction: column !important;
    gap: 8px !important;
    width: 100% !important;
  }
  #gh-payer-modal label:has(input[type="radio"][name="gh-modal-type"]),
  #gh-bp-form label:has(input[type="radio"][name="gh-bp-type"]) {
    font-size: 16px !important;
    min-height: 48px !important;
  }
}

/* SECTION 10: Notifikācijas mobile centrētas */
@media (max-width: 640px) {
  .gk-notifications__dropdown,
  .gh-notifications-dropdown {
    position: fixed;
    left: 50%;
    right: auto;
    top: 60px;
    transform: translateX(-50%);
    width: calc(100vw - 24px);
    max-width: 400px;
  }
  .gk-notifications__overlay,
  .gh-notifications-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.3);
    z-index: 999;
  }
}

/* ==========================================================================
   PROMPT_Z14: migrated from client-portal.css (which is NOT enqueued on the
   /portals/ cart page — only on order-detail). These rules previously never
   reached the cart drawer in production despite correct deploys.
   Covers Z11-C (trust badges), Z12-A (cart summary v3), Z13-A (promo
   de-dupe), Z13-B (uniform logo height 22px).
   ========================================================================== */

/* ==========================================================================
   PROMPT_Z11-C: Uniform payment logo badges
   ========================================================================== */
.ghc-trust-badges {
    margin-bottom: 16px;
    padding: 14px;
    background: #f9fafb;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
}
/* Z16-C: trust-badges tagad ir ZEM Maksāt pogas — vizuāli atdalīts no pogas */
.gh-checkout-payments.ghc-trust-badges {
    margin-top: 16px;
    padding-top: 14px;
}
.ghc-trust-label {
    display: block;
    font-size: 12px;
    color: #6b7280;
    margin-bottom: 10px;
    font-weight: 500;
}
.ghc-trust-logos {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-start;
    gap: 8px;
}
.ghc-trust-divider {
    display: inline-block;
    width: 1px;
    height: 20px;
    background: #e5e7eb;
    margin: 0 2px;
}
/* Z13-B: fixed-height strategy — katram logo vienāds renderētais augstums (22px) */
.ghc-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 40px;
    min-width: 60px;
    max-width: 80px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 4px;
    padding: 0 10px;
    box-sizing: border-box;
    flex: 0 0 auto;
    overflow: hidden;
}
.ghc-badge img,
.ghc-badge svg {
    height: 22px !important;
    width: auto !important;
    max-width: 60px;
    object-fit: contain;
    display: block;
}
/* Z16-A: per-brand visual weight tuning — tight wordmarks need less height,
   circular/logotype marks need a touch more */
.ghc-badge img[alt="Visa"]       { height: 18px !important; }
.ghc-badge img[alt="Mastercard"] { height: 24px !important; }
.ghc-badge img[alt="Apple Pay"]  { height: 22px !important; }
.ghc-badge img[alt="Google Pay"] { height: 22px !important; }
.ghc-badge img[alt="Swedbank"]   { height: 18px !important; }
.ghc-badge img[alt="SEB"]        { height: 20px !important; }
.ghc-badge img[alt="Citadele"]   { height: 20px !important; }
.ghc-badge img[alt="Luminor"]    { height: 20px !important; }
.ghc-badge img[alt="Revolut"]    { height: 18px !important; }
@media (max-width: 480px) {
    .ghc-badge {
        height: 36px;
        min-width: 54px;
        max-width: 72px;
        padding: 0 8px;
    }
    .ghc-badge img,
    .ghc-badge svg {
        height: 20px !important;
        max-width: 54px;
    }
    .ghc-badge img[alt="Swedbank"] {
        height: 16px !important;
    }
    .ghc-trust-logos {
        gap: 6px;
    }
}

/* Z13-A: ja .ghc-promo-active banner-s ir redzams, paslēp #gh-promo-result */
.ghc-drawer-summary:has(.ghc-promo-active:not([style*="display:none"])) #gh-promo-result,
.ghc-drawer-summary:has(.ghc-promo-active:not([style*="display: none"])) #gh-promo-result {
    display: none !important;
}

/* ============================================================
   Z12-A — Cart summary v3 (ar PVN primary, bez PVN secondary)
   ============================================================ */
.ghc-drawer-summary {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 16px 18px;
}
.ghc-drawer-summary .ghc-sum-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    font-size: 14px;
    color: #374151;
    gap: 12px;
}
.ghc-drawer-summary .ghc-sum-label {
    color: #6b7280;
}
.ghc-drawer-summary .ghc-sum-value {
    color: #111827;
    font-weight: 500;
    text-align: right;
}
.ghc-drawer-summary .ghc-sum-original {
    display: inline;
    color: #9ca3af;
    font-weight: 400;
    text-decoration: line-through;
    margin-right: 6px;
    font-size: 13px;
}
.ghc-drawer-summary .ghc-sum-current {
    color: #111827;
    font-weight: 600;
}

.ghc-promo-box {
    display: flex;
    gap: 6px;
    margin: 2px 0;
}
.ghc-promo-input {
    flex: 1;
    padding: 7px 10px;
    border: 1.5px solid #e5e7eb;
    border-radius: 6px;
    font-size: 13px;
    font-family: inherit;
    background: #fff;
    color: #111827;
    transition: border-color .15s;
}
.ghc-promo-input:focus {
    outline: none;
    border-color: #f0b429;
    box-shadow: 0 0 0 2px rgba(240,180,41,0.18);
}
.ghc-promo-apply {
    padding: 7px 14px;
    background: #111827;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: background .15s;
}
.ghc-promo-apply:hover { background: #000; }
.ghc-promo-apply:disabled { opacity: 0.6; cursor: not-allowed; }

.ghc-promo-active {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    padding: 8px 10px;
    background: #ecfdf5;
    border: 1px solid #a7f3d0;
    border-radius: 6px;
    font-size: 13px;
    color: #065f46;
}
.ghc-promo-active .ghc-promo-msg {
    flex: 1;
    line-height: 1.3;
}
.ghc-promo-active .ghc-promo-msg strong {
    color: #047857;
    font-weight: 700;
}
.ghc-promo-active .ghc-promo-code {
    color: #059669;
    font-size: 12px;
    margin-left: 4px;
}
.ghc-promo-remove {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: none;
    background: transparent;
    color: #047857;
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    transition: background .15s;
}
.ghc-promo-remove:hover {
    background: rgba(4,120,87,0.12);
}

.ghc-drawer-summary .ghc-sum-divider {
    border-top: 1px solid #e5e7eb;
    margin: 4px 0;
}
.ghc-drawer-summary .ghc-sum-total {
    font-size: 16px;
    padding: 2px 0;
}
.ghc-drawer-summary .ghc-sum-total .ghc-sum-label {
    color: #111827;
    font-weight: 600;
}
.ghc-drawer-summary .ghc-sum-total .ghc-sum-value {
    color: #111827;
    font-size: 20px;
    font-weight: 700;
}
.ghc-drawer-summary .ghc-sum-total-netto {
    font-size: 12px;
    color: #9ca3af;
}
.ghc-drawer-summary .ghc-sum-total-netto .ghc-sum-label {
    color: #9ca3af;
    font-size: 12px;
}
.ghc-drawer-summary .ghc-sum-total-netto .ghc-sum-value {
    color: #9ca3af;
    font-size: 12px;
    font-weight: 500;
}
.ghc-drawer-summary .ghc-sum-weight {
    font-size: 12px;
    color: #6b7280;
}
.ghc-drawer-summary .ghc-sum-weight .ghc-sum-label,
.ghc-drawer-summary .ghc-sum-weight .ghc-sum-value {
    color: #6b7280;
    font-size: 12px;
    font-weight: 400;
}
