/**
 * Frontend Styles for Pop Up Medicamentos - Envio de Receitas
 * Colors:
 * - Plum / Vinho: #722257
 * - Lime Green: #84BD00
 * - Soft Green: #eff7e1
 * - Soft Plum: #fbf2f7
 */

:root {
	--rx-primary: #722257;
	--rx-primary-hover: #5c1945;
	--rx-accent: #84BD00;
	--rx-accent-hover: #73a600;
	--rx-accent-soft: #eff7e1;
	--rx-plum-soft: #fbf2f7;
	--rx-text-dark: #222222;
	--rx-text-muted: #6b7280;
	--rx-border-light: #e2e5e9;
	--rx-border-dark: #cbd5e1;
	--rx-card-bg: #ffffff;
	--rx-radius-card: 16px;
	--rx-radius-btn: 9999px;
	--rx-radius-input: 8px;
	--rx-font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
	--rx-header-bg: #722257;
	--rx-header-text: #ffffff;
}

/* ========================================================== */
/* Container & Base Card                                      */
/* ========================================================== */
.crestana-rx-container {
	font-family: var(--rx-font);
	width: 100%;
	max-width: 780px;
	margin: 0 auto;
	box-sizing: border-box;
	color: var(--rx-text-dark);
	background: transparent;
	line-height: 1.5;
}

.crestana-rx-container *,
.crestana-rx-container *::before,
.crestana-rx-container *::after {
	box-sizing: border-box;
}

/* Top Banner Header */
.crestana-rx-header {
	background-color: var(--rx-header-bg, var(--rx-primary));
	border-radius: var(--rx-radius-card) var(--rx-radius-card) 0 0;
	padding: 34px 28px 24px 28px;
	text-align: center;
	color: var(--rx-header-text, #ffffff);
}

.crestana-rx-header-logo {
	display: block;
	max-width: 200px;
	max-height: 52px;
	width: auto;
	height: auto;
	margin: 0 auto 16px auto;
	object-fit: contain;
}

.crestana-rx-title {
	font-size: 24px;
	font-weight: 700;
	margin: 0 0 8px 0;
	color: var(--rx-header-text, #ffffff);
	letter-spacing: -0.01em;
}

.crestana-rx-subtitle {
	font-size: 14.5px;
	color: var(--rx-header-text, #ffffff);
	opacity: 0.92;
	margin: 0;
	font-weight: 400;
	max-width: 600px;
	margin-left: auto;
	margin-right: auto;
}

/* Vibrant Lime Green Stripe */
.crestana-rx-green-stripe {
	height: 4px;
	background-color: var(--rx-accent);
	width: 100%;
}

/* Form Card Body */
.crestana-rx-card {
	background-color: var(--rx-card-bg);
	border-radius: 0 0 var(--rx-radius-card) var(--rx-radius-card);
	padding: 30px 44px 44px 44px;
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
	border: 1px solid #eaeaea;
	border-top: none;
}

@media (max-width: 640px) {
	.crestana-rx-card {
		padding: 22px 18px 28px 18px;
	}
	.crestana-rx-header {
		padding: 24px 18px 18px 18px;
	}
	.crestana-rx-title {
		font-size: 20px;
	}
	.crestana-rx-subtitle {
		font-size: 13.5px;
	}
}

/* ========================================================== */
/* Stepper Progress Bar                                       */
/* ========================================================== */
.crestana-rx-stepper {
	margin-bottom: 30px;
	padding-bottom: 20px;
	border-bottom: 1px solid #f1f2f4;
	text-align: center;
}

.rx-stepper-label-top {
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: #7d828a;
	margin-bottom: 12px;
}

.rx-stepper-track {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 12px;
}

.rx-step-item {
	display: flex;
	align-items: center;
	gap: 10px;
	font-size: 14.5px;
	font-weight: 600;
	color: #8c919a;
	transition: all 0.25s ease;
}

.rx-step-circle {
	width: 32px;
	height: 32px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	background: #ffffff;
	border: 2px solid #d1d5db;
	color: #8c919a;
	font-size: 14px;
	font-weight: 700;
	transition: all 0.25s ease;
}

.rx-step-circle .step-check {
	display: none;
}

/* Active Step State */
.rx-step-item.active {
	color: var(--rx-primary);
}
.rx-step-item.active .rx-step-circle {
	background: var(--rx-primary);
	border-color: var(--rx-primary);
	color: #ffffff;
}

/* Completed Step State */
.rx-step-item.completed {
	color: var(--rx-text-dark);
}
.rx-step-item.completed .rx-step-circle {
	background: var(--rx-accent);
	border-color: var(--rx-accent);
	color: #ffffff;
}
.rx-step-item.completed .rx-step-circle .step-num {
	display: none;
}
.rx-step-item.completed .rx-step-circle .step-check {
	display: flex;
	align-items: center;
	justify-content: center;
}

/* Stepper Connector Line */
.rx-step-line {
	width: 50px;
	height: 3px;
	background-color: #e5e7eb;
	border-radius: 2px;
	transition: all 0.25s ease;
}
.rx-step-line.completed {
	background-color: var(--rx-accent);
}

/* ========================================================== */
/* Form Sections & Fields                                     */
/* ========================================================== */
.rx-section-block {
	margin-bottom: 20px;
}

.rx-section-title {
	font-size: 19px;
	font-weight: 700;
	color: var(--rx-primary);
	margin: 0 0 4px 0;
}

.rx-section-desc {
	font-size: 14px;
	color: var(--rx-text-muted);
	margin: 0 0 16px 0;
}

.rx-block-title {
	font-size: 16px;
	font-weight: 700;
	color: var(--rx-text-dark);
	margin: 0 0 4px 0;
}

.rx-form-row {
	display: flex;
	gap: 16px;
	margin-bottom: 14px;
}

.rx-two-cols > .rx-form-group {
	flex: 1;
	min-width: 0;
}

@media (max-width: 600px) {
	.rx-form-row.rx-two-cols {
		flex-direction: column;
		gap: 12px;
	}
}

.rx-form-group {
	margin-bottom: 14px;
}

.rx-form-group label {
	display: block;
	font-size: 13.5px;
	font-weight: 600;
	color: #374151;
	margin-bottom: 6px;
}

.rx-req {
	color: var(--rx-primary);
	font-weight: 700;
}

.rx-form-group input[type="text"],
.rx-form-group input[type="email"],
.rx-form-group input[type="tel"],
.rx-form-group select,
.rx-section-block textarea {
	width: 100%;
	height: 46px;
	padding: 10px 14px;
	border: 1.5px solid var(--rx-border-light);
	border-radius: var(--rx-radius-input);
	background-color: #ffffff;
	font-size: 14.5px;
	color: var(--rx-text-dark);
	outline: none;
	transition: border-color 0.2s, box-shadow 0.2s;
	font-family: inherit;
}

.rx-section-block textarea {
	height: auto;
	resize: vertical;
	min-height: 85px;
	line-height: 1.5;
}

.rx-form-group input:focus,
.rx-form-group select:focus,
.rx-section-block textarea:focus {
	border-color: var(--rx-primary);
	box-shadow: 0 0 0 3px rgba(114, 34, 87, 0.12);
}

.rx-form-group input::placeholder,
.rx-section-block textarea::placeholder {
	color: #9ca3af;
	font-size: 14px;
}

/* Select wrapper */
.rx-select-wrap {
	position: relative;
}
.rx-select-wrap select {
	appearance: none;
	-webkit-appearance: none;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 14px center;
	padding-right: 38px;
	cursor: pointer;
}

/* Input with icon prefix */
.rx-input-with-icon {
	position: relative;
	display: flex;
	align-items: center;
}
.rx-input-icon {
	position: absolute;
	left: 14px;
	color: #8c93a0;
	display: flex;
	align-items: center;
	pointer-events: none;
}
.rx-input-with-icon input {
	padding-left: 42px !important;
}

/* Phone Group (Prefix select + Number input) */
.rx-phone-group {
	position: relative;
	display: flex;
	align-items: center;
	border: 1.5px solid var(--rx-border-light);
	border-radius: var(--rx-radius-input);
	background-color: #ffffff;
	transition: border-color 0.2s, box-shadow 0.2s;
}
.rx-phone-group:focus-within {
	border-color: var(--rx-primary);
	box-shadow: 0 0 0 3px rgba(114, 34, 87, 0.12);
}
.rx-phone-group .rx-input-icon {
	position: static;
	padding-left: 12px;
}
.rx-phone-prefix {
	width: auto !important;
	height: 44px !important;
	border: none !important;
	background: transparent !important;
	padding: 0 8px 0 6px !important;
	font-size: 14px !important;
	font-weight: 500;
	color: #374151;
	box-shadow: none !important;
	cursor: pointer;
}
.rx-phone-group input[type="tel"] {
	border: none !important;
	box-shadow: none !important;
	height: 44px !important;
	padding: 10px 12px !important;
	flex: 1;
}

/* ========================================================== */
/* Info Notice Box (Delivery Area Warning)                    */
/* ========================================================== */
.rx-info-notice {
	background-color: var(--rx-plum-soft);
	border-left: 4px solid var(--rx-primary);
	border-radius: 4px 8px 8px 4px;
	padding: 14px 16px;
	display: flex;
	align-items: flex-start;
	gap: 12px;
	margin: 10px 0 16px 0;
}

.rx-notice-icon {
	color: var(--rx-primary);
	flex-shrink: 0;
	margin-top: 1px;
}

.rx-notice-text {
	font-size: 13.5px;
	line-height: 1.45;
	color: #4b3644;
}

/* ========================================================== */
/* Step 2: Prescriptions Dynamic Cards                        */
/* ========================================================== */
.rx-step2-header {
	text-align: center;
	margin-bottom: 24px;
}
.rx-step2-title {
	font-size: 21px;
	font-weight: 700;
	color: var(--rx-primary);
	margin: 0 0 6px 0;
}
.rx-step2-subtitle {
	font-size: 14px;
	color: var(--rx-text-muted);
	margin: 0 auto;
	max-width: 580px;
}

.rx-prescriptions-list {
	display: flex;
	flex-direction: column;
	gap: 18px;
	margin-bottom: 18px;
}

.rx-recipe-card {
	border: 1px solid var(--rx-border-light);
	border-radius: 12px;
	padding: 20px;
	background: #ffffff;
	position: relative;
	transition: border-color 0.2s, box-shadow 0.2s;
}
.rx-recipe-card:hover {
	border-color: #d1d5db;
}

.rx-recipe-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 16px;
}

.rx-recipe-badge {
	display: flex;
	align-items: center;
	gap: 8px;
}
.rx-badge-number {
	width: 22px;
	height: 22px;
	border-radius: 50%;
	background-color: var(--rx-primary);
	color: #ffffff;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 12px;
	font-weight: 700;
}
.rx-badge-title {
	font-weight: 700;
	font-size: 15px;
	color: #222222;
}

.rx-btn-remove-recipe {
	background: none;
	border: none;
	color: #ef4444;
	font-size: 13px;
	cursor: pointer;
	display: flex;
	align-items: center;
	gap: 4px;
	padding: 4px 8px;
	border-radius: 4px;
	transition: background 0.2s;
}
.rx-btn-remove-recipe:hover {
	background: #fee2e2;
}

.rx-codes-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 14px;
	margin-bottom: 16px;
}
@media (max-width: 600px) {
	.rx-codes-grid {
		grid-template-columns: 1fr;
		gap: 10px;
	}
}

.rx-codes-grid .rx-form-group {
	margin-bottom: 0;
}

.rx-codes-grid label {
	font-size: 13px;
	color: #4b5563;
	font-weight: 600;
}

/* Divider e/ou */
.rx-divider-or {
	display: flex;
	align-items: center;
	text-align: center;
	margin: 16px 0;
}
.rx-divider-or::before,
.rx-divider-or::after {
	content: '';
	flex: 1;
	border-bottom: 1px solid #e5e7eb;
}
.rx-divider-or span {
	padding: 0 12px;
	font-size: 12.5px;
	color: #8c919a;
	font-weight: 500;
}

/* Upload Box (Green Dashed) */
.rx-upload-box {
	border-radius: 10px;
	padding: 16px 20px;
	transition: all 0.2s ease;
	position: relative;
}

.rx-upload-green {
	border: 1.5px dashed var(--rx-accent);
	background-color: #fafcf6;
}
.rx-upload-green:hover,
.rx-upload-green.dragover {
	background-color: var(--rx-accent-soft);
	border-color: var(--rx-accent-hover);
}

.rx-upload-grey {
	border: 1.5px dashed #cfd4dc;
	background-color: #fafafa;
}
.rx-upload-grey:hover,
.rx-upload-grey.dragover {
	border-color: #9ca3af;
	background-color: #f4f5f7;
}

.rx-upload-content {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
}
@media (max-width: 580px) {
	.rx-upload-content {
		flex-direction: column;
		text-align: center;
	}
}

.rx-upload-icon,
.rx-upload-icon-card {
	color: #6b7280;
	display: flex;
	align-items: center;
	justify-content: center;
}

.rx-upload-texts {
	flex: 1;
	display: flex;
	flex-direction: column;
}
.rx-upload-texts .upload-title {
	font-size: 14.5px;
	font-weight: 700;
	color: #1f2937;
}
.rx-upload-texts .upload-hint {
	font-size: 12.5px;
	color: #8c919a;
	margin-top: 2px;
}

.rx-btn-choose-file {
	background: #ffffff;
	border: 1.5px solid var(--rx-primary);
	color: var(--rx-primary);
	border-radius: var(--rx-radius-btn);
	padding: 8px 18px;
	font-size: 13.5px;
	font-weight: 600;
	cursor: pointer;
	white-space: nowrap;
	transition: all 0.2s ease;
}
.rx-btn-choose-file:hover {
	background: var(--rx-primary);
	color: #ffffff;
}

/* File Selected Badge */
.rx-file-selected-badge,
.rx-card-file-item {
	display: flex;
	align-items: center;
	justify-content: space-between;
	background: #ffffff;
	border: 1px solid #d1d5db;
	border-radius: 6px;
	padding: 8px 12px;
	margin-top: 12px;
	font-size: 13px;
}
.rx-file-selected-badge .file-name,
.rx-card-file-item .file-name {
	font-weight: 600;
	color: var(--rx-primary);
	word-break: break-all;
}
.rx-file-selected-badge .file-size,
.rx-card-file-item .file-size {
	color: #888888;
	font-size: 12px;
	margin-left: 8px;
}
.btn-clear-file {
	background: none;
	border: none;
	color: #ef4444;
	font-size: 18px;
	line-height: 1;
	cursor: pointer;
	padding: 0 4px;
	margin-left: 8px;
}

/* Add another recipe button */
.rx-btn-add-recipe {
	width: 100%;
	border: 1.5px dashed var(--rx-primary);
	background: transparent;
	color: var(--rx-primary);
	border-radius: 10px;
	padding: 12px 20px;
	font-size: 14.5px;
	font-weight: 700;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	transition: all 0.2s ease;
}
.rx-btn-add-recipe:hover {
	background: var(--rx-plum-soft);
}

/* GDPR Consent Checkbox */
.rx-consent-row {
	margin: 22px 0 24px 0;
}
.rx-checkbox-label {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	cursor: pointer;
	font-size: 13.5px;
	line-height: 1.45;
	color: #4b5563;
}
.rx-checkbox-label input[type="checkbox"] {
	position: absolute;
	opacity: 0;
	cursor: pointer;
}
.rx-checkbox-box {
	width: 18px;
	height: 18px;
	flex-shrink: 0;
	border: 1.5px solid #9ca3af;
	border-radius: 4px;
	background: #ffffff;
	margin-top: 2px;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: all 0.2s ease;
}
.rx-checkbox-label input[type="checkbox"]:checked ~ .rx-checkbox-box {
	background-color: var(--rx-primary);
	border-color: var(--rx-primary);
}
.rx-checkbox-label input[type="checkbox"]:checked ~ .rx-checkbox-box::after {
	content: '';
	width: 5px;
	height: 9px;
	border: solid white;
	border-width: 0 2px 2px 0;
	transform: rotate(45deg);
	margin-bottom: 2px;
}
.rx-consent-text a {
	color: var(--rx-primary);
	text-decoration: underline;
}

/* ========================================================== */
/* Action Buttons                                             */
/* ========================================================== */
.rx-bottom-actions {
	display: flex;
	align-items: center;
	margin-top: 26px;
}
.rx-bottom-actions.single-right {
	justify-content: flex-end;
}
.rx-bottom-actions.two-buttons {
	justify-content: space-between;
}

.rx-btn-primary {
	background-color: var(--rx-primary);
	color: #ffffff;
	border: none;
	border-radius: var(--rx-radius-btn);
	padding: 13px 32px;
	font-size: 15px;
	font-weight: 700;
	cursor: pointer;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	transition: background-color 0.2s ease, transform 0.15s ease, box-shadow 0.2s;
	box-shadow: 0 4px 12px rgba(114, 34, 87, 0.2);
}
.rx-btn-primary:hover {
	background-color: var(--rx-primary-hover);
	transform: translateY(-1px);
	box-shadow: 0 6px 16px rgba(114, 34, 87, 0.28);
}
.rx-btn-primary:active {
	transform: translateY(0);
}

.rx-btn-secondary {
	background-color: #ffffff;
	color: #374151;
	border: 1.5px solid #d1d5db;
	border-radius: var(--rx-radius-btn);
	padding: 12px 24px;
	font-size: 14.5px;
	font-weight: 600;
	cursor: pointer;
	display: inline-flex;
	align-items: center;
	gap: 8px;
	transition: all 0.2s ease;
}
.rx-btn-secondary:hover {
	border-color: #9ca3af;
	background-color: #f9fafb;
}

/* Spinner */
.rx-btn-spinner {
	width: 18px;
	height: 18px;
	border: 2.5px solid rgba(255, 255, 255, 0.35);
	border-top-color: #ffffff;
	border-radius: 50%;
	animation: rx-spin 0.8s linear infinite;
}
@keyframes rx-spin {
	to { transform: rotate(360deg); }
}

/* Form Error Banner */
.crestana-rx-form-error {
	background-color: #fef2f2;
	border-left: 4px solid #ef4444;
	color: #b91c1c;
	padding: 12px 16px;
	border-radius: 6px;
	font-size: 14px;
	margin-bottom: 20px;
	line-height: 1.5;
}

/* Field Validation Feedback */
.rx-form-group input.rx-input-error,
.rx-form-group select.rx-input-error {
	border-color: #ef4444 !important;
	box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.15) !important;
}

.rx-form-group input.rx-input-valid,
.rx-form-group select.rx-input-valid {
	border-color: #10b981 !important;
	box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.12) !important;
}

.rx-postal-feedback {
	margin-top: 6px;
	font-size: 12.5px;
	line-height: 1.4;
	border-radius: 6px;
	padding: 8px 12px;
	display: none;
}
.rx-postal-feedback.error {
	display: block;
	background-color: #fef2f2;
	border-left: 3px solid #ef4444;
	color: #b91c1c;
}
.rx-postal-feedback.valid {
	display: block;
	background-color: #f0fdf4;
	border-left: 3px solid #16a34a;
	color: #15803d;
}

/* ========================================================== */
/* Step 3: Success Screen                                     */
/* ========================================================== */
.rx-success-content {
	text-align: center;
	padding: 10px 0;
}

.rx-success-icon-wrap {
	display: flex;
	justify-content: center;
	margin-bottom: 20px;
}

.rx-success-icon-circle {
	width: 68px;
	height: 68px;
	border-radius: 50%;
	background-color: var(--rx-accent);
	display: flex;
	align-items: center;
	justify-content: center;
	box-shadow: 0 4px 15px rgba(132, 189, 0, 0.35);
}

.rx-order-ref-wrap {
	display: inline-block;
	background: var(--rx-plum-soft);
	border: 1px solid var(--rx-primary);
	border-radius: 20px;
	padding: 4px 16px;
	font-size: 13.5px;
	margin-bottom: 16px;
}
.rx-order-ref-wrap .rx-ref-label {
	color: #666666;
}
.rx-order-ref-wrap .rx-ref-code {
	color: var(--rx-primary);
	margin-left: 4px;
}

.rx-success-title {
	font-size: 25px;
	font-weight: 700;
	color: var(--rx-primary);
	margin: 0 0 10px 0;
}

.rx-success-subtitle {
	font-size: 15px;
	line-height: 1.55;
	color: #4b5563;
	max-width: 580px;
	margin: 0 auto 34px auto;
}

/* Tens alguma duvida section */
.rx-support-section {
	text-align: left;
	margin-bottom: 34px;
}

.rx-support-heading {
	font-size: 15px;
	font-weight: 700;
	color: #1f2937;
	margin: 0 0 14px 0;
}

.rx-support-cards {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 14px;
}
@media (max-width: 640px) {
	.rx-support-cards {
		grid-template-columns: 1fr;
		gap: 12px;
	}
}

.rx-support-card {
	background: #ffffff;
	border: 1.5px solid var(--rx-border-light);
	border-radius: 12px;
	padding: 18px 16px;
	display: flex;
	flex-direction: column;
	text-decoration: none;
	color: inherit;
	transition: border-color 0.2s, box-shadow 0.2s, transform 0.15s;
}
.rx-support-card:hover {
	border-color: #cbd5e1;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
	transform: translateY(-2px);
}

.support-icon-pill {
	width: 36px;
	height: 36px;
	border-radius: 8px;
	background-color: var(--rx-accent-soft);
	color: var(--rx-primary);
	display: flex;
	align-items: center;
	justify-content: center;
	margin-bottom: 12px;
}

.support-type {
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.08em;
	color: #6b7280;
	margin-bottom: 4px;
}

.support-val {
	font-size: 15px;
	font-weight: 700;
	color: #111827;
	margin-bottom: 4px;
}

.support-sched {
	font-size: 12px;
	color: #8c919a;
	line-height: 1.35;
}

/* Slogan Footer */
.rx-slogan-wrap {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 14px;
	margin-top: 30px;
}
.slogan-line {
	width: 44px;
	height: 2px;
	background-color: var(--rx-accent);
}
.slogan-text {
	font-size: 15.5px;
	font-style: italic;
	font-weight: 600;
	color: var(--rx-primary);
}

.rx-new-submission-wrap {
	margin-top: 24px;
}
.rx-btn-link {
	background: none;
	border: none;
	color: var(--rx-primary);
	text-decoration: underline;
	font-size: 14px;
	cursor: pointer;
	font-weight: 600;
}
.rx-btn-link:hover {
	color: var(--rx-primary-hover);
}

/* ========================================================== */
/* Modal Popup & Backdrop                                    */
/* ========================================================== */
.crestana-rx-modal-overlay {
	position: fixed;
	top: 0;
	left: 0;
	width: 100vw;
	height: 100vh;
	z-index: 999999;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 20px;
	box-sizing: border-box;
	overflow-y: auto;
}

.crestana-rx-modal-backdrop {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba(18, 12, 16, 0.72);
	backdrop-filter: blur(4px);
	-webkit-backdrop-filter: blur(4px);
}

.crestana-rx-modal-dialog {
	position: relative;
	width: 100%;
	max-width: 780px;
	margin: auto;
	z-index: 10;
	animation: rx-modal-in 0.28s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes rx-modal-in {
	from {
		opacity: 0;
		transform: scale(0.96) translateY(12px);
	}
	to {
		opacity: 1;
		transform: scale(1) translateY(0);
	}
}

.crestana-rx-modal-close {
	position: absolute;
	top: 14px;
	right: 16px;
	width: 36px;
	height: 36px;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.2);
	border: none;
	color: #ffffff;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	z-index: 20;
	transition: background 0.2s, transform 0.15s;
}
.crestana-rx-modal-close:hover {
	background: rgba(255, 255, 255, 0.35);
	transform: scale(1.08);
}

/* Floating Trigger Button */
.crestana-rx-floating-btn {
	position: fixed;
	bottom: 28px;
	z-index: 99990;
	background-color: var(--rx-primary);
	border: none;
	border-bottom: 3.5px solid var(--rx-accent);
	color: #ffffff;
	padding: 13px 22px;
	border-radius: var(--rx-radius-btn);
	display: inline-flex;
	align-items: center;
	gap: 10px;
	font-size: 14.5px;
	font-weight: 700;
	cursor: pointer;
	box-shadow: 0 8px 24px rgba(114, 34, 87, 0.38);
	transition: transform 0.2s, box-shadow 0.2s, background-color 0.2s;
}
.crestana-rx-floating-btn:hover {
	transform: translateY(-2px);
	box-shadow: 0 12px 30px rgba(114, 34, 87, 0.48);
	background-color: var(--rx-primary-hover);
}
.crestana-rx-floating-btn.pos-bottom-right {
	right: 28px;
}
.crestana-rx-floating-btn.pos-bottom-left {
	left: 28px;
}
.crestana-rx-floating-btn .btn-icon {
	color: var(--rx-accent);
	display: flex;
	align-items: center;
}
