#company-profile .p-profile-market {
    position: relative;
    align-self: start;
    min-width: 0;
}

#company-profile .p-profile-market-title {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 4px;
}

#company-profile .p-profile-market-title svg {
    flex: 0 0 15px;
    width: 15px;
    height: 15px;
    color: #365a71;
}

#company-profile .p-profile-market-country,
#company-profile .p-profile-market-chip {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    min-width: 0;
}

#company-profile .p-profile-market-country {
    max-width: 100%;
    overflow-wrap: anywhere;
}

#company-profile .p-profile-market-country > .headquarters-marker,
#company-profile .p-profile-market-chip > .headquarters-marker {
    flex-shrink: 0;
    margin: 0;
}

#company-profile .p-profile-markets-inline,
#company-profile .p-profile-markets-countries {
    list-style: none;
    margin: 0;
    padding: 0;
}

#company-profile .p-profile-markets-inline {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 12px;
}

#company-profile .p-profile-market-details {
    margin: -4px 0 0;
}

#company-profile .p-profile-market-details > summary {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    min-height: 44px;
    max-width: 100%;
    padding: 4px 3px;
    color: #15384e;
    cursor: pointer;
    list-style: none;
}

#company-profile .p-profile-market-details > summary::-webkit-details-marker {
    display: none;
}

#company-profile .p-profile-market-chip {
    flex: none;
    min-height: 25px;
    padding: 1px 6px;
    border-radius: 3px;
    background: #fff;
    color: #18394f;
    font-size: 13px;
    font-weight: 650;
    line-height: 1.25;
    white-space: nowrap;
}

#company-profile .p-profile-market-count {
    background: #dce8f1;
    font-variant-numeric: tabular-nums;
}

#company-profile .p-profile-market-details > summary::after {
    content: '';
    flex: 0 0 6px;
    width: 6px;
    height: 6px;
    margin: 0 4px 3px 3px;
    border: solid currentColor;
    border-width: 0 1.5px 1.5px 0;
    transform: rotate(45deg);
}

#company-profile .p-profile-market-details[open] > summary::after {
    transform: translateY(3px) rotate(225deg);
}

#company-profile .p-profile-market-details > summary:is(:hover, :focus-visible) .p-profile-market-count {
    background: #cedfeb;
}

#company-profile .p-profile-market-details > summary:focus-visible {
    border-radius: 4px;
    outline: 2px solid #185f9f;
    outline-offset: -1px;
}

#company-profile .p-profile-market-panel {
    position: absolute;
    z-index: 5;
    inset-inline-start: 0;
    width: min(34rem, calc(100vw - 6rem));
    max-width: none;
    padding: 13px 15px;
    border: 1px solid #c2d3e0;
    border-radius: 4px;
    background: #fff;
    color: #18394f;
    box-shadow: 0 12px 28px rgb(16 43 61 / 16%);
}

#company-profile .p-profile-market-panel > p {
    font-size: 14px;
    font-weight: 700;
    margin: 0 0 9px;
}

#company-profile .p-profile-markets-countries {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 2px 12px;
    max-block-size: min(18rem, 45vh);
    padding: 4px 7px 4px 0;
    overflow: auto;
    scrollbar-gutter: stable;
    scrollbar-width: thin;
    scrollbar-color: #648498 #eaf2f6;
    border-top: 1px solid #e2ebf1;
    background:
        linear-gradient(#fff 35%, transparent) center top / 100% 28px no-repeat local,
        linear-gradient(transparent, #fff 65%) center bottom / 100% 28px no-repeat local,
        radial-gradient(ellipse at top, rgb(31 63 82 / 26%), transparent 74%) center top / 100% 14px no-repeat scroll,
        radial-gradient(ellipse at bottom, rgb(31 63 82 / 26%), transparent 74%) center bottom / 100% 14px no-repeat scroll,
        #fff;
}

#company-profile .p-profile-markets-countries > li {
    min-width: 0;
    padding: 4px 3px;
}

#company-profile .p-profile-markets-countries:focus-visible {
    outline: 2px solid #185f9f;
    outline-offset: -2px;
}

body[data-public-layout][data-portal-identity] #company-profile.p-profile.p-profile09[data-profile-refined] .p-identity-public-header:not([data-company-cover]) {
    background: radial-gradient(ellipse at 97% 8%, #234960 0%, transparent 57%),
        linear-gradient(116deg, #0b2638 8%, #112f42 58%, #173c51 100%);
    box-shadow: inset 0 -1px rgb(222 238 248 / 12%);
}

@media (max-width: 700px) {
    #company-profile .p-profile-market:has(.p-profile-market-details[open]) {
        grid-column: 1 / -1;
    }

    #company-profile .p-profile-market-panel {
        position: static;
        width: 100%;
        box-shadow: none;
    }

    #company-profile .p-profile-markets-countries {
        max-block-size: min(22rem, 53vh);
    }
}

@media (max-width: 360px) {
    #company-profile .p-profile-market-panel {
        padding-inline: 10px;
    }

    #company-profile .p-profile-markets-countries {
        gap: 2px 5px;
    }
}

@media (forced-colors: active) {
    #company-profile .p-profile-market-chip {
        border: 1px solid ButtonText;
    }

    #company-profile .p-profile-markets-countries {
        background: Canvas;
        scrollbar-color: auto;
    }
}

@media (max-width: 430px) {
    #company-profile .p-profile-market-details > summary {
        gap: 4px;
        padding-inline: 1px;
    }

    #company-profile .p-profile-market-chip {
        gap: 4px;
        padding-inline: 5px;
    }

    #company-profile .p-profile-market-details > summary::after {
        margin-inline: 1px 2px;
    }
}

@media (max-width: 360px) {
    #company-profile .p-profile-market-details > summary {
        gap: 3px;
        padding-inline: 0;
    }

    #company-profile .p-profile-market-chip {
        gap: 3px;
        padding-inline: 3px;
        font-size: 12px;
        overflow-wrap: normal;
    }

    #company-profile .p-profile-market-details > summary::after {
        margin-inline: 0 2px;
    }
}
