/**
 * ImageZoomModal Styles
 * Full-screen image zoom modal with backdrop
 */

/* Overlay - Full screen backdrop */
.pg-image-zoom-overlay {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background-color: rgba(0, 0, 0, 0.9);
	z-index: 9999;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 20px;
	cursor: zoom-out;
	animation: pg-zoom-fade-in 0.2s ease-out;
}

/* Fade in animation */
@keyframes pg-zoom-fade-in {
	from {
		opacity: 0;
	}
	to {
		opacity: 1;
	}
}

/* Container */
.pg-image-zoom-container {
	position: relative;
	max-width: 90vw;
	max-height: 90vh;
	display: flex;
	align-items: center;
	justify-content: center;
}

/* Close button */
.pg-image-zoom-close {
	position: fixed;
	top: 20px;
	right: 20px;
	background: #000000;
	border: none;
	border-radius: 50%;
	width: 44px;
	height: 44px;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	color: #ffffff;
	transition: all 0.2s ease;
	z-index: 10000;
}

.pg-image-zoom-close:hover {
	background: #222222;
	transform: scale(1.1);
}

.pg-image-zoom-close:focus {
	outline: 2px solid white;
	outline-offset: 2px;
}

.pg-image-zoom-close:active {
	transform: scale(0.95);
}

/* Image */
.pg-image-zoom-image {
	max-width: 100%;
	max-height: 90vh;
	width: auto;
	height: auto;
	object-fit: contain;
	cursor: default;
	border-radius: 4px;
	box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
	animation: pg-zoom-scale-in 0.2s ease-out;
}

/* Scale in animation */
@keyframes pg-zoom-scale-in {
	from {
		opacity: 0;
		transform: scale(0.9);
	}
	to {
		opacity: 1;
		transform: scale(1);
	}
}

/* Loading spinner */
.pg-image-zoom-loading {
	display: flex;
	align-items: center;
	justify-content: center;
	min-width: 200px;
	min-height: 200px;
}

.pg-spinner {
	width: 50px;
	height: 50px;
	border: 4px solid rgba(255, 255, 255, 0.2);
	border-top-color: white;
	border-radius: 50%;
	animation: pg-spin 0.8s linear infinite;
}

@keyframes pg-spin {
	to {
		transform: rotate(360deg);
	}
}

/* Error message */
.pg-image-zoom-error {
	color: white;
	text-align: center;
	padding: 40px;
	font-size: 16px;
}

.pg-image-zoom-error p {
	margin: 0;
}

/* Mobile optimizations */
@media (max-width: 768px) {
	.pg-image-zoom-overlay {
		padding: 10px;
	}

	.pg-image-zoom-close {
		top: 12px;
		right: 12px;
		width: 40px;
		height: 40px;
	}

	.pg-image-zoom-container {
		max-width: 95vw;
		max-height: 95vh;
	}

	.pg-image-zoom-image {
		max-height: 85vh;
	}
}

/* Touch device optimizations */
@media (hover: none) and (pointer: coarse) {
	.pg-image-zoom-close {
		background: #000000;
	}
}

/* Reduce motion for accessibility */
@media (prefers-reduced-motion: reduce) {
	.pg-image-zoom-overlay,
	.pg-image-zoom-image {
		animation: none;
	}

	.pg-image-zoom-close {
		transition: none;
	}
}

/* ColorField Component Styles */

.pg-color-field {
	padding: 0 10px;
	margin-bottom: 16px;
}

.pg-field-header {
	display: flex;
	align-items: center;
	margin-bottom: 16px;
}

.pg-field-dot {
	display: inline-block;
	width: 12px;
	height: 12px;
	border: 4px solid rgb(19, 134, 112);
	border-radius: 50%;
	margin-right: 8px;
	flex-shrink: 0;
}

.pg-field-title {
	font-size: 13px;
	font-weight: 600;
	color: #000;
}

.pg-color-grid {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}

.pg-color-item {
	float: left;
}

.pg-color-item a {
	text-decoration: none;
	color: inherit;
	display: block;
}

.pg-color-item a.pg-disabled {
	cursor: not-allowed;
	opacity: 0.5;
}

.pg-color-box {
	width: 65px;
	height: 65px;
	border: 2px solid rgba(0, 0, 0, 0.5);
	border-radius: 5%;
	cursor: pointer;
	overflow: hidden;
	transition: border-color 0.2s ease;
}

.pg-color-box:hover:not(.pg-selected) {
	border-color: rgba(0, 0, 0, 0.7);
}

.pg-color-box.pg-selected {
	border-color: rgb(19, 134, 112);
	border-width: 2px;
}

.pg-color-box:focus {
	outline: none;
}

.pg-color-image {
	width: 61px;
	height: 61px;
	border-radius: 2.5%;
	object-fit: cover;
	display: block;
}

.pg-color-box.pg-selected .pg-color-image {
	width: 61px;
	height: 61px;
}

.pg-color-text {
	width: 65px;
	padding: 5px 0;
	text-align: center;
	font-size: 0.875rem;
	line-height: 1.25rem;
	font-weight: 400;
	color: #000;
	word-wrap: break-word;
}

/* Responsive */
@media (max-width: 768px) {
	.pg-color-box {
		width: 60px;
		height: 60px;
	}

	.pg-color-image {
		width: 56px;
		height: 56px;
	}

	.pg-color-box.pg-selected .pg-color-image {
		width: 54px;
		height: 54px;
	}

	.pg-color-text {
		width: 60px;
		font-size: 11px;
	}

	.pg-field-title {
		font-size: 12px;
	}
}

/* Zoomable image styles */
.pg-zoomable-image {
	cursor: zoom-in;
	transition: opacity 0.2s ease, transform 0.2s ease;
	display: block;
}

.pg-zoomable-image:hover {
	opacity: 0.8;
	transform: scale(1.05);
}

.pg-zoomable-image:focus {
	outline: 2px solid rgb(19, 134, 112);
	outline-offset: 2px;
}

/* Image wrapper for zoom functionality */
.pg-color-image-wrapper {
	position: relative;
	display: inline-block;
	line-height: 0;
}

/* SelectField Component Styles */

.pg-select-field {
	padding: 0 9px;
	margin-bottom: 14px;
}

.pg-field-description {
	color: #666;
	font-size: 11px;
	line-height: 1.4;
}

.pg-field-description-top {
	margin-bottom: 8px;
}

.pg-field-description-bottom {
	margin-top: 8px;
	margin-bottom: 0;
}

.pg-select-wrapper {
	display: flex;
	align-items: stretch;
}

.pg-select-label {
	width: 72px;
	min-width: 72px;
	background-color: #d1d5db;
	display: flex;
	align-items: center;
	justify-content: center;
	text-align: center;
	border-radius: 7px 0 0 7px !important;
	font-size: 12px;
	font-weight: 400;
	color: #000;
	padding: 0 9px;
}

.pg-select {
	flex: 1;
	width: 100%;
	padding: 0 14px;
	height: 36px;
	line-height: 36px;
	cursor: pointer;
	border: 2px solid rgba(0, 0, 0, 0.5);
	border-left: none;
	color: #000;
	font-weight: 400;
	font-size: 12px;
	background-color: #fff;
	background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2212%22%20height%3D%2212%22%20viewBox%3D%220%200%2012%2012%22%3E%3Ctitle%3Edown-arrow%3C%2Ftitle%3E%3Cg%20fill%3D%22%23000000%22%3E%3Cpath%20d%3D%22M10.293%2C3.293%2C6%2C7.586%2C1.707%2C3.293A1%2C1%2C0%2C0%2C0%2C.293%2C4.707l5%2C5a1%2C1%2C0%2C0%2C0%2C1.414%2C0l5-5a1%2C1%2C0-1.414-1.414Z%22%20fill%3D%22%23000000%22%3E%3C%2Fpath%3E%3C%2Fg%3E%3C%2Fsvg%3E");
	background-size: 0.6em;
	background-position: calc(100% - 1.3em) 50%;
	background-repeat: no-repeat;
	border-radius: 0 7px 7px 0 !important;
	appearance: none;
	-webkit-appearance: none;
	-moz-appearance: none;
	transition: border-color 0.2s ease;
}

.pg-select:hover:not(:disabled) {
	border-color: rgba(0, 0, 0, 0.7);
}

.pg-select:focus {
	outline: none;
	border-color: rgb(19, 134, 112);
}

.pg-select:disabled {
	cursor: not-allowed;
	opacity: 0.6;
	background-color: #f5f5f5;
}

.pg-select-error {
	border-color: red !important;
}

.pg-select-error:focus {
	border-color: red !important;
}

.pg-field-error {
	margin-top: 5px;
	padding: 5px;
	border: 1px dashed red;
	background-color: #efefef;
	border-radius: 4px;
	color: red;
	font-size: 11px;
	line-height: 1.4;
}

.pg-select-option {
	padding: 5px;
}

/* Responsive */
@media (max-width: 768px) {
	.pg-select {
		font-size: 11px;
	}

	.pg-select-label {
		width: 54px;
		min-width: 54px;
		font-size: 11px;
	}
}

/* NumberInputField Component Styles */

.pg-number-field {
	padding: 0 9px;
	margin-bottom: 14px;
}

.pg-field-description {
	margin-bottom: 8px;
	color: #666;
	font-size: 11px;
	line-height: 1.4;
}

.pg-number-input-wrapper {
	display: flex;
	align-items: stretch;
}

/* Label badge — matches .pg-select-label */
.pg-number-label {
	width: 72px;
	min-width: 72px;
	background-color: #d1d5db;
	display: flex;
	align-items: center;
	justify-content: center;
	text-align: center;
	border-radius: 7px 0 0 7px !important;
	font-size: 12px;
	font-weight: 400;
	color: #000;
	padding: 0 9px;
}

.pg-number-input {
	flex: 1;
	width: 100%;
	padding: 0 14px !important;
	height: 36px;
	line-height: 36px;
	border: 2px solid rgba(0, 0, 0, 0.5);
	border-left: none;
	border-radius: 0 7px 7px 0 !important;
	color: #000;
	font-weight: 400;
	font-size: 12px;
	text-align: left !important;
	transition: border-color 0.2s ease;
	background-color: #fff;
	-webkit-appearance: none;
	-moz-appearance: textfield;
	appearance: none;
}

.pg-number-input:hover:not(:disabled) {
	border-color: rgba(0, 0, 0, 0.7);
}

.pg-number-input:focus {
	outline: none;
	border-color: rgb(19, 134, 112);
}

.pg-number-input:disabled {
	cursor: not-allowed;
	opacity: 0.6;
	background-color: #f5f5f5;
}

.pg-number-input.pg-input-error {
	border-color: red;
}

.pg-number-input.pg-input-error:focus {
	border-color: red;
}

/* Hide default browser spinners */
.pg-number-input::-webkit-inner-spin-button,
.pg-number-input::-webkit-outer-spin-button {
	-webkit-appearance: none;
	margin: 0;
}

.pg-field-error {
	margin-top: 5px;
	padding: 5px;
	border: 1px dashed red;
	background-color: #efefef;
	border-radius: 4px;
	color: red;
	font-size: 11px;
	line-height: 1.4;
}

/* Responsive */
@media (max-width: 768px) {
	.pg-number-label {
		width: 54px;
		min-width: 54px;
		font-size: 11px;
	}

	.pg-number-input {
		font-size: 11px;
	}
}

/* SelectImageField Component Styles */

.pg-select-image-field {
	padding: 0 10px;
	margin-bottom: 16px;
}

.pg-field-header {
	display: flex;
	align-items: center;
	margin-bottom: 4px;
}

.pg-field-dot {
	display: inline-block;
	width: 12px;
	height: 12px;
	border: 4px solid rgb(19, 134, 112);
	border-radius: 50%;
	margin-right: 8px;
	flex-shrink: 0;
}

.pg-field-title {
	font-size: 13px;
	font-weight: 600;
	color: #000;
}

.pg-field-description {
	margin-bottom: 16px;
	color: #666;
	font-size: 12px;
	line-height: 1.4;
}

.pg-image-options {
	display: flex;
	flex-wrap: wrap;
	gap: 16px;
}

.pg-image-option {
	flex: 0 0 calc(50% - 8px);
	min-height: 70px;
	padding: 8px;
	border: 2px solid #e5e7eb;
	border-radius: 8px;
	background-color: rgba(237, 242, 247, 1);
	cursor: pointer;
	text-align: center;
	transition: all 0.2s ease;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 6px;
}

.pg-image-option:hover:not(.pg-disabled):not(.pg-selected) {
	background-color: #e7e5e4;
}

.pg-image-option:focus {
	outline: none;
}

.pg-image-option.pg-selected {
	border-color: rgb(19, 134, 112);
	background-color: rgba(237, 242, 247, 1);
}

.pg-image-option.pg-disabled {
	cursor: not-allowed;
	opacity: 0.5;
}

.pg-option-image {
	max-width: 100%;
	max-height: 50px;
	object-fit: contain;
}

.pg-option-name {
	font-size: 0.875rem;
	line-height: 1.25rem;
	font-weight: 400;
	color: #000;
	word-wrap: break-word;
}

/* Responsive */
@media (max-width: 768px) {
	.pg-image-option {
		flex: 0 0 100%;
	}

	.pg-field-title {
		font-size: 12px;
	}

	.pg-option-name {
		font-size: 11px;
	}
}

@media (min-width: 769px) and (max-width: 1024px) {
	.pg-image-option {
		flex: 0 0 calc(50% - 8px);
	}
}

/* Zoomable image styles */
.pg-zoomable-image {
	cursor: zoom-in;
	transition: opacity 0.2s ease, transform 0.2s ease;
	display: block;
}

.pg-zoomable-image:hover {
	opacity: 0.8;
	transform: scale(1.05);
}

.pg-zoomable-image:focus {
	outline: 2px solid rgb(19, 134, 112);
	outline-offset: 2px;
}

/* Image wrapper for zoom functionality */
.pg-option-image-wrapper {
	position: relative;
	display: inline-block;
	line-height: 0;
}

/* Option description box */
.pg-option-description {
	margin-top: 14px;
	padding: 9px 12px;
	background: rgba(237, 242, 247, 1);
	border: 1px dashed rgba(19, 134, 112, 0.4);
	border-radius: 7px;
	font-size: 11px;
	line-height: 1.4;
	color: #333;
	position: relative;
	padding-left: 32px;
	animation: fadeIn 0.2s ease-in;
}

.pg-option-description::before {
	content: "ℹ";
	position: absolute;
	left: 12px;
	top: 50%;
	transform: translateY(-50%);
	width: 16px;
	height: 16px;
	background: rgb(19, 134, 112);
	color: #fff;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 12px;
	font-weight: bold;
	line-height: 1;
}

@keyframes fadeIn {
	from {
		opacity: 0;
		transform: translateY(-4px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

/* RadioInputField Component Styles */

.pg-radio-field {
	padding: 0 9px;
	margin-bottom: 14px;
}

.pg-field-header {
	display: flex;
	align-items: center;
	margin-bottom: 4px;
}

.pg-field-dot {
	display: inline-block;
	width: 11px;
	height: 11px;
	border: 4px solid rgb(19, 134, 112);
	border-radius: 50%;
	margin-right: 7px;
	flex-shrink: 0;
}

.pg-field-title {
	font-size: 12px;
	font-weight: 600;
	color: #000;
}

.pg-field-description {
	margin-bottom: 14px;
	color: #666;
	font-size: 11px;
	line-height: 1.4;
}

.pg-radio-options {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 14px;
}

.pg-radio-error {
	border: 2px solid red;
	border-radius: 4px;
	padding: 5px;
}

.pg-field-error {
	margin-top: 5px;
	padding: 5px;
	border: 1px dashed red;
	background-color: #efefef;
	border-radius: 4px;
	color: red;
	font-size: 11px;
	line-height: 1.4;
}

.pg-field-warning {
	margin-top: 5px;
	padding: 5px;
	border: 1px dashed #f59e0b;
	background-color: #fef3c7;
	border-radius: 4px;
	color: #92400e;
	font-size: 11px;
	line-height: 1.4;
}

.pg-radio-option-wrapper {
	width: 100%;
}

.pg-radio-option {
	display: flex;
	align-items: stretch;
	min-height: 47px;
	padding: 0;
	cursor: pointer;
	border: 2px solid #e5e7eb;
	border-radius: 7px;
	background-color: rgba(237, 242, 247, 1);
	overflow: hidden;
	transition: all 0.2s ease;
	position: relative;
}

.pg-radio-option:hover:not(.pg-disabled):not(.pg-selected) {
	background-color: #e7e5e4;
}

.pg-radio-option:focus {
	outline: none;
}

.pg-radio-option.pg-selected {
	border-color: rgb(19, 134, 112);
	background-color: rgba(237, 242, 247, 1);
}

.pg-radio-option.pg-disabled {
	cursor: not-allowed;
	opacity: 0.5;
}

.pg-radio-image {
	width: 47px;
	height: 100%;
	min-height: 47px;
	object-fit: cover;
	object-position: center;
	margin: 0;
	padding: 0;
	display: block;
	flex-shrink: 0;
	border-radius: 7px 0 0 7px;
}

.pg-radio-content {
	flex: 1;
	display: flex;
	flex-direction: column;
	justify-content: center;
	min-width: 0;
	min-height: 32px;
	padding: 7px 9px;
}

/* Görseli olmayan seçenekler için sol padding ekle - artık gerek yok, her durumda padding var */

.pg-radio-text {
	font-weight: 400;
	font-size: 0.875rem;
	line-height: 1.25rem;
	color: #000;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.pg-radio-text.pg-text-selected {
	color: rgb(19, 134, 112);
}

.pg-radio-price-info {
	font-size: 0.75rem;
	line-height: 1rem;
	font-weight: 700;
	color: #666;
	margin-top: 2px;
}

.pg-radio-indicator {
	position: absolute;
	right: 9px;
	top: 50%;
	transform: translateY(-50%);
	width: 9px;
	height: 9px;
	border-radius: 50%;
	background-color: #fff;
	border: 2px solid rgb(19, 134, 112);
	flex-shrink: 0;
}

/* Responsive */
@media (max-width: 768px) {
	.pg-radio-options {
		grid-template-columns: 1fr;
	}

	.pg-radio-option {
		min-height: 48px;
		padding: 0;
	}

	.pg-radio-image {
		width: 48px;
		height: 48px;
	}

	.pg-field-title {
		font-size: 12px;
	}

	.pg-radio-text {
		font-size: 12px;
	}
}

@media (min-width: 769px) and (max-width: 1024px) {
	.pg-radio-options {
		grid-template-columns: repeat(2, 1fr);
	}
}

/* Zoomable image styles */
.pg-zoomable-image {
	cursor: zoom-in;
	transition: opacity 0.2s ease, transform 0.2s ease;
	display: block;
}

.pg-zoomable-image:hover {
	opacity: 0.8;
	transform: scale(1.05);
}

.pg-zoomable-image:focus {
	outline: 2px solid rgb(19, 134, 112);
	outline-offset: 2px;
}

/* Image wrapper for zoom functionality */
.pg-radio-image-wrapper {
	position: relative;
	display: inline-block;
	line-height: 0;
}

/* Option description box */
.pg-option-description {
	margin-top: 14px;
	padding: 9px 12px;
	background: rgba(237, 242, 247, 1);
	border: 1px dashed rgba(19, 134, 112, 0.4);
	border-radius: 7px;
	font-size: 11px;
	line-height: 1.4;
	color: #333;
	position: relative;
	padding-left: 32px;
	animation: fadeIn 0.2s ease-in;
}

.pg-option-description::before {
	content: "ℹ";
	position: absolute;
	left: 12px;
	top: 50%;
	transform: translateY(-50%);
	width: 16px;
	height: 16px;
	background: rgb(19, 134, 112);
	color: #fff;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 12px;
	font-weight: bold;
	line-height: 1;
}

@keyframes fadeIn {
	from {
		opacity: 0;
		transform: translateY(-4px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

/* SmallRadioInputField Component Styles */

.pg-small-radio-field {
	padding: 0 10px;
	margin-bottom: 16px;
}

.pg-field-header {
	display: flex;
	align-items: center;
	margin-bottom: 4px;
}

.pg-field-dot {
	display: inline-block;
	width: 12px;
	height: 12px;
	border: 4px solid rgb(19, 134, 112);
	border-radius: 50%;
	margin-right: 8px;
	flex-shrink: 0;
}

.pg-field-title {
	font-size: 13px;
	font-weight: 600;
	color: #000;
}

.pg-field-description {
	margin-bottom: 16px;
	color: #666;
	font-size: 12px;
	line-height: 1.4;
}

.pg-small-radio-options {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}

.pg-small-radio-option {
	padding: 8px 14px;
	cursor: pointer;
	border: 2px solid #e5e7eb;
	border-radius: 8px;
	background-color: rgba(237, 242, 247, 1);
	transition: all 0.2s ease;
	min-height: 40px;
	display: flex;
	align-items: center;
	justify-content: center;
}

.pg-small-radio-option:hover:not(.pg-disabled):not(.pg-selected) {
	background-color: #e7e5e4;
}

.pg-small-radio-option:focus {
	outline: none;
}

.pg-small-radio-option.pg-selected {
	border-color: rgb(19, 134, 112);
	background-color: rgba(237, 242, 247, 1);
}

.pg-small-radio-option.pg-disabled {
	cursor: not-allowed;
	opacity: 0.5;
}

.pg-small-radio-text {
	font-weight: 400;
	font-size: 0.875rem;
	line-height: 1.25rem;
	color: #000;
}

.pg-small-radio-option.pg-selected .pg-small-radio-text {
	color: rgb(19, 134, 112);
}

/* Responsive */
@media (max-width: 768px) {
	.pg-small-radio-option {
		padding: 6px 10px;
		min-height: 36px;
	}

	.pg-small-radio-text {
		font-size: 12px;
	}

	.pg-field-title {
		font-size: 12px;
	}
}

/* Option description box */
.pg-option-description {
	margin-top: 14px;
	padding: 9px 12px;
	background: rgba(237, 242, 247, 1);
	border: 1px dashed rgba(19, 134, 112, 0.4);
	border-radius: 7px;
	font-size: 11px;
	line-height: 1.4;
	color: #333;
	position: relative;
	padding-left: 32px;
	animation: fadeIn 0.2s ease-in;
}

.pg-option-description::before {
	content: "ℹ";
	position: absolute;
	left: 12px;
	top: 50%;
	transform: translateY(-50%);
	width: 16px;
	height: 16px;
	background: rgb(19, 134, 112);
	color: #fff;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 12px;
	font-weight: bold;
	line-height: 1;
}

@keyframes fadeIn {
	from {
		opacity: 0;
		transform: translateY(-4px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

/* GuaranteeRangeField Component Styles */

.pg-guarantee-field {
	padding: 0 10px;
	margin-bottom: 16px;
}

.pg-guarantee-alert {
	margin-top: 15px;
	background-color: #FEC260;
	padding: 15px;
	border-radius: 7px;
	display: flex;
	align-items: flex-start;
	gap: 12px;
	border: 2px solid #F5A623;
	box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.pg-guarantee-icon {
	flex-shrink: 0;
	width: 24px;
	height: 24px;
	color: #8B5A00;
	margin-top: 2px;
}

.pg-guarantee-alert strong {
	flex: 1;
	color: #000;
	font-size: 14px;
	line-height: 1.5;
	font-weight: 600;
}

/* Animation for when alert appears */
@keyframes slideDown {
	from {
		opacity: 0;
		transform: translateY(-10px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

.pg-guarantee-alert {
	animation: slideDown 0.3s ease-out;
}

/* Responsive */
@media (max-width: 768px) {
	.pg-guarantee-alert {
		padding: 12px;
		gap: 10px;
	}

	.pg-guarantee-icon {
		width: 20px;
		height: 20px;
	}

	.pg-guarantee-alert strong {
		font-size: 13px;
	}
}

/**
 * Form Component Styles
 *
 * Styles for the main form container and layout.
 */

.variations_form.cart {
  margin: 0;
  padding: 0;
}

.variations_form {
  width: 100%;
}

/* Row Layout */
.variations_form .row {
  display: flex;
  flex-wrap: wrap;
  margin: 0 -9px;
}

.variations_form .row > * {
  padding: 0 9px;
}

/* Column Sizes */
.col-12 {
  flex: 0 0 100%;
  max-width: 100%;
}

.col-6 {
  flex: 0 0 50%;
  max-width: 50%;
}

.col-4 {
  flex: 0 0 33.333333%;
  max-width: 33.333333%;
}

.col-3 {
  flex: 0 0 25%;
  max-width: 25%;
}

/* Variations Item */
.variations-item {
  margin-bottom: 9px;
}

/* Field Base Styles */
.pg-field {
  width: 100%;
}

.pg-field-label {
  margin-bottom: 7px;
}

.pg-field-label label {
  font-size: 14px;
  font-weight: 600;
  color: #333;
  display: inline-block;
}

.pg-label-separator {
  color: #999;
  font-weight: 400;
}

.pg-field-description {
  margin-top: 4px;
  margin-bottom: 7px;
}

.pg-field-description small {
  font-size: 12px;
  color: #666;
  line-height: 1.4;
}

/* Field Error State */
.pg-field.has-error .pg-field-label label {
  color: #c33;
}

.pg-field-error {
  margin-top: 6px;
  padding: 8px 12px;
  background-color: #fee;
  border: 1px solid #fcc;
  border-radius: 4px;
  color: #c33;
  font-size: 13px;
}

/* Field Success State */
.pg-field.has-success .pg-field-label label {
  color: #27ae60;
}

/* Designer Field */
.pg-field-designer {
  padding: 20px;
  background-color: #f9f9f9;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
}

/* Responsive Design */
@media (max-width: 992px) {
  .col-6 {
    flex: 0 0 100%;
    max-width: 100%;
  }

  .col-4 {
    flex: 0 0 50%;
    max-width: 50%;
  }
}

@media (max-width: 768px) {
  .variations_form .row {
    margin: 0 -5px;
  }

  .variations_form .row > * {
    padding: 0 5px;
  }

  .variations-item {
    margin-bottom: 16px;
  }

  .col-3,
  .col-4 {
    flex: 0 0 100%;
    max-width: 100%;
  }
}

@media (max-width: 480px) {
  .pg-field-designer {
    padding: 15px;
  }

  .pg-field-label label {
    font-size: 14px;
  }

  .pg-field-description small {
    font-size: 12px;
  }
}

.pg-quantity-select-wrapper {
	display: block;
	width: 100%;
}

.pg-quantity-select {
	width: 100%;
	min-height: 47px;
	padding: 7px 9px;
	border: 2px solid #e5e7eb !important;
	border-radius: 4px !important;
	background-color: rgba(237, 242, 247, 1) !important;
	font-size: 0.875rem;
	font-weight: 400;
	color: #000;
	cursor: pointer;
	transition: all 0.2s ease;
	appearance: none;
	background-image: url("data:image/svg+xml,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 width=%2712%27 height=%2712%27 viewBox=%270 0 12 12%27%3E%3Cpath fill=%27%23666%27 d=%27M6 9L1 4h10z%27/%3E%3C/svg%3E") !important;
	background-repeat: no-repeat !important;
	background-position: right 9px center !important;
	padding-right: 30px;
}

.pg-quantity-select:hover {
	background-color: rgba(237, 242, 247, 1) !important;
	border-color: #d1d5db !important;
}

.pg-quantity-select:focus {
	outline: none;
	border-color: rgb(19, 134, 112) !important;
	background-color: rgba(237, 242, 247, 1) !important;
}

/* Quantity Field with +/- buttons */
.pg-quantity-field {
	width: 100%;
	margin-bottom: 20px;
	margin-left: 10px;
}

.pg-quantity-wrapper {
	display: flex;
	align-items: center;
	gap: 0;
	width: fit-content;
	border-radius: 8px;
	overflow: hidden;
}

.pg-quantity-btn {
	width: 40px;
	height: 47px;
	border: 2px solid #e5e7eb;
	background-color: #dde1e6 !important;
	color: #000;
	font-size: 1.25rem;
	font-weight: 600;
	cursor: pointer;
	transition: all 0.2s ease;
	display: flex;
	align-items: center;
	justify-content: center;
}

.pg-quantity-btn:hover:not(:disabled) {
	background-color: #c9cdd2 !important;
	border-color: #9ca3af;
}

.pg-quantity-btn:disabled {
	opacity: 0.5;
	cursor: not-allowed;
}

.pg-quantity-decrease {
	border-right: none;
}

.pg-quantity-increase {
	border-left: none;
}

.pg-quantity-wrapper .pg-quantity-select {
	min-width: 120px;
	height: 47px;
	padding: 7px 30px 7px 15px;
	border: 2px solid #e5e7eb;
	background-color: #ffffff !important;
	font-size: 0.875rem;
	font-weight: 400;
	color: #000;
	cursor: pointer;
	appearance: none;
	background-image: url("data:image/svg+xml,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 width=%2712%27 height=%2712%27 viewBox=%270 0 12 12%27%3E%3Cpath fill=%27%23666%27 d=%27M6 9L1 4h10z%27/%3E%3C/svg%3E") !important;
	background-repeat: no-repeat !important;
	background-position: right 12px center !important;
	border-radius: 0 !important;
}

.pg-quantity-wrapper .pg-quantity-select:hover {
	background-color: #ffffff !important;
}

.pg-quantity-wrapper .pg-quantity-select:focus {
	outline: none;
	border-color: rgb(19, 134, 112) !important;
	background-color: #ffffff !important;
}

/* Responsive */
@media (max-width: 768px) {
	.pg-quantity-field {
		margin-left: 10px;
	}

	.pg-quantity-wrapper {
		border-radius: 20px;
	}

	.pg-quantity-btn {
		width: 36px;
		height: 48px;
		font-size: 1.125rem;
	}

	.pg-quantity-wrapper .pg-quantity-select {
		min-width: 100px;
		height: 48px;
		font-size: 12px;
	}
}

/**
 * Buy Component Styles
 *
 * Styles for price display and add to cart button.
 * Price on left, button on right.
 */

.pg-buy-component {
  position: sticky;
  bottom: 0;
  margin-top: 0;
  margin-left: -18px;
  margin-right: -18px;
  margin-bottom: -18px;
  padding: 14px 27px;
  background-color: rgba(237, 242, 247, 1);
  border-radius: 0 0 7px 7px;
  z-index: 10;
  box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.1);
}

/* Grid Layout */
.pg-buy-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 14px;
  align-items: center;
}

/* Price Section */
.pg-price-section {
  grid-column: span 5;
  display: flex;
  align-items: center;
  padding-right: 11px;
}

.pg-price-display {
  white-space: nowrap;
}

.pg-price-link {
  font-size: 18px;
  font-weight: 600;
  color: #000;
  text-decoration: none;
  transition: color 0.2s ease;
}

.pg-price-link:hover {
  color: rgb(19, 134, 112);
}

.pg-price-loading {
  font-size: 14px;
  color: #666;
  font-style: italic;
}

/* Add to Cart Button Section */
.pg-button-section {
  grid-column: span 7;
}

.pg-add-to-cart-btn {
  width: 100%;
  height: 43px;
  background-color: var(--btn-accented-bgcolor) !important;
  color: #fff !important;
  border: none !important;
  border-radius: 7px !important;
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: 13px !important;
  font-weight: 500 !important;
  text-transform: none !important;
  padding: 0 14px !important;
  min-height: 43px !important;
}

.pg-add-to-cart-btn:hover:not(:disabled) {
  background-color: var(--btn-accented-bgcolor-hover, var(--btn-accented-bgcolor));
  filter: brightness(0.9);
}

.pg-add-to-cart-btn:disabled {
  background-color: #9ca3af;
  cursor: not-allowed;
  opacity: 0.6;
}

.pg-btn-content {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.pg-cart-icon {
  display: inline-block;
  width: 18px;
  height: 18px;
  margin-right: 7px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 fill=%27none%27 viewBox=%270 0 24 24%27 stroke=%27white%27%3E%3Cpath stroke-linecap=%27round%27 stroke-linejoin=%27round%27 stroke-width=%272%27 d=%27M3 3h2l.4 2M7 13h10l4-8H5.4M7 13L5.4 5M7 13l-2.293 2.293c-.63.63-.184 1.707.707 1.707H17m0 0a2 2 0 100 4 2 2 0 000-4zm-8 2a2 2 0 11-4 0 2 2 0 014 0z%27/%3E%3C/svg%3E");
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
}

.pg-btn-text {
  font-size: 11px;
}

/* Cart Error */
.pg-cart-error {
  margin-top: 14px;
  padding: 11px;
  background-color: #fee;
  border: 1px solid #fcc;
  border-radius: 7px;
  color: #c33;
  font-size: 13px;
  text-align: center;
}

/* Responsive Design */
@media (min-width: 640px) {
  .pg-price-section {
    grid-column: span 4;
  }

  .pg-button-section {
    grid-column: span 8;
  }

  .pg-btn-text {
    font-size: 13px;
  }
}

@media (min-width: 1024px) {
  .pg-price-section {
    grid-column: span 5;
  }

  .pg-button-section {
    grid-column: span 7;
  }
}

@media (min-width: 1280px) {
  .pg-price-section {
    grid-column: span 4;
  }

  .pg-button-section {
    grid-column: span 8;
  }
}

@media (max-width: 639px) {
  .pg-buy-grid {
    gap: 11px;
  }

  .pg-price-link {
    font-size: 16px;
  }

  .pg-add-to-cart-btn {
    height: 40px;
  }
}

.pg-designer {
  padding: 1rem 0;
  overflow: hidden;
  min-width: 0;
  width: 100%;
  box-sizing: border-box;
}

/* Palette */
.pg-designer__palette {
  margin-bottom: 1rem;
}

.pg-designer__series {
  padding: 0.75rem 0;
  border-top: 1px dashed #e2e8f0;
  margin-top: 0.5rem;
}

.pg-designer__series:first-child {
  border-top: none;
  margin-top: 0;
}

.pg-designer__series-name {
  font-size: 0.875rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 0.25rem;
}

.pg-designer__series-desc {
  font-size: 0.75rem;
  color: #718096;
  text-align: center;
  margin-bottom: 0.5rem;
}

.pg-designer__colors {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  list-style: none;
  margin: 0;
  padding: 0;
}

.pg-designer__color {
  width: 40px;
  height: 40px;
  margin: 0.3rem;
  border-radius: 0.25rem;
  border: 3px solid transparent;
  cursor: pointer;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 0.2rem;
  background-size: 100% 100%;
  background-position: center;
  transition: transform 0.1s ease;
}

.pg-designer__color:hover {
  transform: scale(1.1);
}

.pg-designer__color--picked {
  border-color: inherit !important;
  transform: scale(1.15);
}

.pg-designer__color-label {
  font-size: 0.45rem;
  line-height: 1.2;
  text-align: center;
  width: 100%;
  font-weight: 700;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

/* Slides */
.pg-designer__slides {
  display: grid;
  width: 100%;
  box-sizing: border-box;
  list-style: none;
  margin: 1rem 0;
  padding: 0.5rem 0.75rem 0.75rem;
  position: relative;
}

.pg-designer__slides::before {
  content: '';
  display: block;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 0.5rem;
  background-color: #4a5568;
  border-radius: 0.5rem;
}

.pg-designer__slide {
  min-width: 0;
  height: 175px;
  border: 1px solid #ccc;
  border-right: none;
  border-bottom-left-radius: 0.75rem;
  border-bottom-right-radius: 0.75rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.65rem;
  background-size: 75px 75px;
  background-position: top;
  background-repeat: repeat;
  transition: opacity 0.15s ease;
}

.pg-designer__slide:last-child {
  border-right: 1px solid #ccc;
}

.pg-designer__slide:hover {
  opacity: 0.85;
}

.pg-designer__slide--empty {
  background: repeating-linear-gradient(
    45deg,
    #ddd,
    #ddd 2px,
    #fff 0,
    #fff 10px
  );
}

/* Color Summary */
.pg-designer__summary {
  text-align: center;
  font-size: 0.75rem;
  color: #4a5568;
  margin: 0.75rem 0;
  padding: 0.5rem;
  background-color: #f7fafc;
  border-radius: 0.375rem;
}

/* Controls */
.pg-designer__controls {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 1rem;
}

.pg-designer__btn {
  border-radius: 0.375rem;
  cursor: pointer;
  font-weight: 500;
  font-size: 13px;
  padding: 0.4rem 0.75rem;
  border: none;
  font-family: inherit;
}

.pg-designer__btn--sym-active {
  background-color: #6ee7b7;
}

.pg-designer__btn--sym-passive {
  background-color: #fca5a5;
}

.pg-designer__btn--reset {
  background-color: #edf2f7;
}

/* Tooltip */
.pg-designer__tooltip {
  font-size: 0.75rem;
  max-width: 200px;
  z-index: 9999;
}

/**
 * Perde Gelsin Form - Main Styles
 *
 * This is the main stylesheet for the React form application.
 * All component-specific styles will be imported here.
 */

/* Reset and Base Styles */
.pg-form-container {
  font-family: 'Source Sans Pro', sans-serif;
  font-size: 16px;
  line-height: 1.5;
  color: #333;
  box-sizing: border-box;
}

.pg-form-container *,
.pg-form-container *::before,
.pg-form-container *::after {
  box-sizing: inherit;
}

/* Container */
.pg-form-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}

/* App Component */
.pg-app-component {
  width: 100%;
  border: 1px solid #d1d5db;
  border-radius: 7px;
  padding: 18px;
}

.pg-app-loading {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 300px;
  padding: 40px;
}

.pg-app-loading p {
  font-size: 18px;
  color: #666;
  margin: 0;
}

.pg-app-error {
  padding: 20px;
  background-color: #fee;
  border: 2px solid #fcc;
  border-radius: 8px;
  margin: 20px 0;
}

.pg-app-error p {
  color: #c33;
  font-size: 16px;
  margin: 0;
  font-weight: 600;
}

/* Loading State */
.pg-loading {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 200px;
}

.pg-loading-spinner {
  border: 4px solid #f3f3f3;
  border-top: 4px solid #3498db;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  animation: pg-spin 1s linear infinite;
}

@keyframes pg-spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Error State */
.pg-error {
  background-color: #fee;
  border: 1px solid #fcc;
  border-radius: 4px;
  padding: 15px;
  margin: 10px 0;
  color: #c33;
}

.pg-price-error {
  margin-top: 15px;
  padding: 12px;
  background-color: #fee;
  border: 1px solid #fcc;
  border-radius: 4px;
}

.pg-price-error p {
  color: #c33;
  font-size: 14px;
  margin: 0;
}

/* Success State */
.pg-success {
  background-color: #efe;
  border: 1px solid #cfc;
  border-radius: 4px;
  padding: 15px;
  margin: 10px 0;
  color: #3c3;
}

/* Utility Classes */
.pg-hidden {
  display: none !important;
}

.pg-text-center {
  text-align: center;
}

.pg-text-left {
  text-align: left;
}

.pg-text-right {
  text-align: right;
}

/* Margin Utilities */
.pg-mt-1 { margin-top: 0.5rem; }
.pg-mt-2 { margin-top: 1rem; }
.pg-mt-3 { margin-top: 1.5rem; }
.pg-mt-4 { margin-top: 2rem; }

.pg-mb-1 { margin-bottom: 0.5rem; }
.pg-mb-2 { margin-bottom: 1rem; }
.pg-mb-3 { margin-bottom: 1.5rem; }
.pg-mb-4 { margin-bottom: 2rem; }

.pg-ml-1 { margin-left: 0.5rem; }
.pg-ml-2 { margin-left: 1rem; }
.pg-ml-3 { margin-left: 1.5rem; }
.pg-ml-4 { margin-left: 2rem; }

.pg-mr-1 { margin-right: 0.5rem; }
.pg-mr-2 { margin-right: 1rem; }
.pg-mr-3 { margin-right: 1.5rem; }
.pg-mr-4 { margin-right: 2rem; }

/* Padding Utilities */
.pg-pt-1 { padding-top: 0.5rem; }
.pg-pt-2 { padding-top: 1rem; }
.pg-pt-3 { padding-top: 1.5rem; }
.pg-pt-4 { padding-top: 2rem; }

.pg-pb-1 { padding-bottom: 0.5rem; }
.pg-pb-2 { padding-bottom: 1rem; }
.pg-pb-3 { padding-bottom: 1.5rem; }
.pg-pb-4 { padding-bottom: 2rem; }

/* Responsive Utilities */
@media (max-width: 768px) {
  .pg-form-container {
    padding: 15px;
  }

  .pg-app-loading {
    min-height: 200px;
    padding: 30px;
  }

  .pg-app-loading p {
    font-size: 16px;
  }
}

@media (max-width: 480px) {
  .pg-form-container {
    padding: 10px;
  }

  .pg-app-loading {
    min-height: 150px;
    padding: 20px;
  }

  .pg-app-loading p {
    font-size: 14px;
  }
}


