/* Sūti Gudri — visi publiskās lapas stili vienā failā. */

/* PAMATA IESTATĪJUMI */
:root {
    --blue: #6b9dc5;
    --blue-dark: #447da8;
    --green: #b4d25e;
    --text: #58616b;
    --border: #eceef1;
}

* {
    box-sizing: border-box;
}

[hidden] {
    display: none !important;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: #fff;
    color: var(--text);
    font:
        14px/1.5 Arial,
        Helvetica,
        sans-serif;
}

a {
    color: var(--blue-dark);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

button,
input {
    font: inherit;
}

button,
summary {
    cursor: pointer;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
summary:focus-visible {
    outline: 3px solid #264e75;
    outline-offset: 3px;
}

.site-container {
    width: min(1280px, calc(100% - 40px));
    margin: 0 auto;
}

/* HEDERIS UN LOGO */
.site-header {
    padding: 0;
    min-height: 0;
    border-bottom: 1px solid var(--border);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    min-height: 50px;
    padding: 5px 0 0;
}

.site-logo {
    display: inline-flex;
    align-items: center;
    flex-shrink: 0;
    line-height: 1;
    text-decoration: none;
}

.site-logo:hover {
    text-decoration: none;
}

.site-logo img {
    display: block;
    width: 170px;
    height: auto;
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 26px;
}

.site-nav a {
    color: #69717a;
    font-size: 13px;
    text-transform: uppercase;
}

.site-nav a[aria-current] {
    color: var(--blue-dark);
}

.language-nav {
    display: flex;
    align-items: center;
    gap: 0;
    font-size: 12px;
}

.language-nav > * {
    padding: 0 9px;
    border-left: 1px solid var(--border);
}

.language-nav > :first-child {
    border: 0;
    color: var(--blue-dark);
    font-weight: bold;
}

.language-pending {
    color: #89949e;
    cursor: help;
}

.skip-link {
    position: fixed;
    left: 12px;
    top: -80px;
    z-index: 5;
    padding: 10px 16px;
    background: #fff;
}

.skip-link:focus {
    top: 12px;
}

/* REZULTĀTU SKATS */
.order-steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    list-style: none;
    padding: 0;
    margin: 24px 0 28px;
}

.order-steps li {
    text-align: center;
    padding-bottom: 12px;
    border-bottom: 7px solid #f2f0f1;
    color: #87919a;
}

.order-steps .current {
    border-color: var(--green);
    color: var(--blue-dark);
}

.quote-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 310px;
    gap: 28px;
    align-items: start;
}

.results-column {
    min-width: 0;
}

h1 {
    margin: 0 0 12px;
    font-size: 28px;
    font-weight: normal;
    line-height: 1.2;
    color: #6a7279;
}

.results-intro {
    margin: 0 0 18px;
}

#statuses {
    display: flex;
    flex-wrap: wrap;
    gap: 5px 8px;
    margin: 0 0 16px;
    color: #7b8995;
    font-size: 12px;
}

#statuses p {
    margin: 0;
    padding: 5px 8px;
    background: #f4f7fa;
    border-radius: 3px;
}

#statuses p.error {
    background: #fff0ed;
    color: #9b362a;
}

.offer-title {
    padding: 10px 12px;
    background: var(--blue);
    color: #fff;
    font-size: 16px;
}

.table {
    width: 100%;
    overflow-x: auto;
}

.offer-table {
    width: 100%;
    min-width: 590px;
    border-collapse: collapse;
    font-size: 13px;
}

.offer-table th {
    padding: 11px 12px;
    text-align: left;
    color: #8296a7;
    font-weight: normal;
    border-bottom: 1px solid var(--border);
}

.offer-table .service-column {
    width: 44%;
}

.offer-table td {
    padding: 18px 12px;
    border-bottom: 1px solid var(--border);
    vertical-align: middle;
}

.offer-table tbody tr:first-child {
    background: #f4f8e9;
}

.offer-provider {
    display: flex;
    align-items: center;
    gap: 16px;
}

.brand {
    display: inline-block;
    min-width: 82px;
    font-size: 22px;
    font-weight: 800;
    line-height: 1.2;
}

.fedex {
    color: #4d148c;
}

.ups {
    color: #6b421d;
}

.novapost {
    color: #ca2b22;
    font-size: 18px;
}

.dhl {
    color: #d40511;
    background: #ffcc00;
    padding: 3px 6px;
    border-radius: 2px;
}

.zipa {
    color: #252525;
}

.service-description {
    display: block;
    margin-top: 4px;
    font-size: 11px;
    line-height: 1.4;
    color: #7c858f;
}

.offer-price {
    color: #3b4854;
    font-size: 17px;
    white-space: nowrap;
}

.offer-price small {
    font-size: 11px;
    color: #778694;
}

.offer-price > span {
    display: block;
    font-size: 12px;
    line-height: 1.4;
}

.offer-table details {
    font-size: 12px;
}

.offer-table summary {
    white-space: nowrap;
    color: var(--blue-dark);
}

.offer-table details small {
    display: block;
    min-width: 90px;
    margin-top: 8px;
}

.offer-note {
    margin: 14px 0 20px;
    font-size: 11px;
    color: #8a939c;
    line-height: 1.6;
}

.calculation-details {
    margin: 20px 0 28px;
    font-size: 12px;
}

.calculation-details > details > summary {
    padding: 10px 0;
    color: #526879;
}

pre {
    white-space: pre-wrap;
    overflow-wrap: anywhere;
    background: #f4f6f8;
    border: 1px solid var(--border);
    padding: 12px;
    font: 11px/1.5 monospace;
}

#debug details {
    margin: 10px 0;
}

.back-to-home {
    border: 0;
    background: #f2f6f9;
    color: var(--blue-dark);
    border-radius: 3px;
    padding: 7px 12px;
    margin-top: 14px;
}

/* KALKULATORA PAMATA STILI */
#quote-form {
    padding: 18px;
    background: var(--blue);
    border-radius: 12px 12px 0 0;
    color: #fff;
}

#quote-form h2 {
    margin: 0 0 10px;
    font-size: 18px;
    font-weight: normal;
}

#quote-form h2:not(:first-child) {
    margin-top: 16px;
}

.calculator-intro {
    margin: 0 0 12px;
    font-size: 12px;
    color: #eef5fa;
}

#quote-form .grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-bottom: 12px;
}

#quote-form label {
    display: block;
    font-size: 11px;
}

#quote-form input:not([type="hidden"]):not([type="checkbox"]) {
    width: 100%;
    min-width: 0;
    min-height: 36px;
    padding: 8px 9px;
    margin-top: 4px;
    border: 1px solid #dbe5ed;
    border-radius: 3px;
    color: #536170;
    background: #fff;
}

#quote-form input::placeholder {
    color: #95a1ac;
}

#quote-form .check {
    display: flex;
    align-items: flex-start;
    gap: 6px;
    margin: 11px 0;
    line-height: 1.4;
}

#quote-form input[type="checkbox"] {
    flex-shrink: 0;
    margin: 2px 0 0;
    accent-color: #557e24;
}

#quote-form p small {
    display: block;
    font-size: 11px;
    color: #f2f6fa;
    line-height: 1.5;
}

#quote-form button {
    width: 100%;
    margin-top: 8px;
    padding: 11px 8px;
    color: #263a17;
    background: var(--green);
    border: 0;
    border-radius: 3px;
    font-weight: bold;
}

#quote-form button:hover {
    background: #c2de75;
}

.calculator-options {
    margin: 10px 0;
    font-size: 12px;
}

.calculator-options summary {
    margin: 7px 0 12px;
}

.results-view #quote-form h2:first-child {
    font-weight: normal;
}

.help-card {
    padding: 16px 18px;
    background: #f5f3f4;
    border-radius: 0 0 4px 4px;
}

.help-card h3 {
    font-size: 16px;
    font-weight: normal;
    margin: 0 0 8px;
}

.help-card p {
    margin: 8px 0;
    font-size: 12px;
    color: #808b96;
}

/* SĀKUMLAPA */
#homepage {
    --home-blue: #2465a0;
    --home-ink: #213c54;
    --home-muted: #627385;
    font-family: Arial, sans-serif;
    color: var(--home-ink);
}

#homepage *,
#homepage *::before,
#homepage *::after {
    box-sizing: border-box;
}

#homepage .home-hero {
    background: #fff url("hero-logistics.png") center 28px / 1600px auto no-repeat;
    transition: background-size 0.35s ease;
}

#homepage .hero-inner {
    display: flex;
    align-items: flex-start;
    min-height: 520px;
    padding: 18px 0;
}

#homepage #home-calculator {
    width: 100%;
    max-width: none;
}

/* Sākumlapas kalkulatora izmērs */
#homepage .sg-shipping-card {
    width: 420px;
    max-width: 100%;
    background: #f3f5fa;
    border: 1px solid #dce5ed;
    border-radius: 12px;
    box-shadow: 0 16px 45px #213c5410;
}

#homepage .sg-shipment-tabs {
    display: flex;
    gap: 5px;
    margin: 0;
    padding: 6px;
    border-bottom: 1px solid #dde5ee;
}

#homepage .sg-shipment-tabs button {
    flex: 1;
    min-width: 0;
    margin: 0;
    padding: 10px 12px;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: #627385;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
}

#homepage .sg-shipment-tabs button[aria-selected="true"] {
    color: #2465a0;
    background: #fff;
    box-shadow: 0 2px 8px #213c540c;
}

#homepage .sg-shipment-tabs button:hover {
    color: #2465a0;
}

#homepage #quote-form {
    padding: 18px;
    border: 0;
    border-radius: 0 0 16px 16px;
    background: transparent;
    color: var(--home-ink);
    box-shadow: none;
}

#homepage #quote-form h2 {
    margin: 0 0 6px;
    font-size: 17px;
    font-weight: bold;
}

#homepage #quote-form h2:not(:first-child) {
    margin-top: 8px;
}

#homepage #quote-form .calculator-intro {
    margin: 0 0 14px;
    font-size: 12px;
    color: var(--home-muted);
}

#homepage #quote-form > .grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-bottom: 14px;
}

#homepage #quote-form > .grid.sg-dimension-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
    align-items: end;
}

#homepage #quote-form label {
    font-size: 11px;
}

#homepage #quote-form input:not([type="hidden"]):not([type="checkbox"]),
#homepage #quote-form select {
    height: 38px;
    padding: 8px;
    font-size: 13px;
    border-radius: 6px;
    background: #fff;
}

#homepage #quote-form .country-results button {
    min-width: 0;
    width: 100%;
    margin: 0;
    margin-left: auto;
    padding: 11px 12px;
    display: block;
    text-align: left;
}

#homepage #quote-form .calculator-options {
    margin: 8px 0 10px;
}

#homepage #quote-form .sg-form-note {
    margin: 10px 0 12px;
    font-size: 11px;
    line-height: 1.45;
    color: var(--home-muted);
}

#homepage #quote-form > button[type="submit"] {
    display: block;
    width: 100%;
    min-width: 180px;
    min-height: 42px;
    margin: 0;
    background: #2465a0;
    color: #fff;
    border-radius: 7px;
    font-size: 14px;
    box-shadow: 0 5px 12px #2465a020;
}

#homepage #quote-form > button[type="submit"]:hover {
    background: #1b5080;
}

/* PALETES */
#sg-pallet-panel {
    padding: 18px;
    font-size: 14px;
    line-height: 1.65;
    min-width: 0;
}

#sg-pallet-panel h2 {
    margin: 0 0 12px;
    font-size: 20px;
}

.sg-pallet-contact {
    display: inline-flex;
    padding: 12px 18px;
    border-radius: 9px;
    background: #2465a0;
    color: #fff;
    text-decoration: none;
    font-weight: 700;
}

/* SĀKUMLAPAS SATURS */
#homepage .home-content {
    padding-top: 28px;
}

#homepage .home-highlights {
    display: grid;
    grid-template-columns: minmax(0, 1.65fr) minmax(0, 1fr);
    gap: 28px;
    align-items: start;
}

.promo-banner {
    min-height: 205px;
    padding: 22px;
    color: #fff;
    border-radius: 3px;
    background:
        linear-gradient(90deg, #588fb9 0%, #588fb9 44%, #588fb980 70%, #588fb922),
        url("hero.png") 78% center / cover;
}

.promo-banner > small {
    letter-spacing: 3px;
    font-size: 10px;
}

.promo-banner h1 {
    max-width: 400px;
    margin: 10px 0;
    font-size: 28px;
    font-weight: bold;
    color: #fff;
    text-transform: uppercase;
}

.promo-banner a {
    color: #fff;
    font-size: 12px;
}

.home-content h2 {
    font-weight: normal;
    text-transform: uppercase;
    font-size: 13px;
    margin: 0 0 12px;
}

.home-updates h2 {
    color: var(--blue-dark);
    margin: 0 0 5px;
}

.home-updates h2:not(:first-child) {
    margin-top: 16px;
}

.home-updates label,
.home-updates small {
    font-size: 11px;
    color: #8a949c;
}

.tracking-row {
    display: flex;
    margin: 4px 0;
}

.tracking-row input {
    min-width: 0;
    width: 100%;
    padding: 8px;
    border: 1px solid var(--border);
    background: #fff;
}

.tracking-row button {
    border: 0;
    padding: 0 12px;
    background: var(--green);
    color: #445927;
}

#homepage .tracking-row button {
    background: #2465a0;
    color: #fff;
}

.tracking-row :disabled {
    cursor: not-allowed;
}

.home-updates ul {
    list-style: none;
    padding: 0;
    margin: 0;
    font-size: 12px;
}

.home-updates li {
    margin: 5px 0;
    padding-left: 12px;
    border-left: 2px solid #d5e1ea;
}

/* BANERU ROTĀCIJA */
.sg-banner-carousel {
    min-width: 0;
}

.sg-banner-stage {
    position: relative;
    aspect-ratio: 2.92;
    background: #f3f5fa;
    border-radius: 12px;
    overflow: hidden;
    isolation: isolate;
}

.sg-banner-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition:
        opacity 0.65s ease,
        visibility 0.65s;
}

.sg-banner-slide.is-active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.sg-banner-slide a {
    display: block;
    width: 100%;
    height: 100%;
}

.sg-banner-slide img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.sg-banner-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 12px 0 0;
}

#homepage .sg-banner-controls > button {
    display: grid;
    place-items: center;
    width: 30px;
    height: 30px;
    padding: 0;
    border: 1px solid #e1e7ef;
    border-radius: 50%;
    background: #fff;
    color: #2465a0;
    font-size: 16px;
    cursor: pointer;
}

.sg-banner-dots {
    display: flex;
    align-items: center;
    gap: 8px;
}

#homepage .sg-banner-dots button {
    padding: 0;
    margin: 0;
    width: 8px;
    height: 8px;
    border: 0;
    border-radius: 8px;
    background: #d4dee8;
    cursor: pointer;
    transition:
        width 0.25s,
        background 0.25s;
}

#homepage .sg-banner-dots button[aria-current="true"] {
    width: 24px;
    background: #2465a0;
}

.sg-banner-fallback {
    min-height: 225px;
    border-radius: 12px;
    padding: 28px;
    background: linear-gradient(120deg, #2465a0, #164873);
    color: #fff;
}

.sg-banner-fallback small {
    letter-spacing: 3px;
    font-size: 11px;
}

#homepage .sg-banner-fallback h2 {
    color: #fff;
    margin: 15px 0;
    font-size: 28px;
    line-height: 1.25;
    font-weight: 700;
    text-transform: none;
}

.sg-banner-fallback p {
    margin: 0;
    font-size: 14px;
    color: #e8f2fa;
}

#homepage button:focus-visible,
#homepage a:focus-visible {
    outline: 3px solid #7daed8;
    outline-offset: 3px;
}

/* PAMĀCĪBAS UN POPULĀRIE MARŠRUTI */
.how-it-works,
.popular-routes {
    margin-top: 24px;
}

.how-grid,
.route-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
}

.how-grid article {
    position: relative;
    background: #f2f5f8;
    border-radius: 3px;
    padding: 14px 14px 14px 45px;
}

.how-grid article > span {
    position: absolute;
    left: 0;
    top: 0;
    padding: 5px 11px;
    background: var(--blue);
    color: #fff;
    border-radius: 3px 0 5px 0;
}

.how-grid h3 {
    color: var(--blue-dark);
    margin: 0 0 7px;
    font-size: 14px;
}

.how-grid p {
    margin: 0;
    font-size: 12px;
    line-height: 1.5;
}

.route-grid button {
    border: 1px solid var(--border);
    border-radius: 3px;
    padding: 12px;
    background: linear-gradient(#fff 0%, #fff 44%, #f5f2f3 44%);
    color: var(--text);
}

.route-grid button:hover {
    border-color: var(--blue);
}

.route-grid span {
    display: block;
    color: #9abc3f;
    font-size: 29px;
    margin-bottom: 10px;
}

.route-grid strong {
    display: block;
    font-size: 13px;
}

.route-grid small {
    display: block;
    margin-top: 6px;
    font-size: 11px;
    color: var(--blue-dark);
}

.provider-strip {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 38px;
    padding: 24px 0 6px;
    color: #65707a;
    font-size: 20px;
    font-weight: bold;
}

/* FOOTERIS */
.site-footer {
    margin-top: 32px;
    padding: 22px 0;
    background: #565656;
    color: #fff;
}

.footer-inner {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    align-items: center;
}

.footer-inner strong {
    display: block;
}

.footer-inner span,
.footer-inner small {
    font-size: 11px;
    color: #d4d4d4;
}

.footer-inner a {
    color: #fff;
}

/* DESKTOP KALKULATORS */
@media (min-width: 761px) {
    #homepage .sg-shipping-card {
        margin-top: 25px;
    }

    #homepage .home-hero:has(#quote-form details[open]) {
        background-size: 1700px auto;
    }

    #homepage #quote-form input:not([type="hidden"]):not([type="checkbox"]),
    #homepage #quote-form select {
        height: 32px;
        min-height: 0;
        padding: 5px 8px;
        font-size: 12px;
    }

    #homepage #quote-form > .grid {
        gap: 8px;
        margin-bottom: 10px;
    }
}

/* PLANŠETES UN ŠAURĀKI EKRĀNI */
@media (max-width: 1050px) {
    .header-inner {
        flex-wrap: wrap;
        gap: 14px;
    }

    .site-nav {
        order: 3;
        width: 100%;
        justify-content: center;
    }

    .quote-layout {
        gap: 18px;
        grid-template-columns: minmax(0, 1fr) 280px;
    }

    .offer-provider {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }
}

@media (max-width: 1000px) and (min-width: 761px) {
    #homepage .home-hero {
        background-position: calc(50% + 100px) 28px;
    }
}

/* TELEFONI */
@media (max-width: 760px) {
    .site-container {
        width: calc(100% - 28px);
    }

    .site-nav {
        flex-wrap: wrap;
        gap: 10px 18px;
    }

    .site-nav a {
        font-size: 11px;
    }

    .site-logo img {
        width: 135px;
    }

    .language-nav > * {
        padding: 0 6px;
    }

    .quote-layout {
        grid-template-columns: 1fr;
    }

    .calculator-column {
        grid-row: 1;
    }

    .order-steps {
        margin: 18px 0;
        font-size: 12px;
    }

    #homepage .home-hero {
        background-size: 1000px auto;
        background-position: calc(50% - 120px) top;
    }

    #homepage .hero-inner {
        min-height: 0;
        padding: 180px 0 20px;
    }

    #homepage .sg-shipping-card {
        width: 100%;
    }

    #homepage #quote-form {
        background: #f3f5fa;
    }

    #homepage .home-highlights {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .how-grid,
    .route-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }

    .promo-banner h1 {
        font-size: 24px;
    }

    .provider-strip {
        gap: 18px;
        font-size: 17px;
    }

    .footer-inner {
        flex-wrap: wrap;
        font-size: 12px;
    }
}

@media (max-width: 480px) {
    #homepage #quote-form {
        padding: 16px;
    }

    #homepage #quote-form > .grid.sg-dimension-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    #homepage #quote-form input:not([type="hidden"]):not([type="checkbox"]),
    #homepage #quote-form select {
        font-size: 16px;
    }

    #homepage .sg-banner-fallback h2 {
        font-size: 24px;
    }
}

/* SAMAZINĀTA ANIMĀCIJA */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    .sg-banner-slide,
    .sg-banner-dots button,
    #homepage .home-hero {
        transition: none;
    }
}

.offer-provider-logo {
    display: block;
    width: 82px;
    height: 40px;
    object-fit: contain;
    flex-shrink: 0;
}

.sg-order-button {
    display: inline-block;
    margin-top: 12px;
    padding: 11px 22px;
    border: 0;
    border-radius: 8px;
    background: #166a4a;
    color: #fff;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
}
.sg-order-button:hover {
    background: #105238;
}
.sg-order-button:focus-visible {
    outline: 3px solid #eeae30;
    outline-offset: 3px;
}
.sg-order-page {
    margin: 0;
    background: #f4f7f6;
    color: #20362e;
    font:
        16px/1.5 Arial,
        sans-serif;
}
.sg-order-page * {
    box-sizing: border-box;
}
.sg-order-page main {
    max-width: 1050px;
    padding: 32px 20px 64px;
    margin: auto;
}
.sg-order-page a {
    color: #166a4a;
}
.sg-order-page h1 {
    margin-top: 0;
}
.sg-order-page h2 {
    font-size: 22px;
    margin-top: 0;
}
.sg-order-page .sg-order-step {
    color: #62756c;
    margin-bottom: 8px;
}
.sg-order-page .sg-order-summary,
.sg-order-page fieldset {
    background: #fff;
    border: 1px solid #d7e3dc;
    border-radius: 12px;
    padding: 22px;
    margin: 0 0 20px;
    min-width: 0;
}
.sg-order-page legend {
    font-size: 20px;
    font-weight: 700;
}
.sg-order-page .sg-order-columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}
.sg-order-page label {
    display: block;
    margin-bottom: 14px;
    font-weight: 600;
}
.sg-order-page input,
.sg-order-page textarea {
    display: block;
    width: 100%;
    padding: 11px;
    margin-top: 5px;
    border: 1px solid #b7cabe;
    border-radius: 6px;
    font: inherit;
    background: #fff;
}
.sg-order-page input:focus,
.sg-order-page textarea:focus {
    outline: 2px solid #166a4a;
    outline-offset: 1px;
}
.sg-order-page .sg-order-success {
    padding: 16px;
    background: #e2f3e9;
    border-radius: 8px;
}
.sg-order-page .sg-order-errors {
    padding: 16px 16px 16px 36px;
    background: #fbe7e5;
    color: #912d26;
    border-radius: 8px;
}
@media (max-width: 700px) {
    .sg-order-page .sg-order-columns {
        grid-template-columns: 1fr;
        gap: 0;
    }
}

/* Atsevišķs, izolēts pasūtījuma formas stils. */
#sg-order-ui.sg-order-page {
    --sgo-accent: #6788b9;
    --sgo-ink: #29384d;
   padding: 28px 0 32px !important;
background: transparent;
    color: var(--sgo-ink);
    font:
        13px/1.45 Arial,
        sans-serif !important;
}
#sg-order-ui *,
#sg-order-ui *::before,
#sg-order-ui *::after {
    box-sizing: border-box;
}
#sg-order-ui [hidden] {
    display: none !important;
}
#sg-order-ui .site-container {
    box-sizing: border-box;
    width: calc(100% - 40px) !important;
    max-width: 1480px !important;
    margin: 0 auto !important;
    padding: 28px 29px !important;
    background: #fff;
    border: 1px solid #dfe7f2;
    border-radius: 14px;
    box-shadow: 0 8px 32px rgba(43, 81, 137, 0.07);
}
#sg-order-ui a {
    color: #5278a9;
    text-decoration: none;
}
#sg-order-ui a:hover {
    text-decoration: underline;
}
#sg-order-ui .sg-order-progress {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    list-style: none;
    padding: 0 !important;
    margin: 0 0 18px !important;
    font-size: 12px !important;
    text-align: center;
}
#sg-order-ui .sg-order-progress li {
    position: relative;
    padding: 0 6px 9px !important;
    margin: 0 !important;
    color: #8590a0;
    border-bottom: 4px solid #e5eaf1;
}
#sg-order-ui .sg-order-progress li:first-child {
    border-radius: 0 0 0 4px;
}
#sg-order-ui .sg-order-progress li:last-child {
    border-radius: 0 0 4px 0;
}
#sg-order-ui .sg-order-progress .is-complete {
    border-bottom-color: #c0d49a;
}
#sg-order-ui .sg-order-progress .is-current {
    color: #42618d;
    font-weight: bold;
    border-bottom-color: #7896c1;
}
#sg-order-ui .sg-order-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 450px;
gap: 26px;
    align-items: start;
}
#sg-order-ui .sg-order-content {
    min-width: 0;
}
#sg-order-ui h1 {
    margin: 0 0 14px !important;
    font:
        600 23px/1.25 Arial,
        sans-serif !important;
    color: var(--sgo-ink) !important;
}
#sg-order-ui form {
    margin: 0 !important;
    padding: 0 !important;
}
#sg-order-ui .sg-order-section {
    margin: 0 0 12px !important;
    padding: 13px 14px !important;
    border: 1px solid #3D438E !important;
    border-radius: 10px !important;
    background: #fff !important;
    box-shadow: 0 2px 5px rgba(32, 55, 87, 0.025);
}
#sg-order-ui .sg-order-section h2 {
    margin: 0 0 11px !important;
    padding: 0 0 9px !important;
    border: 0;
    border-bottom: 1px solid #edf0f5;
    border-radius: 0;
    background: transparent !important;
    color: #3d5373 !important;
    font:
        600 14px/1.3 Arial,
        sans-serif !important;
}
#sg-order-ui .sg-order-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px 14px;
}
#sg-order-ui .sg-order-grid > div {
    min-width: 0;
}
#sg-order-ui .sg-order-field {
    display: grid;
    grid-template-columns: 96px minmax(0, 1fr);
    align-items: center;
    gap: 8px;
    margin: 0 !important;
    padding: 0 !important;
    font:
        12px/1.3 Arial,
        sans-serif !important;
    font-weight: normal;
}
#sg-order-ui .sg-order-field > span {
    text-align: right;
    color: #6c7788;
}
#sg-order-ui .sg-order-required {
    color: #cf6e6e;
    font-weight: normal;
}
#sg-order-ui .sg-order-field input,
#sg-order-ui .sg-order-field select,
#sg-order-ui .sg-order-field textarea {
    display: block;
    width: 100% !important;
    min-width: 0;
    height: 33px !important;
    margin: 0 !important;
    padding: 6px 9px !important;
    border: 1px solid #d9e0e9 !important;
    border-radius: 6px !important;
    background: #fff !important;
    color: #344258 !important;
    box-shadow: none;
    font:
        13px/1.3 Arial,
        sans-serif !important;
}
#sg-order-ui .sg-order-field select {
    cursor: pointer;
    padding-right: 4px !important;
}
#sg-order-ui .sg-order-field input[readonly] {
    background: #f6f8fb !important;
    color: #778395 !important;
}
#sg-order-ui .sg-order-field textarea {
    height: auto !important;
    min-height: 64px;
    resize: vertical;
}
#sg-order-ui .sg-order-field input:focus,
#sg-order-ui .sg-order-field select:focus,
#sg-order-ui .sg-order-field textarea:focus {
    outline: 2px solid #b3c7e3;
    outline-offset: 1px;
    border-color: #8ca8cf !important;
}
#sg-order-ui .sg-order-checkbox {
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 33px;
    margin: 0 !important;
    padding: 0 0 0 104px !important;
    font:
        12px/1.35 Arial,
        sans-serif !important;
    color: #596b81;
    cursor: pointer;
}
#sg-order-ui .sg-order-checkbox input {
    appearance: auto;
    width: 15px !important;
    height: 15px !important;
    flex: 0 0 15px;
    margin: 0 !important;
    accent-color: #6788b9;
}
#sg-order-ui .sg-order-notes {
    margin-top: 10px !important;
    align-items: start;
}
#sg-order-ui .sg-order-notes > span {
    padding-top: 7px;
}
#sg-order-ui .sg-order-notice {
    margin: 9px 0 0 !important;
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
    color: #8893a3;
    font:
        11px/1.4 Arial,
        sans-serif !important;
}
#sg-order-ui .sg-order-notice a {
    margin-left: 4px;
    white-space: nowrap;
}
#sg-order-ui .sg-order-hint {
    margin: 7px 0 0 !important;
    color: #8c96a5;
    font:
        11px/1.4 Arial,
        sans-serif !important;
}
#sg-order-ui .sg-order-sidebar {
    min-width: 0;
    margin-top: 43px;
}
#sg-order-ui .sg-order-summary {
    margin: 0 !important;
    padding: 22px !important;
    background: #f3f4fa !important;
    border: 1px solid #dce2ef !important;
    border-radius: 12px !important;
    overflow: hidden;
    box-shadow: 0 5px 22px rgba(33, 60, 84, .03);
}

#sg-order-ui .sg-order-summary h2 {
    margin: 0 0 20px !important;
    padding: 0 !important;
    background: transparent !important;
    border: 0 !important;
    color: #29384d !important;
    font: 500 21px/1.3 Arial, sans-serif !important;
}

#sg-order-ui .sgo-summary-heading {
    margin: 20px 0 10px;
    padding: 14px 0 0;
    border-top: 1px solid #dce2ef;
    color: #365d9e;
    font: 700 14px/1.4 Arial, sans-serif;
}

#sg-order-ui .sg-order-summary h2 + .sgo-summary-heading {
    margin-top: 0;
    padding-top: 0;
    border-top: 0;
}

#sg-order-ui .sg-order-summary dl {
    display: block;
    margin: 0 !important;
    padding: 0 !important;
    background: transparent !important;
}

#sg-order-ui .sg-order-summary dl > div {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr);
    align-items: baseline;
    gap: 12px;
    padding: 7px 0 !important;
    border: 0;
    background: transparent !important;
}

#sg-order-ui .sg-order-summary dt {
    margin: 0 !important;
    color: #748197 !important;
    font: 400 13px/1.5 Arial, sans-serif !important;
}

#sg-order-ui .sg-order-summary dd {
    margin: 0 !important;
    color: #29384d !important;
    font: 600 14px/1.5 Arial, sans-serif !important;
    overflow-wrap: anywhere;
}

#sg-order-ui .sgo-carrier {
    display: flex;
    align-items: center;
    gap: 16px;
}

#sg-order-ui .sgo-carrier-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 108px;
    min-height: 58px;
    padding: 10px;
    border: 1px solid #d5d9e0;
    border-radius: 9px;
    background: #fff;
    color: #252a31;
    font: 800 17px/1.15 Arial, sans-serif;
    text-align: center;
    overflow-wrap: anywhere;
}

#sg-order-ui .sgo-carrier-service {
    min-width: 0;
    color: #29384d;
    font: 600 14px/1.45 Arial, sans-serif;
    overflow-wrap: anywhere;
}

#sg-order-ui .sg-order-summary .sgo-summary-totals {
    margin-top: 20px !important;
    padding-top: 14px !important;
    border-top: 1px solid #dce2ef;
}

#sg-order-ui .sg-order-summary .sg-order-summary-price {
    margin-top: 10px;
    padding-top: 16px !important;
    border-top: 1px solid #dce2ef;
}

#sg-order-ui .sg-order-summary-price dt {
    color: #29384d !important;
    font-weight: 700 !important;
}

#sg-order-ui .sg-order-summary-price dd {
    color: #365d9e !important;
    font: 700 25px/1.25 Arial, sans-serif !important;
}

#sg-order-ui .sgo-contact-card {
    margin-top: 16px;
    padding: 20px 22px;
    border: 1px solid #dce2ef;
    border-radius: 10px;
    background: #f1f4fc;
    color: #748197;
    font: 400 13px/1.6 Arial, sans-serif;
}

#sg-order-ui .sgo-contact-card h3 {
    margin: 0 0 10px;
    color: #365d9e;
    font: 700 18px/1.3 Arial, sans-serif;
}

#sg-order-ui .sgo-contact-card p {
    margin: 0 0 12px;
}

#sg-order-ui .sgo-contact-card a {
    color: #365d9e;
    font-weight: 600;
}
#sg-order-ui .sg-order-success,
#sg-order-ui .sg-order-errors {
    margin: 0 0 12px !important;
    padding: 11px 14px !important;
    border: 1px solid #d9e6c7;
    border-radius: 8px;
    background: #f4f9ed;
    color: #55713e;
    font-size: 13px !important;
}
#sg-order-ui .sg-order-errors {
    padding-left: 28px !important;
    background: #fff4f4;
    border-color: #efd7d7;
    color: #a55353;
}
#sg-order-ui .sg-order-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 12px;
    font-size: 12px !important;
}
#sg-order-ui .sg-order-button {
    width: auto !important;
    margin: 0 !important;
    padding: 10px 16px !important;
    border: 1px solid #5979a5 !important;
    border-radius: 7px !important;
    background: #6788b9 !important;
    color: #fff !important;
    font:
        600 13px/1.3 Arial,
        sans-serif !important;
    cursor: pointer;
}
#sg-order-ui .sg-order-button:hover {
    background: #5879aa !important;
}
@media (max-width: 960px) {
   
    #sg-order-ui .sg-order-field {
        grid-template-columns: 1fr;
        gap: 4px;
    }
    #sg-order-ui .sg-order-field > span {
        text-align: left;
    }
    #sg-order-ui .sg-order-checkbox {
        padding-left: 0 !important;
    }
}
@media (max-width: 700px) {
  
    #sg-order-ui .sg-order-layout {
        grid-template-columns: 1fr;
    }
    #sg-order-ui h1 {
        font-size: 21px !important;
    }
    #sg-order-ui .sg-order-sidebar {
        grid-row: 1;
        margin-top: 0;
    }
    
    #sg-order-ui .sg-order-actions {
        flex-wrap: wrap;
    }
}
@media (max-width: 430px) {
    #sg-order-ui .sg-order-grid {
        grid-template-columns: 1fr;
    }
    #sg-order-ui .sg-order-progress {
        font-size: 11px !important;
    }
    #sg-order-ui .sg-order-button {
        width: 100% !important;
    }
}
/* Tikai kalkulatora piedāvājumu saraksts. */
#sg-results-table {
    width: 100% !important;
    table-layout: fixed;
    border-collapse: separate !important;
    border-spacing: 0 !important;
    background: #fff;
    color: #344258;
    font:
        13px/1.4 Arial,
        sans-serif !important;
}
#sg-results-table *,
#sg-results-table *::before,
#sg-results-table *::after {
    box-sizing: border-box;
}
#sg-results-table [hidden] {
    display: none !important;
}
#sg-results-table thead th {
    padding: 11px 9px !important;
    border: 0 !important;
    border-bottom: 1px solid #e3e9f1 !important;
    background: #f5f7fb !important;
    color: #78869a !important;
    font:
        500 11px/1.4 Arial,
        sans-serif !important;
    text-align: center;
    vertical-align: middle;
}
#sg-results-table thead th:first-child {
    width: 29%;
    text-align: left;
    padding-left: 14px !important;
}
#sg-results-table thead th:nth-child(2) {
    width: 10%;
}
#sg-results-table thead th:nth-child(3) {
    width: 12%;
}
#sg-results-table thead th:nth-child(4) {
    width: 10%;
}
#sg-results-table thead th:nth-child(5) {
    width: 18%;
}
#sg-results-table thead th:nth-child(6) {
    width: 8%;
}
#sg-results-table thead th:nth-child(7) {
    width: 13%;
}
#sg-results-table .sg-result-row > td {
    padding: 14px 9px !important;
    border: 0 !important;
    border-bottom: 1px solid #edf0f5 !important;
    background: #fff !important;
    color: #344258 !important;
    vertical-align: middle;
    text-align: center;
    font:
        13px/1.4 Arial,
        sans-serif !important;
}
#sg-results-table .sg-result-row:hover > td {
    background: #fbfcfe !important;
}
#sg-results-table .sg-result-row > td:first-child {
    padding-left: 14px !important;
    text-align: left;
}
#sg-results-table .sg-result-provider {
    display: flex;
    align-items: center;
    gap: 11px;
    min-width: 0;
}
#sg-results-table .sg-result-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 78px;
    height: 44px;
    flex: 0 0 78px;
    padding: 4px;
    background: #fff;
    border: 1px solid #edf0f5;
    border-radius: 8px;
    overflow: hidden;
}
#sg-results-table .sg-result-logo img {
    display: block !important;
    width: 68px !important;
    height: 34px !important;
    max-width: 68px !important;
    max-height: 34px !important;
    margin: 0 !important;
    padding: 0 !important;
    object-fit: contain !important;
}
#sg-results-table .sg-result-logo .brand {
    display: block;
    max-width: 68px;
    margin: 0 !important;
    padding: 0 !important;
    background: transparent !important;
    border: 0 !important;
    border-radius: 0 !important;
    font:
        700 12px/1.2 Arial,
        sans-serif !important;
    text-align: center;
    overflow-wrap: anywhere;
}
#sg-results-table .sg-result-service-name {
    min-width: 0;
    color: #354c6f;
    font-size: 13px;
    font-weight: 600;
    overflow-wrap: anywhere;
}
#sg-results-table .sg-result-days strong {
    display: block;
    color: #45618a;
    font:
        600 17px/1.2 Arial,
        sans-serif !important;
}
#sg-results-table small {
    display: block;
    margin: 4px 0 0 !important;
    color: #8b96a6 !important;
    font:
        11px/1.3 Arial,
        sans-serif !important;
}
#sg-results-table .sg-result-pickup {
    white-space: nowrap;
    font-size: 12px !important;
}
#sg-results-table .sg-result-cutoff {
    color: #5f6e83 !important;
    font-weight: 600 !important;
}
#sg-results-table .sg-result-price strong {
    display: block;
    color: #3f6340;
    white-space: nowrap;
    font:
        700 18px/1.3 Arial,
        sans-serif !important;
}
#sg-results-table .sg-result-price .sg-result-net {
    color: #929daa !important;
    font-size: 10px !important;
}
#sg-results-table .sg-result-price .sg-result-gross {
    color: #687b93 !important;
    font-size: 12px !important;
    font-weight: 600 !important;
    white-space: nowrap;
}
#sg-results-table .sg-result-info-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 30px;
    margin: 0 !important;
    padding: 6px 8px !important;
    border: 1px solid #dce4ef !important;
    border-radius: 6px !important;
    background: #f7f9fc !important;
    color: #7185a3 !important;
    font:
        600 10px/1.3 Arial,
        sans-serif !important;
    cursor: pointer;
}
#sg-results-table .sg-result-info-button:hover,
#sg-results-table .sg-result-info-button[aria-expanded="true"] {
    background: #edf2fa !important;
    color: #496b9b !important;
    border-color: #c5d3e7 !important;
}
#sg-results-table .sg-result-order-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 34px;
    width: 100%;
    max-width: 104px;
    margin: 0 !important;
    padding: 8px 10px !important;
    border: 1px solid #6382ad !important;
    border-radius: 7px !important;
    background: #6d8fbd !important;
    color: #fff !important;
    font:
        600 12px/1.3 Arial,
        sans-serif !important;
    cursor: pointer;
}
#sg-results-table .sg-result-order-button:hover {
    background: #5b7fac !important;
}
#sg-results-table button:focus-visible {
    outline: 2px solid #a5bfdf;
    outline-offset: 2px;
}
#sg-results-table .sg-result-info-row > td {
    padding: 0 !important;
    border: 0 !important;
    background: #f8fafd !important;
}
#sg-results-table .sg-result-info-panel {
    padding: 12px 16px;
    border-bottom: 1px solid #e2e9f3;
    font:
        12px/1.5 Arial,
        sans-serif !important;
    color: #6f7f95;
}
#sg-results-table .sg-result-info-panel strong {
    color: #45618a;
    font-size: 13px;
}
#sg-results-table .sg-result-info-panel p {
    margin: 5px 0 0 !important;
}
#sg-results-table .sg-results-empty {
    padding: 24px 16px !important;
    color: #8a95a5;
    font:
        13px/1.5 Arial,
        sans-serif !important;
    text-align: center;
}
@media (max-width: 760px) {
    #sg-results-table {
        display: block;
        table-layout: auto;
        background: transparent;
    }
    #sg-results-table thead {
        display: none;
    }
    #sg-results-table tbody {
        display: block;
    }
    #sg-results-table .sg-result-row {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0;
        margin: 10px 0 0;
        border: 1px solid #e0e7f0;
        border-radius: 10px;
        background: #fff;
        overflow: hidden;
    }
    #sg-results-table .sg-result-row > td {
        display: block;
        padding: 10px 12px !important;
        border-bottom: 0 !important;
        text-align: left;
    }
    #sg-results-table .sg-result-row > td::before {
        display: block;
        margin-bottom: 4px;
        color: #909bac;
        font:
            11px/1.3 Arial,
            sans-serif;
        content: attr(data-label);
    }
    #sg-results-table .sg-result-row > .sg-result-service {
        grid-column: 1/-1;
        padding: 12px !important;
        border-bottom: 1px solid #edf0f5 !important;
    }
    #sg-results-table .sg-result-service::before,
    #sg-results-table .sg-result-info::before,
    #sg-results-table .sg-result-action::before {
        display: none !important;
    }
    #sg-results-table .sg-result-row > .sg-result-info {
        grid-column: 1;
        align-self: center;
    }
    #sg-results-table .sg-result-row > .sg-result-action {
        grid-column: 2;
        text-align: right;
    }
    #sg-results-table .sg-result-info-row {
        display: block;
    }
    #sg-results-table .sg-result-info-row > td {
        display: block;
        border-radius: 0 0 8px 8px;
    }
    #sg-results-table .sg-result-info-panel {
        padding: 12px;
    }
    #sg-results-table .sg-results-empty {
        display: block;
    }
}
/* GALVENE: NAVIGĀCIJA UN KONTA IZVĒLNE */
.site-header.sg-header {
    position: relative;
    z-index: 30;
    background: #fff;
    border-bottom: 1px solid #e6edf5;
    box-shadow: 0 3px 16px rgba(25, 55, 88, 0.035);
}
.sg-header .sg-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding-top: 14px;
    padding-bottom: 14px;
    min-height: 0;
    flex-wrap: wrap;
}
.sg-header .sg-header-logo {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    margin: 0;
    padding: 0;
}
.sg-header .sg-header-logo img {
    display: block;
    width: 146px;
    max-width: 100%;
    height: auto;
}
.sg-header .sg-header-nav {
    display: flex;
    align-items: center;
    gap: 4px;
    margin: 0;
    padding: 0;
    flex-wrap: wrap;
}
.sg-header .sg-header-nav .sg-header-link {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 9px 11px;
    border: 1px solid transparent;
    border-radius: 11px;
    color: #46556c;
    background: transparent;
    font-size: 11px;
    font-weight: 300;
    line-height: 1.3;
    text-decoration: none;
    white-space: nowrap;
    transition:
        background 0.15s,
        color 0.15s;
}
.sg-header svg {
    display: block;
    width: 18px;
    height: 18px;
    flex: 0 0 auto;
}
.sg-header .sg-header-nav .sg-header-link:hover {
    background: #f1f6fb;
    color: #1260a8;
}
.sg-header .sg-header-nav .sg-header-link.is-active {
    background: #edf5ff;
    border-color: #d8e9ff;
    color: #1461a9;
}
.sg-header .sg-header-tools {
    display: flex;
    align-items: center;
    gap: 9px;
    margin: 0;
    padding: 0;
    flex-wrap: wrap;
}
.sg-header-dropdown {
    position: relative;
    font-size: 13px;
}
.sg-header-dropdown summary {
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 38px;
    box-sizing: border-box;
    padding: 8px 11px;
    border: 1px solid #dfe7f0;
    border-radius: 10px;
    color: #263b54;
    background: #fff;
    cursor: pointer;
    list-style: none;
    font-weight: 300;
    line-height: 1.3;
}
.sg-header-dropdown summary::-webkit-details-marker {
    display: none;
}
.sg-header-dropdown summary > svg:last-child {
    width: 14px;
    height: 14px;
    transition: transform 0.15s;
}
.sg-header-dropdown[open] summary > svg:last-child {
    transform: rotate(180deg);
}
.sg-header-dropdown[open] summary {
    border-color: #78aee2;
    background: #f8fbff;
}
.sg-header .sg-header-flag {
    display: inline-flex;
    flex: 0 0 auto;
    border: 1px solid rgba(30, 50, 70, 0.14);
    border-radius: 3px;
    overflow: hidden;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06);
}
.sg-header .sg-header-flag svg {
    width: 24px;
    height: 16px;
}
.sg-header .sg-header-dropdown-panel {
    position: absolute;
    right: 0;
    top: calc(100% + 8px);
    z-index: 40;
    display: flex;
    flex-direction: column;
    gap: 2px;
    width: 216px;
    max-width: calc(100vw - 32px);
    max-height: 340px;
    overflow-y: auto;
    box-sizing: border-box;
    margin: 0;
    padding: 6px;
    background: #fff;
    border: 1px solid #e1e9f2;
    border-radius: 13px;
    box-shadow: 0 14px 38px rgba(26, 48, 77, 0.16);
}
.sg-header .sg-header-dropdown-panel a {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 37px;
    box-sizing: border-box;
    padding: 8px 9px;
    border-radius: 8px;
    text-decoration: none;
    color: #33465f;
    font-size: 13px;
    font-weight: 500;
    line-height: 1.35;
}
.sg-header .sg-header-dropdown-panel a:hover,
.sg-header .sg-header-dropdown-panel a.is-selected,
.sg-header .sg-header-dropdown-panel a[aria-current="page"] {
    background: #edf5ff;
    color: #1260a8;
}
.sg-header-check {
    margin-left: auto;
    font-weight: 700;
    color: #1260a8;
}
.sg-header .sg-header-login,
.sg-header .sg-header-register {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    min-height: 38px;
    box-sizing: border-box;
    padding: 8px 12px;
    border-radius: 10px;
    text-decoration: none;
    font-size: 13px;
    font-weight: 300;
    line-height: 1.3;
    white-space: nowrap;
}
.sg-header .sg-header-login {
    color: #344b67;
    border: 1px solid #dfe7f0;
    background: #fff;
}
.sg-header .sg-header-login:hover {
    background: #f1f6fb;
    border-color: #b8cfe7;
}
.sg-header .sg-header-register {
    color: #fff;
    background: #1468b7;
    border: 1px solid #1468b7;
    box-shadow: 0 3px 9px rgba(20, 104, 183, 0.13);
}
.sg-header .sg-header-register:hover {
    background: #105a9e;
    border-color: #105a9e;
}
.sg-header a:focus-visible,
.sg-header summary:focus-visible {
    outline: 3px solid #85baff;
    outline-offset: 3px;
}
@media (max-width: 1200px) {
    .sg-header .sg-header-inner {
        gap: 12px;
    }
    .sg-header .sg-header-logo img {
        width: 126px;
    }
    .sg-header .sg-header-nav .sg-header-link {
        padding: 8px;
    }
    .sg-header .sg-header-tools {
        gap: 6px;
    }
}
@media (max-width: 1050px) {
    .sg-header .sg-header-inner {
        padding-top: 10px;
        padding-bottom: 10px;
    }
    .sg-header .sg-header-nav {
        order: 3;
        flex: 1 0 100%;
        padding-top: 8px;
        border-top: 1px solid #edf1f6;
        justify-content: center;
    }
    .sg-header .sg-header-tools {
        margin-left: auto;
    }
}
@media (max-width: 560px) {
    .sg-header .sg-header-inner {
        gap: 9px;
    }
    .sg-header .sg-header-logo img {
        width: 118px;
    }
    .sg-header .sg-header-tools {
        flex: 1 0 100%;
        justify-content: flex-end;
        margin: 0;
    }
    .sg-header .sg-header-language {
        margin-right: auto;
    }
    .sg-header .sg-header-language .sg-header-dropdown-panel {
        left: 0;
        right: auto;
    }
    .sg-header .sg-header-nav {
        justify-content: flex-start;
        gap: 3px;
    }
    .sg-header .sg-header-nav .sg-header-link {
        font-size: 12px;
        padding: 7px 8px;
        gap: 5px;
    }
    .sg-header .sg-header-nav .sg-header-link svg {
        width: 16px;
        height: 16px;
    }
    .sg-header .sg-header-login,
    .sg-header .sg-header-register {
        padding: 8px 9px;
        font-size: 12px;
    }
    .sg-header .sg-header-register svg {
        display: none;
    }
}
/* SĀKUMLAPA: IZSEKOŠANA UN INFORMĀCIJA */
.home-updates.sg-home-tracking {
    padding: 20px;
    border: 1px solid #e1eaf5;
    border-radius: 18px;
    background: linear-gradient(145deg, #f5f9ff, #fff 65%);
    box-shadow: 0 6px 22px rgba(31, 69, 111, 0.045);
}
.sg-home-block-heading {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 16px;
}
.sg-home-block-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 42px;
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: #e4f0ff;
    color: #1468b7;
}
.sg-home-block-icon svg {
    width: 24px;
    height: 24px;
}
.sg-home-tracking .sg-home-block-heading h2 {
    margin: 0 0 5px;
    font-size: 21px;
    line-height: 1.25;
    color: #203b5a;
}
.sg-home-tracking .sg-home-block-heading p {
    margin: 0;
    font-size: 13px;
    line-height: 1.5;
    color: #6b7d93;
}
.sg-home-tracking-form > label {
    display: block;
    margin: 0 0 7px;
    font-size: 12px;
    font-weight: 300;
    color: #3b506b;
}
.sg-home-tracking .sg-home-tracking-row {
    display: flex;
    gap: 7px;
    margin: 0;
}
.sg-home-tracking .sg-home-tracking-row input {
    flex: 1;
    min-width: 0;
    width: auto;
    height: 42px;
    box-sizing: border-box;
    border: 1px solid #d5e1ef;
    border-radius: 10px;
    padding: 9px 11px;
    background: #fff;
    font: inherit;
    font-size: 13px;
    color: #253e5a;
}
.sg-home-tracking .sg-home-tracking-row button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    flex: 0 0 auto;
    height: 42px;
    box-sizing: border-box;
    border: 1px solid #1468b7;
    border-radius: 10px;
    padding: 9px 13px;
    background: #1468b7;
    color: #fff;
    font: inherit;
    font-size: 13px;
    font-weight: 300;
    cursor: pointer;
}
.sg-home-tracking .sg-home-tracking-row button:hover {
    background: #105a9e;
}
.sg-home-tracking-note {
    display: block;
    margin-top: 9px;
    color: #728298;
    font-size: 11px;
    line-height: 1.5;
}
.sg-home-tracking-info {
    margin-top: 18px;
    padding-top: 15px;
    border-top: 1px solid #e3ebf5;
}
.sg-home-tracking-info h3 {
    margin: 0 0 10px;
    color: #2c4562;
    font-size: 14px;
}
.sg-home-tracking-info ul {
    display: grid;
    gap: 7px;
    margin: 0;
    padding: 0;
    list-style: none;
}
.sg-home-tracking-info li {
    position: relative;
    padding-left: 16px;
    font-size: 12px;
    line-height: 1.5;
    color: #667990;
}
.sg-home-tracking-info li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #1468b7;
    font-weight: 700;
}
.sg-home-how,
.sg-home-recent,
.sg-home-providers {
    margin-top: 30px;
    margin-bottom: 0;
}
.sg-home-how > h2,
.sg-home-recent > h2,
.sg-home-providers > h2 {
    margin: 0 0 15px;
    color: #203b5a;
    font-size: 22px;
    line-height: 1.3;
}
.sg-home-how .sg-home-how-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
}
.sg-home-how .sg-home-step {
    position: relative;
    padding: 17px;
    border: 1px solid #e3ebf4;
    border-radius: 14px;
    background: #fff;
}
.sg-home-how .sg-home-step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    margin: 0 0 12px;
    border-radius: 10px;
    background: #edf5ff;
    color: #1468b7;
    font-size: 15px;
    font-weight: 700;
}
.sg-home-how .sg-home-step h3 {
    margin: 0 0 6px;
    font-size: 16px;
    color: #294461;
}
.sg-home-how .sg-home-step p {
    margin: 0;
    font-size: 13px;
    line-height: 1.6;
    color: #6b7c90;
}
.sg-home-recent-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
}
.sg-home-recent-card {
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-width: 0;
    padding: 17px;
    border: 1px solid #e1eaf4;
    border-radius: 14px;
    background: #fff;
}
.sg-home-route-icon {
    font-size: 23px;
    color: #1468b7;
}
.sg-home-recent-card strong {
    font-size: 15px;
    color: #2b4563;
    line-height: 1.4;
}
.sg-home-recent-card time {
    font-size: 12px;
    color: #718096;
}
.sg-home-recent-card a {
    margin-top: auto;
    font-size: 12px;
    line-height: 1.5;
    text-decoration: none;
    color: #1468b7;
    font-weight: 300;
}
.sg-home-empty {
    margin: 0;
    padding: 18px;
    border: 1px dashed #d4e1f0;
    border-radius: 13px;
    background: #f8fbff;
    color: #718198;
    font-size: 13px;
    line-height: 1.5;
}
.sg-home-providers {
    padding: 19px 0 22px;
    border-top: 1px solid #e6edf5;
}
.sg-home-providers > h2 {
    font-size: 13px;
    color: #6a7e96;
    font-weight: 500;
    text-align: center;
}
.sg-home-providers .sg-home-provider-strip {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    margin: 0;
    padding: 0;
    border: 0;
}
.sg-home-provider-strip .sg-home-provider-item {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 90px;
    height: 49px;
    padding: 8px 15px;
    border: 1px solid #e6edf5;
    border-radius: 11px;
    background: #fff;
    color: #344f6e;
    font-size: 17px;
    font-weight: 700;
    box-sizing: border-box;
}
.sg-home-provider-item img {
    display: block;
    max-width: 100px;
    max-height: 30px;
    width: auto;
    height: auto;
}
.sg-tracking-page {
    padding-top: 28px;
    padding-bottom: 40px;
}
.sg-tracking-page-card {
    max-width: 640px;
    padding: 24px;
    border: 1px solid #e1eaf5;
    border-radius: 16px;
    background: #fff;
    overflow-wrap: anywhere;
}
.sg-tracking-page-card h1 {
    margin: 0 0 16px;
    color: #203b5a;
    font-size: 25px;
}
.sg-tracking-page-card p {
    line-height: 1.6;
    color: #536982;
}
.sg-tracking-page-card a {
    color: #1468b7;
}
.sg-home-tracking input:focus-visible,
.sg-home-tracking button:focus-visible,
.sg-home-recent a:focus-visible {
    outline: 3px solid #85baff;
    outline-offset: 2px;
}
@media (max-width: 900px) {
    .sg-home-how .sg-home-how-grid,
    .sg-home-recent-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}
@media (max-width: 520px) {
    .home-updates.sg-home-tracking {
        padding: 16px;
    }
    .sg-home-how,
    .sg-home-recent {
        margin-top: 24px;
    }
    .sg-home-how > h2,
    .sg-home-recent > h2 {
        font-size: 20px;
    }
    .sg-home-how .sg-home-how-grid,
    .sg-home-recent-grid {
        grid-template-columns: 1fr;
    }
    .sg-home-tracking .sg-home-tracking-row {
        flex-wrap: wrap;
    }
    .sg-home-tracking .sg-home-tracking-row input {
        flex-basis: 100%;
    }
    .sg-home-tracking .sg-home-tracking-row button {
        width: 100%;
    }
    .sg-home-provider-strip .sg-home-provider-item {
        min-width: 82px;
        font-size: 15px;
    }
    .sg-tracking-page-card {
        padding: 18px;
    }
}
/* KĀJENE: KONTAKTI, SAITES UN MAKSĀJUMI */
.site-footer.sg-footer {
    margin-top: 32px;
    padding: 0;
    background: #172b43;
    color: #d5dfec;
    border: 0;
    font-size: 13px;
    line-height: 1.5;
}
.sg-footer .sg-footer-inner {
    display: block;
    padding-top: 28px;
    padding-bottom: 20px;
}
.sg-footer-grid {
    display: grid;
    grid-template-columns: 1.05fr 0.85fr 1.35fr;
    gap: 38px;
}
.sg-footer .sg-footer-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: #fff;
    text-decoration: none;
}
.sg-footer-brand-mark {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 11px;
    color: #fff;
    background: #2379ca;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.15);
    font-weight: 700;
    font-size: 13px;
    letter-spacing: 0.5px;
}
.sg-footer-brand strong {
    font-size: 21px;
    font-weight: 700;
    letter-spacing: -0.3px;
}
.sg-footer .sg-footer-tagline {
    margin: 10px 0 18px;
    color: #9eafc4;
    font-size: 12px;
}
.sg-footer h2 {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 14px;
    color: #f6f9ff;
    font-size: 13px;
    font-weight: 300;
    line-height: 1.4;
    letter-spacing: 0.3px;
}
.sg-footer-hours,
.sg-footer-information {
    padding-top: 6px;
}
.sg-footer svg {
    flex: 0 0 auto;
    width: 18px;
    height: 18px;
    color: #77b4ef;
}
.sg-footer ul {
    padding: 0;
    margin: 0;
    list-style: none;
}
.sg-footer-contact-list {
    display: grid;
    gap: 10px;
}
.sg-footer-contact-list li {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    min-width: 0;
    overflow-wrap: anywhere;
}
.sg-footer-contact-list svg {
    margin-top: 1px;
}
.sg-footer .sg-footer-contact-list a {
    color: #d8e4f2;
    text-decoration: none;
}
.sg-footer .sg-footer-contact-list a:hover {
    color: #fff;
    text-decoration: underline;
}
.sg-footer-hours-list {
    margin: 0;
    padding: 0;
}
.sg-footer-hours-list > div {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 16px;
    padding: 7px 0;
    border-bottom: 1px solid rgba(203, 220, 244, 0.1);
}
.sg-footer-hours-list dt {
    color: #a7b8ce;
}
.sg-footer-hours-list dd {
    margin: 0;
    color: #e2ebf8;
    text-align: right;
    font-size: 12px;
}
.sg-footer-hours-note {
    margin: 12px 0 0;
    color: #9eafc4;
    font-size: 12px;
    white-space: pre-line;
}
.sg-footer .sg-footer-info-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 2px 20px;
}
.sg-footer .sg-footer-info-list a {
    display: flex;
    align-items: baseline;
    padding: 5px 0;
    color: #c0cfe2;
    text-decoration: none;
    font-size: 12px;
    line-height: 1.5;
    transition: color 0.15s;
    justify-content: flex-start;
    gap: 8px;
}
.sg-footer-info-list a > span {
    color: #6e8bab;
    font-size: 13px;
}
.sg-footer .sg-footer-info-list a:hover {
    color: #fff;
}
.sg-footer-info-list a:hover > span {
    color: #80baff;
}
.sg-footer-payments {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    margin-top: 22px;
    padding-top: 18px;
    border-top: 1px solid rgba(203, 220, 244, 0.12);
}
.sg-footer-payment-label {
    color: #9eafc4;
    font-size: 12px;
}
.sg-footer .sg-footer-payment-list {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 7px;
}
.sg-footer-payment {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    min-height: 31px;
    padding: 5px 9px;
    border: 1px solid rgba(194, 214, 240, 0.18);
    border-radius: 7px;
    background: #223952;
    color: #eef5ff;
    font-size: 11px;
    font-weight: 300;
    line-height: 1.2;
    box-sizing: border-box;
}
.sg-footer-payment-visa,
.sg-footer-payment-visa_electron {
    font-style: italic;
    font-weight: 800;
}
.sg-footer-payment-paypal {
    font-style: italic;
    color: #90caff;
}
.sg-footer-card-circles {
    display: inline-flex;
    align-items: center;
}
.sg-footer-card-circles i {
    display: block;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #ed493d;
}
.sg-footer-card-circles i + i {
    margin-left: -5px;
    background: #f4b847;
    opacity: 0.9;
}
.sg-footer-payment-maestro .sg-footer-card-circles i + i {
    background: #54a1e4;
}
.sg-footer-bottom {
    padding: 0;
    background: #122238;
    border-top: 1px solid rgba(203, 220, 244, 0.08);
}
.sg-footer-bottom-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    padding-top: 14px;
    padding-bottom: 14px;
}
.sg-footer-legal {
    display: flex;
    flex-direction: column;
    gap: 4px;
    max-width: 75%;
    color: #a0b2c9;
}
.sg-footer-legal small,
.sg-footer-developer {
    font-size: 11px;
    line-height: 1.5;
}
.sg-footer-company-details {
    color: #7f96b2;
}
.sg-footer .sg-footer-developer {
    color: #8199b5;
    white-space: nowrap;
}
.sg-footer-developer strong {
    margin-left: 5px;
    color: #c1d2e8;
    font-weight: 500;
}
.sg-footer a:focus-visible {
    outline: 2px solid #85baff;
    outline-offset: 4px;
    border-radius: 3px;
}
@media (max-width: 900px) {
    .sg-footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 24px;
    }
    .sg-footer-information {
        grid-column: 1/-1;
    }
    .sg-footer .sg-footer-info-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 2px 28px;
    }
    .sg-footer-legal {
        max-width: 100%;
    }
}
@media (max-width: 520px) {
    .site-footer.sg-footer {
        margin-top: 24px;
    }
    .sg-footer .sg-footer-inner {
        padding-top: 22px;
    }
    .sg-footer-grid {
        grid-template-columns: 1fr;
        gap: 22px;
    }
    .sg-footer-information {
        grid-column: auto;
    }
    .sg-footer-hours,
    .sg-footer-information {
        padding-top: 0;
    }
    .sg-footer .sg-footer-info-list {
        gap: 2px 14px;
    }
    .sg-footer-payments {
        align-items: flex-start;
        gap: 10px;
    }
    .sg-footer-bottom-inner {
        align-items: flex-start;
        flex-direction: column;
        gap: 10px;
    }
    .sg-footer-developer {
        white-space: normal;
    }
    .sg-footer .sg-footer-brand strong {
        font-size: 20px;
    }
}

.sg-footer .sg-footer-info-list a > span {
    flex: 0 0 auto;
}
/* KLIENTA KONTS UN AUTORIZĀCIJAS FORMAS */
.sg-account {
    padding-top: 20px;
    padding-bottom: 28px;
    font-size: 13px;
    line-height: 1.4;
}
.sg-account,
.sg-account * {
    box-sizing: border-box;
}
.sg-account-card {
    max-width: 410px;
    margin: 0 auto;
    padding: 18px;
    border: 1px solid #e2e6ed;
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 5px 22px rgba(30, 44, 75, 0.035);
}
.sg-account-card-wide {
    max-width: 820px;
}
.sg-account-card h1 {
    margin: 0 0 16px;
    font-size: 23px;
    font-weight: 650;
    line-height: 1.2;
    letter-spacing: -0.35px;
}
.sg-account-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px 14px;
}
.sg-account-field {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
    margin: 0 0 10px;
    font-size: 12px;
    font-weight: 300;
    line-height: 1.35;
}
.sg-account-grid > .sg-account-field {
    margin: 0;
}
.sg-account-field > span {
    font-size: 12px;
    line-height: 1.35;
}
.sg-account-field input,
.sg-account-field select {
    display: block;
    width: 100%;
    height: 34px;
    min-height: 34px;
    margin: 0;
    border: 1px solid #d6dce7;
    border-radius: 5px;
    padding: 6px 9px;
    background: #fff;
    color: #26364d;
    font-family: inherit;
    font-size: 13px;
    font-weight: 400;
    line-height: 20px;
    box-shadow: none;
}
.sg-account-field input::placeholder {
    color: #929aaa;
    font-size: 12px;
}
.sg-account-field input:hover,
.sg-account-field select:hover {
    border-color: #abb9cf;
}
.sg-account-field input:focus,
.sg-account-field select:focus {
    border-color: #4773ba;
    outline: 2px solid rgba(71, 115, 186, 0.16);
    outline-offset: 1px;
}
.sg-account-section {
    min-width: 0;
    margin: 14px 0;
    padding: 12px;
    border: 1px solid #e2e6ed;
    border-radius: 7px;
}
.sg-account-section[hidden] {
    display: none !important;
}
.sg-account-section legend {
    width: auto;
    margin: 0;
    padding: 0 5px;
    color: #354961;
    font-size: 13px;
    font-weight: 300;
    line-height: 1.3;
}
.sg-account-muted {
    margin: 8px 0;
    color: #778297;
    font-size: 11px;
    font-weight: 400;
    line-height: 1.5;
}
.sg-account-section > .sg-account-muted:last-child {
    margin-bottom: 0;
}
.sg-account-check {
    display: flex;
    align-items: flex-start;
    gap: 7px;
    margin: 12px 0;
    font-size: 12px;
    font-weight: 400;
    line-height: 1.45;
}
.sg-account-check input {
    flex: 0 0 14px;
    width: 14px;
    height: 14px;
    min-height: 0;
    margin: 2px 0 0;
    padding: 0;
    accent-color: #3865ad;
}
.sg-account-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 34px;
    margin: 0;
    padding: 7px 14px;
    border: 1px solid #3865ad;
    border-radius: 5px;
    background: #3865ad;
    color: #fff;
    font-family: inherit;
    font-size: 12px;
    font-weight: 300;
    line-height: 18px;
    text-decoration: none;
    box-shadow: none;
    cursor: pointer;
    transition:
        background-color 0.15s,
        border-color 0.15s;
}
.sg-account-button:hover {
    border-color: #2b5292;
    background: #2b5292;
}
.sg-account-secondary {
    border-color: #ccd6e5;
    background: #fff;
    color: #3865ad;
}
.sg-account-secondary:hover {
    border-color: #aabedc;
    background: #f0f4fb;
}
.sg-account-button:focus-visible {
    outline: 2px solid #4773ba;
    outline-offset: 2px;
}
.sg-account-error,
.sg-account-notice {
    margin: 0 0 12px;
    padding: 9px 11px;
    border: 1px solid;
    border-radius: 6px;
    font-size: 12px;
    line-height: 1.45;
    overflow-wrap: anywhere;
}
.sg-account-error {
    border-color: #edcecb;
    background: #fff4f2;
    color: #923b34;
}
.sg-account-notice {
    border-color: #d2dfef;
    background: #f1f6fd;
    color: #355886;
}
.sg-account-status {
    margin: 0 0 14px;
    padding: 10px 12px;
    border: 1px solid #e2e8f1;
    border-radius: 7px;
    background: #f6f8fc;
    font-size: 12px;
}
.sg-account-status p {
    margin: 0 0 8px;
    font-size: 12px;
    line-height: 1.45;
}
.sg-account-status p:last-child {
    margin-bottom: 0;
}
.sg-account-links {
    display: flex;
    flex-wrap: wrap;
    gap: 7px 16px;
    margin: 12px 0 0;
    font-size: 12px;
    line-height: 1.4;
}
.sg-account-links a {
    color: #3865ad;
    font-size: 12px;
    text-decoration: underline;
    text-underline-offset: 2px;
}
.sg-account-logout {
    margin-top: 10px;
}
@media (min-width: 641px) {
    .sg-account-grid {
        grid-template-columns: repeat(6, minmax(0, 1fr));
    }
    .sg-account-grid > .sg-account-field {
        grid-column: span 3;
    }
    .sg-account-grid > .sg-account-field:has(input[name="phone_code"]) {
        grid-column: span 1;
    }
    .sg-account-grid > .sg-account-field:has(input[name="phone"]) {
        grid-column: span 2;
    }
}
@media (max-width: 640px) {
    .sg-account {
        padding-top: 14px;
        padding-bottom: 20px;
    }
    .sg-account-card {
        padding: 14px;
        border-radius: 8px;
    }
    .sg-account-card h1 {
        margin-bottom: 14px;
        font-size: 21px;
    }
    .sg-account-grid {
        grid-template-columns: 1fr;
        gap: 9px;
    }
    .sg-account-section {
        margin: 12px 0;
        padding: 10px;
    }
    .sg-account-field input,
    .sg-account-field select {
        height: 38px;
        min-height: 38px;
        font-size: 16px;
    }
    .sg-account-button {
        min-height: 38px;
    }
}
.sg-header-logout {
    display: inline-flex;
    margin: 0;
}

.sg-header-logout .sg-header-login {
    appearance: none;
    font: inherit;
    cursor: pointer;
}
/* KONTAKTU LAPA */
.sg-contacts .sg-account-field {
    overflow-wrap: anywhere;
}
.sg-contacts .sg-account-grid > .sg-contacts-message {
    grid-column: 1 / -1;
}
.sg-contacts textarea {
    width: 100%;
    min-height: 120px;
    padding: 8px 9px;
    border: 1px solid #d6dce7;
    border-radius: 5px;
    background: #fff;
    color: #26364d;
    font: inherit;
    resize: vertical;
}
.sg-contacts-hours {
    width: 100%;
    border-collapse: collapse;
    font-size: 12px;
}
.sg-contacts-hours th,
.sg-contacts-hours td {
    padding: 5px 0;
    border-bottom: 1px solid #edf0f5;
}
.sg-contacts-hours th {
    text-align: left;
    font-weight: 500;
}
.sg-contacts-hours td {
    text-align: right;
    white-space: nowrap;
}
.sgpb-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 7px 12px;
    border-top: 1px solid #edf0f6;
    background: #fafbfe;
}
.sgpb-controls button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 28px;
    padding: 0;
    border: 1px solid #e2e7f0;
    border-radius: 8px;
    background: #fff;
    color: #365b8a;
    font:
        600 16px/1 Arial,
        sans-serif;
    cursor: pointer;
}
.sgpb-controls button:hover {
    background: #edf2fb;
    border-color: #9cb4d7;
}
.sgpb-controls button:focus-visible,
.sgpb-slide a:focus-visible {
    outline: 3px solid #92b3e3;
    outline-offset: -3px;
}
.sgpb-dots {
    display: flex;
    align-items: center;
    gap: 2px;
    flex-wrap: wrap;
    justify-content: center;
}
.sgpb-dots button {
    position: relative;
    width: 24px;
    height: 28px;
    border: 0;
    background: transparent;
}
.sgpb-dots button::after {
    content: "";
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #c6d2e4;
}
.sgpb-dots button[aria-current="true"]::after {
    background: #3d6398;
    width: 17px;
    border-radius: 6px;
}
@media (max-width: 600px) {
    .sgpb-controls {
        padding: 5px 8px;
    }
}
/* REKLĀMAS KARUSELIS */
.sgpb-carousel {
    position: relative;
    min-width: 0;
    width: 100%;
    overflow: hidden;
    border: 1px solid #e2e7f0;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 6px 22px rgba(35, 57, 91, 0.045);
}
.sgpb-stage {
    position: relative;
    aspect-ratio: var(--sgpb-ratio, 1200/350);
    overflow: hidden;
}
.sgpb-slide {
    display: none;
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}
.sgpb-slide.is-active {
    display: block;
}
.sgpb-slide > a {
    display: block;
    width: 100%;
    height: 100%;
}
.sgpb-slide img {
    display: block;
    width: 100%;
    height: 100%;
    max-width: none;
    object-fit: cover;
    object-position: center;
}
.sgpb-slide a:focus-visible {
    outline: 3px solid #92b3e3;
    outline-offset: -3px;
}
.sgpb-fallback {
    box-sizing: border-box;
    padding: 28px;
    border-radius: 14px;
    background: linear-gradient(115deg, #3d6398, #29476f);
    color: #fff;
    min-height: 220px;
}
.sgpb-fallback small {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.22em;
}
.sgpb-fallback h2 {
    margin: 18px 0 16px;
    font-size: 28px;
    line-height: 1.25;
    color: #fff;
}
.sgpb-fallback p {
    margin: 0;
    font-size: 14px;
    color: #fff;
}
@media (max-width: 600px) {
    .sgpb-carousel {
        border-radius: 11px;
    }
    .sgpb-fallback {
        min-height: 0;
        padding: 22px;
    }
    .sgpb-fallback h2 {
        font-size: 24px;
    }
}

.sgpb-block {
    min-width: 0;
    width: 100%;
}
.sgpb-request {
    margin: 8px 0 0;
    text-align: right;
    font-size: 12px;
    line-height: 1.5;
}
.sgpb-request a {
    color: #637b9d;
    text-decoration: none;
}
.sgpb-request a:hover {
    color: #365b8a;
    text-decoration: underline;
}
.sgpb-request a:focus-visible {
    outline: 2px solid #92b3e3;
    outline-offset: 3px;
}
/* REKLĀMAS PIETEIKUMA FORMA */
.sbr-page {
    padding-top: 26px;
    padding-bottom: 42px;
    color: #263e5e;
}
.sbr-back {
    color: #637b9d;
    font-size: 13px;
    text-decoration: none;
}
.sbr-heading {
    margin: 22px 0;
}
.sbr-heading small {
    font-size: 10px;
    letter-spacing: 0.16em;
    font-weight: 700;
    color: #6682aa;
}
.sbr-heading h1 {
    margin: 8px 0;
    font-size: 30px;
    line-height: 1.2;
    color: #243e61;
}
.sbr-heading p {
    margin: 0;
    color: #74839a;
    font-size: 14px;
}
.sbr-layout {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(240px, 1fr);
    gap: 22px;
    align-items: start;
}
.sbr-card {
    padding: 22px;
    border: 1px solid #e1e7f2;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 6px 24px rgba(35, 57, 91, 0.035);
}
.sbr-card h2 {
    margin: 0 0 14px;
    font-size: 18px;
    color: #2e4e7c;
}
.sbr-card h2:not(:first-child) {
    margin-top: 22px;
}
.sbr-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px 16px;
}
.sbr-field {
    display: flex;
    flex-direction: column;
    gap: 5px;
    min-width: 0;
    margin-bottom: 12px;
    font-size: 12px;
}
.sbr-grid .sbr-field {
    margin-bottom: 0;
}
.sbr-field span {
    font-weight: 600;
}
.sbr-field em {
    font-style: normal;
    color: #8b6a6a;
}
.sbr-field input,
.sbr-field select,
.sbr-field textarea {
    box-sizing: border-box;
    width: 100%;
    min-width: 0;
    min-height: 38px;
    padding: 9px 11px;
    border: 1px solid #cdd7e8;
    border-radius: 8px;
    background: #fcfdff;
    color: #263e5e;
    font: inherit;
    font-size: 13px;
}
.sbr-field input[type="file"] {
    background: #f5f7fc;
    font-size: 12px;
    padding: 8px;
}
.sbr-field textarea {
    resize: vertical;
}
.sbr-field input:focus,
.sbr-field select:focus,
.sbr-field textarea:focus {
    outline: 2px solid #b5c8e5;
    outline-offset: 1px;
    border-color: #6e91c1;
}
.sbr-field small,
.sbr-hint {
    color: #7a879b;
    font-size: 11px;
    line-height: 1.6;
}
.sbr-hint {
    margin: 12px 0 18px;
}
.sbr-agree {
    display: flex;
    gap: 9px;
    align-items: flex-start;
    margin: 15px 0;
    font-size: 12px;
    line-height: 1.6;
    color: #66788f;
}
.sbr-agree input {
    margin-top: 3px;
    accent-color: #3d6398;
}
.sbr-submit {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    margin-top: 18px;
}
.sbr-submit button {
    border: 0;
    border-radius: 9px;
    background: #3d6398;
    color: #fff;
    padding: 12px 20px;
    font:
        600 14px/1.2 Arial,
        sans-serif;
    cursor: pointer;
}
.sbr-submit button:hover {
    background: #2e527f;
}
.sbr-submit button:focus-visible {
    outline: 3px solid #92b3e3;
    outline-offset: 3px;
}
.sbr-submit small {
    font-size: 11px;
    color: #7a879b;
}
.sbr-side {
    display: grid;
    gap: 16px;
}
.sbr-side .sbr-card {
    background: #f8faff;
}
.sbr-side ul,
.sbr-side ol {
    padding-left: 19px;
    margin: 0;
    color: #64778e;
    font-size: 13px;
    line-height: 1.8;
}
.sbr-side li + li {
    margin-top: 7px;
}
.sbr-side p {
    font-size: 12px;
    color: #7a879b;
    line-height: 1.7;
    margin-bottom: 0;
}
.sbr-success,
.sbr-error {
    margin-bottom: 18px;
    padding: 16px 18px;
    border-radius: 10px;
    font-size: 13px;
    line-height: 1.6;
}
.sbr-success {
    background: #eef6f2;
    border: 1px solid #d4e5db;
    color: #365e49;
}
.sbr-success p {
    margin: 5px 0 0;
}
.sbr-error {
    background: #fff5ef;
    border: 1px solid #efdbca;
    color: #80593a;
}
.sbr-honeypot {
    position: absolute;
    left: -10000px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}
@media (max-width: 800px) {
    .sbr-layout {
        grid-template-columns: 1fr;
    }
    .sbr-heading h1 {
        font-size: 26px;
    }
}
@media (max-width: 480px) {
    .sbr-card {
        padding: 17px;
    }
    .sbr-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    .sbr-submit button {
        width: 100%;
    }
}
/* PĒDĒJIE SŪTĪJUMI */
.sgrh-section {
    margin: 28px 0;
    color: #294365;
}
.sgrh-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
}
.sgrh-heading h2 {
    margin: 0;
    font-size: 22px;
    font-weight: 500;
    color: #294365;
}
.sgrh-heading > span {
    font-size: 11px;
    color: #8996a9;
}
.sgrh-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}
.sgrh-card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    padding: 16px;
    border: 1px solid #e2e8f3;
    border-radius: 13px;
    background: linear-gradient(150deg, #fff, #fafcff);
    box-shadow: 0 5px 18px rgba(35, 57, 91, 0.025);
}
.sgrh-route {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 14px minmax(0, 1fr);
    align-items: start;
    gap: 6px;
    min-height: 34px;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.4;
}
.sgrh-country {
    display: flex;
    align-items: flex-start;
    gap: 7px;
    min-width: 0;
}
.sgrh-country > span {
    overflow-wrap: anywhere;
}
.sgrh-flag {
    display: block;
    flex-shrink: 0;
    width: 36px;
    height: 27px;
    object-fit: contain;
    border-radius: 2px;
    filter: drop-shadow(0 0 1px #c7d1df);
    margin-top: 1px;
}
.sgrh-arrow {
    color: #91a3bd;
    text-align: center;
    font-weight: 400;
}
.sgrh-package {
    display: flex;
    align-items: center;
    gap: 9px;
    margin: 15px 0 16px;
}
.sgrh-box-icon {
    display: grid;
    place-items: center;
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    background: #eef3fb;
    border-radius: 8px;
    color: #5d7ba7;
}
.sgrh-box-icon svg {
    width: 21px;
    height: 21px;
}
.sgrh-package strong {
    display: block;
    font-size: 12px;
    font-weight: 600;
}
.sgrh-package small {
    display: block;
    margin-top: 4px;
    font-size: 11px;
    line-height: 1.4;
    color: #8694a8;
}
.sgrh-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-top: auto;
    padding-top: 12px;
    border-top: 1px solid #edf0f6;
}
.sgrh-delivery {
    display: flex;
    align-items: flex-start;
    gap: 6px;
    min-width: 0;
}
.sgrh-check {
    color: #638674;
    font-size: 12px;
    font-weight: 700;
    margin-top: 1px;
}
.sgrh-delivery strong {
    display: block;
    font-size: 10px;
    line-height: 1.5;
    font-weight: 600;
    color: #537664;
}
.sgrh-delivery time {
    display: block;
    font-size: 10px;
    color: #95a1b2;
    margin-top: 3px;
}
.sgrh-price {
    text-align: right;
    flex-shrink: 0;
}
.sgrh-price strong {
    display: block;
    font-size: 15px;
    letter-spacing: -0.02em;
    color: #345580;
}
.sgrh-price small {
    display: block;
    font-size: 9px;
    margin-top: 4px;
    color: #93a0b2;
}
.sgrh-note {
    margin: 10px 0 0;
    font-size: 10px;
    line-height: 1.6;
    color: #9aa5b5;
}
@media (max-width: 1100px) {
    .sgrh-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .sgrh-route {
        font-size: 14px;
    }
}
@media (max-width: 540px) {
    .sgrh-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    .sgrh-heading h2 {
        font-size: 20px;
    }
    .sgrh-heading > span {
        display: none;
    }
    .sgrh-card {
        padding: 14px;
    }
    .sgrh-route {
        min-height: 0;
    }
    .sgrh-package {
        margin: 12px 0;
    }
    .sgrh-delivery strong {
        font-size: 12px;
    }
    .sgrh-price strong {
        font-size: 17px;
    }
}
/* KĀ TAS DARBOJAS */
.sghw-section {
    margin: 28px 0 30px;
    color: #294365;
}
.sghw-section > h2 {
    margin: 0 0 15px;
    color: #294365;
    font-size: 22px;
    font-weight: 500;
    line-height: 1.35;
}
.sghw-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
    list-style: none;
    margin: 0;
    padding: 0;
    counter-reset: none;
}
.sghw-card {
    position: relative;
    box-sizing: border-box;
    min-width: 0;
    margin: 0;
    padding: 18px;
    border: 1px solid #e1e8f3;
    border-radius: 14px;
    background: linear-gradient(140deg, #f6f9fe 0%, #fff 65%);
    box-shadow: 0 5px 20px rgba(35, 57, 91, 0.025);
}
.sghw-head {
    display: flex;
    align-items: center;
    gap: 12px;
}
.sghw-icon {
    display: grid;
    place-items: center;
    flex-shrink: 0;
    box-sizing: border-box;
    width: 44px;
    height: 44px;
    border: 1px solid #dee8f7;
    border-radius: 13px;
    background: linear-gradient(145deg, #edf3fd, #f8faff);
    color: #5279ad;
}
.sghw-icon svg {
    display: block;
    width: 25px;
    height: 25px;
}
.sghw-title {
    min-width: 0;
}
.sghw-number {
    display: block;
    margin-bottom: 3px;
    color: #8aa1bf;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.12em;
    line-height: 1;
}
.sghw-title h3 {
    margin: 0;
    color: #2c4a73;
    font-size: 17px;
    font-weight: 600;
    line-height: 1.3;
}
.sghw-card > p {
    margin: 15px 0 0;
    color: #75869d;
    font-size: 13px;
    line-height: 1.65;
    overflow-wrap: break-word;
}
.sghw-card:not(:last-child)::after {
    content: "→";
    position: absolute;
    z-index: 1;
    top: 28px;
    right: -15px;
    display: grid;
    place-items: center;
    width: 28px;
    height: 24px;
    background: #fff;
    border-radius: 8px;
    color: #99abc3;
    font-size: 15px;
    line-height: 1;
    pointer-events: none;
}
@media (max-width: 1050px) {
    .sghw-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 14px;
    }
    .sghw-card:nth-child(2n)::after {
        display: none;
    }
}
@media (max-width: 540px) {
    .sghw-section > h2 {
        font-size: 20px;
    }
    .sghw-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    .sghw-card {
        padding: 16px;
    }
    .sghw-card:not(:last-child)::after {
        display: none;
    }
    .sghw-card > p {
        margin-top: 12px;
    }
    .sghw-icon {
        width: 40px;
        height: 40px;
        border-radius: 11px;
    }
    .sghw-icon svg {
        width: 23px;
        height: 23px;
    }
}

/* Paletes / individuālā piedāvājuma forma */

#sg-pallet-form {
    display: grid;
    gap: 10px;
    min-width: 0;
    color: #24354d;
}

#sg-pallet-form *,
#sg-pallet-form *::before,
#sg-pallet-form *::after {
    box-sizing: border-box;
}

#sg-pallet-form h2,
#sg-pallet-form h3,
#sg-pallet-form p {
    margin: 20;
}

#sg-pallet-form h2 {
    font-size: 19px;
    line-height: 1.25;
}

#sg-pallet-form h3 {
    padding-top: 6px;
    font-size: 14px;
    line-height: 1.3;
}

#sg-pallet-form p {
    font-size: 12px;
    line-height: 1.5;
}

#sg-pallet-form .grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin: 0;
}

#sg-pallet-form label {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
    font-size: 12px;
    font-weight: 500;
    line-height: 1.4;
}

#sg-pallet-form input:not([type="hidden"]),
#sg-pallet-form select,
#sg-pallet-form textarea {
    display: block;
    width: 100%;
    min-width: 0;
    margin: 0;
    padding: 6px 8px;
    border: 1px solid #cbd3e2;
    border-radius: 5px;
    background: #fff;
    color: #24354d;
    font: inherit;
    font-weight: 400;
    line-height: 1.4;
    font-size: 13px;
}

#sg-pallet-form input:not([type="hidden"]),
#sg-pallet-form select {
    min-height: 34px;
    height: 34px;
}

#sg-pallet-form textarea {
    min-height: 76px;
    resize: vertical;
    height: 76px;
}

#sg-pallet-form input:focus-visible,
#sg-pallet-form select:focus-visible,
#sg-pallet-form textarea:focus-visible {
    border-color: #3865ae;
    outline: 3px solid rgba(56, 101, 174, 0.16);
    outline-offset: 1px;
}

#sg-pallet-form small {
    color: #65738a;
    font-size: 11px;
    line-height: 1.5;
}

#sg-pallet-form button[type="submit"] {
    width: 100%;
    min-height: 36px;
    margin: 2px 0 0;
    padding: 8px 14px;
    border: 0;
    border-radius: 6px;
    background: #3865ae;
    color: #fff;
    font: inherit;
    font-weight: 600;
    line-height: 1.4;
    cursor: pointer;
    transition: background-color 0.15s ease;
    font-size: 12px;
}

#sg-pallet-form button[type="submit"]:hover {
    background: #2d5597;
}

#sg-pallet-form button[type="submit"]:focus-visible {
    outline: 3px solid rgba(56, 101, 174, 0.3);
    outline-offset: 3px;
}

#sg-pallet-form button[type="submit"]:disabled {
    opacity: 0.55;
    cursor: not-allowed;
}

#sg-pallet-form [role="alert"],
#sg-pallet-form [role="status"] {
    padding: 12px;
    border: 1px solid;
    border-radius: 6px;
    font-size: 14px;
    line-height: 1.5;
}

#sg-pallet-form [role="alert"] {
    border-color: #efc3c3;
    background: #fff2f2;
    color: #922d2d;
}

#sg-pallet-form [role="status"] {
    border-color: #bedac8;
    background: #edf8f1;
    color: #24613b;
}

@media (max-width: 480px) {
    #sg-pallet-form .grid {
        grid-template-columns: minmax(0, 1fr);
    }

    #sg-pallet-form input:not([type="hidden"]),
    #sg-pallet-form select,
    #sg-pallet-form textarea {
        font-size: 16px;
    }
}

/* Paletes: forma no kreisās malas izplešas pāri hero fonam. */
#homepage .sg-shipping-card:has(#sg-pallet-panel:not([hidden])) {
    width: min(1080px, 100%);
    min-width: 0;
    background: rgba(243, 245, 250, 0.97);
}

#homepage .sg-shipping-card:has(#sg-pallet-panel:not([hidden])) .sg-shipment-tabs {
    justify-content: flex-start;
}

#homepage .sg-shipping-card:has(#sg-pallet-panel:not([hidden])) .sg-shipment-tabs button {
    flex: 0 1 150px;
}

#sg-pallet-form .sg-pallet-columns {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: start;
    gap: 18px;
    min-width: 0;
}

#sg-pallet-form .sg-pallet-section {
    display: grid;
    gap: 10px;
    min-width: 0;
}

#sg-pallet-form .sg-pallet-section h3 {
    padding: 0 0 8px;
    border-bottom: 1px solid #dce5ed;
}

#sg-pallet-form .sg-pallet-contact-details .grid {
    grid-template-columns: minmax(0, 1fr);
}

#sg-pallet-form .sg-pallet-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    padding-top: 12px;
    border-top: 1px solid #dce5ed;
}

#sg-pallet-form .sg-pallet-actions p {
    max-width: 740px;
}

#sg-pallet-form .sg-pallet-actions button[type="submit"] {
    width: auto;
    flex: 0 0 auto;
    margin: 0;
}

@media (min-width: 761px) and (max-width: 960px) {
    #sg-pallet-form .sg-pallet-columns {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    #sg-pallet-form .sg-pallet-contact-details {
        grid-column: 1 / -1;
    }

    #sg-pallet-form .sg-pallet-contact-details .grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 760px) {
    #sg-pallet-form .sg-pallet-columns {
        grid-template-columns: minmax(0, 1fr);
    }

    #sg-pallet-form .sg-pallet-actions {
        flex-direction: column;
        align-items: stretch;
        gap: 14px;
    }

    #sg-pallet-form .sg-pallet-actions button[type="submit"] {
        width: 100%;
    }
}

/* Štata kods redzams tikai tai adresei, kurai izvēlēta ASV. */

#sg-pallet-form .sg-pallet-state {
    display: none;
}

#sg-pallet-form
    .grid:has(select[name="pallet_from_country"] option[value="US"]:checked)
    .sg-pallet-state,
#sg-pallet-form
    .grid:has(select[name="pallet_to_country"] option[value="US"]:checked)
    .sg-pallet-state {
    display: flex;
}

#sg-pallet-form .sg-pallet-route .grid:not(:has(option[value="US"]:checked)) .sg-pallet-city {
    grid-column: 1 / -1;
}

#sg-pallet-form .sg-pallet-shipment > .grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

#sg-pallet-form .sg-pallet-shipment > .grid > label {
    justify-content: flex-end;
}

@media (max-width: 480px) {
    #sg-pallet-panel {
        padding: 14px;
    }
    #sg-pallet-form .sg-pallet-shipment > .grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    #sg-pallet-form input:not([type="hidden"]),
    #sg-pallet-form select {
        height: 38px;
        min-height: 38px;
    }
}

/* Paziņojums pēc automātiskas pārejas uz individuālu piedāvājumu. */
#sg-pallet-form .sg-pallet-transition-note {
    display: grid;
    grid-template-columns: 18px minmax(0, 1fr);
    gap: 3px 9px;
    padding: 10px 12px;
    border: 1px solid #d6e2f1;
    border-left: 3px solid #668bc0;
    border-radius: 6px;
    background: #edf3fb;
    color: #405c80;
    font-size: 12px;
    line-height: 1.45;
}

#sg-pallet-form .sg-pallet-transition-note[hidden] {
    display: none;
}

#sg-pallet-form .sg-pallet-transition-note::before {
    content: "i";
    grid-column: 1;
    grid-row: 1 / 3;
    display: grid;
    place-items: center;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #dae6f7;
    color: #426ca5;
    font-weight: 700;
}

#sg-pallet-form .sg-pallet-transition-note strong,
#sg-pallet-form .sg-pallet-transition-note span {
    grid-column: 2;
}

#sg-pallet-form .sg-pallet-transition-note strong {
    font-weight: 600;
}

@media (min-width: 961px) {
    #sg-pallet-form:has(> .sg-pallet-transition-note:not([hidden])) {
        grid-template-columns: minmax(210px, 0.8fr) minmax(0, 2fr);
        align-items: center;
    }

    #sg-pallet-form:has(> .sg-pallet-transition-note:not([hidden])) > * {
        grid-column: 1 / -1;
    }

    #sg-pallet-form:has(> .sg-pallet-transition-note:not([hidden])) > h2 {
        grid-column: 1;
        grid-row: 1;
    }

    #sg-pallet-form > .sg-pallet-transition-note:not([hidden]) {
        grid-column: 2;
        grid-row: 1;
        padding: 7px 10px;
        font-size: 11px;
    }
}

/* Paletes skatā fons aizpilda visu hero laukumu. */
@media (min-width: 761px) {
    #homepage .home-hero:has(#sg-pallet-panel:not([hidden])) {
        background-size: cover;
        background-position: center top;
    }
}

/* Papildinājums esošajam includes/order.css. */
#sg-order-ui [hidden] { display: none !important; }
.sgo-pickup-choice { margin-top: 12px; }
.sgo-pickup-choice summary { color: #365f9e; cursor: pointer; }
.sgo-pickup-choice .sg-order-field { max-width: 260px; margin: 12px 0 8px; }
.sgo-pickup-choice small { display: block; color: #61718b; line-height: 1.5; }
.sgo-address-select { max-width: 540px; margin-bottom: 16px; }
.sgo-payment-options { display: grid; gap: 12px; margin: 16px 0; }
.sgo-payment-test { border: 1px solid #dce2ee; border-radius: 8px; padding: 14px; margin: 20px 0; }
.sgo-invoice { max-width: 900px; padding-top: 32px; padding-bottom: 40px; color: #22344e; line-height: 1.6; }
.sgo-invoice h2 { font-size: 18px; margin-top: 24px; }
.sgo-invoice-table { width: 100%; border-collapse: collapse; margin: 24px 0; }
.sgo-invoice-table th, .sgo-invoice-table td { text-align: left; padding: 10px; border-bottom: 1px solid #dce2ee; }
@media (max-width: 600px) { .sgo-invoice-table th, .sgo-invoice-table td { padding: 6px; font-size: 12px; } }
@media print { body:has(.sgo-invoice) header, body:has(.sgo-invoice) footer { display: none !important; } .sgo-invoice { margin: 0; padding: 0; max-width: none; } }

@media (min-width: 900px) {
    #homepage .sg-shipping-card:has(#extra-shipment-data[open]) {
        width: 840px;
        max-width: 100%;
    }

    #homepage #quote-form:has(#extra-shipment-data[open]) {
        display: grid;
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
        column-gap: 24px;
        align-items: start;
    }

    #homepage #quote-form:has(#extra-shipment-data[open]) > * {
        grid-column: 1;
        min-width: 0;
    }

    #homepage #quote-form > #extra-shipment-data[open] {
        grid-column: 2;
        grid-row: 1 / span 20;
        align-self: stretch;
        margin: 0;
        padding-left: 20px;
        border-left: 1px solid #d5ddeb;
    }

    #homepage #extra-shipment-data[open] > summary {
        margin-bottom: 12px;
    }
}
#quote-form label[hidden] {
    display: none !important;
}
#quote-form label[hidden] {
    display: none !important;
}

#quote-form input.sg-required-empty {
    border: 1px solid #d63838 !important;
    outline: 1px solid #d63838 !important;
    background: #fff5f5 !important;
}
#homepage #quote-form #extra-shipment-data[open] {
    border-top: none;
}

.sg-pallet-country-search {
    position: relative;
    width: 100%;
    min-width: 0;
}

.sg-pallet-country-search > input {
    width: 100%;
    box-sizing: border-box;
}

.sg-pallet-country-results {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    right: 0;
    z-index: 100;
    max-height: 240px;
    overflow-y: auto;
    background: #fff;
    border: 1px solid #ccd6e5;
    border-radius: 8px;
    box-shadow: 0 8px 24px #20385926;
}

.sg-pallet-country-results[hidden] {
    display: none !important;
}

#sg-pallet-form .sg-pallet-country-results > button {
    display: block;
    width: 100%;
    margin: 0;
    padding: 10px 12px;
    border: 0;
    border-radius: 0;
    background: #fff;
    color: #233d60;
    text-align: left;
    font: inherit;
    cursor: pointer;
    box-shadow: none;
}

#sg-pallet-form .sg-pallet-country-results > button:hover,
#sg-pallet-form .sg-pallet-country-results > button:focus {
    background: #edf3ff;
}

.sg-pallet-country-empty {
    padding: 10px 12px;
    color: #738097;
}


/* Papildu pakas rezultātu labās puses kalkulatorā */
#results-calculator .sg-extra-package .grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

#results-calculator .sg-extra-package .grid > label {
    min-width: 0;
}

#results-calculator .sg-extra-package .grid input {
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
}
/* Pievieno publiskā style.css beigās. */
.sg-info-page { padding-top:clamp(24px,4vw,48px); padding-bottom:clamp(40px,6vw,80px); }
.sg-info-article { max-width:920px; margin:0 auto; padding:clamp(22px,4vw,44px); background:#fff; color:#26334b; border:1px solid #e4e7ef; border-radius:14px; }
.sg-info-heading { margin-bottom:26px; padding-bottom:20px; border-bottom:1px solid #e8ebf2; }
.sg-info-heading h1 { margin:0; font-size:clamp(25px,3vw,34px); line-height:1.25; font-weight:700; color:#1e2b43; }
.sg-info-content { font-size:15px; line-height:1.8; overflow-wrap:anywhere; }
.sg-info-content>:first-child { margin-top:0; }
.sg-info-content>:last-child { margin-bottom:0; }
.sg-info-content p { margin:0 0 16px; }
.sg-info-content h2 { margin:30px 0 12px; font-size:23px; line-height:1.35; color:#22334f; }
.sg-info-content h3 { margin:24px 0 10px; font-size:19px; line-height:1.4; color:#22334f; }
.sg-info-content h4 { margin:20px 0 8px; font-size:16px; }
.sg-info-content ul,.sg-info-content ol { margin:12px 0 20px; padding-left:25px; }
.sg-info-content li { margin:7px 0; }
.sg-info-content a { color:#3764ac; text-decoration:underline; text-underline-offset:3px; }
.sg-info-content a:hover { color:#234879; }
.sg-info-content blockquote { margin:22px 0; padding:14px 20px; border-left:3px solid #7a94c1; background:#f4f6fb; }
.sg-info-content table { display:block; max-width:100%; overflow-x:auto; border-collapse:collapse; margin:20px 0; }
.sg-info-content th,.sg-info-content td { padding:10px 14px; border:1px solid #dde2ec; text-align:left; vertical-align:top; }
.sg-info-content th { background:#f4f6fb; font-weight:600; }
.sg-info-content pre { max-width:100%; overflow:auto; padding:14px; border-radius:6px; background:#f4f6fb; }
.sg-info-content hr { margin:28px 0; border:0; border-top:1px solid #e4e7ef; }
.sg-info-empty { margin:0; color:#6c7586; font-size:15px; line-height:1.7; }
@media(max-width:600px) { .sg-info-article { padding:22px 18px; border-radius:10px; } .sg-info-content { font-size:14px; } .sg-info-content h2 { font-size:21px; } }

/* Atkārtoti izmantojamais labās puses kalkulators; publiskā style.css beigās. */
.sg-calculator-sidebar { min-width:0; }
.sg-calculator-sidebar [hidden] { display:none !important; }
.sg-calculator-sidebar #quote-form { margin:0; width:100%; padding:22px; background:#f2f3f9; border:1px solid #dfe3ee; border-radius:12px; box-shadow:0 5px 20px rgba(30,48,80,.025); color:#25334c; }
.sg-calculator-sidebar #quote-form h2 { margin:0 0 14px; font-size:21px; line-height:1.3; }
.sg-calculator-sidebar #quote-form h2:not(:first-of-type) { margin-top:22px; }
.sg-calculator-sidebar #quote-form .grid { display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1fr); gap:13px; margin-bottom:14px; }
.sg-calculator-sidebar #quote-form label { display:block; min-width:0; color:#26334b; font-size:12px; font-weight:600; line-height:1.4; }
.sg-calculator-sidebar #quote-form input:not([type=hidden]),.sg-calculator-sidebar #quote-form select { display:block; box-sizing:border-box; width:100%; min-width:0; margin-top:6px; padding:10px; min-height:40px; border:1px solid #ccd4e5; border-radius:5px; background:#fff; color:#26334b; font:inherit; font-size:12px; font-weight:400; }
.sg-calculator-sidebar #quote-form input:focus,.sg-calculator-sidebar #quote-form select:focus { outline:2px solid #bcccec; outline-offset:1px; }
.sg-calculator-sidebar #quote-form button[type=submit] { display:block; width:100%; padding:13px 10px; border:0; border-radius:6px; background:#3864aa; color:#fff; cursor:pointer; font-size:13px; font-weight:600; }
.sg-calculator-sidebar #quote-form button[type=submit]:hover { background:#2e5493; }
.sg-calculator-sidebar .country-picker { position:relative; }
.sg-calculator-sidebar .country-results { position:absolute; z-index:30; left:0; right:0; top:100%; max-height:240px; overflow:auto; background:#fff; border:1px solid #ccd4e5; border-radius:5px; box-shadow:0 8px 22px #24365122; }
.sg-calculator-sidebar .country-results button { display:block; width:100%; padding:10px 8px; border:0; background:#fff; text-align:left; color:#25334c; font-size:12px; cursor:pointer; }
.sg-calculator-sidebar .country-results button:hover,.sg-calculator-sidebar .country-results button:focus { background:#edf2fb; }
.sg-calculator-sidebar .country-results>div { padding:10px; font-size:12px; }
.sg-calculator-sidebar .calculator-options { margin:18px 0; padding-top:16px; border-top:1px solid #d6dcec; }
.sg-calculator-sidebar .calculator-options summary { margin-bottom:16px; color:#3864aa; font-size:12px; font-weight:600; line-height:1.6; cursor:pointer; }
.sg-calculator-sidebar .sg-form-note,.sg-calculator-sidebar .calculator-options p { color:#778297; font-size:11px; line-height:1.65; }
.sg-calculator-sidebar .sg-extra-package { padding:14px 0; border-bottom:1px solid #d6dcec; margin-bottom:12px; }
.sg-calculator-sidebar .sg-extra-package-heading { display:flex; justify-content:space-between; align-items:center; margin-bottom:10px; font-size:13px; }
.sg-calculator-sidebar .sg-remove-package { border:0; background:transparent; color:#71819d; cursor:pointer; font-size:20px; }
.sg-calculator-sidebar .sg-add-package { padding:5px 0; margin-bottom:14px; border:0; background:transparent; color:#3864aa; font-size:11px; cursor:pointer; text-align:left; }
.sg-calculator-sidebar .sg-add-package:disabled { opacity:.5; cursor:default; }
.sg-calculator-sidebar .sg-package-hint { display:block; font-size:11px; color:#916221; margin-bottom:12px; }
/* Pievieno publiskā style.css pašās beigās. */
.site-container.sg-info-page.sg-info-with-calculator {
    display:grid;
    grid-template-columns:minmax(0,1fr) 320px;
    align-items:start;
    gap:28px;
    box-sizing:border-box;
    width:calc(100% - 40px);
    max-width:1280px;
    margin:0 auto;
    padding: 0px;
}
.sg-info-with-calculator > .sg-info-article {
    box-sizing:border-box;
    width:100%; min-width:0; max-width:none; margin:0;
    padding:30px 34px;
    border:1px solid #e3e7ef; border-radius:12px;
    background:#fff;
}
.sg-info-with-calculator > .sg-calculator-sidebar {
    box-sizing:border-box;
    width:100%; min-width:0; max-width:none; margin:0;
}
.sg-info-with-calculator .sg-info-heading { margin:0 0 24px; padding:0 0 20px; }
.sg-info-with-calculator .sg-info-heading h1 { margin:0; font-size:28px; line-height:1.3; }
.sg-info-with-calculator .sg-info-content { font-size:15px; line-height:1.8; color:#354259; }
.sg-info-with-calculator .sg-info-content p { margin:0 0 18px; }
.sg-info-with-calculator .sg-info-content h2 { margin:28px 0 12px; font-size:20px; line-height:1.4; color:#24334d; }
.sg-info-with-calculator .sg-info-content h3 { margin:24px 0 10px; font-size:18px; line-height:1.4; }
.sg-info-with-calculator .sg-info-content ul,
.sg-info-with-calculator .sg-info-content ol { margin:12px 0 22px; padding-left:24px; }
.sg-info-with-calculator .sg-info-content li { margin:9px 0; padding-left:3px; }
.sg-info-with-calculator .sg-info-content > :first-child { margin-top:0; }
.sg-info-with-calculator .sg-info-content > :last-child { margin-bottom:0; }
.sg-calculator-sidebar [hidden] { display:none !important; }
.sg-calculator-sidebar #quote-form { box-sizing:border-box; width:100%; margin:0; padding:22px; border:1px solid #dfe3ee; border-radius:12px; background:#f2f3f9; color:#25334c; }
.sg-calculator-sidebar #quote-form h2 { margin:0 0 14px; font-size:21px; line-height:1.3; }
.sg-calculator-sidebar #quote-form h2:not(:first-of-type) { margin-top:22px; }
.sg-calculator-sidebar #quote-form .grid { display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1fr); gap:13px; margin-bottom:14px; }
.sg-calculator-sidebar #quote-form label { display:block; min-width:0; font-size:12px; line-height:1.4; font-weight:600; }
.sg-calculator-sidebar #quote-form input:not([type=hidden]),
.sg-calculator-sidebar #quote-form select { box-sizing:border-box; display:block; width:100%; min-width:0; min-height:40px; margin-top:6px; padding:10px; border:1px solid #ccd4e5; border-radius:5px; background:#fff; color:#26334b; font:inherit; font-size:12px; font-weight:400; }
.sg-calculator-sidebar #quote-form button[type=submit] { display:block; width:100%; padding:13px 10px; border:0; border-radius:6px; background:#3864aa; color:#fff; font-size:13px; font-weight:600; cursor:pointer; }
.sg-calculator-sidebar .country-picker { position:relative; }
.sg-calculator-sidebar .country-results { position:absolute; z-index:30; left:0; right:0; top:100%; max-height:240px; overflow:auto; border:1px solid #ccd4e5; border-radius:5px; background:#fff; box-shadow:0 8px 22px #24365122; }
.sg-calculator-sidebar .country-results button { display:block; width:100%; padding:10px 8px; border:0; background:#fff; text-align:left; color:#25334c; font-size:12px; cursor:pointer; }
.sg-calculator-sidebar .country-results button:hover,
.sg-calculator-sidebar .country-results button:focus { background:#edf2fb; }
.sg-calculator-sidebar .calculator-options { margin:18px 0; padding-top:16px; border-top:1px solid #d6dcec; }
.sg-calculator-sidebar .calculator-options summary { margin-bottom:16px; color:#3864aa; font-size:12px; font-weight:600; line-height:1.6; cursor:pointer; }
.sg-calculator-sidebar .sg-form-note,
.sg-calculator-sidebar .calculator-options p { color:#778297; font-size:11px; line-height:1.65; }
.sg-calculator-sidebar .sg-extra-package { margin-bottom:12px; padding:14px 0; border-bottom:1px solid #d6dcec; }
.sg-calculator-sidebar .sg-extra-package-heading { display:flex; justify-content:space-between; align-items:center; margin-bottom:10px; font-size:13px; }
.sg-calculator-sidebar .sg-remove-package { border:0; background:transparent; color:#71819d; font-size:20px; cursor:pointer; }
.sg-calculator-sidebar .sg-add-package { padding:5px 0; margin-bottom:14px; border:0; background:transparent; color:#3864aa; font-size:11px; cursor:pointer; text-align:left; }
.sg-calculator-sidebar .sg-add-package:disabled { opacity:.5; cursor:default; }
@media (max-width:900px) {
    .site-container.sg-info-page.sg-info-with-calculator { grid-template-columns:minmax(0,1fr); gap:22px; }
    .sg-info-with-calculator > .sg-calculator-sidebar { width:100%; max-width:520px; justify-self:center; }
}
@media (max-width:600px) {
    .site-container.sg-info-page.sg-info-with-calculator { width:calc(100% - 28px); padding-top:22px; }
    .sg-info-with-calculator > .sg-info-article { padding:22px 20px; }
    .sg-info-with-calculator .sg-info-heading h1 { font-size:24px; }
}
.sg-calculator-sidebar .country-results {
    box-sizing: border-box;
    min-width: 260px;
    max-width: calc(100vw - 40px);
    overflow-x: hidden;
}

.sg-calculator-sidebar .country-results button {
    box-sizing: border-box;
    white-space: normal;
    overflow-wrap: anywhere;
    line-height: 1.45;
}

/* Kopīgais rezultātu lapas rāmis */
.sg-results-frame {
    box-sizing: border-box;
    width: calc(100% - 40px);
    max-width: 1480px;
    margin: 28px auto 20px;
    padding: 0px;

    background: #fff;
    border: 1px solid #dfe7f2;
    border-radius: 14px;
    box-shadow: 0 8px 32px rgba(43, 81, 137, 0.07);
}

/* Esošais iekšējais konteiners aizpilda rāmi */
.sg-results-frame > .site-container {
    width: 100%;
    max-width: none;
    margin: 0;
    padding-left: 0;
    padding-right: 0;
}

@media (max-width: 760px) {
    .sg-results-frame {
        width: calc(100% - 24px);
        margin-top: 18px;
        padding: 16px;
        border-radius: 10px;
    }
}
.sg-page-frame {
    box-sizing: border-box;
    width: calc(100% - 40px);
    max-width: 1480px;
    margin: 28px auto 56px;
    padding: 24px;
    background: #fff;
    border: 1px solid #dfe7f2;
    border-radius: 14px;
    box-shadow: 0 8px 32px rgba(43, 81, 137, 0.07);
}

@media (max-width: 760px) {
    .sg-page-frame {
        width: calc(100% - 24px);
        padding: 16px;
    }
}

.sg-page-frame {
    box-sizing: border-box;
    width: calc(100% - 40px);
    max-width: 1480px;
    margin: 28px auto 56px;
    padding: 24px;
    background: #fff;
    border: 1px solid #dfe7f2;
    border-radius: 14px;
    box-shadow: 0 8px 32px rgba(43, 81, 137, 0.07);
}

@media (max-width: 760px) {
    .sg-page-frame {
        width: calc(100% - 24px);
        padding: 16px;
    }
}
/* Kalkulators un pašreizējais rezultātu skats. Ielādē pēc style.css. */
[hidden] { display: none !important; }
#main, #home-calculator { --sg-blue: #1765ad; --sg-ink: #213c54; --sg-line: #dce5ec; --sg-muted: #627385; font-family: Arial, sans-serif; font-size: 16px; line-height: 1.5; color: var(--sg-ink); }
#main *, #home-calculator * { box-sizing: border-box; }
#main.site-container { width: calc(100% - 48px); max-width: 1420px; margin: 24px auto 56px; }
#main .back-to-home { border: 0; background: #eef4f9; color: #1765ad; padding: 9px 14px; border-radius: 7px; font-size: 14px; cursor: pointer; }
#main .order-steps { display: grid; grid-template-columns: repeat(4, 1fr); padding: 0; margin: 22px 0 28px; list-style: none; gap: 0; }
#main .order-steps li { padding: 12px 8px; text-align: center; color: #748292; border-bottom: 4px solid #e8edf1; font-size: 14px; }
#main .order-steps li.current { color: #1765ad; border-color: #8fb737; font-weight: 700; }
#main .quote-layout { display: grid; grid-template-columns: minmax(0, 1fr) 450px; gap: 26px; align-items: start; }
#main .results-column, #main .calculator-column { min-width: 0; }
#main h1 { margin: 0 0 8px; font-size: 30px; line-height: 1.2; font-weight: 700; color: #213c54; }
#main h2 { font-size: 23px; margin: 0 0 10px; line-height: 1.3; color: #213c54; }
#main .results-intro { font-size: 15px; color: #627385; margin: 0 0 20px; }
#main #statuses { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 18px; }
#main #statuses > p { margin: 0; padding: 8px 10px; border-radius: 7px; background: #f0f5f9; color: #425b70; font-size: 13px; line-height: 1.5; overflow-wrap: anywhere; }
#main #statuses > p.error { background: #fff0f1; color: #a32935; border: 1px solid #f0ccd1; }
#main .offer-title { padding: 13px 16px; margin: 0; border-radius: 9px 9px 0 0; background: #edf4fa; border: 1px solid #dce5ec; font-size: 16px; font-weight: 700; color: #213c54; }
#main .table { width: 100%; overflow-x: auto; border: 1px solid #dce5ec; border-top: 0; border-radius: 0 0 9px 9px; background: #fff; }
#main .offer-table { width: 100%; border-collapse: collapse; font-size: 15px; color: #213c54; margin: 0; }
#main .offer-table th { background: #f7f9fb; color: #627385; font-size: 12px; text-align: left; font-weight: 600; padding: 13px 12px; border-bottom: 1px solid #dce5ec; white-space: normal; }
#main .offer-table td { padding: 18px 12px; border-bottom: 1px solid #e7edf2; vertical-align: middle; background: #fff; font-size: 14px; }
#main .offer-table tr:last-child td { border-bottom: 0; }
#main .offer-table tbody tr:hover td { background: #f7fbf7; }
#main .offer-table td[colspan] { background: #f7f9fb; padding: 20px 16px; color: #627385; }
#main .offer-provider { display: flex; align-items: center; gap: 12px; min-width: 190px; }
#main .offer-provider > span { font-weight: 700; font-size: 15px; }
#main .offer-provider .brand { display: inline-flex; align-items: center; justify-content: center; min-width: 64px; padding: 8px; border-radius: 7px; background: #edf4fa; color: #1765ad; font-size: 16px; font-weight: 800; }
#main .offer-provider .brand.ups { background: #fff0c4; color: #5b390b; }
#main .offer-provider .brand.fedex { background: #f4edfa; color: #50288b; }
#main .offer-provider .brand.dhl { background: #ffdf00; color: #d40511; }
#main .offer-provider .brand.novapost { background: #ffeded; color: #b82a30; }
#main .service-description { display: block; margin-top: 5px; max-width: 240px; color: #627385; font-size: 12px; font-weight: 400; line-height: 1.5; }
#main .offer-table .offer-price { font-size: 19px; font-weight: 700; white-space: nowrap; color: #213c54; }
#main .offer-price small { font-size: 11px; font-weight: 400; color: #627385; }
#main .offer-table details summary { color: #1765ad; cursor: pointer; font-size: 13px; }
#main .offer-table details small { display: block; margin-top: 8px; font-size: 12px; min-width: 120px; }
#main .offer-note { margin: 14px 0 24px; font-size: 12px; line-height: 1.6; color: #627385; }
#main .sg-alternatives { margin: 28px 0; }
#main .sg-alternatives > p { color: #627385; font-size: 14px; margin: 0 0 16px; }
#main #alternative-offers { display: grid; gap: 14px; }
#main .sg-alternative-card { position: relative; background: #f7f8fa; border: 1px solid #dfe4e9; border-radius: 11px; padding: 20px; box-shadow: 0 2px 6px #213c5405; }
#main .sg-alternative-card h3 { margin: 0 0 13px; padding-right: 128px; color: #5c6673; font-size: 20px; line-height: 1.35; font-weight: 700; }
#main .sg-alternative-card::after { content: 'Nav pieejams'; position: absolute; top: 20px; right: 20px; background: #e6e9ed; color: #77818e; font-size: 12px; font-weight: 700; padding: 8px 11px; border-radius: 6px; }
#main .sg-alternative-card ul { margin: 0 0 12px; list-style: none; padding: 12px 15px; border-radius: 7px; background: #fff0f1; border-left: 3px solid #d55560; }
#main .sg-alternative-card li { margin: 4px 0; font-size: 14px; font-weight: 600; color: #a62d38; overflow-wrap: anywhere; }
#main .sg-alternative-card p { color: #627385; font-size: 13px; margin: 10px 0 14px; line-height: 1.6; }
#main .sg-add-data { display: inline-block; padding: 9px 13px; border: 1px solid #abc5dd; background: #fff; color: #1765ad; font-size: 13px; font-weight: 600; border-radius: 6px; cursor: pointer; }
#main .sg-add-data:hover { background: #eaf3fb; }
#main .calculation-details { margin-top: 26px; border: 1px solid #dce5ec; border-radius: 9px; padding: 15px 18px; background: #fafcfe; }
#main .calculation-details summary { color: #1765ad; font-size: 14px; cursor: pointer; }
#main .calculation-details p { color: #627385; font-size: 13px; line-height: 1.7; }
#main #debug { min-width: 0; font-size: 13px; }
#main #debug > details { margin-top: 10px; padding: 10px; background: #fff; border: 1px solid #dce5ec; border-radius: 6px; }
#main #debug pre { max-height: 420px; max-width: 100%; overflow: auto; padding: 12px; background: #f3f6f9; font: 12px/1.5 monospace; white-space: pre-wrap; overflow-wrap: anywhere; }
#main .help-card { margin-top: 16px; padding: 20px; border-radius: 10px; background: #edf5fc; border: 1px solid #dce9f4; color: #425b70; }
#main .help-card h3 { margin: 0 0 10px; color: #1765ad; font-size: 20px; font-weight: 700; }
#main .help-card p { font-size: 14px; line-height: 1.6; margin: 8px 0; }
#quote-form { padding: 22px; border: 1px solid #dce5ec; border-radius: 12px; background: #f0f5fa; color: #213c54; margin: 0; box-shadow: 0 5px 22px #213c5408; }
#quote-form h2 { font-size: 22px; line-height: 1.3; margin: 0 0 10px; color: #213c54; font-weight: 700; }
#quote-form .calculator-intro { font-size: 14px; line-height: 1.5; color: #627385; margin: 0 0 18px; }
#quote-form .grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 13px 14px; margin-bottom: 20px; }
#quote-form label { display: block; color: #213c54; font-size: 13px; font-weight: 600; line-height: 1.4; margin: 0; }
#quote-form input:not([type='hidden']):not([type='checkbox']), #quote-form select { display: block; width: 100%; min-width: 0; height: 42px; margin: 6px 0 0; padding: 9px 11px; background: #fff; color: #213c54; border: 1px solid #cbd6df; border-radius: 6px; font-family: inherit; font-size: 14px; font-weight: 400; box-shadow: none; }
#quote-form input:focus, #quote-form select:focus { outline: 2px solid #98c3e8; outline-offset: 1px; border-color: #1765ad; }
#quote-form input[type='checkbox'] { width: 17px; height: 17px; flex: 0 0 auto; margin: 2px 0 0; accent-color: #1765ad; }
#quote-form label.check { display: flex; align-items: flex-start; gap: 9px; margin: 15px 0; font-size: 13px; font-weight: 400; }
#quote-form .calculator-options { margin: 8px 0 18px; border-top: 1px solid #d3dfe9; padding-top: 14px; }
#quote-form .calculator-options summary { cursor: pointer; color: #1765ad; font-size: 13px; font-weight: 700; line-height: 1.5; }
#quote-form .calculator-options[open] summary { margin-bottom: 16px; }
#quote-form .calculator-options small { color: #627385; font-size: 12px; line-height: 1.6; }
#quote-form .sg-form-note { color: #627385; font-size: 12px; font-weight: 400; line-height: 1.6; margin: 16px 0; }
#quote-form > button[type='submit'] { display: block; width: 100%; min-height: 46px; padding: 12px 16px; margin: 0; background: #1765ad; color: #fff; border: 0; border-radius: 7px; font-size: 15px; font-weight: 700; cursor: pointer; }
#quote-form > button[type='submit']:hover { background: #104e89; }
#quote-form .country-picker { position: relative; }
#quote-form .country-results { position: absolute; z-index: 100; top: 100%; left: 0; right: 0; max-height: 250px; overflow-y: auto; background: #fff; color: #213c54; border: 1px solid #cbd6df; border-radius: 7px; box-shadow: 0 10px 25px #213c5426; font-weight: 400; }
#quote-form .country-results button { display: block; width: 100%; height: auto; padding: 11px 12px; margin: 0; border: 0; border-radius: 0; background: #fff; color: #213c54; text-align: left; font-size: 14px; font-weight: 400; cursor: pointer; }
#quote-form .country-results button.active, #quote-form .country-results button:hover { background: #eaf3fb; }
#quote-form .country-results > div { padding: 12px; font-size: 13px; }
#main button:focus-visible, #main summary:focus-visible, #home-calculator button:focus-visible { outline: 3px solid #8ab7e0; outline-offset: 3px; }
@media (max-width: 1100px) {
  #main .quote-layout { grid-template-columns: minmax(0, 1fr) 300px; gap: 18px; }
  #main .offer-table th, #main .offer-table td { padding: 12px 8px; }
  #main .offer-provider { min-width: 155px; gap: 8px; }
  #main .offer-provider .brand { min-width: 54px; font-size: 14px; }
  #quote-form { padding: 18px; }
}
@media (max-width: 850px) {
  #main.site-container { width: calc(100% - 28px); margin-top: 18px; }
  #main .quote-layout { grid-template-columns: minmax(0, 1fr); }
  #main .calculator-column { grid-row: 1; }
  #main h1 { font-size: 26px; }
  #main .order-steps { margin: 16px 0 22px; }
  #main .offer-table { min-width: 620px; }
}
@media (max-width: 480px) {
  #quote-form { padding: 16px; }
  #quote-form .grid { gap: 12px 10px; }
  #quote-form input:not([type='hidden']):not([type='checkbox']), #quote-form select { font-size: 16px; }
  #main .order-steps li { font-size: 12px; padding: 10px 3px; }
  #main .sg-alternative-card { padding: 16px; }
  #main .sg-alternative-card h3 { padding-right: 0; padding-top: 36px; font-size: 18px; }
  #main .sg-alternative-card::after { top: 14px; right: auto; left: 16px; }
}

/* Papildu paku pievienošana */
#quote-form .sg-add-package-row {
    margin: 5px 0 8px;
}

#quote-form button.sg-add-package {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    width: auto;
    min-width: 0;
    min-height: 0;
    margin: 0;
    padding: 3px 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    color: #3c63a4;
    font: inherit;
    font-size: 12px;
    font-weight: 500;
    line-height: 1.4;
    text-align: left;
    text-transform: none;
    cursor: pointer;
}

#quote-form .sg-add-package > span:first-child {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 24px;
    width: 24px;
    height: 24px;
    border: 1px solid #cbd7ed;
    border-radius: 50%;
    background: #edf2fc;
    color: #3c63a4;
    font-size: 19px;
    line-height: 1;
}

#quote-form button.sg-add-package:hover:not(:disabled) {
    background: transparent;
    color: #24487f;
    box-shadow: none;
}

#quote-form .sg-add-package:hover:not(:disabled) > span:first-child {
    border-color: #3c63a4;
    background: #e1eafb;
}

#quote-form button.sg-add-package:disabled {
    background: transparent;
    color: #8792a5;
    opacity: 0.6;
    cursor: default;
}

#quote-form button.sg-add-package:focus-visible,
#quote-form button.sg-remove-package:focus-visible {
    outline: 2px solid #6487c5;
    outline-offset: 3px;
}

#quote-form .sg-package-hint:not([hidden]) {
    display: block;
    margin-top: 5px;
    color: #788397;
    font-size: 11px;
    line-height: 1.4;
}

/* Papildu pakas */
#quote-form .sg-extra-package {
    margin: 6px 0;
    padding-bottom: 0px;
    border-bottom: 1px solid #dce2ef;
}

#quote-form .sg-extra-package-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 3px;
}

#quote-form .sg-extra-package-title {
    color: #243d64;
    font-size: 13px;
}

#quote-form button.sg-remove-package {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 28px;
    width: 28px;
    height: 28px;
    min-width: 0;
    min-height: 0;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: transparent;
    box-shadow: none;
    color: #7b879b;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
}

#quote-form button.sg-remove-package:hover {
    background: #fcecec;
    color: #bd4242;
}

#quote-form .sg-extra-package-fields {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 7px;
}

#quote-form .sg-extra-package-fields label {
    min-width: 0;
}

#quote-form .sg-extra-package-fields input {
    width: 50px;
    min-width: 0;
    box-sizing: border-box;
}

@media (max-width: 480px) {
    #quote-form .sg-extra-package-fields {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* Kalkulators: maršruts pa kreisi, pakas pa labi. */
#quote-form.sg-calc-v2,
#homepage #quote-form.sg-calc-v2:has(#extra-shipment-data[open]) { display:grid; grid-template-columns:minmax(0,1fr); gap:16px; }
#quote-form.sg-calc-v2 > *,
#homepage #quote-form.sg-calc-v2:has(#extra-shipment-data[open]) > * { grid-column:auto; min-width:0; }
#quote-form.sg-calc-v2 h2 { margin:0 0 12px; }
#quote-form.sg-calc-v2 .grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; margin-bottom:14px; }
#quote-form.sg-calc-v2 .sg-package-dimensions,
#quote-form.sg-calc-v2 .sg-extra-package-fields { grid-template-columns:repeat(4,minmax(0,1fr)); gap:8px; }
#quote-form.sg-calc-v2 .sg-calc-extra { margin-top:18px; }
#quote-form.sg-calc-v2 #extra-shipment-data { margin:0; padding:0; border:0; }
#quote-form.sg-calc-v2 #extra-shipment-data > summary { display:none; }
#quote-form.sg-calc-v2 .sg-calc-actions { display:flex; flex-wrap:wrap; gap:8px; }
#quote-form.sg-calc-v2 button.sg-light-button,
#sg-pallet-form button.sg-light-button,
#quote-form.sg-calc-v2 button.sg-add-package {
 display:inline-flex; align-items:center; justify-content:center; gap:8px; width:auto;
 min-height:36px; padding:8px 12px; margin:0; border:1px solid #bdcce4;
 border-radius:7px; background:#edf2fb; color:#365d9e; box-shadow:none;
 font:600 12px/1.4 Arial,sans-serif; cursor:pointer;
}
#quote-form.sg-calc-v2 button.sg-light-button:hover,
#sg-pallet-form button.sg-light-button:hover,
#quote-form.sg-calc-v2 button.sg-add-package:hover:not(:disabled) { background:#dfe9fa; border-color:#93acd4; color:#294a83; }
#quote-form.sg-calc-v2 button.sg-add-package { width:100%; padding:10px 12px; margin-top:10px; }
#quote-form.sg-calc-v2 button.sg-add-package:disabled,
#sg-pallet-form button.sg-light-button:disabled { opacity:.55; cursor:default; }
#quote-form.sg-calc-v2 > button[type=submit] { width:100%; min-height:44px; margin:0; }
#homepage .sg-shipping-card:has(#quote-form.sg-calc-expanded):not(:has(#sg-pallet-panel:not([hidden]))) .sg-shipment-tabs { display:none; }
.sg-city-picker { position:relative; min-width:0; }
.sg-city-results { position:absolute; z-index:200; top:100%; left:0; right:0; max-height:250px; overflow:auto; background:#fff; border:1px solid #bdcce4; border-radius:7px; box-shadow:0 8px 24px #243d6426; }
#quote-form .sg-city-results button.sg-city-option,
#sg-pallet-form .sg-city-results button.sg-city-option { display:block; width:100%; margin:0; padding:10px; min-height:36px; border:0; border-radius:0; background:#fff; color:#263b5c; text-align:left; font:400 13px/1.4 Arial,sans-serif; box-shadow:none; cursor:pointer; }
#quote-form .sg-city-results button.sg-city-option:hover,
#sg-pallet-form .sg-city-results button.sg-city-option:hover,
#quote-form .sg-city-results button[aria-selected=true],
#sg-pallet-form .sg-city-results button[aria-selected=true] { background:#e7effc; }
.sg-city-note { padding:10px; color:#63728b; font:12px/1.5 Arial,sans-serif; }
#sg-pallet-form .sg-pallet-item { margin:14px 0; padding:12px 0; border-top:1px solid #d5ddeb; }
#sg-pallet-form .sg-pallet-item .grid { grid-template-columns:repeat(3,minmax(0,1fr)); }
#sg-pallet-form .sg-remove-pallet { border:0; background:transparent; color:#7c5462; font-size:22px; cursor:pointer; }
#sg-pallet-form #sg-add-pallet { width:100%; margin:8px 0 16px; }
#sg-pallet-form .sg-extra-package-heading { display:flex; justify-content:space-between; align-items:center; }
#quote-form.sg-calc-v2 [hidden], #sg-pallet-form [hidden] { display:none !important; }
@media(min-width:900px) {
 #homepage .sg-shipping-card:has(#quote-form.sg-calc-expanded) { width:840px; max-width:100%; }
 #homepage #quote-form.sg-calc-v2.sg-calc-expanded { grid-template-columns:minmax(0,1fr) minmax(0,1fr); column-gap:24px; }
 #homepage #quote-form.sg-calc-expanded .sg-calc-left { grid-column:1; grid-row:1; }
 #homepage #quote-form.sg-calc-expanded .sg-calc-right { grid-column:2; grid-row:1 / span 3; border-left:1px solid #d5ddeb; padding-left:20px; }
 #homepage #quote-form.sg-calc-expanded .sg-calc-actions,
 #homepage #quote-form.sg-calc-expanded > button[type=submit] { grid-column:1; }
}
@media(max-width:480px) {
 #quote-form.sg-calc-v2 .sg-package-dimensions,
 #quote-form.sg-calc-v2 .sg-extra-package-fields { grid-template-columns:repeat(2,minmax(0,1fr)); }
 #quote-form.sg-calc-v2 .sg-calc-actions { flex-direction:column; }
 #quote-form.sg-calc-v2 button.sg-light-button { width:100%; }
}
.country-picker{position:relative}
.country-results{position:absolute;z-index:100;top:100%;left:0;right:0;max-height:240px;overflow:auto;background:white;color:#222;border:1px solid #ccc;border-radius:8px;box-shadow:0 8px 24px #0002}
.country-results[hidden]{display:none}
.country-results button{display:block;width:100%;padding:10px 12px;border:0;border-radius:0;background:white;color:#222;text-align:left;margin:0}
.country-results button:hover,.country-results button.active{background:#edf4ff}
.country-results>div{padding:10px 12px}

/* --- Labojumi kalkulatora un papildu datu vizuālajam izskatam --- */

#quote-form.sg-calc-v2 {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
    box-sizing: border-box;
}

#quote-form.sg-calc-v2 .grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 14px;
    box-sizing: border-box;
}

/* Nodrošinām, ka ievadlaukumi neiziet ārpus malām */
#quote-form input:not([type='hidden']):not([type='checkbox']), 
#quote-form select,
#quote-form textarea {
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
}

/* Valstu meklētāja un pilsētu saraksta pozicionēšana un platums */
.country-picker,
.sg-city-picker {
    position: relative;
    width: 100%;
    min-width: 0;
}

.country-results,
.sg-city-results {
    position: absolute;
    z-index: 200;
    top: 100%;
    left: 0;
    right: 0;
    max-height: 240px;
    overflow-y: auto;
    background: #fff;
    border: 1px solid #cbd6df;
    border-radius: 7px;
    box-shadow: 0 10px 25px rgba(33, 60, 84, 0.15);
    box-sizing: border-box;
}

/* Papildu paku režģis un izkārtojums */
#quote-form .sg-extra-package-fields {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
    box-sizing: border-box;
}

@media (max-width: 760px) {
    #quote-form .sg-extra-package-fields,
    #quote-form.sg-calc-v2 .grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 480px) {
    #quote-form .sg-extra-package-fields,
    #quote-form.sg-calc-v2 .grid {
        grid-template-columns: 1fr;
    }
}
/* Svars un trīs izmēri vienā rindā — visām pakām */
#quote-form .grid.sg-package-dimensions,
#quote-form .grid.sg-extra-package-fields,
#quote-form.sg-calc-v2 .grid.sg-package-dimensions,
#quote-form.sg-calc-v2 .grid.sg-extra-package-fields {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
}

#quote-form .grid.sg-package-dimensions > label,
#quote-form .grid.sg-extra-package-fields > label {
    min-width: 0;
}

#quote-form .grid.sg-package-dimensions input,
#quote-form .grid.sg-extra-package-fields input {
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
    padding-left: 6px;
    padding-right: 6px;
}
/* PALETES: svars un visi trīs izmēri vienā rindā */
#sg-pallet-form .sg-pallet-shipment > .grid,
#sg-pallet-form .sg-pallet-item .grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
}

#sg-pallet-form .sg-pallet-shipment > .grid > label,
#sg-pallet-form .sg-pallet-item .grid > label {
    min-width: 0;
}

#sg-pallet-form .sg-pallet-shipment > .grid input,
#sg-pallet-form .sg-pallet-item .grid input {
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
    padding-left: 6px;
    padding-right: 6px;
}

/* ATVĒRTS PAKU KALKULATORS: novērš veco stilu konfliktu */
#homepage #quote-form.sg-calc-v2:has(#extra-shipment-data[open]) {
    grid-template-columns: minmax(0, 1fr);
    align-items: start;
}

#homepage #quote-form.sg-calc-v2:has(#extra-shipment-data[open]) > * {
    grid-column: auto;
    grid-row: auto;
    min-width: 0;
}

#homepage #quote-form.sg-calc-v2:has(#extra-shipment-data[open]) > .sg-calc-right {
    border-left: 0;
    padding-left: 0;
}

@media (min-width: 900px) {
    #homepage #quote-form.sg-calc-v2:has(#extra-shipment-data[open]) {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        column-gap: 24px;
    }

    #homepage #quote-form.sg-calc-v2:has(#extra-shipment-data[open]) > .sg-calc-left {
        grid-column: 1;
        grid-row: 1;
    }

    #homepage #quote-form.sg-calc-v2:has(#extra-shipment-data[open]) > .sg-calc-right {
        grid-column: 2;
        grid-row: 1 / span 3;
        border-left: 1px solid #d5ddeb;
        padding-left: 20px;
    }

    #homepage #quote-form.sg-calc-v2:has(#extra-shipment-data[open]) > .sg-calc-actions {
        grid-column: 1;
        grid-row: 2;
    }

    #homepage #quote-form.sg-calc-v2:has(#extra-shipment-data[open]) > button[type="submit"] {
        grid-column: 1;
        grid-row: 3;
    }
}
@media (min-width: 851px) {
    #main .quote-layout {
        grid-template-columns: minmax(0, 1fr) 450px !important;
    }

    #main .calculator-column,
    #main #results-calculator {
        width: 100%;
        max-width: none;
        min-width: 0;
        box-sizing: border-box;
    }
}
@media (min-width: 761px) {
    #homepage .home-hero {
        height: auto;
        max-height: none;
        background-size: contain !important;
        background-position: center center !important;
        background-repeat: no-repeat;
    }

    #homepage .home-hero:has(#sg-pallet-panel:not([hidden])) {
        background-size: cover !important;
        background-position: center center !important;
    }

    #homepage .hero-inner {
        height: auto;
        max-height: none;
    }
}
@media (min-width: 901px) {
    .site-container.sg-info-page.sg-info-with-calculator {
        grid-template-columns: minmax(0, 1fr) 430px;
    }
}

@media (max-width: 850px) {
    #sg-order-ui .sg-order-layout {
        grid-template-columns: minmax(0, 1fr);
    }
}

@media (max-width: 760px) {
    #sg-order-ui.sg-order-page {
        padding-top: 18px !important;
    }

    #sg-order-ui .site-container {
        width: calc(100% - 24px) !important;
        padding: 16px !important;
        border-radius: 10px;
    }
}
#sg-order-ui a.sg-order-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}


.sg-tracking-spinner {
    display: inline-block;
    width: 18px;
    height: 18px;
    margin-right: 8px;
    vertical-align: middle;
    border: 3px solid #ddd;
    border-top-color: currentColor;
    border-radius: 50%;
    animation: sg-tracking-spin .8s linear infinite;
}

@keyframes sg-tracking-spin {
    to { transform: rotate(360deg); }
}

#sg-tracking-loading {
    padding: 16px 0;
}

.sg-tracking-page [hidden] {
    display: none !important;
}

#sg-tracking-result dl {
    display: grid;
    grid-template-columns: minmax(130px, auto) 1fr;
    gap: 7px 18px;
    margin: 16px 0 24px;
}

#sg-tracking-result dt {
    font-weight: 600;
}

#sg-tracking-result dd {
    margin: 0;
    overflow-wrap: anywhere;
}

.sg-tracking-table-wrap {
    overflow-x: auto;
    margin-bottom: 20px;
}

.sg-tracking-table {
    width: 100%;
    border-collapse: collapse;
}

.sg-tracking-table th,
.sg-tracking-table td {
    padding: 10px;
    text-align: left;
    vertical-align: top;
    border-bottom: 1px solid #e5e5e5;
}

.sg-tracking-table small {
    display: block;
    margin-top: 4px;
    color: #666;
}

#sg-tracking-message {
    padding: 12px;
    background: #fff4db;
    border-radius: 6px;
}

.sg-tracking-page.sg-info-with-calculator {
    width: 100%;
    max-width: 1280px;
    box-sizing: border-box;
}

.sg-tracking-page.sg-info-with-calculator > .sg-tracking-page-card {
    width: 100%;
    max-width: none;
    min-width: 0;
    margin: 0;
    box-sizing: border-box;
}

.sg-tracking-page #sg-tracking-result {
    min-width: 0;
}

.sg-tracking-page .sg-tracking-table-wrap {
    max-width: 100%;
    overflow-x: auto;
}

.sg-tracking-page #sg-tracking-refresh {
    padding: 11px 20px;
    border: 0;
    border-radius: 10px;
    background: #3867b4;
    color: #fff;
    font: inherit;
    font-weight: 600;
    cursor: pointer;
}

.sg-tracking-page #sg-tracking-refresh:disabled {
    opacity: .6;
    cursor: wait;
}

/* Vienota sūtījumu izsekošana */
.sg-tracking-page {
    --sg-track-accent: var(--sg-primary, #ee7623);
    --sg-track-ink: #263548;
    --sg-track-muted: #778191;
    --sg-track-border: #e8ecf1;
}

.sg-tracking-page #sg-tracking-result {
    margin-top: 24px;
}

.sg-tracking-page .sg-track-summary {
    padding: 24px;
    border: 1px solid var(--sg-track-border);
    border-top: 3px solid var(--sg-track-accent);
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 6px 24px rgba(30, 45, 65, .04);
}

.sg-tracking-page .sg-track-summary-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
}

.sg-tracking-page .sg-track-eyebrow {
    color: var(--sg-track-muted);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .12em;
}

.sg-tracking-page .sg-track-carrier {
    padding: 5px 11px;
    border: 1px solid var(--sg-track-border);
    border-radius: 7px;
    color: var(--sg-track-ink);
    background: #f8fafc;
    font-size: 12px;
    font-weight: 700;
}

.sg-tracking-page .sg-track-status-row {
    display: flex;
    align-items: center;
    gap: 15px;
}

.sg-tracking-page .sg-track-status-icon {
    display: grid;
    place-items: center;
    flex: 0 0 48px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: #fff3e9;
    color: var(--sg-track-accent);
    font-size: 25px;
    font-weight: 700;
}

.sg-tracking-page .sg-track-status-copy {
    min-width: 0;
}

.sg-tracking-page .sg-track-status-title {
    margin: 0;
    color: var(--sg-track-ink);
    font-size: clamp(21px, 2.4vw, 28px);
    line-height: 1.2;
    font-weight: 750;
    overflow-wrap: anywhere;
}

.sg-tracking-page .sg-track-status-original {
    margin: 6px 0 0;
    color: var(--sg-track-muted);
    font-size: 12px;
    line-height: 1.5;
}

.sg-tracking-page .sg-track-summary--delivered {
    border-top-color: #28916a;
}

.sg-tracking-page .sg-track-summary--delivered .sg-track-status-icon {
    color: #20835e;
    background: #eaf7f0;
}

.sg-tracking-page .sg-track-summary--exception,
.sg-tracking-page .sg-track-summary--cancelled {
    border-top-color: #c15b4b;
}

.sg-tracking-page .sg-track-summary--exception .sg-track-status-icon,
.sg-tracking-page .sg-track-summary--cancelled .sg-track-status-icon {
    color: #b85042;
    background: #fff0ed;
}

.sg-tracking-page .sg-track-facts {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px 24px;
    margin: 22px 0 0;
    padding-top: 20px;
    border-top: 1px solid var(--sg-track-border);
}

.sg-tracking-page .sg-track-fact-label {
    margin: 0 0 5px;
    color: var(--sg-track-muted);
    font-size: 11px;
    line-height: 1.4;
}

.sg-tracking-page .sg-track-fact-value {
    margin: 0;
    color: var(--sg-track-ink);
    font-size: 13px;
    font-weight: 600;
    line-height: 1.5;
    overflow-wrap: anywhere;
}

.sg-tracking-page .sg-track-history {
    margin-top: 30px;
}

.sg-tracking-page .sg-track-history-heading {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 24px;
}

.sg-tracking-page .sg-track-history-title {
    margin: 0;
    color: var(--sg-track-ink);
    font-size: 18px;
    font-weight: 700;
}

.sg-tracking-page .sg-track-timezone {
    color: var(--sg-track-muted);
    font-size: 11px;
}

.sg-tracking-page .sg-track-timeline {
    margin: 0;
    padding: 0;
    list-style: none;
}

.sg-tracking-page .sg-track-event {
    position: relative;
    display: grid;
    grid-template-columns: 88px 22px minmax(0, 1fr);
    column-gap: 15px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.sg-tracking-page .sg-track-event::before {
    content: "";
    position: absolute;
    top: 12px;
    bottom: -12px;
    left: 113px;
    width: 2px;
    background: var(--sg-track-border);
}

.sg-tracking-page .sg-track-event:last-child::before {
    display: none;
}

.sg-tracking-page .sg-track-event-time {
    padding-top: 2px;
    text-align: right;
}

.sg-tracking-page .sg-track-event-date {
    display: block;
    color: var(--sg-track-muted);
    font-size: 11px;
    line-height: 1.5;
}

.sg-tracking-page .sg-track-event-hour {
    display: block;
    margin-top: 3px;
    color: var(--sg-track-ink);
    font-size: 15px;
    line-height: 1.4;
    font-weight: 650;
}

.sg-tracking-page .sg-track-event-marker {
    position: relative;
    z-index: 1;
    justify-self: center;
    width: 10px;
    height: 10px;
    margin-top: 6px;
    border: 2px solid #fff;
    border-radius: 50%;
    background: #cbd3dd;
    box-sizing: content-box;
}

.sg-tracking-page .sg-track-event.is-latest .sg-track-event-marker {
    background: var(--sg-track-accent);
    box-shadow: 0 0 0 4px #fff0e5;
}

.sg-tracking-page .sg-track-event-content {
    min-width: 0;
    padding: 0 0 29px;
}

.sg-tracking-page .sg-track-event:last-child .sg-track-event-content {
    padding-bottom: 0;
}

.sg-tracking-page .sg-track-latest-label {
    display: block;
    margin-bottom: 5px;
    color: var(--sg-track-accent);
    font-size: 9px;
    line-height: 1.3;
    font-weight: 750;
    letter-spacing: .1em;
}

.sg-tracking-page .sg-track-event-title {
    margin: 0;
    color: var(--sg-track-ink);
    font-size: 13px;
    line-height: 1.55;
    font-weight: 650;
    overflow-wrap: anywhere;
}

.sg-tracking-page .sg-track-event-location,
.sg-tracking-page .sg-track-event-details {
    margin: 5px 0 0;
    color: var(--sg-track-muted);
    font-size: 11px;
    line-height: 1.6;
    overflow-wrap: anywhere;
}

.sg-tracking-page .sg-track-event-details {
    color: #596574;
}

.sg-tracking-page .sg-track-updated {
    margin: 24px 0 0;
    padding-top: 15px;
    border-top: 1px solid var(--sg-track-border);
    color: var(--sg-track-muted);
    font-size: 11px;
}

.sg-tracking-page .sg-track-empty {
    padding: 16px;
    border-radius: 10px;
    background: #f7f9fb;
    color: var(--sg-track-muted);
    font-size: 13px;
}

.sg-tracking-page #sg-tracking-refresh {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    margin-top: 20px;
    padding: 10px 20px;
    border: 0;
    border-radius: 9px;
    background: var(--sg-track-accent);
    color: #fff;
    font: inherit;
    font-size: 13px;
    font-weight: 650;
    cursor: pointer;
    transition: opacity .2s, transform .2s;
}

.sg-tracking-page #sg-tracking-refresh:hover:not(:disabled) {
    opacity: .9;
    transform: translateY(-1px);
}

.sg-tracking-page #sg-tracking-refresh:disabled {
    opacity: .5;
    cursor: wait;
}

.sg-tracking-page #sg-tracking-refresh:focus-visible {
    outline: 2px solid var(--sg-track-ink);
    outline-offset: 3px;
}

.sg-tracking-page #sg-tracking-message:not([hidden]) {
    margin: 16px 0;
    padding: 12px 15px;
    border: 1px solid #f0dfbd;
    border-radius: 10px;
    background: #fffbf2;
    color: #805f2b;
    font-size: 12px;
    line-height: 1.6;
}

.sg-tracking-page #sg-tracking-loading:not([hidden]) {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 16px 0;
    color: var(--sg-track-muted);
    font-size: 13px;
}

.sg-tracking-page .sg-tracking-spinner {
    display: inline-block;
    flex: 0 0 16px;
    width: 16px;
    height: 16px;
    border: 2px solid var(--sg-track-border);
    border-top-color: var(--sg-track-accent);
    border-radius: 50%;
    animation: sg-track-spin .8s linear infinite;
}

@keyframes sg-track-spin {
    to { transform: rotate(360deg); }
}

@media (max-width: 600px) {
    .sg-tracking-page .sg-track-summary {
        padding: 18px;
        border-radius: 12px;
    }

    .sg-tracking-page .sg-track-facts {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .sg-tracking-page .sg-track-status-icon {
        flex-basis: 40px;
        width: 40px;
        height: 40px;
        font-size: 22px;
    }

    .sg-tracking-page .sg-track-event {
        grid-template-columns: 70px 18px minmax(0, 1fr);
        column-gap: 10px;
    }

    .sg-tracking-page .sg-track-event::before {
        left: 88px;
    }

    .sg-tracking-page .sg-track-event-date {
        font-size: 10px;
    }

    .sg-tracking-page .sg-track-event-hour {
        font-size: 13px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .sg-tracking-page .sg-tracking-spinner {
        animation: none;
    }

    .sg-tracking-page #sg-tracking-refresh {
        transition: none;
    }
}

.sg-tracking-page #sg-tracking-message.sg-track-message-info {
    border-color: #dce4f3;
    background: #f5f7fc;
    color: #465b7b;
}

/* Pievieno publiskā style.css beigās; atsevišķs CSS pieslēgums nav vajadzīgs. */
.sg-my-orders .sgmo-content{min-width:0;padding:28px;background:#fff;border:1px solid #e2e7f0;border-radius:18px;box-shadow:0 8px 30px #23395b08}
.sgmo-heading{display:flex;align-items:center;justify-content:space-between;gap:18px;margin-bottom:24px}.sgmo-eyebrow{font-size:10px;font-weight:700;letter-spacing:.15em;color:#7185a5}.sgmo-heading h1{margin:7px 0 8px;font-size:30px;line-height:1.2;color:#1d2c45}.sgmo-heading p{margin:0;color:#75829a;font-size:13px;line-height:1.6}
.sg-my-orders .sgmo-button{display:inline-flex;align-items:center;justify-content:center;gap:7px;padding:10px 15px;border:1px solid #466ba9;border-radius:9px;background:#466ba9;color:#fff;text-decoration:none;font:inherit;font-size:12px;font-weight:600;cursor:pointer;white-space:nowrap}.sg-my-orders .sgmo-button:hover{background:#35598f}.sg-my-orders .sgmo-secondary{background:#fff;color:#466ba9;border-color:#d9e1ee}.sg-my-orders .sgmo-secondary:hover{background:#f3f6fb}
.sgmo-tabs{display:flex;flex-wrap:wrap;gap:7px;margin-bottom:20px}.sgmo-tabs a{padding:8px 11px;border:1px solid #e0e6f0;border-radius:8px;color:#61738e;text-decoration:none;font-size:11px;font-weight:600}.sgmo-tabs a.is-active{background:#eaf0ff;color:#325d9c;border-color:#b9cbed}
.sgmo-filters{display:grid;grid-template-columns:2fr 1fr 1fr;gap:12px;padding:16px;margin-bottom:20px;background:#f7f9fd;border:1px solid #e6ebf4;border-radius:12px}.sgmo-filters label{min-width:0}.sgmo-filters label>span{display:block;font-size:11px;font-weight:600;color:#526783;margin-bottom:6px}.sgmo-filters input{box-sizing:border-box;width:100%;min-width:0;min-height:39px;padding:8px 10px;background:white;border:1px solid #d7dfec;border-radius:7px;color:#223853;font:inherit;font-size:12px}.sgmo-filter-actions{grid-column:1/-1;display:flex;align-items:center;gap:15px}.sgmo-filter-actions>a{font-size:12px;color:#70819c}
.sgmo-list{display:grid;gap:15px}.sgmo-card{padding:18px;border:1px solid #dfe6f0;border-radius:13px;background:#fff}.sgmo-card-head{display:flex;align-items:flex-start;justify-content:space-between;gap:12px}.sgmo-card-head h2{font-size:15px;line-height:1.4;color:#253d60;margin:0 0 5px}.sgmo-card-head time{font-size:11px;color:#8490a4}.sgmo-badges{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:6px}.sgmo-badge{display:inline-block;padding:5px 8px;border-radius:6px;background:#edf2fb;color:#4c658c;font-size:10px;font-weight:600}.sgmo-badge.is-paid{background:#e9f7ef;color:#278451}.sgmo-badge.is-waiting{background:#fff5de;color:#9c7119}
.sgmo-route{display:grid;grid-template-columns:minmax(0,1fr) 24px minmax(0,1fr);gap:12px;align-items:center;padding:17px 0;margin-top:10px}.sgmo-route div>span{display:block;color:#8a97ac;font-size:10px;margin-bottom:5px}.sgmo-route strong{display:block;font-size:13px;line-height:1.5;color:#263d5d;overflow-wrap:anywhere}.sgmo-arrow{color:#86a2ce;font-size:20px}
.sgmo-facts{display:grid;grid-template-columns:1fr 1fr 1fr;gap:12px;padding:14px 0;margin:0;border-top:1px solid #edf0f5}.sgmo-facts dt{font-size:10px;color:#8492a7;margin-bottom:6px}.sgmo-facts dd{margin:0;font-size:12px;font-weight:600;color:#314d72}.sgmo-facts .sgmo-price{font-size:15px;color:#294c82}
.sgmo-tracking{display:flex;align-items:center;flex-wrap:wrap;gap:8px 12px;padding:12px 0;border-top:1px solid #edf0f5;font-size:11px}.sgmo-tracking>span{color:#8492a7}.sgmo-tracking>a{color:#3b67a9;font-weight:600;text-decoration:none;overflow-wrap:anywhere}.sgmo-tracking small{color:#96a0af}
.sgmo-details{border-top:1px solid #edf0f5;padding-top:12px}.sgmo-details summary{color:#5274a7;font-size:11px;font-weight:600;cursor:pointer}.sgmo-detail-grid{display:grid;grid-template-columns:1fr 1fr;gap:16px;padding-top:15px}.sgmo-detail-grid h3{font-size:11px;color:#526783;margin:0 0 6px}.sgmo-detail-grid p{font-size:12px;line-height:1.7;color:#74839a;margin:0;overflow-wrap:anywhere}
.sgmo-empty{padding:35px 20px;text-align:center;border:1px dashed #d4dfef;border-radius:12px;background:#fafbfe}.sgmo-empty h2{font-size:18px;color:#334e73;margin:0 0 10px}.sgmo-empty p{font-size:13px;color:#8390a5;line-height:1.7;margin:0 0 16px}.sgmo-alert{padding:12px 15px;border:1px solid #efcece;border-radius:8px;background:#fff4f4;color:#a84040;font-size:13px}.sgmo-pagination{display:flex;justify-content:space-between;align-items:center;gap:12px;flex-wrap:wrap;margin-top:22px;font-size:12px;color:#8090a7}
.sg-my-orders a:focus-visible,.sg-my-orders button:focus-visible,.sg-my-orders summary:focus-visible,.sgmo-filters input:focus-visible{outline:3px solid #94b2ed;outline-offset:3px}
@media(max-width:600px){.sg-my-orders .sgmo-content{padding:20px 15px}.sgmo-heading{align-items:flex-start}.sgmo-heading h1{font-size:25px}.sgmo-heading>.sgmo-button{padding:8px;font-size:10px}.sgmo-filters{grid-template-columns:1fr 1fr}.sgmo-search{grid-column:1/-1}.sgmo-card{padding:14px}.sgmo-card-head{flex-direction:column}.sgmo-badges{justify-content:flex-start}.sgmo-facts{grid-template-columns:1fr 1fr}.sgmo-facts>div:last-child{grid-column:1/-1}.sgmo-detail-grid{grid-template-columns:1fr}.sgmo-route{gap:8px}}

/* Pasūtījums — adrešu grāmata un tālruņa rinda */
.sg-order-section .sgo-address-select + .sg-order-grid {
    margin-top: 10px;
}

.sg-order-grid .sg-order-phone-row {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: minmax(0, max-content) minmax(0, 1fr);
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.sg-order-grid .sg-order-phone-row > .sg-order-field {
    display: grid;
    grid-template-columns: 120px minmax(0, 1fr);
    align-items: center;
    column-gap: 8px;
    min-width: 0;
    margin: 0;
}

.sg-order-grid .sg-order-phone-row > .sg-order-field:first-child {
    grid-template-columns: 120px 64px;
}

.sg-order-grid .sg-order-phone-row > .sg-order-field:last-child {
    grid-template-columns: max-content minmax(0, 1fr);
}

.sg-order-grid .sg-order-phone-row > .sg-order-field > span {
    width: auto;
    min-width: 0;
    white-space: nowrap;
}

.sg-order-grid .sg-order-phone-row > .sg-order-field > input {
    box-sizing: border-box;
    width: 100%;
    min-width: 0;
}

@media (max-width: 600px) {
    .sg-order-grid .sg-order-phone-row > .sg-order-field:first-child {
        grid-template-columns: max-content 58px;
    }
}

/* Pasūtījuma forma — nosaukums uz lauka apmales */
#sg-order-details-form .sg-order-field {
    position: relative;
    display: block;
    min-width: 0;
    margin: 0;
}

#sg-order-details-form .sg-order-field > span:first-child {
    position: absolute;
    z-index: 1;
    top: 0;
    left: 10px;
    width: auto;
    max-width: calc(100% - 20px);
    padding: 0 5px;
    transform: translateY(-50%);
    background: #fff;
    color: #526078;
    font-size: 12px;
    line-height: 1.15;
    text-align: left;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    pointer-events: none;
}

#sg-order-details-form .sg-order-field > :is(input:not([type="hidden"]), select, textarea) {
    box-sizing: border-box;
    width: 100%;
    min-width: 0;
    min-height: 40px;
}

#sg-order-details-form .sg-order-field:focus-within > span:first-child {
    color: #395ba4;
}

#sg-order-details-form .sg-order-grid {
    row-gap: 16px;
    padding-top: 6px;
}

#sg-order-details-form .sgo-address-select {
    max-width: 100%;
    margin: 6px 0 12px;
}

#sg-order-details-form .sg-order-phone-row {
    grid-column: auto;
    display: grid;
    grid-template-columns: 108px minmax(0, 1fr);
    gap: 12px;
    min-width: 0;
}

#sg-order-details-form .sg-order-notes {
    margin-top: 16px;
}
.sg-result-info-dialog {
    width: min(620px, calc(100% - 32px));
    max-height: 85vh;
    padding: 0;
    border: 1px solid #dce1ed;
    border-radius: 12px;
    color: #1e304b;
    background: #fff;
}

.sg-result-info-dialog .sg-result-info-panel {
    padding: 20px;
    overflow-wrap: anywhere;
}

.sg-result-info-dialog::backdrop {
    background: rgb(20 34 56 / 45%);
}

.sg-result-info-dialog .sg-result-info-panel {
    padding: 20px;
    overflow-wrap: anywhere;
    text-align: left;
}
.sg-offer-sort {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
    margin: 8px 0;
}

.sg-offer-sort-button {
    display: grid;
    align-content: start;
    gap: 3px;
    min-width: 0;
    padding: 10px;
    border: 1px solid #dce1ed;
    border-radius: 8px;
    background: #f5f7fc;
    color: #203453;
    font: inherit;
    text-align: left;
    cursor: pointer;
}

.sg-offer-sort-button strong {
    font-size: 1.05em;
}

.sg-offer-sort-button[aria-pressed="true"] {
    border-color: #365e9b;
    background: #365e9b;
    color: #fff;
}

.sg-offer-sort-button:disabled {
    opacity: .55;
    cursor: default;
}
.sg-offer-sort {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    margin: 0 0 10px;
}

.sg-offer-sort > .sg-offer-sort-button {
    appearance: none;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    min-width: 0;
    padding: 10px 12px;
    border: 1px solid #dce2ee;
    border-radius: 8px;
    background: #f5f6fb;
    color: #233751;
    font: inherit;
    text-align: left;
    overflow-wrap: anywhere;
    cursor: pointer;
}

.sg-offer-sort-button[aria-pressed="true"] {
    border-color: #365f9e;
    background: #eef3fc;
}

.sg-offer-sort-button:focus-visible {
    outline: 2px solid #365f9e;
    outline-offset: 2px;
}

.sg-offer-sort-button:disabled {
    opacity: .55;
    cursor: default;
}

.sg-offer-sort-button > span {
    font-size: 12px;
    font-weight: 700;
}

.sg-offer-sort-button > strong {
    font-size: 17px;
    color: #365f9e;
}

.sg-offer-sort-button > small {
    font-size: 11px;
    line-height: 1.35;
}

@media (max-width: 600px) {
    .sg-offer-sort {
        grid-template-columns: 1fr;
    }
}
.sg-offer-sort-price {
    display: flex;
    align-items: baseline;
    gap: 6px;
    white-space: nowrap;
}

.sg-offer-sort-price > strong {
    font-size: 17px;
    color: #365f9e;
}

.sg-offer-sort-price > small {
    font-size: 11px;
}

@media (min-width: 901px) {
    #sg-results-table {
        width: 100%;
        table-layout: fixed;
    }

    #sg-results-table > thead > tr > th {
        box-sizing: border-box;
    }

    #sg-results-table > thead > tr > th:nth-child(1) { width: auto; }  /* Pakalpojums */
    #sg-results-table > thead > tr > th:nth-child(2) { width: 100px; } /* Piegāde */
    #sg-results-table > thead > tr > th:nth-child(3) { width: 110px; } /* Paņemšana */
    #sg-results-table > thead > tr > th:nth-child(4) { width: 145px; } /* Cena */
    #sg-results-table > thead > tr > th:nth-child(5) { width: 64px; }  /* Info */
    #sg-results-table > thead > tr > th:nth-child(6) { width: 90px; }  /* Pasūtīt */

    #sg-results-table > thead > tr > th:nth-child(5) {
        text-align: center;
    }
}

#sgab-form {
    margin-bottom: 16px;
}

#sgab-form .sg-order-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px 16px;
}

#sgab-form .sg-order-field {
    display: grid;
    gap: 5px;
    min-width: 0;
    font-size: 13px;
    font-weight: 600;
    color: #253655;
}

#sgab-form .sg-order-field input {
    box-sizing: border-box;
    width: 100%;
    min-height: 40px;
    padding: 8px 11px;
    border: 1px solid #d8dfec;
    border-radius: 8px;
    background: #fff;
    color: inherit;
    font: inherit;
    font-weight: 400;
}

#sgab-form .sg-order-field input:focus {
    outline: 2px solid #9cb5ed;
    outline-offset: 1px;
}

@media (max-width: 600px) {
    #sgab-form .sg-order-grid {
        grid-template-columns: 1fr;
    }
}
.sg-country-flag {
    display: inline-block;
    width: 20px;
    height: 14px;
    margin-right: 8px;
    object-fit: contain;
    vertical-align: -2px;
}
input.sg-country-has-flag {
    background-image: var(--sg-country-flag);
    background-repeat: no-repeat;
    background-position: 10px center;
    background-size: 20px auto;
    padding-left: 38px;
}

/* Pievieno publiskā style.css un admin/style.css beigās. */
.sg-customs-fields{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;margin:12px 0}.sg-customs-fields label{display:flex;flex-direction:column;gap:6px;font-size:13px;font-weight:600;color:#424052}.sg-customs-fields input,.sg-customs-fields select{box-sizing:border-box;width:100%;min-width:0;min-height:40px;padding:9px 11px;border:1px solid #d9d5e3;border-radius:7px;background:#fff;color:#272333;font:inherit;font-weight:400}.sg-customs-fields input:focus,.sg-customs-fields select:focus{outline:2px solid #b6a3d4;outline-offset:1px}.sg-customs-item{min-width:0;margin:16px 0;padding:16px;border:1px solid #e1dce9;border-radius:10px;background:#faf9fc}.sg-customs-item legend{padding:0 7px;font-weight:700;color:#60428a}.sg-customs-item .sg-customs-fields label:first-child{grid-column:1/-1}.sg-customs-items+button{margin-bottom:16px}.sg-order-content input[type=file]{max-width:100%;margin:10px 0}.sg-order-content:has(.sg-customs-fields){max-width:1000px}.sg-order-content:has(.sg-customs-fields)>form{margin:20px 0}.o-panel fieldset:disabled{opacity:.7}@media(max-width:760px){.sg-customs-fields{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:480px){.sg-customs-fields{grid-template-columns:1fr}}

/* Pievieno publiskā style.css un admin/style.css beigās. */
.sg-customs-fields{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;margin:12px 0}.sg-customs-fields label{display:flex;flex-direction:column;gap:6px;font-size:13px;font-weight:600;color:#424052}.sg-customs-fields input,.sg-customs-fields select{box-sizing:border-box;width:100%;min-width:0;min-height:40px;padding:9px 11px;border:1px solid #d9d5e3;border-radius:7px;background:#fff;color:#272333;font:inherit;font-weight:400}.sg-customs-fields input:focus,.sg-customs-fields select:focus{outline:2px solid #b6a3d4;outline-offset:1px}.sg-customs-item{min-width:0;margin:16px 0;padding:16px;border:1px solid #e1dce9;border-radius:10px;background:#faf9fc}.sg-customs-item legend{padding:0 7px;font-weight:700;color:#60428a}.sg-customs-item .sg-customs-fields label:first-child{grid-column:1/-1}.sg-customs-items+button{margin-bottom:16px}.sg-order-content input[type=file]{max-width:100%;margin:10px 0}.sg-order-content:has(.sg-customs-fields){max-width:1000px}.sg-order-content:has(.sg-customs-fields)>form{margin:20px 0}.o-panel fieldset:disabled{opacity:.7}@media(max-width:760px){.sg-customs-fields{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:480px){.sg-customs-fields{grid-template-columns:1fr}}
/* Muitas formas loģiskās izvēles — pievieno pēc iepriekšējā muitas CSS. */
.sg-customs-public [hidden]{display:none!important}.sg-customs-mode{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;min-width:0;padding:0;margin:20px 0;border:0}.sg-customs-mode legend{margin-bottom:12px;font-size:16px;font-weight:700;color:#403651}.sg-customs-public .sg-customs-choice{display:flex;align-items:flex-start;gap:11px;margin:0;padding:16px;border:1px solid #dcd5e7;border-radius:10px;background:#fff;cursor:pointer;line-height:1.4}.sg-customs-public .sg-customs-choice:has(input:checked){border-color:#7651a3;background:#f6f1fb;box-shadow:0 0 0 1px #7651a3}.sg-customs-public .sg-customs-choice input[type=radio]{flex:0 0 18px;display:inline-block;width:18px!important;height:18px!important;min-height:18px;padding:0;margin:3px 0 0;accent-color:#7651a3}.sg-customs-choice span{display:block}.sg-customs-choice strong{display:block;font-size:14px;color:#403651}.sg-customs-choice small{display:block;margin-top:5px;font-size:12px;font-weight:400;color:#746c7e}.sg-customs-common{max-width:400px;grid-template-columns:1fr}.sg-customs-panel{min-width:0;margin:20px 0;padding:20px;border:1px solid #e2dcea;border-radius:10px;background:#fff}.sg-customs-panel>legend{padding:0 7px;font-size:15px;font-weight:700;color:#60428a}.sg-customs-file-label{display:block;font-weight:600}.sg-customs-public .sg-customs-file-label input[type=file]{display:block;box-sizing:border-box;width:100%;padding:12px;border:1px dashed #c4b7d6;border-radius:8px;background:#faf8fc}.sg-customs-help{color:#746c7e;font-size:13px;line-height:1.55}.sg-customs-extra{margin:16px 0;padding:12px 15px;border:1px solid #e4dfea;border-radius:8px}.sg-customs-extra summary{cursor:pointer;font-weight:600;color:#60428a}.sg-customs-total{padding:12px 15px;background:#f6f1fb;border-radius:8px;color:#403651}.sg-customs-confirm{display:flex!important;align-items:flex-start;gap:10px;font-size:13px;line-height:1.5;margin:18px 0}.sg-customs-confirm input[type=checkbox]{flex:0 0 18px;width:18px!important;height:18px!important;min-height:18px;padding:0;margin:1px 0 0;accent-color:#7651a3}@media(max-width:640px){.sg-customs-mode{grid-template-columns:1fr}.sg-customs-panel{padding:14px}}

  #sg-order-ui .sg-order-section.sgo-detail-section {
        --sgo-section-inset: 12px;
       padding: 0 var(--sgo-section-inset) var(--sgo-section-inset) !important;
    }
    #sg-order-ui .sgo-detail-section > .sgo-section-heading {
        display: flex;
        align-items: center;
        box-sizing: border-box;
        min-height: 30px;
       margin: 0 calc(-1 * var(--sgo-section-inset)) 12px;
        padding: 5px var(--sgo-section-inset);
        border-radius: 10px 10px 0 0;
        background-color: #dce9fa;
        color: #233f69;
    }
    #sg-order-ui .sgo-section-heading > h2 {
         margin: 0 !important;
    padding: 0 !important;
        border: 0;
        color: inherit;
        font-size: .98rem;
        line-height: 1.35;
    }
    #sg-order-ui .sgo-checkout-login .sgo-login-options,
    #sg-order-ui .sgo-checkout-login .sgo-login-actions {
        display: flex;
        align-items: center;
        flex-wrap: wrap;
        gap: 10px 16px;
    }
    #sg-order-ui .sgo-checkout-login details { flex: 0 0 auto; }
    #sg-order-ui .sgo-checkout-login details[open] { flex: 1 0 100%; }
    #sg-order-ui .sgo-checkout-login summary { cursor: pointer; color: #315789; font-weight: 700; }
    #sg-order-ui .sgo-checkout-login form { margin-top: 12px; }
    #sg-order-ui .sgo-checkout-login .sgo-login-actions { margin-top: 10px; }
    #sg-order-ui .sgo-consents .sg-order-checkbox { display: flex; align-items: flex-start; gap: 8px; }
    #sg-order-ui .sgo-consents .sg-order-checkbox input { flex: 0 0 auto; margin: .2em 0 0; }
    #sg-order-ui .sgo-consents a { color: #315789; text-decoration: underline; }

/* Pēdējie pasūtījumi — sākumlapas kartīšu izkārtojums */
.sgrh-section .sgrh-route {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 28px minmax(0, 1fr);
    align-items: center;
    column-gap: 7px;
    min-height: 26px;
    font-size: 13px;
}

.sgrh-section .sgrh-country {
    display: flex;
    align-items: center;
    gap: 7px;
    min-width: 0;
}

.sgrh-section .sgrh-country-name {
    display: block;
    min-width: 0;
    max-width: 22ch;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    overflow-wrap: normal;
}

.sgrh-section .sgrh-flag {
    display: block;
    flex: 0 0 24px;
    width: 24px;
    height: 18px;
    margin: 0;
    object-fit: contain;
}

.sgrh-section .sgrh-arrow {
    display: grid;
    place-items: center;
    width: 28px;
}

.sgrh-section .sgrh-arrow svg {
    display: block;
    width: 100%;
    height: 14px;
}

.sgrh-section .sgrh-card-details {
    display: grid;
    grid-template-columns: minmax(0, 1fr) max-content;
    align-items: center;
    gap: 10px;
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid #edf0f6;
}

.sgrh-section .sgrh-card-details .sgrh-package {
    min-width: 0;
    margin: 0;
    gap: 7px;
}

.sgrh-section .sgrh-package > div {
    min-width: 0;
    overflow-wrap: anywhere;
}

.sgrh-section .sgrh-card-details .sgrh-price {
    justify-self: end;
    text-align: right;
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
}

.sgrh-section .sgrh-card-details .sgrh-price strong {
    font-size: 15px;
}

.sg-home-providers .sg-home-provider-strip {
    display: flex;
    flex-wrap: nowrap;
    justify-content: safe center;
    overflow-x: auto;
}

.sg-home-provider-strip .sg-home-provider-item {
    flex: 0 0 auto;
}
.sg-home-providers .sg-home-provider-strip {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    overflow: visible;
}
.sg-home-provider-strip .sg-home-provider-item img {
    display: block;
    width: auto;
    height: 80px;    /* Logo augstums */
    max-width: 200px; /* Maksimālais logo platums */
    object-fit: contain;
}
.sg-home-provider-strip .sg-home-provider-item {
    box-sizing: border-box;
    flex: 0 0 auto;
    width: 200px;
    height: 90px;
    min-width: 0;
    min-height: 0;
    padding: 6px 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sg-home-provider-strip .sg-home-provider-item img {
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 70px;
    object-fit: contain;
}
.sg-home-provider-strip .sg-home-provider-item img {
    filter: grayscale(100%);
}
/* Aizstāj iepriekšējo muitas bloku publiskajā style.css. */
.sg-customs-page {
    background: transparent;
    --sg-customs-blue: #435d9e;
    --sg-customs-border: #d8e3f2;
    --sg-customs-soft: #edf3fc;
}

#sg-order-ui.sg-customs-page > main > .sg-customs-layout {
    display: grid;
    align-items: start;
    grid-template-columns: minmax(0, 2.1fr) minmax(0, 1fr);
    gap: clamp(14px, 2vw, 32px);
}

#sg-order-ui.sg-customs-page .sg-customs-layout > .sg-order-content {
    grid-column: 1;
    min-width: 0;
}

#sg-order-ui.sg-customs-page .sg-customs-layout > .sg-order-sidebar {
    grid-column: 2;
    min-width: 0;
    overflow-wrap: anywhere;
}

.sg-customs-page .sg-order-content > h1,
.sg-customs-page .sg-order-content > .sg-order-hint {
    margin: 0;
}

.sg-customs-page .sg-customs-form,
.sg-customs-page .sg-customs-public {
    display: grid;
    gap: 12px;
}

.sg-customs-page :is(.sg-customs-mode, .sg-customs-panel, .sg-customs-item) {
    min-width: 0;
    margin: 0;
}

.sg-customs-page :is(.sg-customs-mode, .sg-customs-panel) {
    display: block;
    padding: 0;
    border: 0;
    background: transparent;
}

.sg-customs-page .sg-customs-mode legend {
    padding: 0;
    margin-bottom: 5px;
    font-size: .875rem;
    font-weight: 600;
    color: inherit;
}

.sg-customs-page .sg-customs-top {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
    gap: 12px;
    align-items: end;
}

.sg-customs-page .sg-customs-choices {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
}

.sg-customs-page .sg-customs-choice {
    display: flex;
    align-items: center;
    gap: 6px;
    margin: 0;
    padding: 6px 9px;
    min-height: 36px;
    border: 1px solid var(--sg-customs-border);
    border-radius: 5px;
    cursor: pointer;
    font-size: .875rem;
}

.sg-customs-page .sg-customs-choice:has(:checked) {
    border-color: var(--sg-customs-blue);
    background: var(--sg-customs-soft);
    color: #243b70;
}

.sg-customs-page :is(.sg-customs-choice, .sg-customs-confirm) input {
    accent-color: var(--sg-customs-blue);
    margin: 0;
}

.sg-customs-page label.sg-customs-field {
    display: grid;
    gap: 5px;
    min-width: 0;
    margin: 0;
    font-size: .875rem;
    font-weight: 600;
}

.sg-customs-page .sg-customs-field :is(input, select) {
    box-sizing: border-box;
    width: 100%;
    min-width: 0;
    min-height: 36px;
    margin: 0;
    padding: 6px 8px;
    border: 1px solid #c9d3e6;
    border-radius: 5px;
    background: #fff;
    color: inherit;
    font: inherit;
    font-weight: 400;
}

.sg-customs-page .sg-customs-item-actions,
.sg-customs-page .sg-customs-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.sg-customs-page .sg-customs-items-title {
    margin: 0;
    font-size: 1.1rem;
}

.sg-customs-page .sg-customs-help,
.sg-customs-page .sg-customs-total {
    margin: 3px 0 0;
    font-size: .875rem;
}

.sg-customs-page .sg-customs-items {
    display: grid;
    gap: 7px;
    margin: 8px 0;
}

.sg-customs-page .sg-customs-item {
    display: grid;
    gap: 6px;
    padding: 8px;
    border: 1px solid var(--sg-customs-border);
    border-radius: 6px;
}

.sg-customs-page .sg-customs-invoice-fields,
.sg-customs-page .sg-customs-item-grid {
    display: grid;
    gap: 8px;
    align-items: end;
}

.sg-customs-page .sg-customs-invoice-fields {
    grid-template-columns: repeat(auto-fit, minmax(min(145px, 100%), 1fr));
    margin-top: 8px;
}

.sg-customs-page .sg-customs-payer {
    max-width: 340px;
}

.sg-customs-page .sg-customs-item-grid {
    grid-template-columns: minmax(50px, .65fr) repeat(3, minmax(0, 1fr)) minmax(0, 1.3fr);
}

.sg-customs-page .sg-customs-description {
    grid-column: 1 / -1;
}

.sg-customs-page .sg-order-button.sg-customs-secondary {
    background: #fff;
    border: 1px solid #c9d3e6;
    color: var(--sg-customs-blue);
    text-decoration: none;
}

.sg-customs-page .sg-order-button.sg-customs-secondary:hover {
    background: var(--sg-customs-soft);
}

.sg-customs-page .sg-customs-remove {
    justify-self: start;
    font-size: .8125rem;
}

.sg-customs-page .sg-customs-confirm {
    margin: 1px 0;
}

.sg-customs-page .sg-customs-actions {
    margin: 0;
}

.sg-customs-page [hidden] {
    display: none !important;
}

.sg-customs-page .sg-customs-visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
}

@media (max-width: 1050px) {
    .sg-customs-page .sg-customs-top {
        grid-template-columns: 1fr;
    }

    .sg-customs-page .sg-customs-item-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

@media (max-width: 760px) {
    #sg-order-ui.sg-customs-page > main > .sg-customs-layout {
        grid-template-columns: minmax(0, 1fr);
        gap: 12px;
    }

    #sg-order-ui.sg-customs-page .sg-customs-layout > .sg-order-sidebar {
        grid-column: 1;
        position: static;
    }
}

@media (max-width: 490px) {
    .sg-customs-page .sg-customs-item-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* Iesniegta muitas pasūtījuma pārskats. */
#sg-order-ui.sg-customs-receipt > main.sg-info-with-calculator {
    display: grid;
    grid-template-columns: minmax(0, 2.2fr) minmax(280px, 1fr);
    align-items: start;
    gap: 24px;
    width: calc(100% - 32px);
    max-width: 1184px;
    margin: 0 auto;
    padding: 22px 0 42px;
    border: 0;
    box-shadow: none;
    background: transparent;
}

.sg-customs-receipt .sg-info-article {
    min-width: 0;
    overflow-wrap: anywhere;
}

.sg-customs-receipt .sg-customs-receipt-status {
    margin-bottom: 18px;
}

.sg-customs-receipt .sg-customs-receipt-status h1 {
    margin: 0 0 6px;
}

.sg-customs-receipt .sg-customs-receipt-status p {
    margin: 0 0 5px;
}

.sg-customs-receipt .sgo-pay-preview,
.sg-customs-receipt .sg-customs-receipt-section,
.sg-customs-receipt .sg-customs-receipt-notify {
    margin: 0 0 14px;
    padding: 14px;
    border: 1px solid #dfe7f2;
    border-radius: 8px;
}

.sg-customs-receipt .sg-customs-receipt-section:last-child {
    margin-bottom: 0;
}

.sg-customs-receipt .sgo-pay-preview > summary {
    cursor: pointer;
    font-weight: 700;
}

.sg-customs-receipt .sgo-pay-preview-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin-top: 12px;
}

.sg-customs-receipt .sgo-pay-preview-grid > section {
    padding: 10px 12px;
    border-radius: 6px;
    background: #f4f6fb;
}

.sg-customs-receipt .sgo-pay-preview-grid h2,
.sg-customs-receipt .sg-customs-receipt-section h2 {
    margin: 0 0 8px;
    font-size: 1rem;
}

.sg-customs-receipt :is(.sgo-pay-preview-grid, .sg-customs-receipt-section) dl {
    margin: 0;
}

.sg-customs-receipt :is(.sgo-pay-preview-grid, .sg-customs-receipt-section) dl > div {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
    gap: 8px;
    padding: 3px 0;
}

.sg-customs-receipt :is(.sgo-pay-preview-grid, .sg-customs-receipt-section) dd {
    margin: 0;
}

.sg-customs-receipt .sg-customs-receipt-prices dd {
    text-align: right;
}

.sg-customs-receipt .sg-customs-receipt-table {
    overflow-x: auto;
}

.sg-customs-receipt .sg-customs-receipt-table table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
}

.sg-customs-receipt .sg-customs-receipt-table caption {
    text-align: left;
    font-weight: 600;
    margin-bottom: 5px;
}

.sg-customs-receipt .sg-customs-receipt-table :is(th, td) {
    padding: 6px 8px;
    border-bottom: 1px solid #dfe7f2;
    overflow-wrap: normal;
}

.sg-customs-receipt .sg-customs-receipt-table small {
    display: block;
}

.sg-customs-receipt .sg-customs-receipt-goods-total {
    margin: 8px 0 0;
    text-align: right;
}

@media (max-width: 900px) {
    #sg-order-ui.sg-customs-receipt > main.sg-info-with-calculator {
        grid-template-columns: minmax(0, 1fr);
    }

    .sg-customs-receipt .sg-calculator-sidebar {
        width: 100%;
        max-width: 520px;
        justify-self: center;
    }
}

@media (max-width: 600px) {
    .sg-customs-receipt .sgo-pay-preview-grid {
        grid-template-columns: minmax(0, 1fr);
    }
}

#sg-order-ui [aria-invalid="true"] {
    outline: 2px solid #b42318;
    outline-offset: 2px;
}

/* Mans profils */
.sg-account.sg-my-orders .sgmo-content {
    min-width: 0;
}

.sg-account.sg-my-orders .sg-account-card {
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
}

.sg-account.sg-my-orders .sg-account-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px 18px;
}

.sg-account.sg-my-orders .sg-account-grid > * {
    grid-column: auto;
    min-width: 0;
}

.sg-account.sg-my-orders .sg-account-locked {
    min-width: 0;
    margin: 0;
    padding: 8px 0;
    border-bottom: 1px solid #e2e7f0;
}

.sg-account.sg-my-orders .sg-account-locked dt {
    color: #52617a;
    font-size: .8rem;
    line-height: 1.4;
}

.sg-account.sg-my-orders .sg-account-locked dd {
    margin: 3px 0 0;
    font-weight: 600;
    line-height: 1.45;
    overflow-wrap: anywhere;
}

.sg-account.sg-my-orders .sg-account-section .sg-account-locked dt small {
    display: none;
}

.sg-account.sg-my-orders .sg-account-grid > .sg-account-locked dt small {
    margin-left: 4px;
    color: #64748b;
    font-weight: 400;
}

.sg-account.sg-my-orders .sg-account-section
    .sg-account-locked:nth-child(n+4) {
    grid-column: 1 / -1;
}

@media (max-width: 600px) {
    .sg-account.sg-my-orders .sg-account-grid {
        grid-template-columns: minmax(0, 1fr);
    }
}
a.sg-legacy-site-link {
    position: fixed;
    right: 16px;
    bottom: calc(16px + env(safe-area-inset-bottom, 0px));
    z-index: 20;
    box-sizing: border-box;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 200px;
    max-width: calc(100% - 32px);
    min-height: 50px;
    padding: 8px 12px;
    border: 1px solid #315681;
    border-radius: 10px;
    background: #3b6194;
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    box-shadow: 0 4px 14px rgb(26 49 80 / 18%);
}

a.sg-legacy-site-link:hover,
a.sg-legacy-site-link:focus-visible {
    background: #2d4f7d;
    color: #fff;
    text-decoration: none;
}

a.sg-legacy-site-link:focus-visible {
    outline: 2px solid #2d4f7d;
    outline-offset: 3px;
}
