/* Pro1xchange converter - professional layer over Currency Rate Converter */
#p1x-converter{--cv-green:#0b6b4b;--cv-green-2:#16a34a;--cv-ink:#0f172a;--cv-muted:#64748b;--cv-line:#dce7e2;--cv-soft:#f4f8f6;--cv-err:#dc2626;font-family:Cairo,Tajawal,sans-serif}

/* Card */
#p1x-converter .col-lg-10{max-width:920px!important;width:calc(100% - 32px)!important;margin:40px auto 0!important;background:#fff!important;border-radius:22px!important;box-shadow:0 24px 60px rgba(2,44,34,.28),0 2px 6px rgba(2,44,34,.08)!important;padding:26px 26px 22px!important;position:relative;z-index:5}
#p1x-converter .home-banner__body{display:grid!important;grid-template-columns:1fr 52px 1fr;align-items:start;gap:0;background:transparent!important;padding:0!important;margin:0!important;border:0!important}
#p1x-converter .home-banner__block{background:transparent!important;padding:0!important;border:0!important;border-radius:0!important;box-shadow:none!important;width:auto!important;min-width:0}
#p1x-converter .home-banner__block-header{display:flex!important;justify-content:space-between;align-items:baseline;margin:0 2px 8px!important;padding:0!important}
#p1x-converter .home-banner__block-header-title{color:var(--cv-muted)!important;font-size:13px!important;font-weight:700!important;letter-spacing:.3px;margin:0!important;text-transform:none!important}
#p1x-converter .home-banner__block-header-description{color:var(--cv-muted)!important;font-size:12px!important;font-weight:600}
#p1x-converter .home-banner__block-header-description #vmin{color:var(--cv-ink);font-weight:800}

/* Amount + currency field */
#p1x-converter .home-banner__block-body{margin:0!important;padding:0!important}
#p1x-converter .home-banner__body .dropdown{display:flex!important;align-items:stretch;height:68px!important;background:var(--cv-soft)!important;border:1.5px solid var(--cv-line)!important;border-radius:16px!important;overflow:hidden;transition:border-color .2s,box-shadow .2s}
#p1x-converter .home-banner__body .dropdown:focus-within{border-color:var(--cv-green-2)!important;box-shadow:0 0 0 4px rgba(22,163,74,.12)}
#p1x-converter .home-banner__body .dropdown .form-field{flex:1 1 auto!important;width:auto!important;min-width:0;height:auto!important;background:transparent!important;border:0!important;border-radius:0!important;display:flex!important;align-items:center;padding:0 14px!important}
#p1x-converter .home-banner__body .dropdown .form-field input{color:var(--cv-ink)!important;background:transparent!important;border:0!important;box-shadow:none!important;font-size:24px!important;font-weight:800!important;height:100%!important;padding:0!important;width:100%!important;direction:ltr;font-family:Cairo,sans-serif!important;-moz-appearance:textfield}
#p1x-converter .home-banner__body .dropdown .form-field input::-webkit-outer-spin-button,#p1x-converter .home-banner__body .dropdown .form-field input::-webkit-inner-spin-button{-webkit-appearance:none;margin:0}
#p1x-converter #get_val{color:var(--cv-green)!important}
#p1x-converter .home-banner__body .dropdown .form-field{flex:1 1 0!important;gap:8px;margin:0!important}
html[dir=rtl] #p1x-converter .home-banner__body .dropdown .form-field input{text-align:right!important}
#p1x-converter .home-banner__body .dropdown .form-field input::placeholder{color:#a8b8b1!important;opacity:1}
#p1x-converter .home-banner__body .dropdown .form-field input{text-align:start!important;flex:1 1 auto;min-width:0}
#p1x-converter #currency_symbol_left,#p1x-converter #currency_symbol_right{flex:none;font-size:12px;font-weight:800;color:var(--cv-green);background:#e8f5ee;border-radius:7px;padding:3px 8px;direction:ltr}
#p1x-converter .p1x-cv-nocode{display:none!important}
#p1x-converter #toggle_left_button,#p1x-converter #toggle_right_button{flex-shrink:1!important}
#p1x-converter #toggle_left_button,#p1x-converter #toggle_right_button{flex:0 0 auto!important;width:auto!important;min-width:170px;max-width:52%;height:auto!important;margin:7px!important;background:#fff!important;border:1px solid var(--cv-line)!important;border-radius:12px!important;box-shadow:0 1px 3px rgba(15,23,42,.08)!important;display:flex!important;align-items:center;gap:8px;padding:0 12px!important;color:var(--cv-ink)!important;cursor:pointer;transition:border-color .2s,background .2s}
#p1x-converter #toggle_left_button:hover,#p1x-converter #toggle_right_button:hover{border-color:var(--cv-green-2)!important;background:#f0fdf4!important}
#p1x-converter #vfrv,#p1x-converter #vtov{display:flex;align-items:center;gap:8px;min-width:0;overflow:hidden}
#p1x-converter #vfrv img,#p1x-converter #vtov img{width:26px!important;height:26px!important;margin:0!important;flex:none;object-fit:cover;background:#eef2f1}
#p1x-converter #vfrv .name,#p1x-converter #vtov .name{font-size:14px;font-weight:700;color:var(--cv-ink);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
#p1x-converter .p1x-cv-code{font-size:11px;font-weight:800;color:var(--cv-green);background:#e8f5ee;border-radius:6px;padding:2px 6px;flex:none}
#p1x-converter #toggle_left_button svg,#p1x-converter #toggle_right_button svg{flex:none;margin-inline-start:auto;position:static!important;inset:auto!important;transform:none!important}
#p1x-converter #toggle_left_button,#p1x-converter #toggle_right_button{justify-content:flex-start!important}
#p1x-converter #toggle_left_button svg path,#p1x-converter #toggle_right_button svg path{fill:var(--cv-green)}

/* Swap */
#p1x-converter .home-banner__block-header{min-height:22px}
#p1x-converter #swap_currencies{position:relative!important;width:44px!important;height:44px!important;margin:42px 4px 0!important;justify-self:center;border-radius:50%!important;background:linear-gradient(135deg,var(--cv-green),var(--cv-green-2))!important;border:4px solid #fff!important;box-shadow:0 6px 16px rgba(11,107,75,.35)!important;display:flex!important;align-items:center;justify-content:center;padding:0!important;cursor:pointer;transition:transform .25s}
#p1x-converter #swap_currencies svg{width:18px;height:18px}
#p1x-converter #swap_currencies:hover{transform:rotate(180deg)}
#p1x-converter #swap_currencies.crc_disabled{background:#cbd5e1!important;box-shadow:none!important;cursor:not-allowed;opacity:1!important}

/* Original rate line replaced by info panel */
#p1x-converter .home-banner__block .justify-center.text-center.text-white{display:none!important}

/* Error state */
#p1x-converter .p1x-cv-err .dropdown{border-color:var(--cv-err)!important;box-shadow:0 0 0 4px rgba(220,38,38,.1)!important;background:#fff7f7!important}
#p1x-converter .p1x-cv-msg{display:none;color:var(--cv-err);font-size:12.5px;font-weight:700;margin:7px 4px 0;align-items:center;gap:6px}
#p1x-converter .p1x-cv-err .p1x-cv-msg{display:flex}

/* Info panel */
#p1x-converter .p1x-cv-info{margin-top:18px;border:1px solid var(--cv-line);background:var(--cv-soft);border-radius:14px;padding:4px 16px}
#p1x-converter .p1x-cv-row{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:10px 0;font-size:14px;color:var(--cv-muted);border-bottom:1px dashed var(--cv-line)}
#p1x-converter .p1x-cv-row:last-child{border-bottom:0}
#p1x-converter .p1x-cv-row b{color:var(--cv-ink);font-weight:800;direction:ltr;unicode-bidi:isolate;white-space:nowrap}
#p1x-converter .p1x-cv-row.p1x-cv-total b{color:var(--cv-green);font-size:17px}
#p1x-converter .p1x-cv-hint{padding:12px 0;text-align:center;color:var(--cv-muted);font-size:13.5px;font-weight:600}

/* CTA */
#p1x-converter .col-lg-12.q-my-md{margin:16px 0 0!important;padding:0!important;display:flex;flex-direction:column;align-items:stretch}
#p1x-converter #next_button{max-width:none!important;width:100%!important;height:56px!important;margin:0!important;border:0!important;border-radius:14px!important;background:linear-gradient(135deg,var(--cv-green),var(--cv-green-2))!important;color:#fff!important;font-size:17px!important;font-weight:800!important;letter-spacing:.2px;text-transform:none!important;white-space:nowrap;display:flex!important;align-items:center;justify-content:center;opacity:1!important;box-shadow:0 10px 24px rgba(11,107,75,.3)!important;transition:transform .15s,box-shadow .2s,filter .2s;cursor:pointer;text-decoration:none!important}
#p1x-converter #next_button span{font-size:inherit!important;font-weight:inherit!important;text-transform:none!important;color:inherit!important;white-space:nowrap}
#p1x-converter #next_button:hover{filter:brightness(1.06);transform:translateY(-1px)}
#p1x-converter #next_button.crc_disabled{background:#e2e8f0!important;color:#94a3b8!important;box-shadow:none!important;cursor:not-allowed;transform:none;pointer-events:none}
#p1x-converter .p1x-cv-trust{display:flex;justify-content:center;align-items:center;gap:6px;margin-top:12px;font-size:12.5px;color:var(--cv-muted);font-weight:600}
#p1x-converter .p1x-cv-trust svg{width:14px;height:14px;color:var(--cv-green-2)}

/* Currency picker panel */
#p1x-converter .sidebar{background:#fff!important;box-shadow:none;overflow-y:auto!important;overflow-x:hidden;scrollbar-width:thin;scrollbar-color:#cfe0d8 transparent}
#p1x-converter .sidebar[style*="300px"]{width:min(400px,100vw)!important;box-shadow:0 0 60px rgba(2,44,34,.28)}
#p1x-converter #crc-close-btn-left,#p1x-converter #crc-close-btn-right{align-items:center;position:sticky;top:0;background:#fff;z-index:2;padding:18px 10px 10px!important;margin:0!important;border-bottom:1px solid #eef2f1}
#p1x-converter .sidebar .head_hover{font-size:17px!important;font-weight:800!important;color:var(--cv-ink)!important}
#p1x-converter .sidebar svg{max-width:22px;max-height:22px;fill:var(--cv-green)}
#p1x-converter .crc-close-btn{width:36px;height:36px;border-radius:50%!important;background:#f1f5f4!important;display:flex;align-items:center;justify-content:center;cursor:pointer}
#p1x-converter .p1x-cv-search{position:sticky;top:66px;z-index:2;background:#fff;padding:10px 14px 8px}
#p1x-converter .sidebar,#p1x-converter .sidebar *{box-sizing:border-box}
#p1x-converter .sidebar{padding-top:0!important}
#p1x-converter .p1x-cv-search input{width:100%;max-width:100%;height:44px;border:1.5px solid var(--cv-line);border-radius:12px;padding:0 14px;font-size:14px;background:var(--cv-soft);color:var(--cv-ink);outline:none;font-family:inherit}
#p1x-converter .p1x-cv-search input:focus{border-color:var(--cv-green-2);background:#fff}
#p1x-converter #q-item-left,#p1x-converter #q-item-right{padding:4px 10px 24px}
#p1x-converter .currency-option{display:flex!important;align-items:center;justify-content:space-between;gap:10px;margin:5px 4px!important;padding:12px 14px!important;border:1px solid #e7eeeb!important;border-radius:12px!important;background:#fff!important;cursor:pointer;transition:background .15s,border-color .15s;color:var(--cv-ink)}
#p1x-converter .currency-option:hover{background:#f0fdf4!important;border-color:#bbf7d0!important}
#p1x-converter .currency-option>span:first-child{order:2;font-size:11px;font-weight:800;color:var(--cv-green);background:#e8f5ee;border-radius:6px;padding:3px 7px}
#p1x-converter .currency-option .logo_name_div{order:1;display:flex;flex-direction:row-reverse;align-items:center;gap:10px;font-weight:700;font-size:14.5px}
#p1x-converter .currency-option .logo_name_div span{margin:0!important}
#p1x-converter .currency-option img{width:30px!important;height:30px!important;display:block;object-fit:cover;background:#eef2f1}
#p1x-converter .currency-option.disabled{opacity:.5;cursor:not-allowed;background:#fafafa!important}
#p1x-converter .currency-option.disabled:hover{background:#fafafa!important;border-color:#e7eeeb!important}
#p1x-converter .currency-option.disabled>span:first-child{background:#f1f5f9;color:#94a3b8}
#p1x-converter .currency-option.disabled::after{content:attr(data-unavail);order:3;font-size:11px;color:#94a3b8;font-weight:700}
#p1x-converter .p1x-cv-ini{width:30px;height:30px;border-radius:50%;display:inline-flex;align-items:center;justify-content:center;background:#e8f5ee;color:var(--cv-green);font-weight:800;font-size:12px;flex:none}
#p1x-converter #vfrv .p1x-cv-ini,#p1x-converter #vtov .p1x-cv-ini{width:26px;height:26px;font-size:11px}
#p1x-converter .p1x-cv-empty{text-align:center;color:var(--cv-muted);padding:20px;font-size:13.5px}

/* Details popup */
#p1x-converter .popup-overlay{background:rgba(2,20,15,.55)!important;backdrop-filter:blur(3px)}
#p1x-converter .popup{border-radius:20px!important;background:#fff!important;box-shadow:0 30px 80px rgba(2,44,34,.35)!important;padding:0!important;overflow:hidden;width:min(440px,calc(100vw - 32px))!important;max-width:none!important;border:0!important}
#p1x-converter .popup-content{padding:26px 24px 22px!important;color:var(--cv-ink)}
#p1x-converter .popup-content h4{font-size:19px!important;font-weight:800!important;color:var(--cv-ink)!important;margin:0 0 16px!important}
#p1x-converter .popup-content p{display:flex;justify-content:space-between;gap:12px;margin:0!important;padding:10px 0;border-bottom:1px dashed var(--cv-line);color:var(--cv-muted);font-size:14px}
#p1x-converter .popup-content p span{color:var(--cv-ink);font-weight:800;direction:ltr;unicode-bidi:isolate}
#p1x-converter .popup-content p:last-of-type{border-bottom:0;background:#f0fdf4;border-radius:12px;padding:12px;margin-top:8px!important}
#p1x-converter .popup-content p:last-of-type b{color:var(--cv-ink)}
#p1x-converter .popup-content #crc_amount_recieve{color:var(--cv-green);font-size:17px}
#p1x-converter .popup-content .copy-value{width:15px;fill:var(--cv-green);cursor:pointer;margin-inline-start:6px}
#p1x-converter .close-btn-popup{position:absolute;top:14px;inset-inline-end:16px;width:34px;height:34px;border-radius:50%;background:#f1f5f4;display:flex!important;align-items:center;justify-content:center;font-size:22px;line-height:1;color:var(--cv-ink);cursor:pointer}
#p1x-converter #crc_link_btn{max-width:none!important;width:100%!important;margin:16px 0 0!important;height:52px;display:flex!important;align-items:center;justify-content:center;border-radius:14px!important;background:linear-gradient(135deg,var(--cv-green),var(--cv-green-2))!important;color:#fff!important;font-weight:800;font-size:16px;border:0!important;text-transform:none!important;text-decoration:none!important}

/* Give long method names room; keep the amount readable */
#p1x-converter #toggle_left_button,#p1x-converter #toggle_right_button{flex:0 1 auto!important;min-width:0!important;max-width:64%!important}
#p1x-converter .home-banner__body .dropdown .form-field{min-width:104px!important}
@media (min-width:961px){#p1x-converter .home-banner__body .dropdown .form-field input{font-size:22px!important}}
/* Tablet: stack the two fields */
@media (min-width:768px) and (max-width:960px){
#p1x-converter .col-lg-10{max-width:620px!important}
#p1x-converter .home-banner__body{grid-template-columns:1fr;gap:0}
#p1x-converter #swap_currencies{margin:-2px auto -8px!important;transform:rotate(90deg);z-index:3}
#p1x-converter #swap_currencies:hover{transform:rotate(270deg)}
}
/* Mobile */
@media (max-width:767px){
#p1x-converter .col-lg-10{width:calc(100% - 24px)!important;margin:24px auto 0!important;padding:18px 16px 16px!important;border-radius:18px!important}
#p1x-converter .home-banner__body{grid-template-columns:1fr;gap:0}
#p1x-converter #swap_currencies{margin:-4px auto -10px!important;transform:rotate(90deg);z-index:3}
#p1x-converter #swap_currencies:hover{transform:rotate(270deg)}
#p1x-converter .home-banner__body .dropdown{height:62px!important}
#p1x-converter .home-banner__body .dropdown .form-field input{font-size:21px!important}
#p1x-converter #toggle_left_button,#p1x-converter #toggle_right_button{min-width:0;max-width:58%}
#p1x-converter .sidebar[style*="300px"]{width:100vw!important;left:0!important;right:0!important}
#p1x-converter .p1x-cv-row{font-size:13px}
#p1x-converter .p1x-cv-search{top:62px}
}
@media (max-width:480px){
#p1x-converter #currency_symbol_left,#p1x-converter #currency_symbol_right{display:none!important}
#p1x-converter #toggle_left_button,#p1x-converter #toggle_right_button{max-width:68%!important;padding:0 10px!important}
#p1x-converter .home-banner__body .dropdown .form-field{min-width:88px!important;padding:0 10px!important}
#p1x-converter .home-banner__body .dropdown .form-field input{font-size:20px!important}
}
#p1x-converter #vfrv .name,#p1x-converter #vtov .name{direction:ltr;unicode-bidi:isolate;text-align:start}
