/* Rap Market Widget — styles ported from rapi-widget-elementor.html */
.rapi-root, .rapi-root * { box-sizing: border-box; }
.rapi-root {
	margin: 0;
	font-family: 'Inter', sans-serif;
	-webkit-font-smoothing: antialiased;
	color: #101828;
}
.rapi-root a { color: #3538CD; text-decoration: none; }
.rapi-root a:hover { color: #2D2FA6; }

.rapi-card {
	width: 100%;
	max-width: 720px;
	background: #fff;
	border: 1px solid #EAECF0;
	border-radius: 16px;
	box-shadow: 0 1px 2px rgba(13, 35, 56, .04), 0 18px 50px -20px rgba(13, 35, 56, .18);
	overflow: hidden;
}

.rapi-tabs { display: flex; flex-wrap: wrap; column-gap: 26px; row-gap: 2px; padding: 18px 22px 0; border-bottom: 1px solid #EAECF0; }
/* Hard reset: themes (e.g. Hello Elementor / kit styles) apply background
   and color to button:hover/:focus — keep tabs flat and transparent. */
.rapi-root .rapi-tab,
.rapi-root .rapi-tab:hover,
.rapi-root .rapi-tab:focus,
.rapi-root .rapi-tab:focus-visible,
.rapi-root .rapi-tab:active {
	padding: 0 0 14px;
	cursor: pointer;
	font-size: 15px;
	font-weight: 500;
	color: #667085;
	border-bottom: 3px solid transparent;
	margin-bottom: -1px;
	white-space: nowrap;
	background: transparent !important;
	background-color: transparent !important;
	border-left: none;
	border-right: none;
	border-top: none;
	border-radius: 0;
	box-shadow: none !important;
	outline: none;
	text-shadow: none;
	font-family: inherit;
}
.rapi-root .rapi-tab:hover { color: #101828; }
.rapi-root .rapi-tab:focus-visible { border-bottom-color: #D0D5DD; }
.rapi-root .rapi-tab.active,
.rapi-root .rapi-tab.active:hover,
.rapi-root .rapi-tab.active:focus,
.rapi-root .rapi-tab.active:active { font-weight: 700; color: #101828; border-bottom: 3px solid #101828; }

.rapi-panel { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 28px; padding: 22px 26px 26px; }
.rapi-rows-col { flex: 1 1 230px; min-width: 210px; display: flex; flex-direction: column; }
.rapi-rows-title { margin-bottom: 14px; font-size: 16px; font-weight: 700; color: #101828; }
.rapi-root .rapi-row,
.rapi-root .rapi-row:focus,
.rapi-root .rapi-row:active { display: flex; justify-content: space-between; align-items: center; padding: 11px 12px; border-radius: 9px; cursor: pointer; background: transparent !important; box-shadow: inset 3px 0 0 transparent !important; border: none; width: 100%; font-family: inherit; text-align: left; outline: none; }
.rapi-root .rapi-row:hover { background: #F9FAFB !important; }
.rapi-root .rapi-row.active,
.rapi-root .rapi-row.active:hover,
.rapi-root .rapi-row.active:focus { background: #EEF4FF !important; box-shadow: inset 3px 0 0 #3538CD !important; }
.rapi-row-name { font-weight: 500; font-size: 15px; color: #101828; white-space: nowrap; }
.rapi-row.active .rapi-row-name { font-weight: 700; }
.rapi-row-right { display: flex; align-items: center; gap: 10px; }
.rapi-root .rapi-row-price,
.rapi-root .rapi-row:hover .rapi-row-price,
.rapi-root .rapi-row:focus .rapi-row-price,
.rapi-root .rapi-row.active .rapi-row-price { font-size: 14px; font-variant-numeric: tabular-nums; color: #101828 !important; transition: none; }
.rapi-row-chg { font-weight: 600; font-size: 14px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.rapi-row-chg.pos { color: #067647; }
.rapi-row-chg.neg { color: #D92D20; }

.rapi-chart-col { flex: 2 1 330px; min-width: 300px; display: flex; flex-direction: column; }
.rapi-chart-head { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.rapi-chart-label { flex: 1; font-size: 14px; font-weight: 500; color: rgba(16, 24, 40, .8); text-align: center; }
.rapi-ranges { display: flex; gap: 6px; }
.rapi-root .rapi-range,
.rapi-root .rapi-range:hover,
.rapi-root .rapi-range:focus,
.rapi-root .rapi-range:active {
	padding: 5px 12px;
	font-size: 13px;
	font-weight: 600;
	font-family: inherit;
	color: #475467;
	background: #fff !important;
	border: 1px solid #D0D5DD;
	border-radius: 8px;
	cursor: pointer;
	box-shadow: none !important;
	outline: none;
	line-height: 1.2;
}
.rapi-root .rapi-range:hover { color: #101828; border-color: #98A2B3; }
.rapi-root .rapi-range.active,
.rapi-root .rapi-range.active:hover,
.rapi-root .rapi-range.active:focus {
	background: #3538CD !important;
	border-color: #3538CD;
	color: #fff;
}
@media (max-width: 640px) {
	.rapi-chart-head { flex-wrap: wrap; justify-content: center; }
}
.rapi-chart-holder { position: relative; width: 100%; color: #6C879F; }
.rapi-chart-holder svg { display: block; width: 100%; height: auto; cursor: crosshair; }

.rapi-status { display: none; padding: 0 26px 22px; font-size: 14px; color: #667085; }

/* Skeleton loader */
.rapi-skel {
	position: relative;
	overflow: hidden;
	background: #F2F4F7;
	border-radius: 6px;
	display: inline-block;
}
.rapi-skel::after {
	content: '';
	position: absolute;
	top: 0; right: 0; bottom: 0; left: 0;
	transform: translateX(-100%);
	background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .75), transparent);
	animation: rapi-shimmer 1.2s ease-in-out infinite;
}
@keyframes rapi-shimmer { 100% { transform: translateX(100%); } }
.rapi-skel-row { display: flex; justify-content: space-between; align-items: center; padding: 13px 12px; }
.rapi-skel-name { width: 72px; height: 14px; }
.rapi-skel-val { width: 120px; height: 14px; }
.rapi-skel-label { width: 240px; height: 14px; }
.rapi-skel-chart { display: block; width: 100%; height: 260px; border-radius: 10px; }

.rapi-calc { border-top: 1px solid #EAECF0; padding: 22px 26px 26px; background: #fff; }
.rapi-calc h2 { font-size: 19px; font-weight: 700; color: #101828; margin: 0 0 16px; letter-spacing: -.01em; }
.rapi-calc-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)) auto; gap: 14px; align-items: end; }
.rapi-field { display: flex; flex-direction: column; gap: 6px; }
.rapi-field label { font-size: 13px; color: #475467; font-weight: 500; display: flex; flex-direction: column; gap: 6px; }
.rapi-field select, .rapi-field input {
	width: 100%;
	padding: 10px 12px;
	border: 1px solid #D0D5DD;
	border-radius: 8px;
	font-size: 14px;
	font-family: inherit;
	color: #101828;
	background: #fff;
	outline: none;
	box-shadow: 0 1px 2px rgba(16, 24, 40, .05);
}
.rapi-root a.rapi-calc-btn,
.rapi-root a.rapi-calc-btn:hover,
.rapi-root a.rapi-calc-btn:visited { text-decoration: none !important; display: inline-block; text-align: center; }
.rapi-root .rapi-calc-btn,
.rapi-root .rapi-calc-btn:focus,
.rapi-root .rapi-calc-btn:active {
	padding: 11px 22px;
	white-space: nowrap;
	border: none;
	border-radius: 8px;
	background: #3538CD !important;
	color: #fff !important;
	font-size: 15px;
	font-weight: 700;
	cursor: pointer;
	font-family: inherit;
	box-shadow: none;
}
.rapi-root .rapi-calc-btn:hover { background: #2D2FA6 !important; }

.rapi-result { margin-top: 18px; padding-top: 18px; border-top: 1px solid #EAECF0; display: flex; flex-wrap: wrap; gap: 14px; }
.rapi-result-tile { flex: 1 1 160px; padding: 14px 16px; border: 1px solid #EAECF0; border-radius: 10px; background: #F9FAFB; }
.rapi-result-tile .lbl { font-size: 12px; color: #667085; font-weight: 500; margin-bottom: 4px; }
.rapi-result-tile .val { font-size: 20px; font-weight: 700; color: #101828; font-variant-numeric: tabular-nums; }

@media (max-width: 480px) {
	.rapi-calc-grid { grid-template-columns: 1fr 1fr; }
	.rapi-calc-btn { grid-column: 1 / -1; }
}
