/* Software Request Shop - frontend */

.srs-card,
.srs-standalone {
	--srs-accent: #2f6f4e;
	--srs-border: #e3e5e8;
	--srs-text: #1f2430;
	--srs-muted: #6b7280;
	--srs-bg: #ffffff;
}

.srs-card {
	box-sizing: border-box;
	background: var(--srs-bg);
	border: 1px solid var(--srs-border);
	border-radius: 10px;
	padding: 22px;
	max-width: 420px;
	color: var(--srs-text);
	font-size: 15px;
	line-height: 1.6;
}

.srs-card-inline {
	max-width: none;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 14px;
}

.srs-card-title {
	margin: 0 0 6px;
	font-size: 17px;
	line-height: 1.35;
	font-weight: 600;
}

.srs-card-text p {
	margin: 0 0 10px;
	color: var(--srs-muted);
}

.srs-price {
	margin: 12px 0 16px;
	display: flex;
	align-items: baseline;
	gap: 8px;
	flex-wrap: wrap;
}

.srs-price-value {
	font-size: 20px;
	font-weight: 600;
}

.srs-price-note,
.srs-summary-note {
	font-size: 13px;
	color: var(--srs-muted);
}

.srs-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
	gap: 18px;
}

/* Buttons */

.srs-button {
	display: inline-block;
	border: 1px solid transparent;
	border-radius: 8px;
	padding: 11px 18px;
	font: inherit;
	font-weight: 500;
	line-height: 1.2;
	cursor: pointer;
	text-decoration: none;
}

.srs-button-primary {
	background: var(--srs-accent, #2f6f4e);
	color: #fff;
}

.srs-button-primary:hover,
.srs-button-primary:focus {
	filter: brightness(0.93);
	color: #fff;
}

.srs-button:focus-visible {
	outline: 2px solid var(--srs-accent, #2f6f4e);
	outline-offset: 2px;
}

.srs-submit {
	width: 100%;
	margin-top: 4px;
}

/* Modal */

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

.srs-modal {
	position: fixed;
	inset: 0;
	z-index: 99999;
	display: flex;
	align-items: flex-start;
	justify-content: center;
	padding: 24px 16px;
	overflow-y: auto;
}

.srs-modal-backdrop {
	position: fixed;
	inset: 0;
	background: rgba(15, 20, 28, 0.55);
}

.srs-modal-panel {
	position: relative;
	background: #fff;
	border-radius: 12px;
	padding: 26px;
	width: 100%;
	max-width: 520px;
	margin: auto;
	color: #1f2430;
	box-shadow: 0 18px 45px rgba(15, 20, 28, 0.22);
}

.srs-modal-title {
	margin: 0 0 16px;
	font-size: 19px;
	line-height: 1.3;
}

.srs-modal-close {
	position: absolute;
	top: 12px;
	right: 12px;
	background: transparent;
	border: 0;
	font-size: 26px;
	line-height: 1;
	padding: 4px 8px;
	cursor: pointer;
	color: #6b7280;
	border-radius: 6px;
}

.srs-modal-close:hover {
	background: #f3f4f6;
}

/* Form */

.srs-form {
	font-size: 15px;
	color: #1f2430;
}

.srs-summary {
	background: #f7f8f9;
	border-radius: 8px;
	padding: 14px 16px;
	margin-bottom: 18px;
}

.srs-summary-row {
	display: flex;
	justify-content: space-between;
	gap: 12px;
	font-weight: 500;
}

.srs-summary-desc {
	margin: 8px 0 0;
	font-size: 13px;
	color: #6b7280;
}

.srs-field {
	margin-bottom: 14px;
}

.srs-field > label,
.srs-fieldset > legend {
	display: block;
	margin-bottom: 5px;
	font-size: 13px;
	font-weight: 500;
	color: #374151;
}

.srs-field input[type="text"],
.srs-field input[type="email"],
.srs-field select,
.srs-field textarea {
	box-sizing: border-box;
	width: 100%;
	padding: 10px 12px;
	border: 1px solid #d3d6db;
	border-radius: 8px;
	font: inherit;
	background: #fff;
	color: inherit;
}

.srs-field input:focus,
.srs-field select:focus,
.srs-field textarea:focus {
	outline: 2px solid var(--srs-accent, #2f6f4e);
	outline-offset: 1px;
	border-color: transparent;
}

.srs-row {
	display: flex;
	gap: 12px;
}

.srs-row .srs-field {
	flex: 1 1 0;
	min-width: 0;
}

.srs-field-narrow {
	flex: 0 0 32%;
}

.srs-fieldset {
	border: 0;
	padding: 0;
	margin: 0 0 14px;
}

.srs-radio {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 7px 0;
	font-size: 14px;
}

.srs-req {
	color: #b4472c;
}

.srs-consents {
	margin: 16px 0;
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.srs-check {
	display: flex;
	gap: 9px;
	align-items: flex-start;
	font-size: 13px;
	line-height: 1.5;
	color: #374151;
}

.srs-check input {
	margin-top: 3px;
	flex: none;
}

.srs-fineprint {
	font-size: 12px;
	color: #6b7280;
	line-height: 1.5;
	margin: 0 0 16px;
}

.srs-legal-links {
	margin: 14px 0 0;
	font-size: 12px;
	color: #6b7280;
	text-align: center;
}

.srs-legal-links a {
	color: inherit;
}

.srs-hp {
	position: absolute;
	left: -9999px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

.srs-notice-warn {
	border-left: 3px solid #b4472c;
	padding: 8px 12px;
	background: #fdf3f1;
}

/* Toast */

.srs-toast {
	position: fixed;
	left: 50%;
	bottom: 24px;
	transform: translateX(-50%);
	z-index: 100000;
	display: flex;
	align-items: flex-start;
	gap: 12px;
	max-width: 440px;
	width: calc(100% - 32px);
	padding: 14px 16px;
	border-radius: 10px;
	background: #1f2430;
	color: #fff;
	box-shadow: 0 12px 30px rgba(15, 20, 28, 0.25);
	font-size: 14px;
	line-height: 1.5;
}

.srs-toast p {
	margin: 0;
	flex: 1;
}

.srs-toast-success {
	background: #1d5b41;
}

.srs-toast-error {
	background: #8f3423;
}

.srs-toast-close {
	background: transparent;
	border: 0;
	color: inherit;
	font-size: 20px;
	line-height: 1;
	cursor: pointer;
	padding: 0 2px;
}

@media (max-width: 520px) {
	.srs-row {
		flex-direction: column;
		gap: 0;
	}

	.srs-field-narrow {
		flex: 1 1 auto;
	}

	.srs-modal-panel {
		padding: 20px;
	}
}

@media (prefers-reduced-motion: reduce) {
	* {
		animation: none !important;
		transition: none !important;
	}
}

/* Slogan, media and ghost buttons */

.srs-slogan {
	margin: 0 0 12px;
	font-size: 13px;
	font-weight: 600;
	letter-spacing: 0.01em;
	color: var(--srs-accent, #2f6f4e);
}

.srs-card-main {
	display: flex;
	gap: 14px;
	align-items: flex-start;
}

.srs-card-media {
	flex: none;
	width: 84px;
}

.srs-card-media img {
	width: 100%;
	height: auto;
	display: block;
	border-radius: 8px;
}

.srs-card-body {
	min-width: 0;
	flex: 1;
}

.srs-card-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-top: 4px;
}

.srs-button-ghost {
	background: transparent;
	border-color: #d3d6db;
	color: #374151;
}

.srs-button-ghost:hover,
.srs-button-ghost:focus {
	border-color: var(--srs-accent, #2f6f4e);
	color: var(--srs-accent, #2f6f4e);
}

/* Modal head */

.srs-modal-subtitle {
	margin: -8px 0 18px;
	font-size: 13px;
	line-height: 1.55;
	color: #6b7280;
}

/* Summary with image */

.srs-summary {
	display: flex;
	gap: 12px;
	align-items: flex-start;
}

.srs-summary-image {
	flex: none;
	width: 52px;
	height: auto;
	border-radius: 6px;
	display: block;
}

.srs-summary-text {
	flex: 1;
	min-width: 0;
}

/* Inline validation */

.srs-error {
	display: none;
	margin-top: 4px;
	font-size: 12px;
	line-height: 1.45;
	color: #b4472c;
}

.srs-has-error .srs-error {
	display: block;
}

.srs-has-error > label,
.srs-has-error > legend {
	color: #b4472c;
}

.srs-has-error input[type="text"],
.srs-has-error input[type="email"],
.srs-has-error select,
.srs-has-error textarea {
	border-color: #b4472c;
	background: #fdf6f4;
}

.srs-check.srs-has-error {
	color: #b4472c;
}

.srs-check.srs-has-error input {
	outline: 2px solid #b4472c;
	outline-offset: 2px;
}

.srs-formerror {
	margin-bottom: 16px;
	padding: 10px 13px;
	border-radius: 8px;
	border-left: 3px solid #b4472c;
	background: #fdf3f1;
	color: #8f3423;
	font-size: 13px;
	line-height: 1.5;
}

.srs-formerror[hidden] {
	display: none;
}

/* Toast extras */

.srs-toast-icon {
	flex: none;
	display: inline-flex;
	align-items: center;
	color: #fff;
}

.srs-toast-image {
	flex: none;
	width: 40px;
	height: auto;
	border-radius: 6px;
	display: block;
}

@media (max-width: 520px) {
	.srs-card-main {
		flex-direction: column;
	}

	.srs-card-media {
		width: 110px;
	}
}
