.page-template-tmpl-create-jewelry {
	background: #f4f4f2
}

.trg {
	font-family: "Open Sans", sans-serif
}

.trg-wrapper {
	max-width: 848px;
	margin: 0 auto;
	background: #fff;
	border: 1px solid #e9e9ee;
	border-radius: 16px;
	padding: 24px
}

.trg-title {
	margin: 0 0 40px;
	text-align: center;
	font-weight: 400;
	font-style: italic;
	font-size: 28px !important;
	line-height: 1.2;
	letter-spacing: 0
}

@media (max-width: 550px) {
	.trg-title {
		font-size: 20px !important;
	}
}

@media screen and (min-width: 1024px) {
	.trg-title {
		font-size: 40px
	}
}

.trg-subtitle {
	text-align: center;
	color: #686970;
	margin: 0 0 24px;
	font-weight: 400;
	font-size: 16px;
	line-height: 1.5;
	letter-spacing: 0
}

.trg-field {
	display: flex;
	flex-direction: column
}

.trg-textarea {
	width: 100%;
	min-height: 128px
}

.trg-counter {
	font-weight: 400;
	font-size: 14px;
	line-height: 1.4;
	letter-spacing: 0;
	text-align: right;
	color: #686970;
	margin-top: 8px
}

.trg-actions {
	display: flex;
	flex-direction: column-reverse;
	gap: 12px;
	margin-top: 20px
}

.trg-text {
	text-align: center;
	color: #686970;
}

@media screen and (min-width: 768px) {
	.trg-wrapper {
		padding: 32px
	}

	.trg-text {
		margin-bottom: 40px;
	}

	.trg-subtitle {
		margin-bottom: 0;
	}

	.trg-actions {
		display: grid;
		grid-template-columns:repeat(2, 1fr)
	}
}

.trg-btn {
	font-size: 16px;
	padding: 16px;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	max-height: 51px;
}

.page-create-design
.trg-btn--primary {
	background-color: #5E503F !important;
	color: #fff !important;
}


.trg-btn--download {
	font-weight: 600;
	font-size: 16px;
	line-height: 1.2;
	letter-spacing: 0;
	padding: 16px 32px
}

.trg-btn--wide {
	width: 100%
}

.trg-icon {
	display: flex;
	align-items: center
}

.trg-icon--mic {
	padding-right: 10px
}

.trg-patterns {
	margin-top: 40px
}

.trg-hint {
	font-weight: 400;
	font-style: italic;
	font-size: 22px;
	line-height: 1.2;
	letter-spacing: 0;
	text-align: center;
	margin: 0 0 20px;
	color: #18181a
}

.trg-presets {
	display: grid;
	grid-template-columns:1fr;
	gap: 12px
}

@media screen and (min-width: 768px) {
	.trg-hint {
		font-size: 24px;
		line-height: 1.3
	}

	.trg-presets {
		grid-template-columns:repeat(2, minmax(0, 1fr))
	}
}

.trg-preset {
	display: flex;
	align-items: center;
	gap: 12px;
	border: 1px solid #e9e9ee;
	background: #f5f6fa;
	border-radius: 8px;
	padding: 8px 16px;
	text-align: left;
	cursor: pointer
}

.trg-preset__icon {
	width: 16px;
	height: 16px
}

.trg-preset__text {
	padding: 12px 0;
	color: #18181a;
	font-weight: 400;
	font-size: 14px;
	line-height: 1.4;
	letter-spacing: 0
}

.trg-options-wrapper {
	margin-top: 40px
}

.trg-options__title {
	font-weight: 400;
	font-style: italic;
	font-size: 22px;
	line-height: 1.2;
	letter-spacing: 0;
	text-align: center;
	margin-bottom: 20px
}

.trg-options__group {
	display: flex;
	flex-direction: column;
	gap: 16px
}

.trg-options__group-title {
	font-weight: 600;
	font-size: 16px;
	line-height: 1.5;
	letter-spacing: 0;
	font-style: normal;
	padding-bottom: 11px;
	border-bottom: 1px solid #e9e9ee
}

.trg-options__group + .trg-options__group {
	margin-top: 24px
}

.trg-options__group--sizes {
	margin-bottom: 40px
}

.trg-options__grid {
	display: grid;
	gap: 12px;
	grid-template-columns:repeat(2, 1fr)
}

.trg-options__item {
	border: 1px solid #e9e9ee;
	background: #fff;
	border-radius: 8px
}

.trg-options__item-inner {
	padding: 8px 16px;
	display: flex;
	align-items: center;
	justify-content: flex-start;
	gap: 8px
}

.trg-options__item--size .trg-options__item-inner {
	flex-direction: column;
	align-items: flex-start;
	gap: 4px
}

.trg-options__icon {
	background: #f9f9f8;
	width: 40px;
	height: 40px
}

.trg-options__icon img {
	width: 40px;
	height: 40px
}

.trg-options__label {
	font-weight: 400;
	font-size: 14px;
	line-height: 1.4;
	letter-spacing: 0;
	color: #18181a
}

.trg-options__sub {
	font-weight: 400;
	font-size: 12px;
	line-height: 1.4;
	letter-spacing: 0
}

.trg-options__notice {
	background: #e4e7e1;
	border-radius: 8px;
	padding: 16px;
	display: flex;
	gap: 12px;
	align-items: flex-start
}

.trg-options__notice-icon {
	width: 16px;
	height: 16px
}

.trg-options__notice-icon svg {
	width: 16px;
	height: 15px
}

.trg-options__notice-text {
	font-weight: 400;
	font-size: 14px;
	line-height: 1.4;
	letter-spacing: 0;
	color: #18181a
}

.trg-status {
	margin-top: 12px;
	text-align: center;
	color: #666;
	font-size: 14px
}

.trg-progress {
	height: 14px;
	border-radius: 8px;
	background: #f5f6fa;
	border: 1px solid #e9e9ee;
	margin: 0 0 40px
}

.trg-progress__bar {
	height: 100%;
	background: #d2d7cd;
	border-radius: 8px;
	width: 0;
	position: relative
}

.trg-progress__label {
	text-align: center;
	color: #18181a;
	font-weight: 400;
	font-size: 10px;
	line-height: 1.4;
	letter-spacing: 0;
	position: absolute;
	top: -15px;
	right: -15px
}

.trg-steps {
	display: flex;
	flex-direction: column;
	gap: 12px
}

.trg-step {
	font-weight: 400;
	font-size: 16px;
	line-height: 1.5;
	letter-spacing: 0;
	padding: 16px;
	border-radius: 10px;
	background: #e4e7e1;
	border: 1px solid #e9e9ee;
	color: #18181a;
	display: flex;
	gap: 10px;
	align-items: center;
	justify-content: center
}

.trg-step--active {
	background: #fff;
	border: 1px solid #e9e9ee
}

.trg-step--done {
	opacity: .9
}

.trg-check {
	font-weight: 700
}

.trg-imagewrap {
	border-radius: 4px;
	border: 1px solid #e9e9ee;
	overflow: hidden;
	margin-bottom: 24px
}

.trg-image {
	-o-object-fit: cover;
	object-fit: cover
}

.trg-result-footer {
	display: flex;
	flex-direction: column;
	gap: 24px
}

@media screen and (min-width: 768px) {
	.trg-options__grid {
		grid-template-columns:repeat(4, 1fr)
	}

	.trg-imagewrap {
		margin-bottom: 40px
	}

	.trg-result-footer {
		flex-direction: row;
		justify-content: space-between
	}
}

.trg-caption__title {
	font-weight: 600;
	font-size: 18px;
	line-height: 1.5;
	letter-spacing: 0;
	color: #18181a;
	margin-bottom: 8px
}

.trg-caption__text {
	font-weight: 400;
	font-size: 18px;
	line-height: 1.5;
	letter-spacing: 0;
	color: #18181a
}

.trg-card--refine {
	margin-top: 14px
}

.trg-refine-title {
	font-weight: 600;
	font-size: 18px;
	line-height: 1.5;
	letter-spacing: 0;
	margin-bottom: 8px
}

.trg-refine-sub {
	font-weight: 400;
	font-size: 18px;
	line-height: 1.5;
	letter-spacing: 0;
	margin-bottom: 24px
}

.trg-refine-row {
	display: flex;
	gap: 8px;
	align-items: center;
	margin-bottom: 20px
}

.trg-refine-input {
	max-height: 51px;
	height: 51px
}

.trg-refine-actions {
	display: grid;
	grid-template-columns:1fr;
	gap: 8px
}

.trg-refine--reload {
	display: flex;
	gap: 13px;
	font-weight: 600;
	font-size: 16px;
	line-height: 1.2;
	letter-spacing: 0
}

.trg-card--cta {
	margin-top: 14px;
	background: #e9efe6;
	border-color: #e9efe6
}

.trg-card--cta--btn {
	margin: 0 auto 24px;
	padding: 20px 32px;
	max-height: 58px
}

@media screen and (min-width: 768px) {
	.trg-refine-actions {
		grid-template-columns:1fr 1fr
	}

	.trg-card--cta--btn {
		margin-bottom: 32px
	}
}

.trg-cta-title {
	font-weight: 400;
	font-style: italic;
	font-size: 28px;
	line-height: 1.2;
	letter-spacing: 0;
	text-align: center;
	margin-bottom: 16px
}

@media screen and (min-width: 768px) {
	.trg-cta-title {
		margin-bottom: 12px
	}
}

.trg-cta-sub {
	font-weight: 400;
	font-size: 18px;
	line-height: 1.5;
	letter-spacing: 0;
	text-align: center;
	margin: 0 auto 24px;
	max-width: 648px
}

@media screen and (min-width: 768px) {
	.trg-cta-sub {
		margin-bottom: 32px
	}
}

.trg-cta-sub p + p {
	margin-top: 8px
}

.trg-cta-note {
	font-weight: 400;
	font-size: 14px;
	line-height: 1.4;
	letter-spacing: 0;
	text-align: center
}

.trg-limit {
	margin-top: 20px;
	border: 1px solid #f6c968;
	background: rgba(246, 220, 104, .2784313725);
	border-radius: 4px;
	padding: 16px
}

.trg-limit__title {
	font-weight: 600;
	font-size: 14px;
	line-height: 1.4;
	letter-spacing: 0;
	color: #18181a;
	margin-bottom: 12px
}

.trg-limit__text {
	font-weight: 600;
	font-size: 14px;
	line-height: 1.4;
	letter-spacing: 0;
	color: #18181a
}

.trg-limit__text p + p {
	margin-top: 12px
}

.trg-limit__btn {
	margin: 12px auto 0;
	padding: 16px;
	max-height: 51px;
	display: flex;
	align-items: center;
	justify-content: center;
	font-weight: 600;
	font-size: 16px;
	line-height: 1.2;
	letter-spacing: 0;
	width: 100%
}

.trg-screen--loading.trg-screen {
	margin: 0 0 25px
}

@media screen and (min-width: 768px) {
	.trg-screen--loading.trg-screen {
		margin: 0 0 35px
	}
}

.trg-screen--loading .trg-title {
	margin-bottom: 8px
}

.trg-screen--loading .trg-subtitle {
	margin-bottom: 40px;
	font-weight: 400;
	font-size: 16px;
	line-height: 1.5;
	letter-spacing: 0;
	color: #686970
}

.trg-screen--result {
	display: flex;
	flex-direction: column;
	gap: 20px;
	padding: 0 20px;
}

.trg-screen--result-wrapper .trg-card {
	background: #fff;
	border: 1px solid #e9e9ee;
	padding: 24px;
	border-radius: 16px
}

@media screen and (min-width: 768px) {
	.trg-screen--result {
		gap: 16px
	}

	.trg-screen--result-wrapper {
		margin: -33px
	}

	.trg-screen--result-wrapper .trg-card {
		padding: 32px;
	}

	.trg-card {
		margin-top: 20px;
	}
}

.trg-screen--result-wrapper .trg-card .trg-title.mb-min {
	margin-bottom: 8px
}

.trg-screen--result-wrapper .trg-card--cta {
	padding: 24px 16px;
	border-radius: 0 40px;
	background: #e4e7e1
}

@media screen and (min-width: 768px) {
	.trg-screen--result-wrapper .trg-card--cta {
		padding: 32px 20px
	}
}

.trg-screen--result .tgr-btn--download {
	font-weight: 600;
	font-size: 16px;
	line-height: 1.2;
	letter-spacing: 0;
	padding: 16px 32px;
	min-width: 198px
}

.trg-modal[data-role=mgr_modal], .trg-modal[data-role=prod_modal] {
	max-height: calc(100vh - 6rem);
	top: 3rem;
	left: 1.6rem;
	right: 1.6rem
}

.trg-modal[data-role=mgr_modal]:has(.opened-success) .modal__dialog, .trg-modal[data-role=prod_modal]:has(.opened-success) .modal__dialog {
	width: min(600px, 100%)
}

.trg-modal[data-role=mgr_modal] .trg-mgr-error, .trg-modal[data-role=prod_modal] .trg-mgr-error {
	background: #fff5f5;
	color: #ca1919;
	border: 1px solid #ca1919;
	display: block;
	padding: 8px 8px 8px 44px;
	border-radius: 4px;
	position: relative;
	margin-bottom: 8px
}

.trg-modal[data-role=mgr_modal] .trg-mgr-error:before, .trg-modal[data-role=prod_modal] .trg-mgr-error:before {
	content: "" !important;
	font-family: initial !important;
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	left: 1.6rem;
	width: 18px;
	height: 18px;
	display: inline-block;
	background: url(/wp-content/themes/jewerly/assets/images/icons/error-icon.svg) center/contain no-repeat
}

.trg-modal[data-role=mgr_modal] .modal__dialog, .trg-modal[data-role=prod_modal] .modal__dialog {
	max-height: 100%;
	width: min(848px, 100%)
}

.trg-modal[data-role=mgr_modal] .trg-modal__title, .trg-modal[data-role=prod_modal] .trg-modal__title {
	font-style: italic
}

.trg-modal[data-role=mgr_modal] .trg-modal__hint, .trg-modal[data-role=prod_modal] .trg-modal__hint {
	background: #e4e7e1;
	border-radius: 8px;
	padding: 16px 16px 16px 48px;
	display: flex;
	align-items: flex-start;
	position: relative;
	margin-bottom: 24px
}

.trg-modal[data-role=mgr_modal] .trg-modal__hint:before, .trg-modal[data-role=prod_modal] .trg-modal__hint:before {
	content: "";
	position: absolute;
	top: 20px;
	left: 18px;
	width: 16px;
	height: 16px;
	background: url(/wp-content/plugins/tripo-render-generator/assets/images/icons/info-icon.svg) center/contain no-repeat
}

.trg-modal[data-role=mgr_modal] .trg-modal__hint.trg-mgr-next, .trg-modal[data-role=prod_modal] .trg-modal__hint.trg-mgr-next {
	flex-direction: column
}

.trg-modal[data-role=mgr_modal] .trg-modal__hint.trg-mgr-next .trg-mgr-next__title, .trg-modal[data-role=prod_modal] .trg-modal__hint.trg-mgr-next .trg-mgr-next__title {
	font-weight: 600;
	font-size: 14px;
	line-height: 1.4;
	letter-spacing: 0;
	margin-bottom: 8px
}

.trg-modal[data-role=mgr_modal] .trg-modal__hint.trg-mgr-next .trg-mgr-next__list, .trg-modal[data-role=prod_modal] .trg-modal__hint.trg-mgr-next .trg-mgr-next__list {
	display: flex;
	flex-direction: column;
	margin-bottom: 8px;
	font-weight: 400;
	font-size: 14px;
	line-height: 1.4;
	letter-spacing: 0
}

.trg-modal[data-role=mgr_modal] .trg-mgr-section, .trg-modal[data-role=prod_modal] .trg-mgr-section {
	margin-bottom: 24px
}

.trg-modal[data-role=mgr_modal] .trg-mgr-section__title, .trg-modal[data-role=prod_modal] .trg-mgr-section__title {
	font-weight: 600;
	font-size: 16px;
	line-height: 1.5;
	letter-spacing: 0;
	padding-bottom: 10px;
	border-bottom: 1px solid #e9e9ee;
	margin-bottom: 16px
}

.trg-modal[data-role=mgr_modal] .trg-mgr-section .trg-mgr-field, .trg-modal[data-role=mgr_modal] .trg-mgr-section__title[data-role=mgr_contact_title], .trg-modal[data-role=prod_modal] .trg-mgr-section .trg-mgr-field, .trg-modal[data-role=prod_modal] .trg-mgr-section__title[data-role=mgr_contact_title] {
	margin-bottom: 20px
}

.trg-modal[data-role=mgr_modal] .trg-mgr-section .trg-mgr-field:last-child, .trg-modal[data-role=prod_modal] .trg-mgr-section .trg-mgr-field:last-child {
	margin-bottom: 0
}

.trg-modal[data-role=mgr_modal] .trg-mgr-section .trg-mgr-label, .trg-modal[data-role=prod_modal] .trg-mgr-section .trg-mgr-label {
	font-weight: 400;
	font-size: 14px;
	line-height: 1.4;
	letter-spacing: 0;
	display: inline-block;
	margin-bottom: 8px
}

.trg-modal[data-role=mgr_modal] .trg-mgr-section textarea, .trg-modal[data-role=prod_modal] .trg-mgr-section textarea {
	min-height: 128px
}

.trg-modal[data-role=mgr_modal] .trg-mgr-section .trg-mgr-counter, .trg-modal[data-role=prod_modal] .trg-mgr-section .trg-mgr-counter {
	font-weight: 600;
	font-size: 12px;
	line-height: 1.4;
	letter-spacing: 0;
	text-align: right;
	margin-top: 8px
}

.trg-modal[data-role=mgr_modal] .trg-mgr-help, .trg-modal[data-role=prod_modal] .trg-mgr-help {
	margin-bottom: 16px;
	font-weight: 400;
	font-size: 14px;
	line-height: 1.4;
	letter-spacing: 0
}

.trg-modal[data-role=mgr_modal] .trg-upload, .trg-modal[data-role=prod_modal] .trg-upload {
	display: grid;
	grid-template-columns:repeat(2, 1fr);
	gap: 16px
}

@media (min-width: 768px) {
	.trg-modal[data-role=mgr_modal] .trg-upload, .trg-modal[data-role=prod_modal] .trg-upload {
		gap: 20px
	}
}

.trg-modal[data-role=mgr_modal] .trg-upload__row, .trg-modal[data-role=prod_modal] .trg-upload__row {
	position: relative;
	cursor: pointer;
	border-radius: 8px;
	background: #e9e9ee;
	border: 1px solid #e9e9ee;
	min-height: 117px;
	padding: 16px;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: background .15s, box-shadow .15s
}

.trg-modal[data-role=mgr_modal] .trg-upload__row:hover, .trg-modal[data-role=prod_modal] .trg-upload__row:hover {
	background: #e6e6ee
}

.trg-modal[data-role=mgr_modal] .trg-upload__row:focus-within, .trg-modal[data-role=prod_modal] .trg-upload__row:focus-within {
	box-shadow: 0 0 0 2px rgba(0, 0, 0, .25)
}

.trg-modal[data-role=mgr_modal] .trg-upload__row.first .trg-upload__text:before, .trg-modal[data-role=prod_modal] .trg-upload__row.first .trg-upload__text:before {
	background: url(/wp-content/plugins/tripo-render-generator/assets/images/icons/upload-img-1.svg) center/contain no-repeat
}

.trg-modal[data-role=mgr_modal] .trg-upload__row.second .trg-upload__text:before, .trg-modal[data-role=prod_modal] .trg-upload__row.second .trg-upload__text:before {
	background: url(/wp-content/plugins/tripo-render-generator/assets/images/icons/upload-img-2.svg) center/contain no-repeat
}

.trg-modal[data-role=mgr_modal] .trg-upload__input, .trg-modal[data-role=prod_modal] .trg-upload__input {
	position: absolute;
	inset: 0;
	opacity: 0;
	cursor: pointer
}

.trg-modal[data-role=mgr_modal] .trg-upload__text, .trg-modal[data-role=prod_modal] .trg-upload__text {
	pointer-events: none;
	text-align: center;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 6px
}

.trg-modal[data-role=mgr_modal] .trg-upload__text::before, .trg-modal[data-role=prod_modal] .trg-upload__text::before {
	content: "";
	width: 24px;
	height: 24px;
	margin-bottom: 4px
}

.trg-modal[data-role=mgr_modal] .trg-upload__line, .trg-modal[data-role=prod_modal] .trg-upload__line {
	font-weight: 400;
	font-size: 14px;
	line-height: 1.4;
	letter-spacing: 0;
	text-align: center
}

.trg-modal[data-role=mgr_modal] .trg-upload__sub, .trg-modal[data-role=prod_modal] .trg-upload__sub {
	font-weight: 400;
	font-size: 12px;
	line-height: 1.4;
	letter-spacing: 0;
	text-align: center
}

.trg-modal[data-role=mgr_modal] .trg-mgr-actions, .trg-modal[data-role=prod_modal] .trg-mgr-actions {
	display: grid;
	grid-template-columns:1fr;
	gap: 12px
}

.trg-modal[data-role=mgr_modal] .trg-mgr-success, .trg-modal[data-role=prod_modal] .trg-mgr-success {
	display: flex;
	align-items: center;
	justify-content: center;
	text-align: center;
	padding: 24px
}

.trg-modal[data-role=mgr_modal] .trg-mgr-success__inner, .trg-modal[data-role=prod_modal] .trg-mgr-success__inner {
	display: flex;
	flex-direction: column;
	gap: 20px
}

.trg-modal[data-role=mgr_modal] .trg-mgr-success__icon, .trg-modal[data-role=prod_modal] .trg-mgr-success__icon {
	width: 56px;
	height: 56px;
	background: #f4f4f2;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 50%;
	margin: 0 auto
}

.trg-modal[data-role=mgr_modal] .trg-mgr-success__title, .trg-modal[data-role=prod_modal] .trg-mgr-success__title {
	font-weight: 400;
	font-style: italic;
	font-size: 24px;
	line-height: 1.3;
	letter-spacing: 0;
	text-align: center
}

.trg-modal[data-role=mgr_modal] .trg-mgr-success__text, .trg-modal[data-role=prod_modal] .trg-mgr-success__text {
	max-width: 450px;
	margin: 0 auto
}

.trg-modal[data-role=mgr_modal] .trg-mgr-success__actions, .trg-modal[data-role=prod_modal] .trg-mgr-success__actions {
	display: none
}

.trg-modal[data-role=prod_modal] .trg-modal__head-wrapper {
	display: flex;
	flex-direction: column
}

.trg-modal[data-role=prod_modal] .trg-modal__title-wrapper {
	display: flex;
	flex-direction: column;
	gap: 4px
}

.trg-modal[data-role=prod_modal] .trg-modal__hint {
	background: #fff;
	padding: 0;
	margin: 0
}

.trg-modal[data-role=prod_modal] .trg-modal__hint:before {
	display: none
}

.trg-modal[data-role=prod_modal] .trg-modal__hint.trg-mgr-next {
	background: #e4e7e1;
	border-radius: 8px;
	padding: 16px 16px 16px 48px;
	display: flex;
	align-items: flex-start;
	position: relative;
	margin-bottom: 24px
}

.trg-modal[data-role=prod_modal] .trg-modal__hint.trg-mgr-next:before {
	display: block !important
}

.trg-modal[data-role=prod_modal] .trg-modal .prod_modal--title {
	padding: 0;
	margin: 0;
	font-weight: 600;
	font-size: 16px;
	line-height: 1.5;
	letter-spacing: 0
}

.trg-modal[data-role=prod_modal] .trg-mgr-section .trg-prod-grid {
	display: flex;
	flex-direction: column;
	gap: 20px
}

@media screen and (min-width: 768px) {
	.trg-modal[data-role=mgr_modal], .trg-modal[data-role=prod_modal] {
		max-height: calc(100vh - 30rem);
		top: 15rem
	}

	.trg-modal[data-role=mgr_modal] .trg-mgr-actions, .trg-modal[data-role=prod_modal] .trg-mgr-actions {
		grid-template-columns:1fr 1fr
	}

	.trg-modal[data-role=prod_modal] .trg-mgr-section .trg-prod-grid {
		display: grid;
		grid-template-columns:1fr 1fr
	}
}

.trg-modal[data-role=prod_modal] .trg-mgr-section--generated-image {
	border: 1px solid #e9e9ee;
	border-radius: 8px;
	padding: 16px 16px 24px
}

.trg-modal[data-role=prod_modal] .trg-mgr-section--generated-image .trg-prod-design {
	display: flex;
	justify-content: center;
	align-items: center
}

.trg-modal[data-role=prod_modal] .trg-mgr-section--generated-image .trg-prod-design__img {
	width: 196px;
	height: 190px;
	border-radius: 2px
}

.trg-modal[data-role=prod_modal] .trg-mgr-section .trg-mgr-field {
	display: flex;
	flex-direction: column;
	gap: 8px;
	margin-bottom: 0
}

.trg-modal[data-role=prod_modal] .trg-mgr-section .trg-mgr-field .trg-mgr-label {
	margin-bottom: 0
}

.trg-modal[data-role=prod_modal] .trg-mgr-section .trg-mgr-help {
	font-weight: 600;
	font-size: 12px;
	line-height: 1.4;
	letter-spacing: 0;
	color: #686970
}

.trg-modal[data-role=prod_modal] .trg-mgr-section.trg-mgr-section--contact {
	display: flex;
	flex-direction: column;
	gap: 20px
}

.trg-modal[data-role=prod_modal] .trg-mgr-section.trg-mgr-section--contact .trg-mgr-section__title {
	margin-bottom: 0
}

.trg-modal[data-role=prod_modal] .trg-mgr-section .trg-mgr-counter {
	color: #686970;
	font-weight: 600;
	font-size: 12px;
	line-height: 1.4;
	letter-spacing: 0;
	margin-top: 0
}

.trg-modal[data-role=prod_modal] .trg-modal__hint.trg-mgr-next .trg-mgr-next__list {
	margin-bottom: 0;
	display: ruby;
	flex-direction: column;
	padding: 0;
	gap: 8px
}

.trg-modal[data-role=prod_modal] .trg-mgr-actions {
	display: flex;
	flex-direction: column-reverse;
	gap: 8px
}

@media screen and (min-width: 768px) {
	.trg-modal[data-role=prod_modal] .trg-mgr-actions {
		display: grid
	}
}

.trg-modal[data-role=prod_modal] .trg-mgr-actions .btn-primary, .trg-modal[data-role=prod_modal] .trg-mgr-actions .btn-secondary {
	padding: 16px 32px;
	font-weight: 600;
	font-size: 16px;
	line-height: 1.2;
	letter-spacing: 0
}

.trg-modal[data-role=prod_modal]:has(.opened-success) .trg-modal__head .trg-modal__hint {
	background: #fff;
	padding: 0;
	margin: 0
}

.trg-modal[data-role=prod_modal]:has(.opened-success) .modal__dialog {
	width: min(600px, 100%)
}

/* Tripo OpenAPI v3 result assets */
.trg-render-preview {
	width: 100%;
	height: auto;
	max-height: 420px;
	object-fit: contain;
	margin-top: 16px;
	border-radius: 12px;
	background: #f5f5f5
}

.trg-downloads {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	align-items: center
}

.trg-model {
	width: 100%;
	min-height: 460px;
	background: #f5f5f5;
	border-radius: 12px
}

@media (max-width: 767px) {
	.trg-model {
		min-height: 340px
	}

	.trg-downloads {
		width: 100%
	}

	.trg-downloads .trg-btn {
		width: 100%;
		justify-content: center
	}
}

/* Generated model preview and fullscreen-style 3D modal */
.trg-modelwrap {
	position: relative
}

.trg-model-preview {
	position: relative;
	display: block;
	width: 100%;
	padding: 0;
	border: 0;
	background: #f5f5f5;
	border-radius: 12px;
	overflow: hidden;
	cursor: pointer;
	text-align: inherit
}

.trg-model-preview:focus-visible {
	outline: 2px solid currentColor;
	outline-offset: 3px
}

.trg-model-preview .trg-render-preview {
	display: block;
	width: 100%;
	height: auto;
	min-height: 320px;
	max-height: 520px;
	margin: 0;
	object-fit: contain;
	border-radius: 12px;
	background: #f5f5f5
}

.trg-model-preview__badge {
	position: absolute;
	right: 16px;
	bottom: 16px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 42px;
	padding: 10px 18px;
	border-radius: 999px;
	background: rgba(17, 17, 17, .86);
	color: #fff;
	font-size: 14px;
	font-weight: 600;
	line-height: 1;
	backdrop-filter: blur(8px)
}

.trg-model-preview__badge:before {
	content: "";
	width: 17px;
	height: 17px;
	margin-right: 8px;
	border: 1.5px solid currentColor;
	border-radius: 3px;
	box-sizing: border-box;
	transform: rotate(30deg)
}

.trg-model-viewer-modal[hidden] {
	display: none !important
}

.trg-model-viewer-modal {
	position: fixed;
	inset: 0;
	z-index: 2147483000;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 24px
}

.trg-model-viewer-modal__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, .84)
}

.trg-model-viewer-modal__dialog {
	position: relative;
	z-index: 1;
	display: flex;
	flex-direction: column;
	width: min(1200px, calc(100vw - 48px));
	height: min(868px, calc(100vh - 48px));
	overflow: hidden;
	border-radius: 16px;
	background: #f5f5f5;
	box-shadow: 0 24px 80px rgba(0, 0, 0, .35)
}

.trg-model-viewer-modal__header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex: 0 0 auto;
	min-height: 80px;
	padding: 0 24px;
	background: #fff;
	border-bottom: 1px solid #ececec
}

.trg-model-viewer-modal__title {
	margin: 0;
	color: #111;
	font-size: 24px;
	font-weight: 600;
	line-height: 1.25
}

.trg-model-viewer-modal__close {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: transparent;
	color: #5c5c5c;
	cursor: pointer
}

.trg-model-viewer-modal__close:hover {
	background: #f2f2f2;
	color: #111
}

.trg-model-viewer-modal__close:focus-visible {
	outline: 2px solid currentColor;
	outline-offset: 2px
}

.trg-model-viewer-modal__close span, .trg-model-viewer-modal__close span:before {
	position: absolute;
	display: block;
	width: 20px;
	height: 2px;
	background: currentColor;
	border-radius: 2px;
	content: ""
}

.trg-model-viewer-modal__close span {
	transform: rotate(45deg)
}

.trg-model-viewer-modal__close span:before {
	transform: rotate(90deg)
}

.trg-model-viewer-modal__body {
	position: relative;
	flex: 1 1 auto;
	min-height: 0;
	background: #f5f5f5
}

.trg-model-viewer-modal__model {
	display: block;
	width: 100%;
	height: 100%;
	min-height: 0;
	background: #f5f5f5;
	--poster-color: #f5f5f5
}

.trg-model-viewer-modal__status {
	position: absolute;
	inset: 0;
	z-index: 5;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 24px;
	background: #f5f5f5;
	color: #333;
	font-size: 16px;
	text-align: center
}

.trg-model-viewer-modal__status.is-error {
	color: #b42318
}

html.trg-model-viewer-open, body.trg-model-viewer-open {
	overflow: hidden !important
}

@media (max-width: 767px) {
	.trg-model-preview .trg-render-preview {
		min-height: 230px;
		max-height: 360px
	}

	.trg-model-preview__badge {
		right: 12px;
		bottom: 12px;
		min-height: 38px;
		padding: 9px 14px
	}

	modal__close {
		top: -30px !important;
	}

	.trg-model-viewer-modal {
		padding: 0 20px;
		bottom: -4%;
	}

	.trg-model-viewer-modal__dialog {
		width: 100vw;
		height: 100 dvh;
		max-width: none;
		max-height: none;
		border-radius: 0
	}

	.trg-model-viewer-modal__header {
		min-height: 64px;
		padding: 0 16px
	}

	.trg-model-viewer-modal__title {
		font-size: 20px
	}
}

.page-create-design {

}

@media (min-width: 1024px) {
	.page-create-design .post {
		padding: 10px 0 80px;
	}
}

@media (max-width: 550px) {
	.page-create-design .post__header {
		padding-block: 0;
	}
}

/* Inline GLB viewer with compact loading state */
.trg-modelwrap {
	position: relative;
	width: 100%;
	min-height: 320px;
	aspect-ratio: 1 / 1;
	overflow: hidden;
	border-radius: 12px;
	background: #f5f5f5;
}

.trg-model-preview__viewer {
	display: block;
	width: 100%;
	height: 100%;
	min-height: 320px;
	background: #f5f5f5;
	--poster-color: #f5f5f5;
}

.trg-model-preview__loader {
	position: absolute;
	inset: 0;
	z-index: 4;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 10px;
	padding: 20px;
	background: rgba(245, 245, 245, .94);
	color: #444;
	font-size: 13px;
	line-height: 1.4;
	text-align: center;
}

.trg-model-preview__loader[hidden] {
	display: none !important;
}

.trg-model-preview__spinner {
	display: block;
	width: 28px;
	height: 28px;
	border: 3px solid rgba(17, 17, 17, .16);
	border-top-color: #111;
	border-radius: 50%;
	animation: trg-model-spinner .75s linear infinite;
}

.trg-modelwrap.is-error .trg-model-preview__spinner {
	display: none;
}

.trg-modelwrap.is-error .trg-model-preview__loader {
	inset: 50% auto auto 50%;
	width: min(230px, calc(100% - 32px));
	min-height: 92px;
	padding: 14px;
	transform: translate(-50%, -50%);
	border: 1px solid #e2b8b4;
	border-radius: 10px;
	background: #fff;
	color: #b42318;
}

.trg-render-preview--hidden {
	display: none !important;
}

@keyframes trg-model-spinner {
	to {
		transform: rotate(360deg);
	}
}

@media (max-width: 767px) {
	.trg-modelwrap,
	.trg-model-preview__viewer {
		min-height: 240px;
	}
}

/* Submit request loader */
.trg-mgr-btn.is-loading {
	position: relative;
	cursor: wait;
	pointer-events: none;
	color: transparent !important;
}

.trg-mgr-btn.is-loading::after {
	content: "";
	position: absolute;
	top: 50%;
	left: 50%;
	width: 18px;
	height: 18px;
	margin: -9px 0 0 -9px;
	border: 2px solid rgba(255, 255, 255, 0.45);
	border-top-color: #ffffff;
	border-radius: 50%;
	animation: trg-submit-spin 0.7s linear infinite;
}

.trg-mgr-btn--ghost.is-loading::after,
.trg-mgr-btn.btn-secondary.is-loading::after {
	border-color: rgba(33, 39, 45, 0.25);
	border-top-color: #21272d;
}

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