/**
 * Region Selector Panel - styles
 * Slide-out panel, fixed width 320px, max-width 100% for small screens.
 */

/* Trigger button */
.rsp-trigger-btn {
	display: inline-block;
	padding: 10px 18px;
	background: #1e2a38;
	color: #fff;
	border: none;
	border-radius: 4px;
	font-size: 14px;
	font-weight: 600;
	cursor: pointer;
	line-height: 1.2;
	transition: background-color 0.2s ease;
}

.rsp-trigger-btn:hover,
.rsp-trigger-btn:focus {
	background: #12202e;
}

/* Any element (e.g. an Elementor Icon widget) tagged with this class
   becomes a panel trigger too - see region-selector.js. */
.rsp-icon-trigger {
	cursor: pointer;
}

/* Built-in fallback globe icon rendered by [region_selector_trigger_icon]
   when no icon_class attribute is given. */
.rsp-icon-trigger-svg {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: var(--rsp-icon-size, 24px);
	height: var(--rsp-icon-size, 24px);
	color: var(--rsp-icon-color, #1e2a38);
	cursor: pointer;
	transition: color 0.2s ease;
}

.rsp-icon-trigger-svg:hover,
.rsp-icon-trigger-svg:focus {
	color: var(--rsp-icon-hover-color, #12202e);
}

.rsp-icon-trigger-svg svg {
	width: 100%;
	height: 100%;
}

/* Dark overlay behind the panel */
.rsp-overlay {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background: rgba(0, 0, 0, 0.5);
	z-index: 100000;
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.3s ease;
}

.rsp-overlay.rsp-is-visible {
	opacity: 1;
	visibility: visible;
}

/* The sliding panel itself */
.rsp-panel {
	position: fixed;
	top: 0;
	right: 0;
	height: 100%;
	width: 320px;
	max-width: 100%; /* keeps it inside the viewport on screens under 320px */
	background: #fff;
	box-shadow: -2px 0 12px rgba(0, 0, 0, 0.2);
	z-index: 100001;
	display: flex;
	flex-direction: column;
	transform: translateX(100%);
	transition: transform 0.3s ease;
	box-sizing: border-box;
}

.rsp-panel.rsp-is-open {
	transform: translateX(0);
}

.rsp-panel * {
	box-sizing: border-box;
}

.rsp-panel-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 16px 20px;
	border-bottom: 1px solid #e5e5e5;
	flex-shrink: 0;
}

.rsp-panel-title {
	margin: 0;
	font-size: 18px;
	font-weight: 600;
	line-height: 1.3;
}

.rsp-close-btn {
	background: transparent;
	border: none;
	font-size: 26px;
	line-height: 1;
	cursor: pointer;
	color: #555;
	padding: 4px 8px;
	margin: -4px -8px 0 0;
}

.rsp-close-btn:hover,
.rsp-close-btn:focus {
	color: #000;
}

.rsp-panel-body {
	flex: 1 1 auto;
	overflow-y: auto;
	-webkit-overflow-scrolling: touch;
	padding: 36px 24px 32px; /* extra top padding creates breathing room below the header */
}

.rsp-block {
	margin-bottom: 40px;
}

.rsp-block:last-child {
	margin-bottom: 0;
}

.rsp-block-heading {
	margin: 0 0 14px;
	font-size: 15px;
	font-weight: 600;
	color: #1e2a38;
	line-height: 1.3;
}

.rsp-block-text {
	margin: 0 0 20px;
	font-size: 13px;
	line-height: 1.6;
	color: #555;
}

.rsp-lang-links {
	display: flex;
	gap: 12px;
	margin-bottom: 4px;
	flex-wrap: wrap;
}

/* Style the buttons GTranslate's [gt-link] shortcode renders inside our
   wrapper (this is the "wrapper selector" approach from GTranslate's own
   customization docs) - no need to know their exact markup/class names. */
.rsp-lang-links a,
.rsp-lang-link {
	display: inline-block;
	padding: 6px 16px;
	border: 1px solid #d5d5d5;
	border-radius: 20px;
	font-size: 13px;
	font-weight: 500;
	color: #1e2a38;
	text-decoration: none;
	transition: background-color 0.2s ease, border-color 0.2s ease;
}

.rsp-lang-links a:hover,
.rsp-lang-links a:hover *,
.rsp-lang-links a:focus,
.rsp-lang-links a:focus *,
.rsp-lang-link:hover,
.rsp-lang-link:focus {
	background: #1e2a38;
	border-color: #1e2a38;
	color: #fff !important; /* !important needed - GTranslate wraps the
		label in its own inner element with its own color, which otherwise
		wins over our plain color rule on hover */
	transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

/* Optional GTranslate tweaks (from GTranslate's own customization tips) -
   uncomment whichever you want:
   Hide the currently-active language from the pill row:
     .rsp-lang-links a.gt-current-lang { display: none; }
   Force flags to monochrome, if you switch widget_look to include flags:
     .rsp-lang-links a[data-gt-lang] img { filter: grayscale(1); }
*/

/* Prevent embedded widgets (GTranslate dropdown, Forminator fields)
   from overflowing the fixed-width panel on very small screens. */
.rsp-panel-body img,
.rsp-panel-body iframe,
.rsp-panel-body select,
.rsp-panel-body input,
.rsp-panel-body .forminator-row,
.rsp-panel-body .gtranslate_wrapper {
	max-width: 100%;
}

/* Give Forminator's own fields/buttons some room to breathe instead of
   sitting flush against each other (safe generic selectors - Forminator
   markup varies by field type, these cover the common wrappers). */
.rsp-forminator-block .forminator-row,
.rsp-forminator-block .forminator-field,
.rsp-forminator-block .forminator-col {
	margin-bottom: 18px;
}

.rsp-forminator-block button,
.rsp-forminator-block input[type='submit'],
.rsp-forminator-block .forminator-button-submit {
	margin-top: 6px;
}

.rsp-forminator-block a {
	display: inline-block;
	margin-top: 14px;
}

/* extra breathing room between the end of the form and whatever
   follows it (tagline / image) */
.rsp-forminator-block {
	margin-bottom: 12px;
}

.rsp-tagline {
	margin: 36px 0 14px;
	font-size: 13px;
	font-weight: 600;
	line-height: 1.5;
}

.rsp-tagline-link {
	color: #1e2a38;
	text-decoration: none;
}

.rsp-tagline-link:hover,
.rsp-tagline-link:focus {
	color: #12202e;
	text-decoration: underline;
}

.rsp-bottom-image {
	margin-top: 8px;
}

.rsp-bottom-image img {
	display: block;
	width: 100%;
	height: auto;
	border-radius: 4px;
}

/* Lock body scroll while the panel is open (class added via JS) */
body.rsp-no-scroll {
	overflow: hidden;
}

@media (max-width: 320px) {
	.rsp-panel {
		width: 100%;
	}
}

/* Mobile type scale - bigger title, smaller body copy */
@media (max-width: 480px) {
	.rsp-panel-title {
		font-size: 20px;
	}

	.rsp-block-text {
		font-size: 12px;
	}
}
