.eap-gsf-wrapper {
	font-family: Times, serif;
	color: #042A54;
}

.eap-gsf-title {
	font-family: SOLUMVERBA, Times, serif;
	font-size: 42px;
	line-height: 90%;
	text-transform: uppercase;
	color: #897056;
	margin-top: 10px;
	margin-bottom: 24px;
	font-weight: normal;
}

/* ---- Fields ---- */

.eap-gsf-field {
	margin-bottom: 14px;
}

.eap-gsf-field label {
	display: block;
	font-family: Times, serif;
	font-size: 16px;
	line-height: 18px;
	color: #042A54;
	margin-bottom: 4px;
	letter-spacing: 0.05em;
	text-transform: uppercase;
}

.eap-gsf-field input[type="text"],
.eap-gsf-field input[type="email"],
.eap-gsf-field input[type="tel"],
.eap-gsf-field select,
.eap-gsf-field textarea {
	display: block;
	width: 100%;
	box-sizing: border-box;
	font-family: Times, serif;
	font-size: 21px;
	line-height: 24px;
	color: #042A54;
	background-color: #ffffff;
	border: 1px solid #042A54;
	padding: 8px 10px;
	outline: none;
	appearance: none;
	-webkit-appearance: none;
	border-radius: 0;
}

.eap-gsf-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 d='M1 1l5 5 5-5' stroke='%23042A54' stroke-width='1.5' fill='none'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 12px center;
	padding-right: 36px;
	cursor: pointer;
}

.eap-gsf-field input:focus,
.eap-gsf-field select:focus,
.eap-gsf-field textarea:focus {
	border-color: #897056;
	outline: none;
}

.eap-gsf-field textarea {
	resize: vertical;
	min-height: 100px;
}

/* ---- Fieldsets ---- */

.eap-gsf-fieldset {
	border: 1px solid #042A54;
	padding: 16px 20px 8px;
	margin: 0 0 20px;
}

.eap-gsf-fieldset legend {
	font-family: Times, serif;
	font-size: 12px;
	line-height: 14px;
	letter-spacing: 0.09em;
	text-transform: uppercase;
	color: #042A54;
	font-weight: bold;
	padding: 0 6px;
}

/* ---- Pricing radios ---- */

.eap-gsf-pricing {
	margin-bottom: 20px;
	border: 1px solid #042A54;
	padding: 12px 20px;
}

.eap-gsf-pricing .eap-gsf-field {
	margin-bottom: 8px;
}

.eap-gsf-pricing .eap-gsf-field:last-child {
	margin-bottom: 0;
}

.eap-gsf-pricing label {
	display: flex;
	align-items: center;
	gap: 10px;
	font-family: Times, serif;
	font-size: 21px;
	line-height: 24px;
	text-transform: none;
	letter-spacing: 0;
	cursor: pointer;
}

.eap-gsf-pricing input[type="radio"] {
	width: 15px;
	height: 15px;
	flex-shrink: 0;
	appearance: none;
	-webkit-appearance: none;
	border: 1px solid #042A54;
	border-radius: 50%;
	background: #fff;
	cursor: pointer;
	position: relative;
}

.eap-gsf-pricing input[type="radio"]:checked::after {
	content: '';
	display: block;
	width: 7px;
	height: 7px;
	background: #897056;
	border-radius: 50%;
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
}

.eap-gsf-price-single,
.eap-gsf-price-year {
	color: #897056;
	font-style: italic;
}

/* ---- Billing toggle checkbox ---- */

.eap-gsf-billing-toggle {
	margin-bottom: 16px;
}

.eap-gsf-billing-toggle label {
	display: flex;
	align-items: center;
	gap: 10px;
	font-family: Times, serif;
	font-size: 21px;
	line-height: 24px;
	text-transform: none;
	letter-spacing: 0;
	cursor: pointer;
}

.eap-gsf-billing-toggle input[type="checkbox"] {
	width: 15px;
	height: 15px;
	flex-shrink: 0;
	appearance: none;
	-webkit-appearance: none;
	border: 1px solid #042A54;
	background: #fff;
	cursor: pointer;
	position: relative;
}

.eap-gsf-billing-toggle input[type="checkbox"]:checked::after {
	content: '\2713';
	font-size: 13px;
	font-weight: 800;
	color: #897056;
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	line-height: 1;
}

/* ---- Validation errors ---- */

.eap-gsf-field--error input,
.eap-gsf-field--error select,
.eap-gsf-field--error textarea {
	border-color: #8b1a1a;
}

.eap-gsf-field--error label {
	color: #8b1a1a;
}

/* ---- Product rows ---- */

#eap-gsf-product-rows {
	margin-bottom: 8px;
}

.eap-gsf-product-row {
	display: grid;
	grid-template-columns: 3fr 2fr auto;
	grid-template-rows: auto auto;
	column-gap: 10px;
	row-gap: 6px;
	margin-bottom: 14px;
	align-items: end;
}

.eap-gsf-row-product-field {
	grid-column: 1;
	grid-row: 1;
	margin-bottom: 0;
}

.eap-gsf-row-type-field {
	grid-column: 2;
	grid-row: 1;
	margin-bottom: 0;
}

/* Kogus label + input + price on second row */
.eap-gsf-row-kogus-group {
	grid-column: 1 / 3;
	grid-row: 2;
	display: flex;
	align-items: center;
	gap: 8px;
}

.eap-gsf-row-kogus-label {
	font-family: Times, serif;
	font-size: 16px;
	color: #042A54;
	letter-spacing: 0.05em;
	text-transform: uppercase;
	white-space: nowrap;
	flex-shrink: 0;
}

.eap-gsf-row-amount {
	width: 56px;
	box-sizing: border-box;
	font-family: Times, serif;
	font-size: 21px;
	color: #042A54;
	background: #fff;
	border: 1px solid #042A54;
	padding: 8px 6px;
	text-align: center;
	appearance: none;
	-webkit-appearance: none;
	outline: none;
	border-radius: 0;
}

.eap-gsf-row-amount:focus {
	border-color: #897056;
}

.eap-gsf-row-price {
	color: #897056;
	font-style: italic;
	font-family: Times, serif;
	font-size: 18px;
	white-space: nowrap;
	flex-shrink: 0;
}

.eap-gsf-row-remove-cell {
	grid-column: 3;
	grid-row: 1;
	padding-bottom: 1px;
}

.eap-gsf-remove-row {
	background: none;
	border: 1px solid #8b1a1a;
	color: #8b1a1a;
	cursor: pointer;
	font-family: Times, serif;
	font-size: 21px;
	line-height: 24px;
	padding: 8px 10px;
}

.eap-gsf-remove-row:hover {
	background-color: #fdf5f5;
}

.eap-gsf-row-actions {
	display: flex;
	align-items: center;
	justify-content: space-between;
	border-top: 1px solid #042A54;
	padding-top: 8px;
	margin-bottom: 60px;
}

#eap-gsf-add-row {
	font-family: Times, serif;
	font-size: 16px;
	background: none;
	border: 1px dashed #042A54;
	color: #042A54;
	padding: 6px 16px;
	cursor: pointer;
	letter-spacing: 0.03em;
}

#eap-gsf-add-row:hover {
	border-color: #897056;
	color: #897056;
}

#eap-gsf-total-row {
	display: flex;
	align-items: baseline;
	gap: 10px;
}

.eap-gsf-total-price {
	font-family: Times, serif;
	font-size: 21px;
	font-style: italic;
	color: #897056;
}

/* ---- Order summary ---- */

#eap-gsf-order-summary {
	border-top: 1px solid #042A54;
	padding-top: 12px;
	margin-bottom: 24px;
}

.eap-gsf-summary-row {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	padding: 4px 0;
}

.eap-gsf-summary-label {
	font-family: Times, serif;
	font-size: 16px;
	letter-spacing: 0.05em;
	text-transform: uppercase;
	color: #042A54;
}

.eap-gsf-summary-value {
	font-family: Times, serif;
	font-size: 21px;
	font-style: italic;
	color: #897056;
}

.eap-gsf-summary-kokku-row {
	border-top: 1px solid #042A54;
	margin-top: 6px;
	padding-top: 8px;
}

.eap-gsf-summary-kokku-row .eap-gsf-summary-label,
.eap-gsf-summary-kokku-row .eap-gsf-summary-value {
	font-size: 21px;
}

/* ---- Shipping options ---- */

.eap-gsf-shipping-fieldset {
	margin-bottom: 20px;
}

.eap-gsf-shipping-option {
	margin-bottom: 8px;
}

.eap-gsf-shipping-option:last-of-type {
	margin-bottom: 0;
}

.eap-gsf-shipping-option label {
	display: flex;
	align-items: center;
	gap: 10px;
	font-family: Times, serif;
	font-size: 21px;
	line-height: 24px;
	text-transform: none;
	letter-spacing: 0;
	cursor: pointer;
}

.eap-gsf-shipping-fieldset input[type="radio"] {
	width: 16px;
	height: 16px;
	flex-shrink: 0;
	appearance: none;
	-webkit-appearance: none;
	border: 1px solid #042A54;
	border-radius: 50%;
	background: #fff;
	cursor: pointer;
	position: relative;
}

.eap-gsf-shipping-fieldset input[type="radio"]:checked::after {
	content: '';
	display: block;
	width: 7px;
	height: 7px;
	background: #897056;
	border-radius: 50%;
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
}

.eap-gsf-shipping-fieldset.eap-gsf-field--error legend {
	color: #8b1a1a;
}

.eap-gsf-shipping-fieldset.eap-gsf-field--error input[type="radio"] {
	border-color: #8b1a1a;
}

/* ---- Honeypot ---- */

.eap-gsf-honeypot {
	position: absolute;
	left: -9999px;
	width: 1px;
	height: 1px;
	overflow: hidden;
	opacity: 0;
	pointer-events: none;
}

/* ---- Submit button ---- */

.eap-gsf-submit {
	font-family: SolumVerbaSemibold, Times, serif;
	font-size: 1.2em;
	letter-spacing: 0.13em;
	text-transform: uppercase;
	color: #042A54;
	background-color: #ffffff;
	border: 1px solid #042A54;
	padding: 10px 28px;
	cursor: pointer;
	transition: color 0.15s, border-color 0.15s;
}

.eap-gsf-submit:hover,
.eap-gsf-submit:focus {
	color: #897056;
	border-color: #897056;
	outline: none;
}

.eap-gsf-submit:disabled {
	opacity: 0.55;
	cursor: not-allowed;
}

/* ---- Status messages ---- */

.eap-gsf-status {
	margin-top: 14px;
	font-family: Times, serif;
	font-size: 18px;
	line-height: 22px;
	padding: 10px 14px;
	border-left: 3px solid #042A54;
}

.eap-gsf-status--success {
	color: #042A54;
	border-left-color: #897056;
	background-color: #f9f7f4;
}

.eap-gsf-status--error {
	color: #8b1a1a;
	border-left-color: #8b1a1a;
	background-color: #fdf5f5;
}