/* The form is dropped into user panels this plugin does not own, so it keeps
   to a readable column of its own instead of stretching across a 1100px card
   and leaving the labels stranded at one edge. */
.acc-kyc { font-size: 15px; line-height: 2; max-width: 680px; margin-inline: auto; }
.acc-kyc, .acc-kyc * { box-sizing: border-box; }
.acc-kyc h3 { margin: 0 0 10px; font-size: 17px; color: #1b1d24; }
.acc-kyc-level {
    display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
    padding: 12px 16px; border-radius: 14px; margin-bottom: 16px;
    background: #fdeaec; border: 1px solid #f3c9ce; color: #7f1220;
}
.acc-kyc-step {
    border: 1px solid #ececf1; border-radius: 16px; padding: 18px 20px;
    margin-bottom: 16px; background: #fff; box-shadow: 0 2px 10px rgba(20, 20, 40, .04);
}
.acc-kyc label { display: block; margin: 12px 0 5px; font-weight: 600; color: #2c2f3a; }
.acc-kyc label .opt { font-weight: 400; color: #8a8f9c; font-size: 13px; }
.acc-kyc input[type=text], .acc-kyc input[type=file], .acc-kyc select {
    width: 100%; max-width: 100%; padding: 11px 12px; border: 1px solid #d9dbe3;
    border-radius: 10px; background: #fff; font-family: inherit; font-size: 15px;
}
.acc-kyc input[type=text]:focus, .acc-kyc select:focus {
    outline: none; border-color: #e11d2e; box-shadow: 0 0 0 3px rgba(225, 29, 46, .12);
}
/* Two fields per row once there is room; one per row on a phone. */
.acc-kyc-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 14px; }
.acc-kyc-fields .wide { grid-column: 1 / -1; }
@media (max-width: 560px) {
    .acc-kyc-fields { grid-template-columns: 1fr; }
    /* A thumb aims for the whole width of a phone, not a button floating at
       one edge of it. */
    .acc-kyc button:not(.link),
    .acc-kyc-card a.acc-kyc-btn { width: 100%; }
    .acc-kyc-step { padding: 16px 14px; }
}

.acc-kyc button, .acc-kyc .acc-kyc-submit {
    margin-top: 14px; min-height: 46px; padding: 0 24px; border: 0; border-radius: 12px;
    background: #e11d2e; color: #fff; font-family: inherit; font-size: 15px; font-weight: 700;
    cursor: pointer; box-shadow: 0 4px 14px rgba(225, 29, 46, .22);
    transition: background .12s ease, transform .12s ease;
}
.acc-kyc button:hover { background: #c4162a; transform: translateY(-1px); }
.acc-kyc button.link {
    background: none; color: #c0392b; padding: 0; margin: 0; min-height: 0;
    box-shadow: none; font-weight: 400; font-size: 13px;
}
.acc-kyc button.link:hover { background: none; transform: none; text-decoration: underline; }
.acc-kyc button[disabled] { opacity: .5; cursor: default; }
.acc-kyc-msg { padding: 10px 14px; border-radius: 8px; margin-bottom: 12px; }
.acc-kyc-msg.ok { background: #e6f6ec; border: 1px solid #0b7a3b; color: #0b5c2d; }
.acc-kyc-msg.err { background: #fdecec; border: 1px solid #c0392b; color: #8e2c20; }
.acc-kyc-msg.warn { background: #fff6e0; border: 1px solid #d19a00; color: #7a5a00; }
.acc-kyc .hint { color: #777; font-size: 13px; line-height: 1.9; }
.acc-kyc-cards { width: 100%; border-collapse: collapse; margin: 10px 0; }
.acc-kyc-cards td { padding: 8px 4px; border-bottom: 1px dashed #e6e6ee; font-size: 14px; }
.acc-kyc-cards td:first-child { direction: ltr; text-align: start; }
.acc-kyc-cards form { display: inline; }
.acc-kyc-code { margin: 10px 0; font-size: 18px; }
.acc-kyc-code strong { letter-spacing: 4px; direction: ltr; display: inline-block; }
/* The gate card on checkout / pay-for-order. Brand red, one card, no notice
   stripes — a buyer stopped mid-purchase should see one thing to do. */
.acc-kyc-card {
    border: 1px solid #f3c9ce;
    border-inline-start: 5px solid #e11d2e;
    background: linear-gradient(135deg, #fff7f8 0%, #fffdfd 60%);
    border-radius: 16px;
    padding: 20px 22px;
    margin: 0 0 26px;
    box-shadow: 0 6px 20px rgba(225, 29, 46, .07);
    font-size: 15px;
    line-height: 2;
    color: #3d2f31;
}
.acc-kyc-card__head { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; }
.acc-kyc-card__head strong { font-size: 17px; color: #9d1220; }
.acc-kyc-card__icon {
    display: inline-flex; align-items: center; justify-content: center;
    width: 38px; height: 38px; flex: 0 0 38px; border-radius: 12px;
    background: #e11d2e; color: #fff;
}
.acc-kyc-card__level {
    display: inline-block; margin-inline-start: 8px; padding: 2px 10px;
    border-radius: 999px; background: #fdeaec; color: #9d1220;
    font-size: 12px; line-height: 1.9; white-space: nowrap;
}
.acc-kyc-card__text { margin: 4px 0 10px; }
/* The theme strips list markers, so the steps are numbered by counter. */
.acc-kyc-card ol.acc-kyc-card__steps {
    margin: 0 0 14px; padding: 0; list-style: none; counter-reset: acckyc;
    color: #5b4a4d; font-size: 14px;
}
.acc-kyc-card ol.acc-kyc-card__steps li { margin: 2px 0; padding-inline-start: 26px; position: relative; }
.acc-kyc-card ol.acc-kyc-card__steps li::before {
    counter-increment: acckyc; content: counter(acckyc);
    position: absolute; inset-inline-start: 0; top: 50%; transform: translateY(-50%);
    width: 19px; height: 19px; border-radius: 50%;
    background: #fdeaec; color: #9d1220;
    font-size: 11px; font-weight: 700; line-height: 19px; text-align: center;
}
.acc-kyc-card__actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.acc-kyc-card__actions .acc-tg { margin: 0; padding: 0; border: 0; background: none; }
.acc-kyc-card__actions .acc-tg-hint { display: none; }
/* Selector carries the card too: the theme colours every checkout link red
   with its own !important, and red text on a red button is invisible. */
.acc-kyc-card a.acc-kyc-btn,
.acc-kyc-card a.acc-kyc-btn:link,
.acc-kyc-card a.acc-kyc-btn:visited,
.acc-kyc-card a.acc-kyc-btn:hover,
.acc-kyc-card a.acc-kyc-btn:focus {
    display: inline-flex; align-items: center; justify-content: center;
    min-height: 46px; padding: 0 26px; border-radius: 12px;
    background: #e11d2e; color: #fff !important; text-decoration: none !important;
    font-size: 15px; font-weight: 700; border: 0;
    box-shadow: 0 4px 14px rgba(225, 29, 46, .25);
    transition: transform .12s ease, box-shadow .12s ease, background .12s ease;
}
.acc-kyc-card a.acc-kyc-btn:hover { background: #c4162a; transform: translateY(-1px); box-shadow: 0 6px 18px rgba(225, 29, 46, .32); }

#acc-kyc-preview { width: 100%; max-width: 360px; background: #000; border-radius: 12px; }
.acc-kyc-controls { display: flex; gap: 8px; align-items: center; margin-top: 8px; flex-wrap: wrap; }
.acc-kyc-controls button { margin-top: 0; }
#acc-kyc-timer { color: #555; }
