/* --- urcheckout Checkout Modern Styles --- */

@media (max-width: 768px) {
    #wallet {
        flex-direction: column !important;
    }
    
    .urcheckout-compartment-left {
            border-bottom-left-radius: 0 !important;
            max-width: 315px !important;
            border-top-right-radius: 12px !important;
        }
    .urcheckout-compartment-right {
        border-top-right-radius: 0 !important;
        max-width: 315px !important;
        min-width: 300px !important;
        border-bottom-left-radius: 12px !important;
    }
}

#wallet {
    display: flex
;
    gap: 0;
    width: 100%;
    flex-direction: row;
}

#urchlifo-modal-overlay {
    display:none;position:fixed;top:0;left:0;width:100%;height:100%;background:rgba(0,0,0,0.6);z-index:9997;
}

#urchlifo-modal {
    display:none;position:fixed;top:50%;left:50%;z-index:9998;background:#f5f5f7;border-radius:12px;padding:30px;width:750px;max-width:90%;box-shadow:0 8px 24px rgba(0,0,0,0.3);transition:all 0.3s ease;opacity:0;transform:translate(-50%,-50%) scale(0.95);
}


#urchlifo-modal-close {position:absolute;top:10px;right:10px;border:none;background:none;font-size:18px;cursor:pointer;}

#urcheckout-privacy-modal {display:none;position:fixed;top:0;left:0;width:100%;height:100%;background:rgba(0,0,0,0.5);z-index:9999;}
.urcheckout-priv {position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);background:#fff;padding:20px;max-width:600px;width:90%;border-radius:8px;box-shadow:0 4px 12px rgba(0,0,0,0.2);}


#urcheckout-notification {
    position: fixed;
    top: 300px;
    right: 200px;
    background: #323232;
    color: #fff;
    padding: 12px 20px;
    border-radius: 8px;
    font-size: 14px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    opacity: 0;
    transform: translateY(-20px);
    transition: opacity 0.3s, transform 0.3s;
    z-index: 9999;

    max-width: 250px;
    max-height: 82px;

    /* Ellipsis for long text */
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}


#urchlifo-checkout {
    display:flex;
    gap:0;
    width: 100%;
    max-width:750px;
    flex-direction:row;
}

.urcheckout-compartment-left {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    max-width: 420px;
    margin: 0 auto;
    text-align: center;
    color: #222;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-top-left-radius:12px;
    border-bottom-left-radius:12px;
    padding: 20px;
    max-width: 420px;
    box-shadow: 0 6px 18px rgba(0,0,0,0.06);
    min-width:300px;
}

.urcheckout-compartment-right {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    max-width: 420px;
    margin: 0 auto;
    text-align: center;
    color: #222;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-top-right-radius:12px;
    border-bottom-right-radius:12px;
    padding: 20px;
    max-width: 420px;
    box-shadow: 0 6px 18px rgba(0,0,0,0.06);
    min-width:350px;
}


.urcheckout-left {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* Overlay token icon on QR code */
.urcheckout-qr-wrapper {
  position: relative;
  width: 220px;
  height: 220px;
}

#urcheckout-qr {
  width:220px;
  height:220px;
  border-radius: 12px;
  max-width:250px;
}


#urcheckout-qr-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    overflow: hidden;
}

#urcheckout-qr-overlay img {width:100%;height:100%;}

.urcheckout-token-selector {position:relative;cursor:pointer;user-select:none;border:1px solid #ccc;border-radius:6px;padding:4px 8px;display:flex;align-items:center;justify-content:space-between; }

.urcheckout-token-display {display:flex;align-items:center;gap:6px;}


#urcheckout-qr-token {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 48px;   /* icon size */
  height: 48px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  border: 2px solid #fff;
  background: #fff; /* optional white bg for contrast */
}


#urcheckout-address {
    display: block;            /* ensure it's block-level */
        word-break: break-all;     /* allow breaking anywhere if needed */
        overflow-wrap: anywhere;   /* modern property for long words */
        white-space: normal;
  background: #f3f4f6;
  padding: 6px 8px;
  border-radius: 6px;
  font-size: 13px;
  font-family: monospace;
}

#copyWalletBtn {
  margin-top:0;
  background:#5aa2df;
  color: #fff;
  border: none;
  padding: 6px 10px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 13px;
  transition: background 0.2s;
}
#copyWalletBtn:hover { background: #1e40af; }

#connectWalletBtn, #payBtn {
  padding: 10px 14px;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.15s, background 0.2s;
}
#connectWalletBtn:hover {
    background: #1e40af;
    color: #fff;
}
#connectWalletBtn { background:linear-gradient(90deg,#5aa2df,#a2d6fe,#5aa2df);color:#fff; transform: translateY(-1px); }

#payBtn {
  background: #FFBF00;
  color: #fff;
}
#payBtn:disabled { background: #9ca3af; cursor: not-allowed; }
#payBtn:hover:enabled { background: #FFA500; transform: translateY(-1px); }

/* --- custom token selector --- */
.urcheckout-token-selector {
  position: relative;
  cursor: pointer;
  user-select: none;
  border: 1px solid #2563eb;
  border-radius: 8px;
  padding: 6px 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #fff;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.urcheckout-token-selector:hover {
  border-color: #2563eb;
  box-shadow: 0 2px 8px rgba(37,99,235,0.15);
}

#urcheckout-token-display img {
  margin-right: 6px;
}

#urcheckout-token-options {
    position:absolute;top:100%;left:0;width:100%;background:#fff;border:1px solid #ccc;border-radius:6px;margin:0;padding:0;list-style:none;box-shadow:0 4px 12px rgba(0,0,0,0.1);display:none;z-index:100;animation: dropdownFade 0.2s ease-out;
}
#urcheckout-token-options li {
  padding: 8px 12px;
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  transition: background 0.2s;
}
#urcheckout-token-options li:hover {
  background: #f3f4f6;
}

#urcheckout-progress-bar {width:0%; height:24px; background:linear-gradient(90deg,#c5e5fe,#a2d6fe,#c5e5fe); border-radius:6px; transition:width 0.5s ease;}

#urcheckout-progress-container {margin:10px 0; width:100%; background:#eee; height:24px; border-radius:4px;}


@keyframes dropdownFade {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: translateY(0); }
}

/* --- step list --- */
#urcheckout-steps {
  padding-left: 18px;
  font-size: 14px;
  color: #374151;
}
#urcheckout-steps li {
  margin-bottom: 4px;
}


.send {font-size:0.9rem;line-height:0.9rem;margin-top:10px}

.urcheckout-send {font-size:2rem;line-height:2rem;font-weight:600;margin:10px auto;}

.powered_by {
    max-width: 125px;
    width: 100%;
    margin:75px auto 0;
}

.powered_by img {width:100%;}

.MSvuT {
    color: rgb(146, 146, 146);
    text-align: left;
    background: none;
    border: none;
    outline: none;
    width: 50%;
    font-size: 0.555rem;
    line-height: 0.6rem;
    font-weight: 400;
    font-family: "Roboto Mono", sans-serif !important;
    -webkit-font-smoothing: antialiased;
    width: 100%;
    max-width: 300px;
    position: relative;
    margin: 0 auto 0;
    heigth:40px;
}

#urcheckout-warning-banner {
    display:none;
    padding:10px;
    margin:10px 0;
    border-radius:6px;
    background:#dc3545;
    color:#fff;
    font-weight:bold;
    text-align:center;
}

