.pdp-review-modal {
	--pdp-review-blue: #2550d8;
	--pdp-review-ink: #172f59;
	--pdp-review-muted: #a3a3a3;
	--pdp-review-line: #d4d4d4;
	position: fixed;
	inset: 0;
	z-index: 250;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 12px;
	font-family: inherit;
}

.pdp-review-modal[hidden] { display: none; }

.pdp-review-modal [hidden] { display: none !important; }
.pdp-review-modal__backdrop { position: absolute; inset: 0; background: rgba(23, 47, 89, .42); }
.pdp-review-modal__card {
	position: relative;
	z-index: 1;
	box-sizing: border-box;
	display: flex;
	flex-direction: column;
	width: 578px;
	height: 628.5px;
	max-width: 100%;
	max-height: calc(100vh - 24px);
	overflow: hidden;
	background: #fff;
	border: 1px solid #f5f5f5;
	border-radius: 12px;
	box-shadow: 0 18px 55px rgba(23, 47, 89, .2);
}

.pdp-review-modal__header {
	box-sizing: border-box;
	flex: 0 0 85.5px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 0 28px;
	background: #edf2ff;
	border-bottom: 1px solid #f5f5f5;
	border-radius: 12px 12px 0 0;
}

.pdp-review-modal__brand { display: none; }
.pdp-review-modal__header-title {
	margin: 0;
	color: #28261f;
	font-size: 16px;
	font-weight: 400;
	line-height: 22px;
}

.pdp-review-modal__close {
	width: 24px;
	height: 24px;
	flex: none;
	padding: 0;
	border: 0;
	background: transparent;
	color: #a3a3a3;
	cursor: pointer;
}
.pdp-review-modal__close svg { display: block; width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-width: 1.25; }
.pdp-review-modal__close:hover { color: var(--pdp-review-ink); }

.pdp-review-modal__body {
	box-sizing: border-box;
	display: flex;
	flex: 1 1 auto;
	min-height: 0;
	flex-direction: column;
	padding: 18px 28px 0;
	overflow-y: auto;
	color: var(--pdp-review-ink);
}

.pdp-review-modal__title { display: none; }
.pdp-review-modal__notice {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.pdp-review-modal__form {
	display: flex;
	flex: 1 1 auto;
	min-height: 0;
	flex-direction: column;
}
.pdp-review-modal__field { display: flex; flex-direction: column; align-items: stretch; gap: 5px; }
.pdp-review-modal__field:nth-of-type(1) { gap: 12px; margin-bottom: 23px; }
.pdp-review-modal__field:nth-of-type(2) { margin-bottom: 24px; }
.pdp-review-modal__field:nth-of-type(3) { margin-bottom: 31px; }
.pdp-review-modal__field:nth-of-type(4) { gap: 4px; }
.pdp-review-modal__label { font-size: 10px; line-height: 14px; font-weight: 600; }
.pdp-review-modal__optional { color: var(--pdp-review-muted); font-weight: 400; }

.pdp-review-modal__stars { display: flex; flex-direction: row-reverse; justify-content: flex-end; align-items: center; gap: 6px; height: 24px; }
.pdp-review-modal__star-input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.pdp-review-modal__star { width: 24px; height: 24px; color: #d4d4d4; font-size: 23px; line-height: 24px; cursor: pointer; transition: color .12s ease; }
.pdp-review-modal__star:hover,
.pdp-review-modal__star:hover ~ .pdp-review-modal__star,
.pdp-review-modal__star-input:checked ~ .pdp-review-modal__star { color: #f2c400; }
.pdp-review-modal__star-input:focus-visible + .pdp-review-modal__star { outline: 2px solid var(--pdp-review-blue); outline-offset: 2px; border-radius: 2px; }

.pdp-review-modal__input,
.pdp-review-modal__textarea {
	box-sizing: border-box;
	width: 100%;
	border: 1px solid var(--pdp-review-line);
	border-radius: 4px;
	background: #fff;
	color: var(--pdp-review-ink);
	font: inherit;
	font-size: 10px;
	line-height: 14px;
}
.pdp-review-modal__input { height: 38px; padding: 9px 12px; }
.pdp-review-modal__textarea { height: 90px; min-height: 90px; padding: 10px 12px; resize: none; }
.pdp-review-modal__input::placeholder,
.pdp-review-modal__textarea::placeholder { color: var(--pdp-review-muted); }
.pdp-review-modal__input:focus,
.pdp-review-modal__textarea:focus { outline: 2px solid rgba(37, 80, 216, .2); outline-offset: 0; border-color: var(--pdp-review-blue); }

.pdp-review-modal__upload {
	box-sizing: border-box;
	width: 100%;
	height: 107px;
	min-height: 107px;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 4px;
	padding: 12px;
	border: 2px dashed #d4d4d4;
	border-radius: 5px;
	background: #edf2ff;
	color: var(--pdp-review-blue);
	font: inherit;
	font-size: 10px;
	line-height: 14px;
	text-align: center;
	cursor: pointer;
}
.pdp-review-modal__upload:hover { border-color: var(--pdp-review-blue); }
.pdp-review-modal__upload-icon { width: 18px; height: 18px; fill: none; stroke: #a3a3a3; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.5; }
.pdp-review-modal__upload-title { color: var(--pdp-review-blue); text-decoration: underline; text-underline-offset: 2px; }
.pdp-review-modal__upload-help { color: #a3a3a3; font-size: 9px; line-height: 12px; }
.pdp-review-modal__photos { display: flex; flex-wrap: wrap; gap: 8px; }
.pdp-review-modal__photo { position: relative; display: block; width: 58px; height: 58px; overflow: hidden; border-radius: 4px; background: #edf2ff; }
.pdp-review-modal__photo img { display: block; width: 100%; height: 100%; object-fit: cover; }
.pdp-review-modal__photo button { position: absolute; top: 3px; right: 3px; width: 18px; height: 18px; padding: 0; border: 0; border-radius: 50%; background: rgba(23, 47, 89, .78); color: #fff; font-size: 14px; line-height: 18px; cursor: pointer; }

.pdp-review-modal__signin { margin: 0; padding: 14px; background: #f7f8fb; border-radius: 4px; color: #6f7f9b; font-size: 12px; line-height: 18px; }
.pdp-review-modal__signin a { color: var(--pdp-review-blue); font-weight: 600; }
.pdp-review-modal__error { margin: 8px 0 0; color: #b42318; font-size: 10px; line-height: 14px; }

.pdp-review-modal__footer {
	position: sticky;
	bottom: 0;
	z-index: 1;
	box-sizing: border-box;
	flex: 0 0 85px;
	background: #fff;
	display: flex;
	justify-content: flex-end;
	align-items: flex-start;
	gap: 16px;
	margin: auto -28px 0;
	padding: 16px 28px 24px;
	border-top: 1px solid rgba(102, 98, 87, .15);
}
.pdp-review-modal__button { box-sizing: border-box; height: 44px; padding: 0; font-family: inherit; font-size: 10px; font-weight: 400; line-height: 1; cursor: pointer; }
.pdp-review-modal__button--cancel { width: 38px; min-width: 38px; border: 0; border-bottom: 1px solid #b9c8e6; border-radius: 0; background: transparent; color: var(--pdp-review-ink); }
.pdp-review-modal__button--submit { width: 120px; min-width: 120px; border: 1px solid var(--pdp-review-blue); border-radius: 22px; background: var(--pdp-review-blue); color: #fff; }
.pdp-review-modal__button--submit:disabled { border-color: #b9c8e6; background: #b9c8e6; cursor: not-allowed; }

@media (max-width: 640px) {
	.pdp-review-modal { padding: 12px; }
	.pdp-review-modal__card { height: calc(100vh - 24px); }
	.pdp-review-modal__header { flex-basis: 72px; padding: 0 20px; }
	.pdp-review-modal__body { padding: 18px 20px 0; }
	.pdp-review-modal__footer { margin-left: -20px; margin-right: -20px; padding-left: 20px; padding-right: 20px; }
}
