// additionalData in webpack.config.js is for entry points only. Partials still need to import the use manually.
@use "@wordpress/base-styles/colors" as wpColors;
@use "@wordpress/base-styles/breakpoints" as wpBreakpoints;
@use "@wordpress/base-styles/variables" as wpVariables;

.woocommerce-admin-page__reddit_settings #wpbody {
	margin-block-start: 60px !important;
}

// Used in ~/hooks/useLayout.js
.rfw-full-content {
	.woocommerce-layout {
		padding-block-start: 0;

		.woocommerce-layout__header {
			display: none;
		}

		// Hide StoreAlerts.
		.woocommerce-store-alerts,
		.woocommerce-layout__notice-list {
			display: none;
		}
		.woocommerce-layout__primary {
			margin: 0;

			.woocommerce-layout__main {
				padding: 0;
			}
		}
	}
}

// Used in ~/hooks/useLayout.js
.rfw-full-page {
	// hack to fix the margin-top when width is between 600px and 782px.
	// without this, the margin-top would be -32px,
	// and there would be a visible small grey gap.
	&.is-wp-toolbar-disabled {
		@media (min-width: #{ (wpBreakpoints.$break-small) }) and (max-width: #{ (wpBreakpoints.$break-medium) }) {
			margin-block-start: -46px;
		}
	}

	.woocommerce-layout {
		padding-block-start: 0;

		.woocommerce-layout__primary {
			margin: 0;

			.woocommerce-layout__main {
				padding: 0;
			}
		}
	}
}

// rfw-admin-page is for scoping particular styles to WP/WC core components in a SFW admin page.
// If a style is expected to apply to a WC core component as its base style across SFW admin pages,
// it's preferred to add them here.
.rfw-admin-page {
	.woocommerce-stepper {
		.woocommerce-stepper__steps {
			align-items: center;
			background-color: wpColors.$white;
			block-size: wpVariables.$grid-unit-40 * 2;
			box-shadow: inset 0 -1px 0 wpColors.$gray-400;
			justify-content: center;
			margin-block-end: 0;

			.woocommerce-stepper__step-divider {
				align-self: auto;
				margin-block-start: 0;
				max-inline-size: wpVariables.$grid-unit-60;
			}
		}
	}

	.components-notice:not(.app-notice) {
		margin-block-end: wpVariables.$grid-unit-15;
	}
}

// compatibility-code "WC >= 7.3" -- adding margin in the first question label.
.wp-admin .woocommerce-customer-effort-score__intro {
	margin-block-end: 1em;
}
