/* Country cost-calculator widget (.rp-ccw) — Figma hX9SIfrIjOjYvFtmHBofSa UAE 3342:3696 / KSA 3341:3654 (Mo 2026-11-10).
   Rendered by inc/country-calc-widget.php after the FAQs on the UAE / KSA payroll guides. */
.rp-ccw {
	box-sizing: border-box;
	display: flex; flex-direction: column; gap: 24px;
	width: 100%; margin: 40px 0 0; padding: 28px;
	background: #fff; border: 1px solid #d6d6d6; border-radius: 16px;
	filter: drop-shadow(0 1px 0 rgba(0, 0, 0, .05));
	font-family: Mulish, sans-serif; color: #000;
}
.rp-ccw *, .rp-ccw *::before, .rp-ccw *::after { box-sizing: border-box; }
/* Doubled class: the post-content p rule (colour #2a3656, line-height 1.7, 18px bottom margin) is more specific than one class. */
.rp-ccw.rp-ccw p { margin: 0; }

.rp-ccw__head { display: flex; flex-direction: column; gap: 10px; }
.rp-ccw__eyebrow { display: flex; align-items: center; gap: 8px; }
.rp-ccw__flag { flex: 0 0 20px; width: 20px; height: 20px; border-radius: 15px; overflow: hidden; display: block; }
.rp-ccw__flag img { display: block; width: 100%; height: 100%; object-fit: cover; }
.rp-ccw__eyebrow-text { font-size: 11px; font-weight: 600; line-height: 15.95px; letter-spacing: .88px; text-transform: uppercase; color: #5c5c5c; }
.rp-ccw.rp-ccw p.rp-ccw__title { font-size: 22px; font-weight: 700; line-height: 28.6px; letter-spacing: -.33px; color: #000; }
.rp-ccw.rp-ccw p.rp-ccw__desc { max-width: 600px; font-size: 14px; font-weight: 500; line-height: 21px; color: #5c5c5c; }

.rp-ccw__fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.rp-ccw__field { display: flex; flex-direction: column; gap: 6px; margin: 0; cursor: default; }
.rp-ccw__label { font-size: 13px; font-weight: 600; line-height: 18.85px; color: #000; }
.rp-ccw__box {
	position: relative; display: flex; align-items: center; gap: 8px;
	height: 48px; padding: 0 13px; background: #fff; border: 1px solid #f1f1f1; border-radius: 12px;
}
.rp-ccw__box:focus-within { border-color: #114ef7; }
.rp-ccw__unit { font-size: 13px; font-weight: 600; line-height: 18.85px; color: #5c5c5c; }
.rp-ccw__input,
.rp-ccw__select {
	flex: 1 1 auto; min-width: 0; height: 100%; margin: 0; padding: 0 2px;
	border: 0; outline: 0; background: transparent; box-shadow: none;
	font: 500 14px/20.3px Mulish, sans-serif; color: #000;
}
.rp-ccw__box--select { padding-right: 0; }
.rp-ccw__select { padding: 0 37px 0 0; -webkit-appearance: none; appearance: none; cursor: pointer; }
.rp-ccw__caret { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); font-size: 12px; line-height: 17.4px; color: #737373; pointer-events: none; }

.rp-ccw__foot {
	display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 16px;
	padding-top: 20px; border-top: 1px solid #ebebeb;
}
.rp-ccw.rp-ccw p.rp-ccw__note { font-size: 13px; font-weight: 500; line-height: 18.85px; color: #5c5c5c; }
.rp-ccw__btn,
.rp-ccw__btn:visited {
	/* Figma button (3342:3731 / 3341:3689); text weight 600 instead of Figma's 500 (Mo 2026-11-10: "a bit bold"). */
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	height: 48px; padding: 0 14px; border-radius: 12px; background: #114ef7;
	font-size: 14px; font-weight: 600; line-height: 22.4px; color: #fff; text-decoration: none; white-space: nowrap;
}
.rp-ccw__btn:hover, .rp-ccw__btn:focus-visible { background: #0d3fd0; color: #fff; text-decoration: none; }
.rp-ccw__btn img { display: block; width: 18px; height: 18px; flex: 0 0 18px; }

@media (max-width: 767px) {
	.rp-ccw { padding: 20px; gap: 20px; }
	.rp-ccw.rp-ccw p.rp-ccw__title { font-size: 20px; line-height: 26px; }
	.rp-ccw__fields { grid-template-columns: minmax(0, 1fr); gap: 14px; }
	.rp-ccw__btn { width: 100%; }
}

/* Landing pages (/uae-employer-of-record, /uae-payroll-software, /ksa-employer-of-record, /eor/saudi-arabia,
   /ksa-payroll-software), Mo 2026-11-10: same width and type scale as the page's own sections.
   Width: the sections' .rp-container (max 1300px, 24px side padding → 1252px content).
   Spacing: 56px top and bottom, the sections' own vertical padding, so the gap above and below is equal.
   Type: title 32px/42px (the section H2s), body 16px/24px (the section paragraphs); fields and button scaled to match. */
.rp-ccw-wrap--lp { box-sizing: border-box; width: 100%; max-width: 1300px; margin: 0 auto; padding: 56px 24px; }
.rp-ccw-wrap--lp .rp-ccw { margin: 0; padding: 40px; gap: 32px; }
.rp-ccw-wrap--lp .rp-ccw__head { gap: 12px; }
.rp-ccw-wrap--lp .rp-ccw__flag { flex-basis: 24px; width: 24px; height: 24px; border-radius: 50%; }
.rp-ccw-wrap--lp .rp-ccw__eyebrow-text { font-size: 13px; line-height: 18px; letter-spacing: 1px; }
.rp-ccw-wrap--lp.rp-ccw-wrap--lp p.rp-ccw__title { font-size: 32px; line-height: 42px; letter-spacing: -.4px; }
.rp-ccw-wrap--lp.rp-ccw-wrap--lp p.rp-ccw__desc { max-width: 760px; font-size: 16px; line-height: 24px; }
.rp-ccw-wrap--lp .rp-ccw__fields { gap: 24px; }
.rp-ccw-wrap--lp .rp-ccw__field { gap: 8px; }
.rp-ccw-wrap--lp .rp-ccw__label { font-size: 16px; line-height: 24px; }
.rp-ccw-wrap--lp .rp-ccw__box { height: 56px; padding: 0 16px; }
.rp-ccw-wrap--lp .rp-ccw__unit { font-size: 15px; line-height: 22px; }
.rp-ccw-wrap--lp .rp-ccw__input, .rp-ccw-wrap--lp .rp-ccw__select { font-size: 16px; line-height: 24px; }
.rp-ccw-wrap--lp .rp-ccw__foot { padding-top: 24px; }
.rp-ccw-wrap--lp.rp-ccw-wrap--lp p.rp-ccw__note { font-size: 16px; line-height: 24px; }
.rp-ccw-wrap--lp .rp-ccw__btn { height: 56px; padding: 0 24px; font-size: 16px; line-height: 24px; }
@media (max-width: 767px) {
	.rp-ccw-wrap--lp { padding: 40px 16px; }
	.rp-ccw-wrap--lp .rp-ccw { padding: 24px; gap: 24px; }
	.rp-ccw-wrap--lp.rp-ccw-wrap--lp p.rp-ccw__title { font-size: 24px; line-height: 32px; }
	.rp-ccw-wrap--lp .rp-ccw__fields { gap: 16px; }
}
/* Equal gap above / below (Mo 2026-11-10): the "Ready to …?" banner section already starts with 56px of padding
   on desktop (none on phones), and on /ksa-employer-of-record the section above already ends with 56px. */
@media (min-width: 768px) { .rp-ccw-wrap--lp.rp-ccw-wrap--banner { padding-bottom: 0; } }
@media (min-width: 768px) { .rp-ccw-wrap--lp.rp-ccw-wrap--flush-top { padding-top: 0; } }
.rp-ccw-wrap--lp.rp-ccw-wrap--flush-top.rp-ccw-wrap--pb48 { padding-top: 0; } /* payroll-software: on phones too */

/* Text keeps its reading-direction alignment (left in EN) on every screen: some landing pages centre all text on
   phones, which centred the title and description here (Mo 2026-11-10). */
.rp-ccw.rp-ccw, .rp-ccw.rp-ccw p, .rp-ccw.rp-ccw .rp-ccw__label, .rp-ccw.rp-ccw .rp-ccw__eyebrow-text { text-align: start; }
/* /uae-payroll-software + /ksa-payroll-software: the section above ends with ~104px of its own space, so no top
   padding and 48px at the bottom (+ the banner's 56px) → ~104px above and below. Desktop only. */
@media (min-width: 768px) { .rp-ccw-wrap--lp.rp-ccw-wrap--pb48 { padding-bottom: 48px; } }
/* Phones (measured at 390px): the payroll-software banner and the /eor/saudi-arabia section below bring ~60px of
   their own top space, so 16px here keeps the gap below ≈ the gap above (~90-104px). */
@media (max-width: 767px) { .rp-ccw-wrap--lp.rp-ccw-wrap--pb48 { padding-bottom: 16px; } }


/* ── Arabic (RTL), Mo 2026-11-10 ─────────────────────────────────────────────
   Same layout mirrored: the dropdown caret and its padding move to the left, the button chevron points left,
   no letter-spacing on Arabic (it breaks the joined letters). Font = the site's AR stack (Almarai). */
[dir="rtl"] .rp-ccw, [dir="rtl"] .rp-ccw__input, [dir="rtl"] .rp-ccw__select { font-family: Almarai, Mulish, sans-serif; }
[dir="rtl"] .rp-ccw__eyebrow-text, [dir="rtl"] .rp-ccw.rp-ccw p.rp-ccw__title { letter-spacing: 0; }
[dir="rtl"] .rp-ccw__box--select { padding-right: 13px; padding-left: 0; }
[dir="rtl"] .rp-ccw__select { padding: 0 0 0 37px; }
[dir="rtl"] .rp-ccw__caret { right: auto; left: 12px; }
[dir="rtl"] .rp-ccw__btn img { transform: scaleX(-1); }
[dir="rtl"] .rp-ccw-wrap--lp .rp-ccw__box--select { padding-right: 16px; }

/* Phones: the banner section's band follows straight after the card, so no bottom padding (measured 2026-11-10:
   ~41px above / ~24-56px below to the bands, instead of 41 / 64-96). */
@media (max-width: 767px) { .rp-ccw-wrap.rp-ccw-wrap--lp.rp-ccw-wrap--banner { padding-bottom: 0; } }
@media (max-width: 767px) { .rp-ccw-wrap.rp-ccw-wrap--lp.rp-ccw-wrap--banner.rp-ccw-wrap--mpb16 { padding-bottom: 16px; } }

/* Inside the article (rp_ccw_anchors(), Mo 2026-11-11): the card sits between a section's intro and its next
   heading, so it needs the same breathing room below as above. */
.rp-ccw[data-rp-ccw-pos="inline"] { margin: 32px 0 40px; }
/* The card's own 40px is the gap below. !important: the frozen migration-rtl.min.css sets
   .rp-compliance-article h2 { margin-top: 48px !important } (+16px padding) on AR, which made it ~60px there. */
.rp-ccw.rp-ccw[data-rp-ccw-pos="inline"] + h2, .rp-ccw.rp-ccw[data-rp-ccw-pos="inline"] + h3,
.rp-ccw.rp-ccw[data-rp-ccw-pos="inline"] + hr { margin-top: 0 !important; padding-top: 0 !important; }
/* AR hubs: country-hub-v5.css sets .rp-cp-col-main .rp-cp-body .rp-compliance-article h2:not(:first-of-type) { margin-top: 56px !important }. */
.rp-cp-col-main .rp-cp-body .rp-compliance-article .rp-ccw.rp-ccw[data-rp-ccw-pos="inline"] + h2,
.rp-cp-col-main .rp-cp-body .rp-compliance-article .rp-ccw.rp-ccw[data-rp-ccw-pos="inline"] + hr { margin-top: 0 !important; padding-top: 0 !important; }

/* Inside blog posts ([rp_ccw] shortcode, Mo 2026-11-16): the blog prose styles every link (blue + underline) and every
   image (height:auto, 24px margins, radius), which made the button text blue-on-blue and pushed the flag out of its
   20px circle. Re-assert the card's own styles with a higher specificity so it looks the same as on the guides. */
.rp-ccw.rp-ccw a.rp-ccw__btn, .rp-ccw.rp-ccw a.rp-ccw__btn:visited,
.rp-ccw.rp-ccw a.rp-ccw__btn:hover, .rp-ccw.rp-ccw a.rp-ccw__btn:focus-visible { color: #fff; text-decoration: none; border-bottom: 0; }
.rp-ccw.rp-ccw .rp-ccw__flag img { width: 100%; height: 100%; max-width: none; margin: 0; border-radius: 0; object-fit: cover; display: block; }
.rp-ccw.rp-ccw .rp-ccw__btn img { width: 18px; height: 18px; max-width: none; margin: 0; border-radius: 0; display: block; }
