// ------------------------------------
// CHECKOUT COUPON CODE
// ------------------------------------

.fc-wrapper .fc-coupon-code-section__inner {
	width: 100%;
}

.fc-wrapper .fc-coupon-code-section__message {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: space-between;
	width: 100%;

	@media (#{$bp-larger-than-tablet}) {
		flex-direction: row;
	}
}

.fc-wrapper .fc-coupon-code-section__message-text {
	@media (#{$bp-smaller-than-tablet}) {
		margin-bottom: $global-spacing-extra-small;
	}
}

.fc-wrapper .fc-coupon-code-section__message .button {
	@media (#{$bp-smaller-than-tablet}) {
		width: 100%;
		text-align: center;
	}
}



.fc-wrapper .fc-coupon-code-section {
	position: relative;
}

.fc-wrapper .fc-coupon-code-section__inner .fc-coupon-code-section {
	margin-top: $global-spacing-extra-small;
}



.fc-wrapper .fc-coupon_code__collapsible .collapsible-content__inner {
	position: relative;
}

.fc-wrapper .fc-coupon_code__collapsible #coupon_code_field.form-row {
	float: none;
	margin: 0 !important; // Needed to override theme styles set with `!important`
	padding: 0;
}

.fc-wrapper .fc-coupon_code__collapsible .woocommerce-input-wrapper {
	width: 100% !important; // Needed to override theme styles set with `!important`
}

.fc-wrapper .fc-coupon_code__collapsible input#coupon_code {
	margin: 0;
	width: 100% !important; // Needed to override theme styles set with `!important`
	height: remsize( 5.5rem );

	&:focus {
		z-index: z( 'above' );
		position: relative;
		outline: $focus-outline-button !important; // Needed to override theme styles
		outline-offset: $focus-outline-offset-button !important; // Needed to override theme styles
	}
}

body div.woocommerce .fc-wrapper .fc-coupon_code__collapsible .fc-coupon-code__apply {
	z-index: z( 'above' ) + 1;
	position: absolute !important; // Needed to override theme styles
	top: $global-spacing-tiny !important; // Needed to override theme styles
	margin: 0;
	padding-#{ $alignment-left }: $global-spacing-small;
	padding-#{ $alignment-right }: $global-spacing-small;
	padding-top: 0 !important; // Needed to override theme styles
	padding-bottom: 0 !important; // Needed to override theme styles
	#{ $alignment-left }: auto;
	#{ $alignment-right }: $global-spacing-tiny;
	height: remsize( 4.5rem ) !important; // Needed to override theme styles
	min-height: remsize( 4.5rem ) !important; // Needed to override theme styles
	line-height: 1 !important; // Needed to override theme styles
	width: auto;

	&:focus {
		outline: $focus-outline-button !important; // Needed to override theme styles
		outline-offset: $focus-outline-offset-button !important; // Needed to override theme styles
	}
}





.fc-wrapper .fc-step__substep-text-content--coupon-codes:not( :empty ) {
	margin-bottom: $global-spacing-small;
}

.fc-wrapper .fc-coupon-codes__coupon {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin: $coupon-code-coupon-margin;
	padding: $coupon-code-coupon-padding;
	border: $coupon-code-coupon-border;
	border-radius: $coupon-code-coupon-border-radius;
	background-color: $coupon-code-coupon-background-color;
}

.fc-wrapper .fc-coupon-codes__coupon-amount {
	flex-wrap: wrap;
	flex-shrink: 0;
}

.fc-wrapper .fc-coupon-codes__coupon-amount .woocommerce-remove-coupon {
	margin-#{ $alignment-left }: $coupon-code-remove-spacing;
	font-size: $coupon-code-remove-font-size;
	font-weight: $coupon-code-remove-font-weight;
	line-height: inherit;
	text-decoration: $coupon-code-remove-text-decoration;
	color: $coupon-code-remove-color;
	background-color: transparent;

	&:hover,
	&:active,
	&:focus {
		color: $error-color;
	}

	&:focus {
		outline: $focus-outline-link !important; // Needed to override theme styles
		outline-offset: $focus-outline-offset-link !important; // Needed to override theme styles
	}
}



.fc-wrapper .fc-coupon-code-messages .woocommerce-error,
.fc-wrapper .fc-coupon-code-messages .woocommerce-message {
	display: block;
	margin: 0 !important; // Needed to override theme styles
	margin-bottom: $global-spacing-extra-small !important; // Needed to override theme styles
	padding: 0 !important; // Needed to override theme styles
}

.fc-wrapper .fc-coupon-code-messages .woocommerce-error li {
	position: relative;
	padding-#{ $alignment-right }: $global-spacing-large !important; // Needed to override theme styles
}
.fc-wrapper .fc-coupon-code-messages .woocommerce-error li .fc-coupon-code-message-dismiss {
	position: absolute;
	top: 0;
	#{ $alignment-right }: 0;

	&:focus {
		outline: $focus-outline-link !important; // Needed to override theme styles
		outline-offset: $focus-outline-offset-link !important; // Needed to override theme styles
	}
}
