/* ribbon bts 2023 */
span.back-to-school a.bts-cta {
    vertical-align: inherit;
    color: #1d1d1f!important;
}

span.back-to-school a.bts-cta:hover {
    color: #06c!important;
    text-decoration: none;
}

@media only screen and (max-width: 734px) {
    /* 
    .main [data-module-template="ribbon"] [data-unit-id="iphone-trade-in"] .iphone-ti-ribbon-copy.back-to-school {
        width: 91%;
        padding: 10px 0;
    }
     */
}


/* BTS 2023 EPP and ls-geo hero banner margin top value */
html[data-layout-name="apple-event-september-announce-tax-holiday-bts-2023-tile"][data-segment-code]:not([data-segment-code="smb"]):not([data-segment-code="eduind"]) [data-unit-id="airpods-pro"] {
    margin-top: -84px;
}
html[data-layout-name="apple-event-september-announce-tax-holiday-bts-2023-tile"]:not(.aos).ac-gn-segmentbar-visible.ac-ls-visible,
html[data-layout-name="apple-event-september-announce-tax-holiday-bts-2023-tile"]:not(.aos).globalmessage-segment-visible.ac-ls-visible[data-segment-code="internal-epp-discounted"] [data-unit-id="airpods-pro"] {
    margin-top: -194px;
}
@media only screen and (max-width: 833px) {
    html[data-layout-name="apple-event-september-announce-tax-holiday-bts-2023-tile"][data-segment-code]:not([data-segment-code="smb"]):not([data-segment-code="eduind"]) [data-unit-id="airpods-pro"] {
        margin-top: -92px;
    }
    html[data-layout-name="apple-event-september-announce-tax-holiday-bts-2023-tile"]:not(.aos).ac-gn-segmentbar-visible.ac-ls-visible,
    html[data-layout-name="apple-event-september-announce-tax-holiday-bts-2023-tile"]:not(.aos).globalmessage-segment-visible.ac-ls-visible[data-segment-code="internal-epp-discounted"] [data-unit-id="airpods-pro"] {
        margin-top: -271px;
    }
}
@media only screen and (max-width: 734px) {
    html[data-layout-name="apple-event-september-announce-tax-holiday-bts-2023-tile"][data-segment-code]:not([data-segment-code="smb"]):not([data-segment-code="eduind"]) [data-unit-id="airpods-pro"] {
        margin-top: -92px;
    }
    html[data-layout-name="apple-event-september-announce-tax-holiday-bts-2023-tile"]:not(.aos).ac-gn-segmentbar-visible.ac-ls-visible,
    html[data-layout-name="apple-event-september-announce-tax-holiday-bts-2023-tile"]:not(.aos).globalmessage-segment-visible.ac-ls-visible[data-segment-code="internal-epp-discounted"] [data-unit-id="airpods-pro"] {
        margin-top: -271px;
    }
}



/* BTS. The normal page displays tile module, and the Employee Purchase Plan displays hero module. */
html[data-layout-name="apple-event-september-announce-tax-holiday-bts-2023-tile"] div[data-unit-id="airpods-pro"]:not([data-analytics-section-engagement="name:hero-airpods-pro"]) {
    display: block!important;
}
html[data-layout-name="apple-event-september-announce-tax-holiday-bts-2023-tile"] div[data-unit-id="airpods-pro"]:not([data-analytics-section-engagement="name:promo-airpods-pro"]) {
    display: none!important;
}
html[data-layout-name="apple-event-september-announce-tax-holiday-bts-2023-tile"] div[data-unit-id="mac-studio"]:not([data-analytics-section-engagement="name:hero-mac-studio"]) {
    display: none !important;
}
html[data-layout-name="apple-event-september-announce-tax-holiday-bts-2023-tile"] div[data-unit-id="mac-studio"]:not([data-analytics-section-engagement="name:promo-mac-studio"]) {
    display: block !important;
}
/* Employee Purchase plan page except Education page */
[data-segment-code="eduind"] [data-unit-id="back-to-school-2023"],
[data-segment-code="smb"] [data-unit-id="back-to-school-2023"] {
    display: block!important
}
[data-layout-name$="apple-event-september-announce-tax-holiday-bts-2023-tile"][data-segment-code]:not([data-segment-code="smb"]):not([data-segment-code="eduind"]) [data-unit-id="back-to-school-2023"], 
[data-layout-name$="apple-event-september-announce-tax-holiday-bts-2023-tile"][data-segment-code]:not([data-segment-code="smb"]) [data-unit-id="back-to-school"], 
[data-layout-name$="apple-event-september-announce-tax-holiday-bts-2023-tile"][data-segment-code]:not([data-segment-code="smb"]) .bts-2023 {
    display: none;
}
html[data-layout-name="apple-event-september-announce-tax-holiday-bts-2023-tile"][data-segment-code]:not([data-segment-code="smb"]):not([data-segment-code="eduind"]) div[data-unit-id="airpods-pro"]:not([data-analytics-section-engagement="name:hero-airpods-pro"]) {
    display: none!important;
}
html[data-layout-name="apple-event-september-announce-tax-holiday-bts-2023-tile"][data-segment-code]:not([data-segment-code="smb"]):not([data-segment-code="eduind"]) div[data-unit-id="airpods-pro"]:not([data-analytics-section-engagement="name:promo-airpods-pro"]) {
    display: block!important;
}
html[data-layout-name="apple-event-september-announce-tax-holiday-bts-2023-tile"][data-segment-code]:not([data-segment-code="smb"]):not([data-segment-code="eduind"]) div[data-unit-id="mac-studio"]:not([data-analytics-section-engagement="name:hero-mac-studio"]) {
    display: block !important;
}
html[data-layout-name="apple-event-september-announce-tax-holiday-bts-2023-tile"][data-segment-code]:not([data-segment-code="smb"]):not([data-segment-code="eduind"]) div[data-unit-id="mac-studio"]:not([data-analytics-section-engagement="name:promo-mac-studio"]) {
    display: none !important;
}
/* BTS EPP Hide */
html[data-segment-code="internal-epp-discounted"] .ac-gf-sosumi ul li:nth-of-type(1) {
    display: none;
}


/* bts-launch-2023-tile-one page */
/* BTS. The normal page displays tile module, and the Employee Purchase Plan displays hero module. */
html[data-layout-name="bts-launch-2023-tile-one"] div[data-unit-id="mac-studio"]:not([data-analytics-section-engagement="name:hero-mac-studio"]) {
    display: none !important;
}
html[data-layout-name="bts-launch-2023-tile-one"] div[data-unit-id="mac-studio"]:not([data-analytics-section-engagement="name:promo-mac-studio"]) {
    display: block !important;
}
/* Employee Purchase plan page except Education page */
[data-segment-code="eduind"] [data-unit-id="back-to-school-2023"],
[data-segment-code="smb"] [data-unit-id="back-to-school-2023"]{
    display: block!important
}
[data-layout-name$="bts-launch-2023-tile-one"][data-segment-code]:not([data-segment-code="smb"]):not([data-segment-code="eduind"]) [data-unit-id="back-to-school-2023"], 
[data-layout-name$="bts-launch-2023-tile-one"][data-segment-code]:not([data-segment-code="eduind"]) [data-unit-id="back-to-school"], 
[data-layout-name$="bts-launch-2023-tile-one"][data-segment-code]:not([data-segment-code="eduind"]) .bts-2023 {
    display: none;
}

html[data-layout-name="bts-launch-2023-tile-one"][data-segment-code]:not([data-segment-code="smb"]):not([data-segment-code="eduind"]) div[data-unit-id="mac-studio"]:not([data-analytics-section-engagement="name:hero-mac-studio"]) {
    display: block !important;
}
html[data-layout-name="bts-launch-2023-tile-one"][data-segment-code]:not([data-segment-code="smb"]):not([data-segment-code="eduind"]) div[data-unit-id="mac-studio"]:not([data-analytics-section-engagement="name:promo-mac-studio"]) {
    display: none !important;
}


/* last-chance-bts-2023-takedown page */
html[data-layout-name="last-chance-bts-2023-takedown"] div[data-unit-id="airpods-pro"]:not([data-analytics-section-engagement="name:promo-airpods-pro"]) {
    display: block !important;
}
html[data-layout-name="last-chance-bts-2023-takedown"][data-segment-code]:not([data-segment-code="smb"]):not([data-segment-code="eduind"]) div[data-unit-id="airpods-pro"]:not([data-analytics-section-engagement="name:promo-airpods-pro"]) {
    display: block !important;
}
html[data-layout-name="last-chance-bts-2023-takedown"][data-unit-id="airpods-pro"], [data-layout-name="last-chance-bts-2023-takedown"] [data-unit-id="airpods-pro"] {
    display: block;
}
html[data-layout-name="last-chance-bts-2023-takedown"] div[data-unit-id="mac-studio"]:not([data-analytics-section-engagement="name:promo-mac-studio"]) {
    display: block !important;
}
html[data-layout-name="last-chance-bts-2023-takedown"][data-segment-code]:not([data-segment-code="smb"]):not([data-segment-code="eduind"]) div[data-unit-id="mac-studio"]:not([data-analytics-section-engagement="name:promo-mac-studio"]) {
    display: block !important;
}
html[data-layout-name="last-chance-bts-2023-takedown"][data-segment-code]:not([data-segment-code="internal-epp-discounted"]) [data-unit-id="back-to-school"] {
    display: block !important
}
/* BTS takedown EPP Show */
html[data-layout-name="last-chance-bts-2023-takedown"][data-segment-code="internal-epp-discounted"] .ac-gf-sosumi ul li:nth-of-type(1) {
    display: block;
}

/* avail-bts-2023-ribbon page */
html[data-layout-name="avail-bts-2023-ribbon"] div[data-unit-id="airpods-pro"]:not([data-analytics-section-engagement="name:promo-airpods-pro"]) {
    display: block !important;
}
html[data-layout-name="avail-bts-2023-ribbon"][data-segment-code]:not([data-segment-code="smb"]):not([data-segment-code="eduind"]) div[data-unit-id="airpods-pro"]:not([data-analytics-section-engagement="name:promo-airpods-pro"]) {
    display: block !important;
}
html[data-layout-name="avail-bts-2023-ribbon"][data-unit-id="airpods-pro"], [data-layout-name="avail-bts-2023-ribbon"] [data-unit-id="airpods-pro"] {
    display: block;
}
html[data-layout-name="avail-bts-2023-ribbon"] div[data-unit-id="mac-studio"]:not([data-analytics-section-engagement="name:promo-mac-studio"]) {
    display: block !important;
}
html[data-layout-name="avail-bts-2023-ribbon"][data-segment-code]:not([data-segment-code="smb"]):not([data-segment-code="eduind"]) div[data-unit-id="mac-studio"]:not([data-analytics-section-engagement="name:promo-mac-studio"]) {
    display: block !important;
}
html[data-layout-name="avail-bts-2023-ribbon"][data-segment-code]:not([data-segment-code="internal-epp-discounted"]) [data-unit-id="back-to-school"] {
    display: block !important
}