/**
 * Rolex RCPO Appointment (Hyvä) — category id 42–44
 * (/en/rolex-certified-pre-owned/contact/appointment).
 * B0 shell: full-width main, hide Hyvä PLP chrome.
 *
 * @see dev-doc/rolex_rcpo_appointment_implement_log.html#b0
 */

/* rolex.min.css (if loaded globally) hides .category-rolex-certified-pre-owned #maincontent */
body.rolexrcpo-appointment-form-body.category-rolex-certified-pre-owned #maincontent,
body.rolexrcpo-appointment-form-body #maincontent {
    display: block !important;
    min-height: unset;
}

body.rolexrcpo-appointment-form-body #maincontent.page-main,
body.rolexrcpo-appointment-form-body.page-layout-1column #maincontent {
    margin: 0 !important;
    margin-block: 0 !important;
    padding-top: 0 !important;
    max-width: none;
    padding-inline: 0;
    flex-grow: 0 !important;
    min-height: unset;
}

body.rolexrcpo-appointment-form-body #maincontent > .columns {
    display: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

/*
 * Category -- Full Width (Page Builder): empty div.page-main between header and #category-view-container.
 * @see dev-doc/magento_category_layout_handles.html#design-layout
 */
body.rolexrcpo-appointment-form-body .page-wrapper > div.page-main:not(#maincontent) {
    display: none !important;
    flex-grow: 0 !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
}

body.rolexrcpo-appointment-form-body #maincontent:not(:has(#category-view-container)) {
    display: none !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
}

body.rolexrcpo-appointment-form-body #category-view-container.rolex-wrapper.rolexrcpo {
    margin-top: 0;
    width: 100%;
}

/* RCPO black crumbs bar (B2+) */
body.rolexrcpo-appointment-form-body .rolex-wrapper.rolexrcpo .breadcrumbs-wrapper {
    background-image: none;
    background-color: #000;
}

body.rolexrcpo-appointment-form-body .rolex-wrapper.rolexrcpo .breadcrumbs {
    padding-bottom: 10px;
}

body.rolexrcpo-appointment-form-body #maincontent .page.messages {
    margin: 0 !important;
    padding: 0 !important;
}

body.rolexrcpo-appointment-form-body #maincontent .page.messages:not(:has(.message)) {
    display: none !important;
}

body.rolexrcpo-appointment-form-body nav.breadcrumbs,
body.rolexrcpo-appointment-form-body .breadcrumbs:not(.rolex-wrapper .breadcrumbs) {
    display: none !important;
}

body.rolexrcpo-appointment-form-body .page-title-wrapper,
body.rolexrcpo-appointment-form-body h1.page-title {
    display: none !important;
}

@media only screen and (max-width: 1023px) {
    body.rolexrcpo-appointment-form-body .page-header {
        position: relative;
        z-index: 20;
    }
}

/* Alpine x-show steps — B7+ (Hyvä provides [x-cloak] globally) */
body.rolexrcpo-appointment-form-body .rolexAppointmentForm [x-cloak] {
    display: none !important;
}

/*
 * rolex-form-common.css forces steps/thankyou to display:none (legacy jQuery .show()).
 * Alpine x-show.important backup for .step-active class.
 */
body.rolexrcpo-appointment-form-body .rolex-form .rolexAppointmentForm .rolex-appointmentForm-cancelConfirm.step-active,
body.rolexrcpo-appointment-form-body .rolex-form .rolexAppointmentForm .rolex-appointmentForm-error.step-active,
body.rolexrcpo-appointment-form-body .rolex-form .rolexAppointmentForm .rolex-appointmentForm-step1.step-active,
body.rolexrcpo-appointment-form-body .rolex-form .rolexAppointmentForm .rolex-appointmentForm-step2.step-active,
body.rolexrcpo-appointment-form-body .rolex-form .rolexAppointmentForm .rolex-appointmentForm-step3.step-active,
body.rolexrcpo-appointment-form-body .rolex-form .rolexAppointmentForm .rolex-appointmentForm-step4.step-active,
body.rolexrcpo-appointment-form-body .rolex-form .rolexAppointmentForm .rolex-appointmentForm-step5.step-active,
body.rolexrcpo-appointment-form-body .rolex-form .rolexAppointmentForm .rolex-appointmentForm-thankyou.step-active {
    display: block !important;
}
