/*!
 * Copyright 2024 Adobe. All rights reserved.
 *
 * This file is licensed to you under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License. You may obtain a copy
 * of the License at <http://www.apache.org/licenses/LICENSE-2.0>
 *
 * Unless required by applicable law or agreed to in writing, software distributed under
 * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
 * OF ANY KIND, either express or implied. See the License for the specific language
 * governing permissions and limitations under the License.
 */

.spectrum-CoachMark {
	--spectrum-coachmark-border-size: var(--mod-coachmark-border-size, var(--mod-popover-border-width));
	--spectrum-coachmark-border-radius: var(--mod-coachmark-border-radius, var(--mod-popover-corner-radius));
	--mod-buttongroup-justify-content: flex-end;
	--mod-popover-border-width: var(--spectrum-border-width-100);
	--mod-popover-corner-radius: var(--spectrum-corner-radius-100);
	--mod-popover-content-area-spacing-vertical: 0;
	--mod-button-edge-to-visual-only: 9px;
	position: relative;
	min-inline-size: var(--mod-coachmark-min-width, var(--spectrum-coach-mark-minimum-width));
	max-inline-size: var(--mod-coachmark-max-width, var(--spectrum-coach-mark-maximum-width));
	inline-size: var(--mod-coachmark-width, var(--spectrum-coach-mark-width));
}
.spectrum-CoachMark-image-wrapper {
	block-size: var(--mod-coachmark-media-height, var(--spectrum-coach-mark-media-height));
	min-block-size: var(--mod-coachmark-media-min-height, var(--spectrum-coach-mark-media-minimum-height));
	inline-size: calc(var(--mod-coachmark-width, var(--spectrum-coach-mark-width)) - var(--spectrum-coachmark-border-size) * 2);
	object-fit: cover;
	object-position: center;
	border-start-start-radius: inherit;
	border-start-end-radius: inherit;
}
.spectrum-CoachMark-image {
	display: block;
	inline-size: 100%;
	block-size: 100%;
	object-fit: cover;
	border-start-start-radius: calc(var(--spectrum-coachmark-border-radius) - var(--spectrum-coachmark-border-size));
	border-start-end-radius: calc(var(--spectrum-coachmark-border-radius) - var(--spectrum-coachmark-border-size));
}
.spectrum-CoachMark-content,
.spectrum-CoachMark-footer,
.spectrum-CoachMark-header {
	padding-block: 0;
	padding-inline: var(--mod-coachmark-padding, var(--spectrum-coach-mark-edge-to-content));
}
.spectrum-CoachMark-header {
	padding-block-start: var(--mod-coachmark-padding, var(--spectrum-coach-mark-edge-to-content));
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-block-end: var(--mod-coachmark-header-to-body, var(--spectrum-spacing-200));
}
.spectrum-CoachMark-title {
	color: var(--mod-coachmark-title-color, var(--spectrum-heading-color));
	font-size: var(--mod-coachmark-title-font-size, var(--spectrum-coach-mark-title-size));
	font-weight: var(--mod-coachmark-title-text-font-weight, var(--spectrum-heading-sans-serif-font-weight));
	font-family: var(--mod-coachmark-title-font-family, var(--spectrum-sans-serif-font));
	font-style: var(--mod-coachmark-title-font-style, var(--spectrum-heading-serif-font-style));
	line-height: var(--mod-coachmark-title-text-line-height, var(--spectrum-heading-line-height));
	margin-block-end: 0;
}
.spectrum-CoachMark-action-menu {
	white-space: nowrap;
	z-index: 1;
	margin-inline-start: var(--mod-coachmark-heading-to-action-button, var(--spectrum-spacing-300));
}
.spectrum-CoachMark-menu {
	display: var(--spectrum-coachmark-menu-display);
}
.spectrum-CoachMark-menu--mobile {
	--spectrum-coachmark-menu-display: var(--spectrum-coachmark-menu-mobile-display);
}
.spectrum-CoachMark-content {
	margin-block-end: var(--mod-coachmark-body-to-footer, var(--spectrum-spacing-300));
	color: var(--mod-coachmark-content-font-color, var(--spectrum-body-color));
	font-size: var(--mod-coachmark-content-font-size, var(--spectrum-coach-mark-body-size));
	font-weight: var(--mod-coachmark-content-font-weight, var(--spectrum-body-sans-serif-font-weight));
	font-family: var(--mod-coachmark-content-font-family, var(--spectrum-sans-serif-font));
	font-style: var(--mod-coachmark-content-font-style, var(--spectrum-body-sans-serif-font-style));
	line-height: var(--mod-coachmark-content-line-height, var(--spectrum-body-line-height));
}
.spectrum-CoachMark-footer {
	display: grid;
	align-items: end;
	margin-block-start: 0;
	padding-block-end: var(--mod-coachmark-padding, var(--spectrum-coach-mark-edge-to-content));
}
.spectrum-CoachMark-step {
	justify-self: start;
	margin-block-end: calc(var(--mod-coachmark-step-to-bottom, var(--spectrum-coach-mark-pagination-text-to-bottom-edge)) - var(--mod-coachmark-padding, var(--spectrum-coach-mark-edge-to-content)));
	color: var(--mod-coachmark-step-color, var(--spectrum-coach-mark-pagination-color));
	font-size: var(--mod-coachmark-step-font-size, var(--spectrum-coach-mark-pagination-body-size));
	font-weight: var(--mod-coachmark-step-text-font-weight, var(--spectrum-body-sans-serif-font-weight));
	font-family: var(--spectrum-sans-serif-font);
	font-style: var(--mod-coachmark-step-font-style, var(--spectrum-body-sans-serif-font-style));
	line-height: var(--mod-coachmark-step-text-line-height, var(--spectrum-body-line-height));
	white-space: nowrap;
}
.spectrum-CoachMark-buttongroup {
	display: var(--spectrum-coachmark-buttongroup-display);
	grid-column-start: 2;
}
.spectrum-CoachMark-buttongroup--mobile {
	--spectrum-coachmark-buttongroup-display: var(--spectrum-coachmark-buttongroup-mobile-display);
	--mod-buttongroup-spacing: var(--spectrum-spacing-100);
}
