/* License Prefix dialog — GS1 US company prefix purchase on the blog. */

.lfs-article-body .lfs-license-prefix-launch {
    margin: 0 0 1.15rem;
    text-align: center;
}

.lfs-article-body .lfs-license-prefix-launch .lfs-cta-primary {
    color: #fff;
    background: #cd3c0d;
    font-weight: 700;
    cursor: pointer;
}

.lfs-article-body .lfs-license-prefix-launch .lfs-cta-primary:hover {
    color: #fff;
    background: #b3340b;
}

.lfs-prefix-modal {
    position: fixed;
    inset: 0;
    z-index: 10050;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    overflow: auto;
    background: rgba(15, 23, 42, 0.55);
}

.lfs-prefix-modal[hidden] {
    display: none !important;
}

.lfs-prefix-modal__dialog {
    position: relative;
    display: flex;
    flex-direction: column;
    width: min(42rem, 100%);
    max-height: min(38rem, calc(100vh - 2rem));
    margin: 0;
    background: #fff;
    color: #202223;
    border-radius: 12px;
    box-shadow: 0 16px 40px rgba(15, 23, 42, 0.18);
    overflow: hidden;
}

.lfs-prefix-modal__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex: 0 0 auto;
    gap: 1rem;
    padding: 0.85rem 1rem;
    background: #f6f6f7;
    border-bottom: 1px solid #e1e3e5;
}

.lfs-prefix-modal__title {
    margin: 0;
    font-family: Inter, system-ui, sans-serif;
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 0;
    line-height: 1.3;
}

.lfs-prefix-modal__close {
    width: 1.75rem;
    height: 1.75rem;
    border: none;
    border-radius: 6px;
    background: transparent;
    color: #202223;
    font-size: 1.25rem;
    line-height: 1;
    cursor: pointer;
}

.lfs-prefix-modal__close:hover {
    background: #e4e5e7;
}

.lfs-prefix-modal__body {
    flex: 1 1 auto;
    min-height: 0;
    overflow: auto;
    padding: 1rem 1.15rem 0.9rem;
}

.lfs-prefix-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex: 0 0 auto;
    gap: 0.75rem;
    padding: 0.75rem 1.15rem;
    background: #fff;
    border-bottom: 1px solid #e1e3e5;
}

.lfs-prefix-toolbar[hidden] {
    display: none !important;
}

.lfs-prefix-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.45rem 0.85rem;
    border: 1px solid #c9cccf;
    border-radius: 8px;
    background: #fff;
    color: #202223;
    font-family: inherit;
    font-size: 0.875rem;
    font-weight: 550;
    line-height: 1.2;
    cursor: pointer;
}

.lfs-prefix-btn:hover {
    background: #f6f6f7;
}

.lfs-prefix-btn--primary {
    border-color: #202223;
    background: #202223;
    color: #fff;
}

.lfs-prefix-btn--primary:hover {
    background: #000;
    border-color: #000;
}

.lfs-prefix-btn--primary:disabled {
    border-color: #d2d5d8;
    background: #f1f2f3;
    color: #8c9196;
    cursor: not-allowed;
}

.lfs-prefix-partner {
    display: block;
    height: 64px;
    width: auto;
    margin: 0.15rem auto 0.85rem;
}

.lfs-prefix-hint {
    margin: 0 0 0.75rem;
    text-align: center;
    color: #637381;
    font-size: 0.9rem;
}

.lfs-prefix-packages {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem;
    margin: 0 0 1rem;
}

.lfs-prefix-package {
    display: flex;
    flex-direction: column;
    width: 10.4rem;
    padding: 0.7rem 0.75rem 0.65rem;
    border: 1px solid #e3e5e7;
    border-radius: 8px;
    background: #fff;
    cursor: pointer;
    text-align: left;
}

.lfs-prefix-package:hover {
    border-color: #ccc;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.lfs-prefix-package.is-selected {
    border-color: #0070c9;
    background: rgba(0, 112, 201, 0.05);
}

.lfs-prefix-package__top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.5rem;
}

.lfs-prefix-package__range {
    color: #163a70;
    font-size: 1.05rem;
    font-weight: 700;
}

.lfs-prefix-package__price {
    margin-top: 0.35rem;
    color: #e0a020;
    font-size: 1.35rem;
    font-weight: 700;
}

.lfs-prefix-package input {
    appearance: none;
    -webkit-appearance: none;
    width: 18px;
    height: 18px;
    margin: 2px 0 0;
    border: 2px solid #ccc;
    border-radius: 50%;
    flex: 0 0 auto;
}

.lfs-prefix-package input:checked {
    border-color: #0070c9;
    background: #fff;
    box-shadow: inset 0 0 0 4px #0070c9;
}

.lfs-prefix-copy {
    max-width: 40rem;
    margin: 0 auto;
    text-align: center;
}

.lfs-prefix-copy h3 {
    margin: 0 0 0.4rem;
    color: #003366;
    font-size: 1rem;
    font-weight: 650;
}

.lfs-prefix-copy p {
    margin: 0;
    color: #202223;
    font-size: 0.75rem;
    line-height: 1.5;
}

.lfs-prefix-actions {
    display: flex;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 0.9rem -1.15rem 0;
    padding: 0.85rem 1.15rem 0.15rem;
    border-top: 1px solid #e1e3e5;
}

.lfs-prefix-section {
    margin: 0 0 0.55rem;
    font-size: 1rem;
    font-weight: 700;
}

.lfs-prefix-card {
    margin: 0 0 1.1rem;
    padding: 1rem 1rem 1.1rem;
    border: 1px solid #e1e3e5;
    border-radius: 12px;
    background: #fff;
}

.lfs-prefix-fields {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.lfs-prefix-field {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    font-size: 0.875rem;
    font-weight: 500;
}

.lfs-prefix-field abbr {
    text-decoration: none;
    color: #b42318;
}

.lfs-prefix-field input,
.lfs-prefix-field select {
    width: 100%;
    padding: 0.55rem 0.75rem;
    border: 1px solid #c9cccf;
    border-radius: 8px;
    background: #fff;
    color: #202223;
    font: inherit;
    font-weight: 400;
}

.lfs-prefix-field input:focus,
.lfs-prefix-field select:focus {
    outline: 2px solid var(--emerald-soft, #d1fae5);
    border-color: var(--emerald, #0f766e);
}

.lfs-prefix-field input[aria-invalid="true"],
.lfs-prefix-field select[aria-invalid="true"] {
    border-color: #b42318;
}

.lfs-prefix-error {
    margin: 0;
    color: #b42318;
    font-size: 0.8rem;
    font-weight: 500;
}

.lfs-prefix-alert {
    flex: 0 0 auto;
    margin: 0.75rem 1.15rem 0;
    padding: 0.65rem 0.75rem;
    border-radius: 8px;
    background: #fef3f2;
    color: #912018;
    font-size: 0.875rem;
    line-height: 1.45;
}

.lfs-prefix-summary {
    min-width: 7.5rem;
    padding: 0.4rem 0.65rem;
    border: 1px solid #c9cccf;
    border-radius: 8px;
    background: #f9fafb;
}

.lfs-prefix-summary__range {
    font-size: 0.95rem;
    font-weight: 500;
}

.lfs-prefix-summary__price {
    color: #e0a020;
    font-size: 1.25rem;
    font-weight: 700;
}

.lfs-prefix-check {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 0.35rem 0.45rem;
    margin: 0 0 0.55rem;
    font-size: 0.95rem;
    font-weight: 400;
    line-height: 1.45;
}

.lfs-prefix-check input {
    margin-top: 0.2rem;
}

.lfs-prefix-check a {
    color: var(--brand, #0b6e4f);
    font-weight: 600;
}

.lfs-prefix-paypal {
    min-height: 2.5rem;
    margin-top: 0.75rem;
}

.lfs-prefix-muted {
    margin: 0.5rem 0;
    color: #637381;
    font-size: 0.92rem;
}

.lfs-prefix-result-dialog {
    width: min(36rem, 100%);
    max-height: none;
}

.lfs-prefix-result-dialog .lfs-prefix-actions {
    justify-content: center;
    margin: 0;
    padding: 0.85rem 0 0.15rem;
}

.lfs-prefix-result {
    margin: 0 0 1rem;
    padding: 0.9rem 1rem;
    border: 1px solid #b7e0c2;
    border-radius: 10px;
    background: #f1f8f4;
    color: #1a3c28;
    font-weight: 500;
    line-height: 1.5;
    text-align: left;
}

.lfs-prefix-result p {
    margin: 0 0 0.75rem;
}

.lfs-prefix-result p:last-child {
    margin-bottom: 0;
}

.lfs-prefix-result strong {
    font-weight: 700;
}

.lfs-prefix-busy {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.86);
    text-align: center;
}

.lfs-prefix-busy[hidden] {
    display: none !important;
}

.lfs-prefix-busy p {
    margin: 0;
    font-weight: 600;
}

.lfs-prefix-spinner {
    width: 2.25rem;
    height: 2.25rem;
    border: 3px solid #dfe3e8;
    border-top-color: var(--emerald, #0f766e);
    border-radius: 50%;
    animation: lfs-prefix-spin 0.7s linear infinite;
}

@keyframes lfs-prefix-spin {
    to {
        transform: rotate(360deg);
    }
}

@media (max-width: 640px) {
    .lfs-prefix-package {
        width: calc(50% - 0.5rem);
    }
}

@media (max-width: 420px) {
    .lfs-prefix-package {
        width: 100%;
    }
}