.gsmos-wp {
	box-sizing: border-box;
	width: min(100%, var(--gsmos-max, 640px));
	max-width: var(--gsmos-max, 640px);
	margin-left: auto;
	margin-right: auto;
	flex: 0 1 auto;
	min-width: 0;
	justify-self: center;
	align-self: start;
	color: var(--gsmos-text, #1e1b4b);
	font-family: inherit;
	font-size: 16px;
	font-weight: 400;
	font-style: normal;
	line-height: 1.45;
	letter-spacing: normal;
	text-size-adjust: 100%;
	-webkit-text-size-adjust: 100%;
}

.gsmos-wp *,
.gsmos-wp *::before,
.gsmos-wp *::after {
	box-sizing: border-box;
}

.gsmos-wp-card {
	background: var(--gsmos-bg, #fff);
	border-radius: var(--gsmos-radius, 10px);
	padding: calc(var(--gsmos-gap, 12px) * 1.35);
}

.gsmos-wp--shadow .gsmos-wp-card {
	box-shadow: 0 12px 32px rgba(30, 27, 75, 0.08);
}

.gsmos-wp-fields,
.gsmos-wp-calc {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	grid-auto-flow: row;
	gap: var(--gsmos-gap, 12px);
	width: 100%;
}

.gsmos-wp-calc {
	margin-bottom: var(--gsmos-gap, 12px);
}

.gsmos-wp-field,
.gsmos-wp-calc label {
	position: relative;
	display: block;
	color: var(--gsmos-label, #4c1d95);
	font-size: 0.92em;
}

.gsmos-wp-field > span:first-child,
.gsmos-wp-calc label > span:first-child {
	position: absolute;
	z-index: 1;
	top: 50%;
	left: 16px;
	right: 16px;
	margin: 0;
	padding: 0;
	overflow: hidden;
	color: #a3a3ad;
	font-size: 16px;
	font-weight: 400;
	line-height: 1.2;
	white-space: nowrap;
	text-overflow: ellipsis;
	transform: translateY(-50%);
	pointer-events: none;
}

.gsmos-wp-field:has(textarea) > span:first-child {
	top: 14px;
	right: 16px;
	transform: none;
}

.gsmos-wp-field:has(select) > span:first-child,
.gsmos-wp-calc label:has(select) > span:first-child {
	right: 36px;
}

.gsmos-wp-field:has(input:not(:placeholder-shown)) > span:first-child,
.gsmos-wp-field:has(textarea:not(:placeholder-shown)) > span:first-child,
.gsmos-wp-field:has(select option:checked:not([value=""])) > span:first-child,
.gsmos-wp-calc label:has(select option:checked:not([value=""])) > span:first-child {
	opacity: 0;
}

.gsmos-wp form .gsmos-wp-field input:not(.gsmos-wp-hp),
.gsmos-wp form .gsmos-wp-field select,
.gsmos-wp form .gsmos-wp-field textarea,
.gsmos-wp form .gsmos-wp-calc input:not(.gsmos-wp-hp),
.gsmos-wp form .gsmos-wp-calc select {
	width: 100%;
	max-width: none;
	min-width: 0;
	min-height: 48px;
	height: auto;
	padding: 12px 16px;
	border: 1px solid var(--gsmos-border, #ddd6fe);
	border-radius: var(--gsmos-radius, 12px);
	background: #fff;
	color: var(--gsmos-text, #1e1b4b);
	font: inherit;
	line-height: 1.3;
	box-sizing: border-box;
}

.gsmos-wp form .gsmos-wp-field textarea {
	min-height: 96px;
	padding-top: 14px;
}

.gsmos-wp form .gsmos-wp-field select,
.gsmos-wp form .gsmos-wp-calc select {
	padding-right: 36px;
	appearance: none;
	background-color: #fff;
	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='none' stroke='%236b6578' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round' d='M1 1.5 6 6.5 11 1.5'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 14px center;
	background-size: 12px 8px;
}

.gsmos-wp form .gsmos-wp-field input::placeholder,
.gsmos-wp form .gsmos-wp-field textarea::placeholder,
.gsmos-wp form .gsmos-wp-calc input::placeholder {
	color: transparent;
}

.gsmos-wp input:focus,
.gsmos-wp select:focus,
.gsmos-wp textarea:focus {
	outline: 2px solid var(--gsmos-focus, #7c3aed);
	outline-offset: 1px;
	border-color: var(--gsmos-focus, #7c3aed);
}

.gsmos-wp form fieldset.gsmos-wp-choices {
	display: flex;
	flex-direction: column;
	align-items: stretch;
	gap: 8px;
	width: 100%;
	min-width: 0;
	margin: 0;
	padding: 0;
	border: 0;
	background: transparent;
}

.gsmos-wp form fieldset.gsmos-wp-choices > .gsmos-wp-choices-title {
	display: block;
	width: 100%;
	margin: 0 0 8px;
	padding: 0;
	color: var(--gsmos-label, #4c1d95);
	font-size: 0.92em;
	font-style: normal;
	font-weight: 650;
	line-height: 1.3;
	text-align: left;
}

.gsmos-wp form label.gsmos-wp-check {
	display: flex;
	flex-direction: row;
	flex-wrap: nowrap;
	justify-content: flex-start;
	align-items: flex-start;
	gap: 10px;
	width: 100%;
	max-width: 100%;
	margin: 0;
	padding: 0;
	text-align: left;
	color: var(--gsmos-text, #1e1b4b);
	font-size: 0.92em;
	line-height: 1.35;
}

.gsmos-wp form label.gsmos-wp-check > input[type="checkbox"] {
	display: inline-block;
	flex: 0 0 18px;
	width: 18px;
	height: 18px;
	min-width: 18px;
	max-width: 18px;
	margin: 2px 0 0;
	padding: 0;
	position: static;
	float: none;
	appearance: auto;
}

.gsmos-wp-combo {
	position: relative;
	display: block;
	min-width: 0;
}

.gsmos-wp form .gsmos-wp-combo input {
	font-size: 16px;
}

.gsmos-wp form .gsmos-wp-combo.is-open input,
.gsmos-wp form .gsmos-wp-combo input:focus {
	border-color: var(--gsmos-focus, #7c3aed);
	box-shadow: 0 0 0 3px color-mix(in srgb, var(--gsmos-focus, #7c3aed) 30%, transparent);
	outline: none;
}

.gsmos-wp-combo-list {
	position: absolute;
	z-index: 30;
	left: 0;
	right: 0;
	top: calc(100% + 6px);
	width: auto;
	margin: 0;
	padding: 6px;
	background: #fff;
	border: 1px solid var(--gsmos-border, #ddd6fe);
	border-radius: 12px;
	box-shadow: 0 16px 40px rgba(30, 27, 75, 0.16);
	max-height: min(220px, 42vh);
	overflow: auto;
}

.gsmos-wp-combo-list[hidden] {
	display: none;
}

.gsmos-wp button.gsmos-wp-combo-opt {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 1px;
	width: 100%;
	margin: 0;
	padding: 8px 10px;
	border: 0;
	border-radius: 8px;
	background: var(--gsmos-bg, #fff);
	color: var(--gsmos-text, #1e1b4b);
	font: inherit;
	line-height: 1.25;
	text-align: left;
	cursor: pointer;
	box-shadow: none;
}

.gsmos-wp button.gsmos-wp-combo-opt strong {
	font-weight: 650;
	color: inherit;
}

.gsmos-wp button.gsmos-wp-combo-opt:hover,
.gsmos-wp button.gsmos-wp-combo-opt.is-active,
.gsmos-wp button.gsmos-wp-combo-opt:focus,
.gsmos-wp button.gsmos-wp-combo-opt:hover strong,
.gsmos-wp button.gsmos-wp-combo-opt.is-active strong,
.gsmos-wp button.gsmos-wp-combo-opt:hover .gsmos-wp-combo-kicker,
.gsmos-wp button.gsmos-wp-combo-opt.is-active .gsmos-wp-combo-kicker {
	background: var(--gsmos-hover, #f3e8ff) !important;
	color: var(--gsmos-hover-text, #1e1b4b) !important;
}

.gsmos-wp-combo-kicker {
	color: var(--gsmos-label, #4c1d95);
	font-size: 0.75em;
}

.gsmos-wp-combo-empty {
	margin: 0;
	padding: 8px 10px;
	color: var(--gsmos-label, #4c1d95);
	font-size: 0.86em;
	line-height: 1.35;
}

.gsmos-wp form label.gsmos-wp-check > span {
	flex: 1 1 auto;
	width: auto;
	max-width: none;
	margin: 0;
	text-align: left;
	white-space: normal;
}

.gsmos-wp-done {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 8px;
	padding: 28px 12px 18px;
	text-align: center;
}

.gsmos-wp-done[hidden] {
	display: none;
}

.gsmos-wp-done-mark {
	display: grid;
	place-items: center;
	width: 64px;
	height: 64px;
	margin-bottom: 6px;
	border-radius: 50%;
	background: var(--gsmos-success, #059669);
	color: #fff;
	font-size: 32px;
	font-weight: 700;
	line-height: 1;
}

.gsmos-wp-done h3 {
	margin: 0;
	color: var(--gsmos-text, #1e1b4b);
	font-size: 1.35em;
}

.gsmos-wp-done p {
	margin: 0;
	max-width: 36em;
	color: var(--gsmos-text, #1e1b4b);
	font-size: 1em;
	line-height: 1.45;
}

.gsmos-wp h3 {
	color: var(--gsmos-text, #1e1b4b);
	font-size: 1em;
}

.gsmos-wp .gsmos-wp-card > button,
.gsmos-wp form button[type="submit"] {
	display: block;
	width: 100%;
	margin-top: var(--gsmos-gap, 12px);
	padding: 14px 16px;
	border: 0;
	border-radius: var(--gsmos-radius, 12px);
	background: var(--gsmos-button, #7c3aed);
	color: var(--gsmos-button-text, #fff);
	font: inherit;
	font-weight: 800;
	letter-spacing: 0.04em;
	cursor: pointer;
}

.gsmos-wp button:disabled {
	opacity: 0.65;
	cursor: default;
}

.gsmos-wp-quote,
.gsmos-wp-price-val {
	font-weight: 700;
	color: var(--gsmos-button, #7c3aed);
}

.gsmos-wp-quote {
	font-size: 1.25em;
}

.gsmos-wp-msg {
	margin: 8px 0 0;
	min-height: 1.2em;
}

.gsmos-wp-msg--ok {
	color: var(--gsmos-success, #059669);
}

.gsmos-wp-msg--error {
	color: var(--gsmos-error, #dc2626);
}

.gsmos-wp-invalid {
	border-color: var(--gsmos-error, #dc2626) !important;
}

.gsmos-wp-hp {
	position: absolute !important;
	left: -9999px !important;
	width: 1px;
	height: 1px;
	opacity: 0;
}

.gsmos-wp-search {
	margin-bottom: var(--gsmos-gap, 12px);
}

.gsmos-wp-group {
	margin-top: 1.1rem;
}

.gsmos-wp-group h3 {
	margin: 0 0 0.35rem;
	font-size: 1em;
}

.gsmos-wp-row {
	display: grid;
	grid-template-columns: 1fr auto;
	gap: 8px 16px;
	align-items: start;
	padding: 10px 0;
	border-bottom: 1px solid var(--gsmos-border, #ddd6fe);
}

.gsmos-wp-row-note,
.gsmos-wp-warranty,
.gsmos-wp-note,
.gsmos-wp-vat,
.gsmos-wp-legal {
	margin: 0.2rem 0 0;
	color: var(--gsmos-label, #4c1d95);
	font-size: 0.86em;
	font-weight: 400;
}

.gsmos-wp-legal {
	margin-top: 1rem;
}

.gsmos-wp [hidden] {
	display: none !important;
}

.gsmos-wp-open {
	padding: 12px 16px;
	border: 0;
	border-radius: var(--gsmos-radius, 10px);
	background: var(--gsmos-button, #7c3aed);
	color: var(--gsmos-button-text, #fff);
	font: inherit;
	font-weight: 700;
	cursor: pointer;
}

.gsmos-wp-launcher {
	position: fixed;
	right: 20px;
	z-index: 99990;
	box-shadow: 0 10px 24px rgba(30, 27, 75, 0.18);
}

.gsmos-wp-popup {
	position: fixed;
	inset: 0;
	z-index: 100000;
	display: grid;
	place-items: center;
	padding: 20px;
}

.gsmos-wp-popup[hidden] {
	display: none !important;
}

.gsmos-wp-popup-backdrop {
	position: absolute;
	inset: 0;
	background: rgba(15, 15, 25, 0.55);
}

.gsmos-wp-popup-dialog {
	position: relative;
	z-index: 1;
	width: min(100%, calc(var(--gsmos-max, 640px) + 8px));
	max-width: min(100%, calc(var(--gsmos-max, 640px) + 8px));
	max-height: min(92vh, 920px);
}

.gsmos-wp-popup .gsmos-wp {
	max-height: min(84vh, 840px);
	overflow: auto;
	width: 100%;
}

.gsmos-wp-popup .gsmos-wp-card {
	position: relative;
	padding-top: 42px;
}

.gsmos-wp-popup-x {
	position: absolute;
	top: 10px;
	right: 10px;
	z-index: 2;
	width: 36px;
	height: 36px;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 999px;
	background: #fff;
	color: #1e1b4b;
	font-size: 22px;
	line-height: 1;
	cursor: pointer;
}

html.gsmos-wp-popup-open,
html.gsmos-wp-popup-open body {
	overflow: hidden;
}

/* Tema WordPress nu trebuie să lărgească formularul sau să pună câmpurile pe două coloane. */
body .gsmos-wp.gsmos-wp {
	width: min(100%, var(--gsmos-max, 640px)) !important;
	max-width: var(--gsmos-max, 640px) !important;
	font-size: 16px !important;
	line-height: 1.45 !important;
}

body .gsmos-wp form,
body .gsmos-wp .gsmos-wp-fields,
body .gsmos-wp .gsmos-wp-calc {
	display: grid !important;
	grid-template-columns: minmax(0, 1fr) !important;
	grid-auto-flow: row !important;
	width: 100% !important;
	max-width: 100% !important;
	float: none !important;
}

body .gsmos-wp .gsmos-wp-fields > .gsmos-wp-field,
body .gsmos-wp .gsmos-wp-calc > label,
body .gsmos-wp .gsmos-wp-calc > .gsmos-wp-quote {
	position: relative !important;
	display: block !important;
	grid-column: 1 / -1 !important;
	width: 100% !important;
	max-width: 100% !important;
	min-width: 0 !important;
	float: none !important;
	clear: both !important;
}

body .gsmos-wp .gsmos-wp-field > span:first-child,
body .gsmos-wp .gsmos-wp-calc > label > span:first-child {
	position: absolute !important;
	z-index: 1 !important;
	top: 50% !important;
	left: 16px !important;
	right: 16px !important;
	display: block !important;
	width: auto !important;
	max-width: none !important;
	margin: 0 !important;
	padding: 0 !important;
	float: none !important;
	color: #a3a3ad !important;
	font-size: 16px !important;
	font-weight: 400 !important;
	line-height: 1.2 !important;
	transform: translateY(-50%) !important;
	pointer-events: none !important;
}

body .gsmos-wp .gsmos-wp-field:has(textarea) > span:first-child {
	top: 14px !important;
	transform: none !important;
}

body .gsmos-wp .gsmos-wp-field:has(select) > span:first-child,
body .gsmos-wp .gsmos-wp-calc > label:has(select) > span:first-child {
	right: 36px !important;
}

body .gsmos-wp .gsmos-wp-fields > .gsmos-wp-choices,
body .gsmos-wp form fieldset.gsmos-wp-choices {
	display: block !important;
	grid-column: 1 / -1 !important;
	width: 100% !important;
	max-width: 100% !important;
	min-width: 0 !important;
	float: none !important;
	clear: both !important;
}

body .gsmos-wp .gsmos-wp-fields > .gsmos-wp-check,
body .gsmos-wp form label.gsmos-wp-check {
	display: flex !important;
	flex-direction: row !important;
	flex-wrap: nowrap !important;
	grid-column: 1 / -1 !important;
	width: 100% !important;
	max-width: 100% !important;
	float: none !important;
	clear: both !important;
}

body .gsmos-wp form input:not([type="checkbox"]):not([type="radio"]):not(.gsmos-wp-hp),
body .gsmos-wp form select,
body .gsmos-wp form textarea {
	display: block !important;
	width: 100% !important;
	max-width: 100% !important;
	min-width: 0 !important;
	float: none !important;
	font-size: 16px !important;
}

body .gsmos-wp form .gsmos-wp-field input:not(.gsmos-wp-hp),
body .gsmos-wp form .gsmos-wp-field select,
body .gsmos-wp form .gsmos-wp-calc input:not(.gsmos-wp-hp),
body .gsmos-wp form .gsmos-wp-calc select {
	height: auto !important;
	min-height: 48px !important;
	padding: 12px 16px !important;
	line-height: 1.3 !important;
}

body .gsmos-wp form .gsmos-wp-field select,
body .gsmos-wp form .gsmos-wp-calc select {
	padding-right: 36px !important;
	appearance: none !important;
	background-color: #fff !important;
	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='none' stroke='%236b6578' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round' d='M1 1.5 6 6.5 11 1.5'/%3E%3C/svg%3E") !important;
	background-repeat: no-repeat !important;
	background-position: right 14px center !important;
	background-size: 12px 8px !important;
}

body .gsmos-wp form .gsmos-wp-field textarea {
	height: auto !important;
	min-height: 96px !important;
	padding: 14px 16px !important;
	line-height: 1.3 !important;
}

body .gsmos-wp form label.gsmos-wp-check > input[type="checkbox"] {
	display: inline-block !important;
	flex: 0 0 18px !important;
	width: 18px !important;
	max-width: 18px !important;
	height: 18px !important;
	float: none !important;
}

body .gsmos-wp form button[type="submit"] {
	float: none !important;
	clear: both !important;
	display: block !important;
	width: 100% !important;
	max-width: 100% !important;
	font-size: 16px !important;
}

body .gsmos-wp .gsmos-wp-card > button.gsmos-wp-open {
	float: none !important;
	clear: both !important;
	display: inline-block !important;
	width: auto !important;
	max-width: 100% !important;
	font-size: 16px !important;
}

body .gsmos-wp .gsmos-wp-search {
	display: block !important;
	width: 100% !important;
	max-width: 100% !important;
	float: none !important;
	font-size: 16px !important;
}
