/*
 * AAMVA Barcode Pro — UI polish
 * Visual-only enhancements. Generator, credit, checkout, AJAX and barcode logic are unchanged.
 */
.abp-app,
.abp-pricing,
.abp-my {
    box-sizing: border-box;
    width: min(1100px, calc(100% - 28px));
    margin: clamp(20px, 4vw, 42px) auto;
    color: #18283b;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    line-height: 1.55;
}
.abp-app *,
.abp-pricing *,
.abp-my * { box-sizing: border-box; }

.abp-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 14px;
    padding: 0 0 20px;
    margin-bottom: 22px;
    border-bottom: 1px solid #e3eaf2;
}
.abp-head h2,
.abp-pricing > h2,
.abp-my > h2 {
    margin: 0;
    color: #102d4d;
    font-size: clamp(1.45rem, 2.5vw, 2rem);
    font-weight: 750;
    line-height: 1.2;
    letter-spacing: -.035em;
}
.abp-credits,
.abp-credits-badge {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: #eaf3ff;
    border: 1px solid #cfe2fb;
    color: #174a7d;
    padding: 8px 14px;
    border-radius: 999px;
    font-size: .9rem;
    font-weight: 650;
    white-space: nowrap;
}
.abp-credits strong { color: #0c3156; font-size: 1rem; }

.abp-row { margin: 0 0 22px; }
.abp-row label {
    display: block;
    color: #263b52;
    font-size: .92rem;
    font-weight: 700;
}
.abp-row select {
    display: block;
    width: 100%;
    max-width: 420px;
    min-height: 48px;
    margin-top: 7px;
    padding: 10px 42px 10px 13px;
    border: 1px solid #d4deea;
    border-radius: 11px;
    background-color: #fff;
    color: #172b41;
    font: inherit;
    box-shadow: 0 1px 2px rgba(16, 45, 77, .03);
}
.abp-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
    gap: 16px;
    margin: 20px 0 24px;
}
.abp-grid > label {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
    color: #354960;
    font-size: .82rem;
    font-weight: 700;
}
.abp-grid input,
.abp-grid select {
    width: 100%;
    min-width: 0;
    min-height: 45px;
    margin: 0;
    padding: 10px 12px;
    border: 1px solid #d7e1ec;
    border-radius: 10px;
    background: #fff;
    color: #172b41;
    font: inherit;
    font-size: .94rem;
    box-shadow: 0 1px 2px rgba(16, 45, 77, .025);
    transition: border-color .18s ease, box-shadow .18s ease, background-color .18s ease;
}
.abp-grid input:hover,
.abp-grid select:hover,
.abp-row select:hover { border-color: #a9bfd6; }
.abp-grid input:focus,
.abp-grid select:focus,
.abp-row select:focus {
    outline: none;
    border-color: #3479bd;
    box-shadow: 0 0 0 3px rgba(52, 121, 189, .14);
}
.abp-grid input::placeholder { color: #93a2b3; }

.abp-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin: 24px 0 20px;
}
.abp-btn {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 11px 18px;
    border: 1px solid #d6e0eb;
    border-radius: 11px;
    background: #f3f6fa;
    color: #263c52;
    font: inherit;
    font-size: .91rem;
    font-weight: 700;
    line-height: 1.25;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease, background .16s ease;
}
.abp-btn:hover {
    border-color: #b9cadd;
    background: #eaf0f7;
    color: #102d4d;
    box-shadow: 0 4px 12px rgba(16, 45, 77, .08);
    transform: translateY(-1px);
}
.abp-btn:focus-visible {
    outline: 3px solid rgba(52, 121, 189, .3);
    outline-offset: 2px;
}
.abp-btn:disabled { opacity: .65; cursor: wait; transform: none; box-shadow: none; }
.abp-btn-primary {
    border-color: #174c7b;
    background: linear-gradient(135deg, #236aa5, #123b63);
    color: #fff;
    box-shadow: 0 5px 14px rgba(18, 59, 99, .16);
}
.abp-btn-primary:hover {
    border-color: #0f3153;
    background: linear-gradient(135deg, #1c5d94, #0f3153);
    color: #fff;
    box-shadow: 0 7px 18px rgba(18, 59, 99, .22);
}
.abp-canvas-wrap {
    margin-top: 24px;
    padding: clamp(12px, 2.5vw, 24px);
    overflow-x: auto;
    border: 1px solid #dfe8f1;
    border-radius: 16px;
    background: linear-gradient(180deg, #f8fbff, #fff);
    box-shadow: 0 8px 26px rgba(16, 45, 77, .055);
}
#abp-canvas {
    display: block;
    width: 100%;
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    background: #fff;
}
.abp-notice {
    margin: 20px 0;
    padding: 16px 18px;
    border: 1px solid #f4d58a;
    border-left: 4px solid #e8a51d;
    border-radius: 12px;
    background: #fff9e9;
    color: #694d12;
}
.abp-notice a { color: #174f83; font-weight: 750; text-underline-offset: 3px; }

.abp-plans {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 190px), 1fr));
    align-items: stretch;
    gap: 18px;
    margin-top: 24px;
}
.abp-plan {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 24px 18px;
    border: 1px solid #e0e8f1;
    border-radius: 16px;
    background: #fff;
    text-align: center;
    box-shadow: 0 5px 18px rgba(16, 45, 77, .055);
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.abp-plan:hover {
    transform: translateY(-3px);
    border-color: #bfd5eb;
    box-shadow: 0 12px 28px rgba(16, 45, 77, .10);
}
.abp-plan h3 {
    margin: 0 0 8px;
    color: #153a5e;
    font-size: 1.08rem;
    font-weight: 750;
}
.abp-price {
    margin: 10px 0 20px;
    color: #123b63;
    font-size: clamp(1.55rem, 3vw, 1.9rem);
    font-weight: 800;
    letter-spacing: -.035em;
}
.abp-plan .abp-btn { width: 100%; margin-top: auto; }

.abp-table {
    width: 100%;
    margin-top: 20px;
    overflow: hidden;
    border: 1px solid #e1e9f1;
    border-collapse: separate;
    border-spacing: 0;
    border-radius: 12px;
    background: #fff;
}
.abp-table th,
.abp-table td {
    padding: 13px 15px;
    border-bottom: 1px solid #e8eef5;
    color: #30465c;
    font-size: .9rem;
    text-align: left;
    vertical-align: middle;
}
.abp-table th {
    background: #f3f7fb;
    color: #193b5b;
    font-size: .8rem;
    font-weight: 750;
    letter-spacing: .025em;
}
.abp-table tbody tr:last-child td { border-bottom: 0; }
.abp-table tbody tr:hover { background: #f8fbfe; }
.abp-my > p { color: #52677c; }

@media (max-width: 640px) {
    .abp-app,
    .abp-pricing,
    .abp-my { width: min(100% - 22px, 1100px); margin: 22px auto; }
    .abp-head { align-items: flex-start; }
    .abp-head h2,
    .abp-pricing > h2,
    .abp-my > h2 { font-size: 1.45rem; }
    .abp-grid { grid-template-columns: minmax(0, 1fr); gap: 13px; }
    .abp-actions { display: grid; grid-template-columns: 1fr; }
    .abp-actions .abp-btn { width: 100%; }
    .abp-plans { grid-template-columns: repeat(auto-fit, minmax(min(100%, 145px), 1fr)); gap: 12px; }
    .abp-plan { padding: 18px 13px; }
    .abp-table { display: block; overflow-x: auto; white-space: nowrap; }
    .abp-table th, .abp-table td { padding: 11px 12px; }
}
@media (prefers-reduced-motion: reduce) {
    .abp-btn, .abp-plan, .abp-grid input, .abp-grid select { transition: none; }
}
