/*
 * Shared product-detail introduction boundary contract.
 *
 * One divider belongs to the section heading. The introductory copy, first
 * authored visual, and the chapter that follows it stay connected by spacing
 * rather than additional rules.
 */
body.pdp-unified-product-detail #pdp-detail > .pdp-section-heading,
body.pdp-video-unified-page .pdp-video-detail > .pdp-section-heading,
body.pdp-unified-product-detail .pdp-retouch-content > .pdp-section-heading {
    padding-bottom: 20px;
    border-bottom: 1px solid var(--pdp-unified-line, var(--pdp-line, #ddd9d2));
}

body.pdp-unified-product-detail .pdp-preserved-editorial {
    border-top: 0;
}

body.pdp-unified-product-detail .pdp-preserved-editorial :is(
    #pdc_area > .pdp-editorial-intro,
    .pdp-preserved-story-chapter[data-pdp-collapse-end]
) {
    padding-top: 16px !important;
    padding-bottom: 24px !important;
    border-top: 0;
    border-bottom: 0;
}

body.pdp-unified-product-detail .pdp-preserved-editorial :is(
    #pdc_area > .pdp-editorial-hero,
    .pdp-ticket-hero,
    .pdp-ribbon-hero
) {
    padding-top: 24px !important;
    padding-bottom: 24px !important;
    border-top: 0;
    border-bottom: 0;
}

body.pdp-unified-product-detail .pdp-preserved-editorial :is(
    #pdc_area > .pdp-editorial-hero,
    .pdp-ticket-hero,
    .pdp-ribbon-hero
) + :is(.pdp-editorial-chapter, .pdp-preserved-story-chapter) {
    padding-top: 24px;
    border-top: 0;
}

body.pdp-modern-page.pdp-unified-product-detail button.pdp-unified-detail-toggle,
body.pdp-video-unified-page.pdp-unified-product-detail button.pdp-video-detail-toggle,
body.pdp-modern-page.pdp-unified-product-detail button.pdp-address-service__toggle {
    min-height: 52px;
    padding: 0 16px;
    align-items: center;
    justify-content: center;
    border: 1px solid #26323c !important;
    border-radius: 10px !important;
    background: #fff !important;
    box-shadow: 0 6px 14px rgba(38, 50, 60, 0.16) !important;
    color: #000 !important;
    font: inherit;
    font-size: 15px !important;
    font-weight: 400 !important;
    line-height: 1.4;
    cursor: pointer;
    box-sizing: border-box;
}

body.pdp-modern-page .pdp-unified-detail-toggle,
body.pdp-unified-product-detail .pdp-address-service__toggle {
    display: flex;
}

body.pdp-modern-page .pdp-unified-detail-toggle {
    color: var(--pdp-ink, #181817);
    -webkit-text-fill-color: currentColor;
    box-shadow: none;
    height: 52px;
    margin-top: 24px;
}

body.pdp-modern-page .pdp-unified-detail-toggle > span,
body.pdp-video-unified-page .pdp-video-detail-toggle > span,
body.pdp-unified-product-detail .pdp-address-service__toggle > span {
    color: inherit;
    font: inherit;
}

body.pdp-modern-page .pdp-unified-detail-toggle .ui-prd-view-more-arrow {
    display: none;
}

body.pdp-modern-page .pdp-unified-detail-toggle::after,
body.pdp-video-unified-page .pdp-video-detail-toggle::after,
body.pdp-unified-product-detail .pdp-address-service__toggle::after {
    width: 8px;
    height: 8px;
    margin: -4px 0 0 10px;
    border-right: 1.5px solid currentColor;
    border-bottom: 1.5px solid currentColor;
    content: '';
    transform: rotate(45deg);
}

body.pdp-modern-page .pdp-unified-detail-toggle[aria-expanded='true']::after,
body.pdp-video-unified-page .pdp-video-detail-toggle[aria-expanded='true']::after,
body.pdp-unified-product-detail .pdp-address-service__toggle[aria-expanded='true']::after {
    margin-top: 4px;
    transform: rotate(225deg);
}

@media (max-width: 767px) {
    body.pdp-modern-page.pdp-unified-product-detail button.pdp-unified-detail-toggle,
    body.pdp-video-unified-page.pdp-unified-product-detail button.pdp-video-detail-toggle,
    body.pdp-modern-page.pdp-unified-product-detail button.pdp-address-service__toggle {
        width: calc(100% - 32px) !important;
        margin-right: 16px;
        margin-left: 16px;
    }

    body.pdp-unified-product-detail #pdp-detail > .pdp-section-heading,
    body.pdp-video-unified-page .pdp-video-detail > .pdp-section-heading,
    body.pdp-unified-product-detail .pdp-retouch-content > .pdp-section-heading {
        padding-bottom: 16px;
    }

    body.pdp-unified-product-detail .pdp-preserved-editorial {
        margin-top: 0;
    }

    body.pdp-modern-page .pdp-unified-detail-toggle {
        margin-top: 16px;
    }

    body.pdp-unified-product-detail .pdp-preserved-editorial :is(
        #pdc_area > .pdp-editorial-intro,
        .pdp-preserved-story-chapter[data-pdp-collapse-end]
    ) {
        padding-top: 28px !important;
        padding-bottom: 14px !important;
    }

    body.pdp-unified-product-detail .pdp-preserved-editorial :is(
        #pdc_area > .pdp-editorial-hero,
        .pdp-ticket-hero,
        .pdp-ribbon-hero
    ) {
        padding-top: 14px !important;
        padding-bottom: 14px !important;
    }

    body.pdp-unified-product-detail .pdp-preserved-editorial :is(
        #pdc_area > .pdp-editorial-hero,
        .pdp-ticket-hero,
        .pdp-ribbon-hero
    ) + :is(.pdp-editorial-chapter, .pdp-preserved-story-chapter) {
        padding-top: 14px;
    }
}
