/* Imperiya Tourism — isolated currency-converter styles */
.im-currency{--im-accent:#fe620d;--im-ink:#292d32;--im-muted:#69727c;--im-border:#e4e7eb;--im-soft:#f5f6f8;color:var(--im-ink);font:inherit;margin:0 auto;max-width:1440px;box-sizing:border-box}
.im-currency *{box-sizing:border-box}
.im-currency [hidden],.im-currency[hidden]{display:none!important}
.im-currency__intro{display:flex;align-items:center;justify-content:space-between;gap:32px;padding:36px 40px;border:1px solid var(--im-border);border-radius:12px;background:#fff}
.im-currency__intro>div:first-child{min-width:0;max-width:740px}
.im-currency__eyebrow{margin:0 0 10px!important;color:var(--im-accent);font-size:12px;font-weight:700;letter-spacing:.08em;text-transform:uppercase}
.im-currency h2{margin:0 0 14px!important;font-size:clamp(24px,3vw,34px);line-height:1.2;font-weight:700}
.im-currency__intro p:not(.im-currency__eyebrow){margin:0 0 22px;line-height:1.65;color:var(--im-muted)}
.im-currency__button{border:1px solid var(--im-accent);border-radius:5px;background:var(--im-accent);color:#fff;cursor:pointer;padding:14px 22px;font:inherit;font-weight:600;transition:background .2s,border-color .2s}
.im-currency__button:hover{background:#e65300;border-color:#e65300}
.im-currency__button:focus-visible,.im-currency__close:focus-visible,.im-currency__refresh:focus-visible,.im-currency input:focus-visible{outline:3px solid #ffb47e;outline-offset:3px}
.im-currency__illustration{flex:0 0 230px;min-height:150px;border-radius:14px;background:linear-gradient(135deg,#fff4eb,#fff 60%,#f5f6f8);border:1px solid #f0e3d8;display:flex;flex-direction:column;justify-content:center;align-items:center;gap:4px}
.im-currency__illustration-symbol{font-size:52px;font-weight:700;line-height:1;color:var(--im-accent)}
.im-currency__illustration-currencies{font-size:26px;color:#a76d47;letter-spacing:.08em}
.im-currency__overlay{position:fixed;inset:0;max-width:none;margin:0;z-index:20000;display:flex;align-items:center;justify-content:center;padding:24px 16px;background:rgba(20,24,29,.62);overflow-y:auto;overscroll-behavior:contain}
.im-currency__dialog{position:relative;width:100%;max-width:850px;max-height:calc(100vh - 48px);overflow-y:auto;overscroll-behavior:contain;background:#fff;border-radius:12px;padding:36px;color:var(--im-ink);box-shadow:0 16px 60px rgba(0,0,0,.2);outline:none}
.im-currency__close{position:absolute;top:12px;right:16px;width:40px;height:40px;border:0;background:transparent;color:#6c737d;font-size:32px;line-height:1;cursor:pointer}
.im-currency__dialog-header{text-align:center;padding-right:20px;padding-left:20px}
.im-currency__dialog-header h2{font-size:28px;margin-bottom:10px!important}
.im-currency__dialog-header p:last-child{margin:0;color:var(--im-muted);font-size:14px;line-height:1.6}
.im-currency__date{text-align:center;margin:20px 0 24px;font-size:14px;font-weight:600;color:var(--im-muted)}
.im-currency__form-row{display:flex;align-items:end;justify-content:space-between;gap:16px;margin-bottom:18px}
.im-currency__field{flex:1;min-width:0;max-width:390px}
.im-currency__field label{display:block;font-size:14px;font-weight:600;margin-bottom:8px}
.im-currency__input-wrap{display:flex;align-items:center;gap:10px;border:1px solid #cdd3d9;border-radius:6px;padding:0 14px;min-height:50px;background:#fff}
.im-currency__input-wrap:focus-within{border-color:var(--im-accent)}
.im-currency__input-wrap>span:first-child{font-size:24px;color:var(--im-accent)}
.im-currency__input-wrap input{flex:1;min-width:0;width:100%;border:0!important;box-shadow:none!important;background:transparent!important;outline:0!important;padding:12px 0!important;font:inherit;font-size:18px;color:var(--im-ink)}
.im-currency__input-code{font-size:12px;font-weight:700;color:var(--im-muted)}
.im-currency__field small{display:block;margin-top:6px;font-size:12px;line-height:1.4;color:var(--im-muted)}
.im-currency__field .im-currency__input-error{color:#b42318}
.im-currency__refresh{padding:12px 16px;min-height:48px;border:1px solid var(--im-border);border-radius:5px;background:#fff;color:var(--im-ink);font:inherit;font-size:14px;cursor:pointer}
.im-currency__refresh:hover{border-color:var(--im-accent);color:var(--im-accent)}
.im-currency__refresh:disabled{opacity:.55;cursor:wait}
.im-currency__status{font-size:13px;color:var(--im-muted);margin:0 0 16px;line-height:1.5;min-height:20px}
.im-currency__status[data-state="error"]{color:#b42318}
.im-currency__status[data-state="warning"]{color:#9a6700}
.im-currency__rates-wrap{width:100%;max-width:100%;overflow-x:auto;border-radius:8px;border:1px solid var(--im-border)}
.im-currency__rates{width:100%;border-collapse:collapse;table-layout:fixed;margin:0!important;font-size:14px}
.im-currency__rates caption{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
.im-currency__rates th,.im-currency__rates td{padding:14px 12px;text-align:left;border:0;border-bottom:1px solid var(--im-border);vertical-align:middle;overflow-wrap:anywhere}
.im-currency__rates thead th{background:#fff2e7;font-weight:600;color:var(--im-ink)}
.im-currency__rates tbody th{font-weight:600}
.im-currency__rates tr:last-child th,.im-currency__rates tr:last-child td{border-bottom:0}
.im-currency__rates td:last-child{font-weight:700}
.im-currency__results-heading{font-size:18px;font-weight:700;margin:25px 0 14px!important}
.im-currency__results{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
.im-currency__result{min-width:0;border:1px solid var(--im-border);border-radius:8px;padding:18px 14px;background:var(--im-soft)}
.im-currency__result span{display:block;font-size:12px;color:var(--im-muted);margin-bottom:9px}
.im-currency__result strong{display:block;font-size:20px;line-height:1.3;font-weight:700;overflow-wrap:anywhere;font-variant-numeric:tabular-nums}
.im-currency__note,.im-currency__source{font-size:12px;line-height:1.6;color:var(--im-muted);margin:18px 0 0!important}
.im-currency__source{margin-top:8px!important}
.im-currency__source a{color:var(--im-accent);text-decoration:underline}
@media(max-width:767px){.im-currency__intro{padding:26px 20px;gap:16px}.im-currency__illustration{flex-basis:120px;min-height:120px}.im-currency__illustration-symbol{font-size:40px}.im-currency__illustration-currencies{font-size:17px}.im-currency__dialog{padding:26px 18px;max-height:calc(100vh - 24px)}.im-currency__overlay{padding:12px}.im-currency__form-row{align-items:stretch;flex-direction:column}.im-currency__field{max-width:none}.im-currency__refresh{align-self:flex-start}.im-currency__rates thead{display:none}.im-currency__rates,.im-currency__rates tbody,.im-currency__rates tr,.im-currency__rates th,.im-currency__rates td{display:block;width:100%}.im-currency__rates tbody tr{padding:8px 12px;border-bottom:1px solid var(--im-border)}.im-currency__rates tbody tr:last-child{border-bottom:0}.im-currency__rates tbody th{padding:8px 0;font-size:15px;border:0}.im-currency__rates tbody td{display:flex;align-items:baseline;justify-content:space-between;gap:12px;padding:8px 0;border:0;text-align:right}.im-currency__rates tbody td:before{content:attr(data-label);color:var(--im-muted);font-size:12px;text-align:left;font-weight:400}.im-currency__results{grid-template-columns:1fr}.im-currency__result{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:14px}.im-currency__result span{margin:0}.im-currency__result strong{font-size:18px;text-align:right}}
@media(max-width:480px){.im-currency__intro{display:block}.im-currency__illustration{display:none}.im-currency__button{width:100%}.im-currency__dialog-header h2{font-size:24px}.im-currency__dialog-header{padding:0 20px 0 0;text-align:left}.im-currency__date{text-align:left}}
@media(prefers-reduced-motion:reduce){.im-currency__button{transition:none}}
