/* Product Addons — storefront fields and sidebar drawer */

.pa-fields {
	display: flex;
	flex-direction: column;
	gap: 1.25rem;
	margin: 0 0 1.5rem;
	width: 100%;
}

.pa-field-label {
	display: block;
	margin: 0 0 0.5rem;
	font-size: 0.95rem;
	font-weight: 500;
	color: #333;
	line-height: 1.3;
}

.pa-required {
	color: #c4554d;
	margin-left: 0.15em;
}

.pa-field-control {
	display: block;
	width: 100%;
	max-width: 100%;
	height: 2.75rem;
	padding: 0.55rem 0.75rem;
	border: 1px solid #d4d4d4;
	border-radius: 2px;
	background: #fff;
	color: #222;
	font-size: 0.95rem;
	line-height: 1.4;
	box-sizing: border-box;
	appearance: none;
	-webkit-appearance: none;
}

.pa-field-select {
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23666' d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 0.85rem center;
	padding-right: 2.25rem;
	cursor: pointer;
	-moz-appearance: none;
}

.pa-field-select:invalid,
.pa-field-select option[value=""] {
	color: #9a9a9a;
}

.pa-field-select option:not([value=""]) {
	color: #222;
}

.pa-field-control::placeholder {
	color: #9a9a9a;
}

.pa-field-control:focus {
	outline: none;
	border-color: #888;
}

.pa-sidebars {
	display: flex;
	flex-direction: column;
	margin: 1.25rem 0;
	width: 100%;
	border-top: 1px solid #e6e6e6;
}

.pa-sidebar-trigger {
	display: flex;
	align-items: center;
	justify-content: space-between;
	width: 100%;
	margin: 0;
	padding: 1rem 0;
	border: 0;
	border-bottom: 1px solid #e6e6e6;
	background: transparent;
	color: #111;
	font-size: 1rem;
	font-weight: 400;
	text-align: left;
	cursor: pointer;
	line-height: 1.4;
}

.pa-sidebar-trigger:hover,
.pa-sidebar-trigger:focus {
	background: transparent;
	color: #111;
}

.pa-sidebar-chevron {
	display: inline-block;
	width: 0.45rem;
	height: 0.45rem;
	margin-left: 1rem;
	border-right: 1.5px solid #b0b0b0;
	border-bottom: 1.5px solid #b0b0b0;
	transform: rotate(-45deg);
	flex-shrink: 0;
}

.pa-sidebar-sources {
	display: none;
}

.pa-drawer[hidden] {
	display: none;
}

.pa-drawer {
	position: fixed;
	inset: 0;
	z-index: 100000;
}

.pa-drawer-overlay {
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, 0.4);
}

.pa-drawer-panel {
	position: absolute;
	top: 0;
	right: 0;
	display: flex;
	flex-direction: column;
	width: min(var(--pa-sidebar-width, 448px), 100%);
	height: 100%;
	background: #fff;
	box-shadow: -8px 0 24px rgba(0, 0, 0, 0.12);
	transform: translateX(100%);
	transition: transform 0.28s ease;
}

.pa-drawer.is-open .pa-drawer-panel {
	transform: translateX(0);
}

.pa-drawer-header {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 1rem;
	padding: 1.75rem 1.5rem 1rem;
	flex-shrink: 0;
}

.pa-drawer-title {
	margin: 0;
	font-size: 1.75rem;
	font-weight: 500;
	line-height: 1.2;
	color: #111;
}

.pa-drawer-close {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 2rem;
	height: 2rem;
	padding: 0;
	border: 0;
	background: transparent;
	color: #111;
	font-size: 1.75rem;
	line-height: 1;
	cursor: pointer;
}

.pa-drawer-body {
	padding: 0 1.5rem 2rem;
	overflow: auto;
	flex: 1 1 auto;
	color: #333;
	font-size: 0.95rem;
	line-height: 1.65;
}

.pa-drawer-body p:first-child {
	margin-top: 0;
}

body.pa-drawer-open {
	overflow: hidden;
}

@media (max-width: 600px) {
	.pa-drawer-panel {
		width: 100%;
	}
}
