/* Affiliate Area Profile tab + signup short-link hint (Phase 18). */
.em-profile-card{margin:0 0 22px;padding:16px 18px;border:1px solid #ccd5e0;border-radius:6px;background:#f8fafc;}
.em-profile-card h5{margin:0 0 6px;font-size:18px;}
.em-profile-card label{display:block;font-weight:700;margin-bottom:4px;}
.em-profile-card input[type="text"],.em-profile-card input[type="tel"]{width:100%;max-width:420px;box-sizing:border-box;}
.em-profile-help{margin:0 0 10px;color:#444;}
.em-profile-current{margin:0 0 8px;}
.em-profile-pending{margin:8px 0 0;padding:8px 10px;background:#fff6dd;border:1px solid #e6c870;border-radius:4px;}
.em-profile-tag{display:inline-block;margin-left:6px;padding:1px 8px;font-size:13px;border-radius:10px;background:#dff3e2;color:#14532d;}
.em-profile-notice{margin:0 0 18px;padding:10px 12px;border-radius:4px;font-weight:700;}
.em-profile-notice.is-ok{background:#e4f5e8;border:1px solid #8fc9a0;color:#14532d;}
.em-profile-notice.is-error{background:#fde8e8;border:1px solid #e09a9a;color:#7a1a1a;}
.em-profile-linkbox{display:flex;align-items:center;gap:0;max-width:520px;}
.em-profile-linkbox .em-profile-host{padding:0 6px 0 0;white-space:nowrap;color:#444;}
.em-profile-linkbox input{flex:1 1 auto;min-width:0;}
.em-profile-preview{min-height:1.2em;margin:4px 0 8px;color:#444;}
.em-profile-history{margin:0;padding-left:18px;}
.em-profile-history li{margin-bottom:6px;}
.em-shortlink-hint{margin:6px 0 0;font-size:14px;color:#444;}
.em-shortlink-hint strong{color:#111;}
/* Real-time availability line under the short link name box. */
.em-shortlink-hint [data-preview],.em-shortlink-hint .em-shortlink-status,.em-shortlink-hint .em-shortlink-note{display:block;}
.em-shortlink-hint [data-preview]{font-weight:700;margin-bottom:2px;}
.em-shortlink-hint .em-shortlink-note{margin-top:4px;}
.em-shortlink-status{min-height:1.3em;font-weight:700;}
.em-shortlink-status.is-checking{color:#555;font-weight:400;}
.em-shortlink-status.is-ok{color:#14532d;}
.em-shortlink-status.is-bad{color:#a11;}
.em-profile-card p.em-shortlink-status{margin:0 0 8px;}
/* Short link card: copy row */
.em-shortlink-copyrow{display:flex;gap:8px;align-items:center;flex-wrap:wrap;margin:0 0 12px;}
.em-shortlink-copyrow input[type="text"]{flex:1 1 260px;max-width:420px;}
.em-shortlink-copyrow .button.is-copied{background:#dff3e2;border-color:#8fc9a0;color:#14532d;}

/* Match AffiliateWP's own "Your Affiliate Link" box and Copy Link button
   (measured on the live page: 14px Arial, 1px #202020 border, 6px radius,
   9px 12px padding = 38px tall; blue gradient button, 4px radius). */
.em-profile-card input[type="text"],
.em-profile-card input[type="tel"]{
  box-sizing:border-box;width:100%;max-width:340px;height:38px;padding:9px 12px;
  font:400 14px/18.2px Arial,Helvetica,sans-serif;color:#000;background:#fff;
  border:1px solid #202020;border-radius:6px;box-shadow:none;
}
.em-profile-card input[type="text"]::placeholder,
.em-profile-card input[type="tel"]::placeholder{color:#767676;}
.em-profile-card input[type="text"]:focus,
.em-profile-card input[type="tel"]:focus{outline:2px solid #1a6fc9;outline-offset:1px;}
.em-profile-card input[readonly]{background:#fff;}
.em-shortlink-copyrow input[type="text"]{flex:0 1 340px;}
.em-profile-linkbox{max-width:520px;}
.em-profile-linkbox input[type="text"]{flex:0 1 340px;}
.em-profile-card button.button,
.em-profile-card button[type="submit"],
.em-shortlink-copyrow button.button{
  display:inline-block;padding:4px 14px;min-height:31px;
  border:1px solid #4d637e;border-radius:4px;
  background:linear-gradient(to bottom,#fff 0%,#d9e9f8 24%,#90bdea 75%,#6a97ca 100%);
  box-shadow:inset 1px 1px 0 rgba(255,255,255,.9),0 2px 2px rgba(0,0,0,.3);
  color:#102235;font:700 14px/21px Arial,Helvetica,sans-serif;text-shadow:none;cursor:pointer;
}
.em-profile-card button.button:hover,
.em-profile-card button[type="submit"]:hover,
.em-profile-card button.button:focus,
.em-profile-card button[type="submit"]:focus{
  background:linear-gradient(to bottom,#fff 0%,#e2effa 24%,#a2c8eb 75%,#78a5d3 100%);
}
.em-shortlink-copyrow .button.is-copied{background:#dff3e2;border-color:#8fc9a0;color:#14532d;}

/* Campaign tooltip ("?" next to Add a campaign / Campaign Name) */
.em-tip-wrap{position:relative;display:inline-block;margin-left:6px;vertical-align:middle;}
.em-tip{width:20px;height:20px;padding:0;border:1px solid #4d637e;border-radius:50%;background:#fff;color:#4d637e;font:700 13px/18px Arial,Helvetica,sans-serif;cursor:pointer;}
.em-tip:hover,.em-tip:focus,.em-tip-wrap.is-open .em-tip{background:#4d637e;color:#fff;outline:0;}
.em-tip-text{display:none;position:absolute;z-index:20;left:-8px;top:100%;margin-top:8px;width:290px;max-width:78vw;padding:10px 12px;
  border-radius:6px;background:#222;color:#fff;font:400 14px/1.45 Arial,Helvetica,sans-serif;text-align:left;box-shadow:0 3px 10px rgba(0,0,0,.35);white-space:normal;}
.em-tip-wrap:hover .em-tip-text,.em-tip-wrap:focus-within .em-tip-text,.em-tip-wrap.is-open .em-tip-text{display:block;}

/* Delete button and inline confirm in the custom links table */
.em-cl-delete{background:none;border:0;padding:0;margin:0 0 0 8px;color:inherit;cursor:pointer;vertical-align:middle;}
.em-cl-delete:hover,.em-cl-delete:focus{color:#a11;outline:0;}
.affwp-custom-link-actions.is-confirming > button:not(.em-cl-yes):not(.em-cl-no){display:none;}
.em-cl-confirm{display:inline-flex;gap:6px;align-items:center;flex-wrap:wrap;font:400 13px/1.3 Arial,Helvetica,sans-serif;}
.em-cl-confirm-q{font-weight:700;}
.em-cl-yes,.em-cl-no{padding:2px 8px;border-radius:4px;font:700 13px/18px Arial,Helvetica,sans-serif;cursor:pointer;}
.em-cl-yes{border:1px solid #a11;background:#a11;color:#fff;}
.em-cl-no{border:1px solid #4d637e;background:#fff;color:#102235;}
/* AffiliateWP turns every button in the row transparent on hover; keep Yes/No visible. */
.affwp-custom-link-actions .em-cl-yes:hover,.affwp-custom-link-actions .em-cl-yes:focus{background:#7d0f0f;border:1px solid #7d0f0f;color:#fff;}
.affwp-custom-link-actions .em-cl-no:hover,.affwp-custom-link-actions .em-cl-no:focus{background:#eef3f9;border:1px solid #4d637e;color:#102235;}
.affwp-custom-link-actions .em-cl-delete:hover,.affwp-custom-link-actions .em-cl-delete:focus{background:transparent;border:0;color:#a11;}
/* Update stays locked until the live check says the name is available. */
.em-profile-card button[type="submit"][disabled],
.em-profile-card button.button[disabled]{opacity:.45;cursor:not-allowed;filter:grayscale(.6);}

/* "Already have an account? Log in": boxed and noticeable at the top of the signup page,
   like "Ship to a different address?" on the checkout. */
p.em-aff-have-account{
  display:block;margin:0 0 20px;padding:12px 14px;max-width:520px;box-sizing:border-box;
  border:2px solid #b8c4d4;border-radius:6px;background:#eef3f9;
  font-size:16px;line-height:1.4;font-weight:700;color:#102235;
}
p.em-aff-have-account a{display:inline-block;margin-left:6px;padding:3px 14px;border:1px solid #4d637e;border-radius:4px;
  background:linear-gradient(to bottom,#fff 0%,#d9e9f8 24%,#90bdea 75%,#6a97ca 100%);color:#102235;font:700 14px/21px Arial,Helvetica,sans-serif;text-decoration:none;}
p.em-aff-have-account a:hover,p.em-aff-have-account a:focus{background:linear-gradient(to bottom,#fff 0%,#e2effa 24%,#a2c8eb 75%,#78a5d3 100%);}
