/* ============================================================
   Work Sans Font Family —@font-face declarations
   (CSS files aren't merge-field processed, so plain resource
   paths are used here rather than {basePath}/{versionKey}
   tokens, which only resolve inside Head Markup HTML itself)
   ============================================================ */

@font-face {
    font-family: 'Work Sans';
    src: url('/sfsites/c/resource/WorkSansFont2/WorkSans-Light.woff2') format('woff2');
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Work Sans';
    src: url('/sfsites/c/resource/WorkSansFont2/WorkSans-Regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Work Sans';
    src: url('/sfsites/c/resource/WorkSansFont2/WorkSans-Medium.woff2') format('woff2');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Work Sans';
    src: url('/sfsites/c/resource/WorkSansFont2/WorkSans-SemiBold.woff2') format('woff2');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Work Sans';
    src: url('/sfsites/c/resource/WorkSansFont2/WorkSans-Bold.woff2') format('woff2');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

/* ============================================================
   Custom Header — targets the real CSS Class set on the
   dxp_content_layout:header component in Experience Builder
   ============================================================ */

.preference-centre-custom-header,
.preference-centre-custom-header * {
    font-family: 'Work Sans', sans-serif;
}

.pref-banner {
    position: relative;
    background-color: #A6192E;
    display: flex;
    align-items: center;
    height: 320px;
    overflow: hidden;
    padding: 32px;
}

.pref-banner__heading {
    color: white;
    font-size: 60px;
    font-weight: 700;
    line-height: 1.15;
    max-width: 640px;
    margin: 0;
    position: relative;
    z-index: 2;
}

.pref-banner__image-wrap {
    position: absolute;
    right: 0;
    top: 0;
    height: 100%;
    display: inline-flex;   
    z-index: 1;
    width:70%;
}

.pref-banner__image {
    height: 100%;
    width: 100%;             
    display: block;
}

.pref-banner__accent {
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 350px;
    background-color: #A6192E;
    clip-path: polygon(0 0, 100% 0, 0 100%);
    z-index: 2;
}

@media (max-width: 768px) {

    .pref-banner {
        display: flex;
        flex-direction: column;
        padding: 0;
        height: auto;
    }

    .pref-banner__image-wrap {
        position: relative;
        right: auto;
        top: auto;
        width: 100%;
        max-width: 100%;
        height: auto;
        order: 1;
        overflow: hidden;
    }

    .pref-banner__image {
        width: 100%;
        height: auto;
        display: block;
    }

    .pref-banner__content {
        width: 100%;
        order: 2;
        padding: 24px;
        background: #A6192E;
    }

    .pref-banner__heading {
        font-size: 36px;
        max-width: 100%;
        margin: 0;
    }

    .pref-banner__accent {
        display: none;
    }

    .slds-rich-text-editor__output h1 {
        font-size: 24px !important;
        line-height: 30px !important;
    }
}

/* ============================================================
   Custom Content — targets the real CSS Class set on the
   dxp_content_layout:content component in Experience Builder
   ============================================================ */

.preference-centre-content-section {
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.pref-centre-text-block {
    max-width: 560px;
    margin-left: auto;
    margin-right: auto;
    text-align: left;
}
.preference-centre-unsubscribe-section {
    width: 70%;
    margin-left: auto;
    margin-right: auto;
}

/* ============================================================
   Form Field Labels (OmniScript)
   ============================================================ */
runtime_omnistudio_common-input {
  --dxp-s-body-font-weight: 400;
}

runtime_omnistudio_common-input .slds-form-element__label,
runtime_omnistudio_common-input label ,
.omni-typeahead-container .slds-form-element__label{
    font-family: 'Work Sans', sans-serif;
    font-weight: 400;
    font-size: 14px;
    line-height: 22px;
    color: #444;
}

.slds-checkbox .slds-checkbox__label .slds-form-element__label{
    color: #181818;
    font-family: "Work Sans";
    font-size: 14px;
    font-style: normal;
    font-weight: 400;
    line-height: 16px;
}

/* ============================================================
   Form Field Inputs
   ============================================================ */

runtime_omnistudio_common-input input,
runtime_omnistudio_common-input textarea,
runtime_omnistudio_common-input select,
runtime_omnistudio_common-input .vlocity-input {
    font-family: 'Work Sans', sans-serif;
    font-weight: 400;
}

/* ============================================================
   Help Text and Error Messages
   ============================================================ */

runtime_omnistudio_common-input .slds-form-element__help,
runtime_omnistudio_common-input .slds-form-element__label_error {
    font-family: 'Work Sans', sans-serif;
}

/* ============================================================
   Field Spacing
   ============================================================ */

runtime_omnistudio_common-input .slds-form-element {
    margin-bottom: 20px;
}

/* ============================================================
   Rich Text / Headings / Body Copy —OmniScript
   (::part() workaround for lightning-formatted-rich-text
   shadow DOM)
   ============================================================ */

runtime_omnistudio_omniscript-omniscript-text-block lightning-formatted-rich-text::part(formatted-rich-text) {
    font-family: 'Work Sans', sans-serif;
}

.slds-rich-text-editor__output h1 {
  font-weight: 600;
  font-size: 42px;
  line-height: 50px;
}

.slds-rich-text-editor__output h2{
    font-weight: 600;
    font-size: 20px;
    line-height: 27px;
    color: #181818;
}

.slds-rich-text-editor__output h3 {
    font-weight: 600;
    font-size: 16px;
    line-height: 24px;
    color: #181818;
}

.slds-rich-text-editor__output p,
.slds-rich-text-editor__output span {
    font-weight: 400;
    font-size: 16px;
    line-height: 21px;
    color: #181818;
}

.slds-rich-text-editor__output p strong,
.slds-rich-text-editor__output p b{
    font-weight: 600;
    font-size: 16px;
    line-height: 24px;
    color: #181818;
}


/* ============================================================
   Buttons —OmniScript
   ============================================================ */

runtime_omnistudio_common-button .vlocity-btn,
runtime_omnistudio_common-button .slds-button,
runtime_omnistudio_common-button .btnLabel {
    font-family: 'Work Sans', sans-serif;
    font-weight: 500;
}

.slds-card {
    border:none;
    box-shadow: none;
}

.slds-rich-text-editor__output hr{
    margin-top: 0;
    margin-bottom: 24px;
}

.comm-section-container,
.gooter-container,
footer,
header{
    padding: 0 !important;
}


