html {
    font-size: 14px;
}

@media (min-width: 768px) {
    html {
        font-size: 16px;
    }
}

.btn:focus,
.btn:active:focus,
.btn-link.nav-link:focus,
.form-control:focus,
.form-check-input:focus {
    box-shadow:
        0 0 0 0.1rem white,
        0 0 0 0.25rem #258cfb;
}

html {
    position: relative;
    min-height: 100%;
}

body {
    margin-bottom: 60px;
}

body {
    padding-top: 85px;
    font-family:
        -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue",
        Arial, sans-serif;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    margin-bottom: 0 !important;
}

.gs1-nav-link {
    color: #334155 !important;
    font-weight: 500;
    margin: 0 3px;
    font-size: 0.75rem;
    white-space: nowrap;
}

.gs1-nav-link:hover {
    color: #002c6c !important;
}

.btn-gs1-dark {
    background-color: #002c6c;
    color: white !important;
    border-radius: 50px;
    padding: 8px 18px;
    font-weight: 500;
    font-size: 10px;
    border: none;
    transition: 0.3s;
    white-space: nowrap;
}

.btn-gs1-dark:hover {
    background-color: #001f4d;
}

.btn-gs1-light {
    background-color: #eef5ff;
    color: #002c6c !important;
    border-radius: 50px;
    padding: 8px 18px;
    font-weight: 500;
    font-size: 10px;
    border: none;
    transition: 0.3s;
    white-space: nowrap;
}

.btn-gs1-light:hover {
    background-color: #dbe8ff;
}

.navbar-custom-shadow {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.navbar-glass {
    background-color: rgba(255, 255, 255, 0.4) !important;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
}

.navbar {
    transition: all 0.3s ease-in-out;
}

.lang-dropdown .nav-link {
    padding-right: 0.5rem;
    padding-left: 0.5rem;
}

main {
    flex: 1;
}

.custom-footer {
    background: linear-gradient(180deg, #f0f4ff 0%, #0045ae 100%);
    color: white;
    padding-top: 60px;
    margin-top: 50px;
    border-top-left-radius: 40px;
    border-top-right-radius: 40px;
}

.footer-cta {
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    padding-bottom: 40px;
    margin-bottom: 40px;
}

.footer-cta h1 {
    color: #002c6c;
    font-weight: 80;
}

.btn-footer-orange {
    background-color: #f26322;
    color: white;
    border-radius: 50px;
    padding: 12px 35px;
    font-weight: bold;
    border: none;
    transition: 0.3s;
    font-size: 1.1rem;
}

.btn-footer-orange:hover {
    background-color: #d95316;
    color: white;
    transform: translateY(-3px);
}

.footer-logo img {
    height: 80px;
}

.footer-links h6 {
    font-weight: bold;
    margin-bottom: 20px;
    font-size: 1rem;
}

.footer-links ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-size: 0.9rem;
    transition: 0.3s;
}

.footer-links a:hover {
    color: white;
    padding-left: 5px;
}

.social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #001f4d;
    color: white;
    margin-right: 10px;
    font-size: 1.2rem;
    transition: 0.3s;
}

.social-icon:hover {
    background-color: #0044aa;
    color: white;
    transform: scale(1.1);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 20px 0;
    margin-top: 40px;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.7);
}

.carousel-indicators [data-bs-target] {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: transparent;
    border: 2px solid white;
    margin: 0 6px;
    opacity: 1;
    transition: all 0.3s ease;
}

.carousel-indicators .active {
    background-color: #ed5c2b !important;
    border-color: #ed5c2b !important;
}

.full-viewport-width {
    width: 100vw !important;
    margin-left: calc(50% - 50vw) !important;
    max-width: 100vw !important;
}

.full-viewport-width-withoutmargin {
    width: 100vw !important;
    max-width: 100vw !important;
}

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

.logo-slider {
    overflow: hidden;
    position: relative;
    width: 100%;
}

.logo-track {
    display: flex;
    align-items: center;
    width: max-content;
    animation: scrollLogos 35s linear infinite;
}

.logo-set {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
}

.logo-track img {
    flex: 0 0 auto;
    height: 100px;
    margin: 0 40px;
    object-fit: contain;
}

.logo-slider:hover .logo-track {
    animation-play-state: paused;
}

@keyframes scrollLogos {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

.industry-card {
    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease;
}

.industry-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1) !important;
}

.dropdown-item:hover {
    background-color: #f8fbff;
    color: #ed5c2b !important;
}

.border-bottom-orange {
    border-bottom: 2px solid #F26234 !important;
}

.custom-info-tab.nav-link {
    font-size: 1rem !important;
    font-weight: 500 !important;
    text-transform: none !important;
    padding: 12px 32px !important;
    border-radius: 12px 12px 0 0 !important;
    min-width: 200px !important;
    color: #444650 !important;
    background-color: transparent !important;
    border: none;
}

.custom-info-tab.nav-link.active {
    color: #F26234 !important;
    background-color: #FEF4EE !important;
}

.gs1-tab-btn {
    padding: 10px;
    width: 270px;
    border: none;
    border-radius: 4px;
    display: inline-flex;
    align-items: center;
    justify-content: start;
    cursor: pointer;
    transition: background 0.2s ease;
    background: #FEF4EE99;
}

.gs1-tab-btn.active-orange {
    background: #F26234 !important;
}

.gs1-tab-btn.active-orange span {
    color: white !important;
}

.gs1-custom-tabs-container .mud-tabs-inner-container {
    border-bottom: 2px solid #F26234 !important;
    /* The continuous orange line across the bottom */
    background-color: transparent !important;
}

.gs1-custom-tabs-container .mud-tab {
    font-size: 1rem !important;
    font-weight: 500 !important;
    text-transform: none !important;
    /* Keeps proper casing instead of ALL CAPS */
    padding: 12px 32px !important;
    border-radius: 12px 12px 0 0 !important;
    /* Rounded top corners matching Figma */
    min-width: 200px !important;
    transition: all 0.2s ease;
    color: #444650 !important;
    /* Gray color for inactive tab */
    background-color: transparent !important;
}

.gs1-custom-tabs-container .mud-tab.mud-tab-active {
    color: #F26234 !important;
    /* Dark Slate text color from your Figma properties */
    background-color: #FEF4EE !important;
    /* Light orange/cream background color */
}

.gs1-custom-tabs-container .mud-tab-slider {
    display: none !important;
}

.text-row-layout {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.row-base-layout {
    display: flex;
    align-items: start;
    font-size: 1rem;
}

.label-base-layout {
    width: 280px;
    min-width: 250px;
    color: #343434;
    font-weight: 500;
}

.gs1-search-summary-alert {
    background-color: #E2F0D9;
    border-left: 5px solid #70AD47;
    padding: 1rem 1.5rem;
    border-radius: 4px;
    color: #333333;
    font-size: 0.95rem;
    line-height: 1.5;
}

.gs1-results-panel-card {
    border-radius: 8px !important;
    background: #FFFFFF;
}

.gs1-results-title {
    color: #002D62;
    font-weight: 700;
    font-size: 1.5rem;
}

.gs1-results-subtitle {
    font-size: 0.95rem;
}

.gs1-custom-table {
    border-collapse: separate;
    border-spacing: 0;
    font-size: 0.95rem;
}

.gs1-custom-table thead tr {
    background-color: #003374 !important;
}

.gs1-custom-table thead th {
    color: #FFFFFF !important;
    font-weight: 600;
    padding: 14px 20px !important;
    border: none !important;
}

.gs1-custom-table thead th:first-child {
    border-top-left-radius: 6px;
}

.gs1-custom-table thead th:last-child {
    border-top-right-radius: 6px;
}

.gs1-custom-table tbody tr {
    border-bottom: 1px solid #EAEAEA;
    transition: background-color 0.2s ease;
}

.gs1-custom-table tbody td {
    padding: 16px 20px !important;
    color: #444444;
    border: none !important;
    /* Managed via table-row border line structures */
}

.gs1-col-key {
    color: #333333;
    font-weight: 500;
}

.gs1-col-company {
    color: #555555;
}

.gs1-custom-table tbody tr:hover {
    background-color: #F8FAFC !important;
}

.gs1-image-orange-tag {
    position: absolute;
    left: 95px;
    top: 42%;
    transform: translateY(-50%);
    width: 12px;
    height: 50px;
    background-color: #E25B26;
    border-radius: 8px;
    z-index: 5;
}

.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.85);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(3px);
}

/* GLN Accordion Styles */
.gln-sections-container {
    margin-top: 1.5rem;
    width: 100%;
    margin-left: auto;
    margin-right: auto;
}

.gln-section-stack {
    margin-bottom: 1rem;
}

.gln-section-header {
    background-color: #ebf3fc;
    border-radius: 12px;
    padding: 16px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid #cbdcf2;
}

.gln-section-header:hover {
    background-color: #e4eef9;
    border-color: #cbdcf2;
}

.gln-section-header.expanded {
    border-radius: 12px 12px 0 0;
    background-color: #ebf3fc;
    border-bottom: none;
}

.gln-section-header-left {
    display: flex;
    align-items: center;
}

.gln-section-icon-container {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: #d2e4f6;
    color: #032c6c;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-right: 16px;
}

.gln-section-title {
    color: #032c6c;
    font-weight: 600;
    font-size: 1.05rem;
    margin-bottom: 0;
}

.gln-section-content {
    background-color: #ebf3fc;
    border: 1px solid #cbdcf2;
    border-top: 1px solid #cbdcf2;
    border-radius: 0 0 12px 12px;
    padding: 24px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.02);
}

/* Figma design elements */
.figma-gln-header {
    margin-bottom: 24px;
}

.figma-gln-title {
    color: #032c6c;
    font-weight: 700;
    font-size: 1.3rem;
    margin-bottom: 4px;
}

.figma-gln-status {
    color: #4f5e71;
    font-size: 0.9rem;
    font-weight: 500;
}

.figma-grid-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    column-gap: 40px;
    row-gap: 0;
    margin-bottom: 24px;
}

@media (max-width: 768px) {
    .figma-grid-container {
        grid-template-columns: 1fr;
        column-gap: 0;
    }
}

.figma-grid-item {
    border-bottom: 1px solid #e1e9f4;
    padding: 12px 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
}

.figma-item-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.figma-label {
    font-size: 0.75rem;
    font-weight: 700;
    color: #8b98a9;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.figma-info-icon {
    width: 16px;
    height: 16px;
    cursor: pointer;
}

.figma-value {
    font-size: 0.8rem;
    font-weight: 600;
    color: #363a43;
    margin-top: 4px;
    word-break: break-all;
}

.figma-section-heading {
    color: #032c6c;
    font-weight: 700;
    font-size: 1.1rem;
    margin-top: 32px;
    margin-bottom: 16px;
}

.figma-sub-section-heading {
    color: #0352be;
    font-weight: 600;
    font-size: 1rem;
    margin-bottom: 12px;
}

.figma-notice-box {
    background-color: #d2e4f6;
    border: 1px solid #bdc5ce;
    border-radius: 8px;
    padding: 17px;
    text-align: center;
    color: #363a43;
    font-weight: 600;
    font-size: 0.9rem;
    margin-top: 32px;
}

.links-section-stack .gln-section-header {
    background-color: #F4F8FD !important;
    border: 1px solid #CBDCF2 !important;
    border-radius: 16px !important;
    padding: 16px 24px !important;
    transition: background-color 0.2s ease, border-color 0.2s ease;
}

.links-section-stack .gln-section-header:hover {
    background-color: #EAF2FC !important;
    border-color: #B9D2F0 !important;
}

.links-section-stack .gln-section-header.expanded {
    border-radius: 16px 16px 0 0 !important;
    border-bottom: none !important;
}

.links-section-stack .gln-section-icon-container {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background-color: #d2e4f6 !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-right: 12px;
    color: #032c6c;
}

.links-section-stack .gln-section-title {
    color: #002e5b !important;
    font-weight: 700 !important;
    font-size: 1rem !important;
}

.links-section-stack .gln-section-content {
    background-color: #F4F8FD !important;
    border: 1px solid #CBDCF2 !important;
    border-top: none !important;
    border-radius: 0 0 16px 16px !important;
    padding: 0px 24px 24px 24px !important;
    box-shadow: none !important;
}

.figma-linkset-card {
    border-bottom: 1px solid #e1e9f4;
    padding: 16px 0;
}

.figma-linkset-card:last-child {
    border-bottom: none;
}

.figma-linkset-header {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 1.05rem;
    font-weight: 700;
    color: #002e5b;
    margin-bottom: 8px;
}

.figma-linkset-anchor {
    color: #0062E6;
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: color 0.2s ease-in-out;
}

.figma-linkset-anchor:hover {
    color: #004BB5;
    text-decoration: underline;
}

.figma-linkset-anchor .arrow-icon {
    display: inline-block;
    transition: transform 0.2s ease-in-out;
    font-size: 1.1rem;
}

.figma-linkset-anchor:hover .arrow-icon {
    transform: translateX(4px);
}

.figma-linkset-meta {
    font-size: 0.72rem;
    font-weight: 700;
    color: #6D7A8C;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 6px;
}

.gln-section-header[aria-expanded="true"] .collapse-arrow {
    transform: rotate(180deg);
}

/* Product Image URL – desktop wraps; small screens truncates with ellipsis */
.truncate-url {
    word-break: break-all;
    overflow-wrap: anywhere;
    min-width: 0;
}

.truncate-url-link {
    display: inline;
}

@media (max-width: 991px) {

    .gs1-tab-btn {
        width: auto !important;
        min-width: 140px;
        flex: 1 1 140px;
    }

    .search-bar-wrapper {
        flex-wrap: wrap !important;
    }

    #extraDropdownContainer {
        width: 100% !important;
        order: -1;
    }

    #dynamicInputWrapper {
        width: 100% !important;
    }

    #infoTabControl.flex-nowrap {
        flex-wrap: nowrap !important;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .custom-info-tab.nav-link {
        min-width: 160px !important;
        padding: 10px 18px !important;
        white-space: nowrap;
    }

    .product-flex-layout {
        display: flex !important;
        flex-direction: column !important;
        align-items: stretch !important;
        position: relative;
    }

    .image-column-wrapper {
        margin-left: 0 !important;
        margin-top: 0 !important;
        padding: 1.5rem 0 !important;
        width: 100% !important;
        display: flex;
        justify-content: center;
    }

    .gs1-image-card-container {
        position: relative;
        width: 200px;
    }

    .details-column-wrapper {
        position: static !important;
        margin-left: 0 !important;
        margin-top: 1rem !important;
        width: 100% !important;
    }

    .gs1-details-card.product-card-bg {
        margin-left: 0 !important;
    }

    .gs1-gtin-badge-wrapper {
        flex-wrap: wrap;
        gap: 8px;
    }

    .gtin-number-container.container-adjustments {
        position: static !important;
        margin-left: 0 !important;
        margin-top: 0 !important;
        padding: 8px 20px !important;
    }

    .label-base-layout {
        width: 160px !important;
        min-width: 120px !important;
        flex-shrink: 0;
    }

    /* Image URL: single line with ellipsis on small screens */
    .truncate-url {
        word-break: normal !important;
        overflow-wrap: normal !important;
        overflow: hidden;
        white-space: nowrap;
        text-overflow: ellipsis;
        display: block;
        max-width: 100%;
    }

    .truncate-url-link {
        display: block;
        overflow: hidden;
        white-space: nowrap;
        text-overflow: ellipsis;
        max-width: 100%;
    }

    .gs1-details-card .gs1-meta-grid[style*="margin-left: 60px"] {
        margin-left: 0 !important;
    }

    .company-card-dims .gs1-gtin-badge-wrapper {
        flex-wrap: wrap;
        gap: 8px;
    }

    .company-card-dims .gtin-number-container {
        position: static !important;
        margin-left: 0 !important;
        margin-top: 0 !important;
        padding: 8px 20px !important;
    }
}

@media (max-width: 575px) {

    .row-base-layout {
        flex-direction: column !important;
        gap: 4px;
    }

    .label-base-layout {
        width: 100% !important;
        min-width: unset !important;
    }

    .gs1-tabs-container {
        display: grid !important;
        grid-template-columns: 1fr 1fr !important;
        gap: 8px !important;
    }

    .gs1-tab-btn {
        width: 100% !important;
    }

    .gs1-subtitle {
        font-size: 1rem !important;
    }
}
