.ftt-savings-widget,
.ftt-savings-widget * {
	box-sizing: border-box;
}


.ftt-savings-widget .screen-reader-text {
	position: absolute !important;
	width: 1px !important;
	height: 1px !important;
	padding: 0 !important;
	margin: -1px !important;
	overflow: hidden !important;
	clip: rect(0, 0, 0, 0) !important;
	white-space: nowrap !important;
	border: 0 !important;
}

.ftt-savings-card {
	position: relative;
	overflow: hidden;
	padding: 15px;
	border: 1px solid #ececf2;
	border-radius: 16px;
	background:
		radial-gradient(circle at 100% 0, rgba(255, 111, 60, .12), transparent 34%),
		linear-gradient(180deg, #fff 0%, #fbfbfd 100%);
	box-shadow: 0 10px 28px rgba(29, 31, 45, .08);
}

.ftt-savings-intro {
	display: flex;
	align-items: center;
	gap: 10px;
	margin-bottom: 14px;
	padding: 10px 11px;
	border-radius: 12px;
	background: linear-gradient(135deg, #fff0f2, #fff7ed);
	color: #42445a;
}

.ftt-savings-intro__icon {
	display: inline-grid;
	flex: 0 0 36px;
	width: 36px;
	height: 36px;
	place-items: center;
	border-radius: 11px;
	background: linear-gradient(135deg, #ef334d, #ff7a32);
	color: #fff;
	font-size: 21px;
	font-weight: 900;
	box-shadow: 0 7px 14px rgba(239, 51, 77, .2);
}

.ftt-savings-intro p {
	margin: 0;
	font-size: 12.5px;
	line-height: 1.45;
}

.ftt-savings-head,
.ftt-savings-row {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 105px 28px;
	gap: 7px;
	align-items: center;
}

.ftt-savings-head {
	padding: 0 3px 6px;
	color: #777b8f;
	font-size: 10px;
	font-weight: 800;
	letter-spacing: .02em;
	text-transform: uppercase;
}

.ftt-savings-head span:nth-child(2) {
	text-align: center;
}

.ftt-savings-rows {
	display: grid;
	gap: 8px;
}

.ftt-savings-row {
	animation: fttRowIn .22s ease both;
}

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

.ftt-savings-row input {
	width: 100%;
	height: 41px;
	margin: 0;
	padding: 0 10px;
	border: 1px solid #dfe1e9;
	border-radius: 10px;
	outline: 0;
	background: #fff;
	color: #242637;
	font-size: 13px;
	box-shadow: none;
	transition: border-color .18s ease, box-shadow .18s ease;
}

.ftt-savings-row input:focus {
	border-color: #ef334d;
	box-shadow: 0 0 0 3px rgba(239, 51, 77, .1);
}

.ftt-amount-field {
	position: relative;
}

.ftt-amount-field input {
	padding-right: 31px;
	text-align: right;
	font-weight: 800;
}

.ftt-amount-field > span {
	position: absolute;
	top: 50%;
	right: 9px;
	transform: translateY(-50%);
	color: #8b8ea0;
	font-size: 11px;
	font-weight: 800;
	pointer-events: none;
}

.ftt-remove-row {
	display: grid;
	width: 28px;
	height: 28px;
	padding: 0;
	place-items: center;
	border: 0;
	border-radius: 9px;
	background: #f1f2f6;
	color: #7f8293;
	font-size: 19px;
	font-weight: 500;
	line-height: 1;
	cursor: pointer;
	transition: background .18s ease, color .18s ease, transform .18s ease;
}

.ftt-remove-row:hover,
.ftt-remove-row:focus {
	background: #fee8eb;
	color: #d82742;
	transform: scale(1.05);
}

.ftt-savings-actions {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	gap: 8px;
	margin-top: 13px;
}

.ftt-calculate-button,
.ftt-create-image-button,
.ftt-clear-button,
.ftt-share-buttons button {
	appearance: none;
	border: 0;
	cursor: pointer;
	font-family: inherit;
	font-weight: 800;
	transition: transform .18s ease, box-shadow .18s ease, opacity .18s ease;
}

.ftt-calculate-button {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 7px;
	min-height: 43px;
	padding: 10px 13px;
	border-radius: 11px;
	background: linear-gradient(135deg, #ef334d, #ff6a36);
	color: #fff;
	font-size: 13px;
	box-shadow: 0 8px 18px rgba(239, 51, 77, .22);
}

.ftt-calculate-button span {
	font-size: 18px;
	line-height: 1;
}

.ftt-clear-button {
	min-height: 43px;
	padding: 10px 12px;
	border-radius: 11px;
	background: #eef0f5;
	color: #666a7d;
	font-size: 12px;
}

.ftt-calculate-button:hover,
.ftt-create-image-button:hover,
.ftt-share-buttons button:hover {
	transform: translateY(-1px);
}

.ftt-savings-total {
	margin-top: 14px;
	padding: 15px;
	border: 1px solid rgba(46, 176, 107, .2);
	border-radius: 14px;
	background: linear-gradient(145deg, #effcf5, #f8fffb);
	text-align: center;
	animation: fttTotalIn .28s ease both;
}

@keyframes fttTotalIn {
	from { opacity: 0; transform: scale(.97); }
	to { opacity: 1; transform: scale(1); }
}

.ftt-savings-total__label {
	color: #47735b;
	font-size: 11px;
	font-weight: 800;
	letter-spacing: .03em;
	text-transform: uppercase;
}

.ftt-savings-total__value {
	margin-top: 3px;
	color: #16834a;
	font-size: clamp(26px, 8vw, 36px);
	font-weight: 950;
	letter-spacing: -.04em;
	line-height: 1.1;
}

.ftt-savings-total__meta {
	margin-top: 4px;
	color: #6b7c72;
	font-size: 11px;
}

.ftt-create-image-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 7px;
	width: 100%;
	min-height: 41px;
	margin-top: 12px;
	padding: 9px 12px;
	border-radius: 10px;
	background: #172033;
	color: #fff;
	font-size: 12px;
	box-shadow: 0 8px 16px rgba(23, 32, 51, .15);
}

.ftt-savings-privacy {
	margin: 11px 0 0;
	color: #8a8d9d;
	font-size: 10.5px;
	line-height: 1.4;
	text-align: center;
}

.ftt-savings-status,
.ftt-share-status {
	min-height: 0;
	margin-top: 7px;
	color: #6d7184;
	font-size: 11px;
	line-height: 1.35;
	text-align: center;
}

.ftt-savings-status.is-error,
.ftt-share-status.is-error {
	color: #c5223e;
}

.ftt-savings-status.is-success,
.ftt-share-status.is-success {
	color: #16834a;
}

.ftt-share-modal[hidden] {
	display: none !important;
}

.ftt-share-modal {
	position: fixed;
	z-index: 999999;
	inset: 0;
	display: grid;
	place-items: center;
	padding: 18px;
}

.ftt-share-modal__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(12, 15, 24, .72);
	backdrop-filter: blur(4px);
}

.ftt-share-modal__dialog {
	position: relative;
	z-index: 1;
	width: min(94vw, 475px);
	max-height: 94vh;
	overflow: auto;
	padding: 18px;
	border-radius: 20px;
	background: #fff;
	box-shadow: 0 28px 80px rgba(0, 0, 0, .3);
	animation: fttModalIn .22s ease both;
}

@keyframes fttModalIn {
	from { opacity: 0; transform: translateY(10px) scale(.98); }
	to { opacity: 1; transform: translateY(0) scale(1); }
}

.ftt-share-modal__close {
	position: absolute;
	top: 10px;
	right: 10px;
	display: grid;
	width: 32px;
	height: 32px;
	padding: 0;
	place-items: center;
	border: 0;
	border-radius: 50%;
	background: #eef0f5;
	color: #575b6d;
	font-size: 22px;
	line-height: 1;
	cursor: pointer;
}

.ftt-share-modal__heading {
	display: grid;
	gap: 4px;
	padding-right: 35px;
}

.ftt-share-modal__heading strong {
	color: #242637;
	font-size: 18px;
}

.ftt-share-modal__heading span,
.ftt-share-help {
	color: #777b8d;
	font-size: 11.5px;
	line-height: 1.45;
}

.ftt-share-preview-wrap {
	display: grid;
	min-height: 260px;
	margin-top: 14px;
	place-items: center;
	overflow: hidden;
	border-radius: 14px;
	background: #f0f1f5;
}

.ftt-share-loading {
	padding: 30px;
	color: #666a7d;
	font-size: 13px;
	font-weight: 700;
}

.ftt-share-preview {
	display: block;
	width: 100%;
	max-height: 58vh;
	object-fit: contain;
	background: #f4f5f8;
}

.ftt-share-buttons {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 8px;
	margin-top: 13px;
}

.ftt-share-buttons button {
	min-height: 43px;
	padding: 10px 12px;
	border-radius: 11px;
	font-size: 12px;
}

.ftt-share-whatsapp {
	background: #1eae61;
	color: #fff;
}

.ftt-share-instagram {
	background: linear-gradient(135deg, #7b3ee4, #db3076, #ff8a35);
	color: #fff;
}

.ftt-share-download {
	grid-column: 1 / -1;
	background: #172033;
	color: #fff;
}

.ftt-share-help {
	margin: 10px 0 0;
	text-align: center;
}

body.ftt-modal-open {
	overflow: hidden;
}

@media (max-width: 360px) {
	.ftt-savings-card { padding: 12px; }
	.ftt-savings-head,
	.ftt-savings-row { grid-template-columns: minmax(0, 1fr) 92px 27px; gap: 5px; }
	.ftt-savings-row input { padding-left: 8px; padding-right: 8px; font-size: 12px; }
	.ftt-amount-field input { padding-right: 28px; }
	.ftt-share-buttons { grid-template-columns: 1fr; }
	.ftt-share-download { grid-column: auto; }
}
