body.pei-better-checkout-modal-open {
	position: fixed;
	overflow: hidden;
	width: 100%;
	left: 0;
	right: 0;
}

.pei-main-column,
.pei-sidebar {
	background-color: var(--pei-white);
	border-radius: 12px;
	padding: 32px;
	box-shadow: 0 4px 14px rgba(0, 0, 0, 0.03);
	border: 1px solid var(--pei-white-darker-2);
}

.pei-section {
	background-color: transparent;
	padding: 24px 0;
	border-radius: 0;
	border: 0 !important;
	border-bottom: 1px solid var(--pei-white-darker-2) !important;
	margin-bottom: 0;
}

.pei-main-column > .pei-section:last-of-type {
	border-bottom: none !important;
}

.pei-main-column > *:first-child {
	padding-top: 0 !important;
}

#pei-checkout-wrapper *,
.pei-better-checkout-modal * {
	box-sizing: border-box;
}

#pei-checkout-wrapper {
	display: flex;
	justify-content: space-between;
	gap: 20px;
	max-width: 1500px;
	margin: 0 auto;
	color: var(--pei-black);
}

.woocommerce-NoticeGroup,
.checkout-notice {
	max-width: 1500px;
	margin: 10px auto !important;
}

.woocommerce-MyAccount-paymentMethods .pei-section-header h2::before,
.woocommerce-MyAccount-addresses .pei-section-header h2::before {
	content: none;
}

.woocommerce-MyAccount-paymentMethods#pei-checkout-wrapper,
.woocommerce-MyAccount-addresses#pei-checkout-wrapper {
	margin-left: 0 !important;
	margin-right: 0 !important;
	max-width: 100% !important;
}

.pei-main-column {
	width: 66%;
	counter-reset: pei-section-counter;
}

.pei-main-column-full {
	width: 100%;
}

.pei-section-header h2::before {
	counter-increment: pei-section-counter;
	content: counter(pei-section-counter);
}

.pei-sidebar {
	width: 32%;
	height: max-content;
	top: 24px;
}

.pei-primary-text {
	font-weight: 700;
	margin: 0 0 5px 0;
	font-size: 14px;
}

.pei-secondary-text {
	color: var(--pei-black-lighter-4);
	font-size: 13px;
	margin: 0;
}

.pei-change-link {
	flex: 0 0 auto;
	white-space: nowrap;
	display: inline-block;
	margin-left: 12px;
}

.pei-change-link.disabled {
	pointer-events: none;
	opacity: 0.5;
}

.pei-action-link,
.pei-change-link {
	color: var(--pei-accent-color);
	text-decoration: none;
	font-size: 13px;
}

.pei-action-link:hover,
.pei-change-link:hover {
	color: var(--pei-accent-color-lighter-2) !important;
	text-decoration: underline;
}

.pei-action-link:focus,
.pei-change-link:focus {
	color: var(--pei-accent-color-lighter-2) !important;
	text-decoration: underline;
	outline: 2px solid var(--pei-accent-color) !important;
	outline-offset: 2px;
}

.pei-section-header {
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
	gap: 12px;
}

.pei-section-header h2 {
	display: grid;
	grid-template-columns: auto 1fr;
	column-gap: 12px;
	align-items: start;
	font-size: 18px;
	font-weight: 700;
	margin: 0;
	color: var(--pei-black);
	text-transform: uppercase;
	flex: 1 1 auto;
	min-width: 0;
}

.pei-section-title-text {
	display: block;
	min-width: 0;
}

.pei-section-content {
	padding-left: 25px;
	margin-top: 10px;
}

.pei-section-content-flush {
	padding-left: 0;
}

.pei-section-edit {
	border: 1px solid var(--pei-white-darker-2);
	border-radius: 8px;
	padding: 20px;
	margin-top: 15px;
}

.pei-section-no-top {
	margin-top: 0;
}

.pei-section-edit-open {
	display: block;
	margin-top: 20px;
}

.pei-hidden {
	display: none;
}

.pei-display-block {
	display: block;
}

.pei-flex-center {
	display: flex;
	align-items: center;
}

.pei-input-full {
	width: 100%;
}

.pei-primary-top-space {
	margin-top: 20px;
}

.pei-secondary-bottom-space {
	margin-bottom: 15px;
}

.pei-edit-card,
.pei-remove-card,
.pei-remove-address-trigger {
	color: var(--pei-accent-color) !important;
	text-decoration: none;
	font-size: 13px;
}

.pei-edit-card {
	margin: 0;
}

.pei-edit-card:hover,
.pei-remove-card:hover,
.pei-remove-address-trigger:hover {
	color: var(--pei-accent-color-lighter-2) !important;
	text-decoration: underline !important;
}

.pei-remove-card {
	margin: 0;
}

.pei-btn-yellow {
	background: var(--pei-primary-color);
	border: 0;
	border-radius: 20px;
	color: var(--pei-black-lighter-4) !important;
	padding: 8px 15px;
	cursor: pointer;
	font-size: 13px;
	box-shadow: 0 2px 5px var(--pei-black-transparent);
}

.pei-btn-yellow:hover {
	background: var(--pei-primary-color-lighter-2);
}

.pei-btn-full {
	width: 100%;
	font-size: 14px;
	padding: 10px;
}

.pei-btn-default {
	background: var(--pei-white);
	border: 1px solid var(--pei-white-darker-2);
	border-radius: 8px;
	padding: 8px 15px;
	cursor: pointer;
	font-size: 13px;
	box-shadow: 0 2px 5px var(--pei-black-transparent);
}

.pei-btn-default:hover {
	background: var(--pei-white-darker-1);
}

#pei-payment-error-msg {
	color: var(--pei-black-lighter-4);
}

.pei-better-checkout-modal-error {
	margin: 0 0 18px;
	padding: 14px 16px;
	background: var(--pei-red-lighter);
	border: 1px solid var(--pei-red-lighter);
	border-left: 5px solid var(--pei-red);
	border-radius: 6px;
	color: var(--pei-black-lighter-4);
	box-shadow: 0 8px 22px rgba(215, 25, 32, 0.18);
}

.pei-better-checkout-modal-error ul {
	margin: 0;
	padding: 0;
	list-style: none;
}

.pei-better-checkout-modal-error li {
	position: relative;
	margin: 0;
	padding: 0 0 0 28px;
	line-height: 1.45;
	font-size: 15px;
	font-weight: 500;
}

.pei-better-checkout-modal-error li::before {
	content: "!";
	position: absolute;
	left: 0;
	top: 1px;
	width: 18px;
	height: 18px;
	border-radius: 50%;
	background: var(--pei-red);
	color: var(--pei-white);
	font-size: 13px;
	font-weight: 700;
	line-height: 18px;
	text-align: center;
}

.pei-better-checkout-modal-error strong {
	color: var(--pei-red-darker);
	font-weight: 700;
}

.pei-btn-yellow:disabled,
.pei-btn-default:disabled,
.pei-btn-rounded-outline:disabled,
.pei-qty-btn:disabled,
.pei-cart-clear-button:disabled {
	cursor: not-allowed;
	opacity: 0.6;
}
