.a2wl-wizard {
    font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    color: #1a1a1a;
    background: #fff;
    padding: 24px;
}

@media (max-width: 640px) {
    .a2wl-wizard {
        padding: 16px;
    }
}

.a2wl-wizard__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
    border-bottom: 1px solid #f3f4f6;
}

.a2wl-wizard__titles h1 {
    font-size: 20px;
    font-weight: 600;
    margin: 0 0 6px;
    color: #111827;
}

.a2wl-wizard__subtitle {
    font-size: 14px;
    color: #374151;
    margin: 0 0 4px;
}

.a2wl-wizard__logo {
    flex-shrink: 0;
    width: 120px;
    height: auto;
    text-align: right;
}

.a2wl-wizard__logo img {
    max-width: 100%;
    height: auto;
    display: block;
    background: #f9fafb;
    border-radius: 4px;
}


.a2wl-card {
    background: #fff;
    border: none;
    border-radius: 4px;
    padding: 8px 10px;
    box-shadow: none;
}

.a2wl-card__title {
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 8px;
    color: #1f2937;
}

.a2wl-field {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 8px;
}

.a2wl-field--start {
    align-items: flex-start;
}

.a2wl-field__label {
    flex: 0 0 220px;
    min-width: 220px;
    font-size: 13px;
    color: #374151;
}

.a2wl-field input[type="text"],
.a2wl-field input[type="password"],
.a2wl-field select {
    flex: 1;
    max-width: 300px;
    padding: 4px 7px;
    border: 1px solid #d1d5db;
    border-radius: 4px;
    font-size: 13px;
    background: #fff;
    transition: border-color .15s, box-shadow .15s;
}

.a2wl-field input:focus,
.a2wl-field select:focus {
    border-color: #2563eb;
    box-shadow: 0 0 0 1px rgba(37,99,235,0.2);
    outline: none;
}

.a2wl-field__control {
    position: relative;
    display: flex;
    align-items: center;
}

.a2wl-field__control .a2wl-help + a {
    margin-left: 6px;
    display: inline-block;
    color: #2563eb;
    font-weight: 500;
    text-decoration: none;
}

.a2wl-field__control .a2wl-help + a:hover {
    text-decoration: underline;
}

.a2wl-size--short { width: 120px; }
.a2wl-size--medium { width: 200px; }
.a2wl-size--long { width: 300px; }

.a2wl-column {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    margin-top: 2px;
}

.a2wl-column .a2wl-field__desc {
    font-size: 12px;
    color: #6b7280;
    line-height: 1.4;
}

.a2wl-help {
    position: absolute;
    left: -22px;
    top: 50%;
    transform: translateY(-50%);
    width: 17px;
    height: 17px;
    cursor: pointer;

    border: 1px solid #e1e8f0;
    border-radius: 50%;
    background: #fff url("../../img/icons/question-mark.png") 50% no-repeat;
    background-size: 6px 9px;
}

@media (max-width: 640px) {
    .a2wl-help {
        display: none;
    }

    .a2wl-field__control .a2wl-help + a {
        margin-left: 0;
    }
}

.a2wl-help::after {
    content: attr(data-title);
    position: absolute;
    width: 200px;
    background: #000;
    color: #fff;
    padding: 5px;
    border-radius: 5px;
    text-align: center;
    font-size: 12px;
    margin-left: -100px;
    bottom: calc(100% + 10px);
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.2s;
}

.a2wl-help::before {
    content: '';
    position: absolute;
    pointer-events: none;
    border-top: solid #000 6px;
    border-left: solid transparent 5px;
    border-right: solid transparent 5px;
    bottom: calc(100% + 4px);
    left: 50%;
    margin-left: -5px;
    opacity: 0;
    transition: opacity 0.2s;
}

.a2wl-help:hover::after,
.a2wl-help:hover::before {
    opacity: 1;
}

.a2wl-field--error input {
    border-color: #dc2626 !important;
}

.a2wl-field__error {
    font-size: 12px;
    color: #dc2626;
}

.a2wl-wizard__footer {
    margin-top: 16px;
    display: flex;
    gap: 8px;
}

.a2wl-btn {
    padding: 8px 14px;
    border-radius: 4px;
    font-size: 13px;
    cursor: pointer;
    border: none;
    transition: background .15s, color .15s, opacity .15s;
    font-weight: 500;
}

.a2wl-btn--primary {
    background: #10b981;
    color: #fff;
}

.a2wl-btn--primary:hover {
    background: #059669;
}

.a2wl-btn--secondary {
    background: #e5e7eb;/
    color: #111827;
}

.a2wl-btn--secondary:hover {
    background: #d1d5db;
}

@media (max-width: 640px) {
    .a2wl-field {
        flex-direction: column;
        align-items: flex-start;
    }

    .a2wl-field__label {
        flex: none;
        margin-bottom: 4px;
    }

    .a2wl-field input,
    .a2wl-field select {
        max-width: 100%;
    }
}

._a2wfo.a2wl-info {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 16px;
    margin: 16px 0;
    border-radius: 6px;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
}

._a2wfo.a2wl-info div {
    font-size: 13px;
    color: #374151;
    line-height: 1.4;
}

._a2wfo.a2wl-info .btn {
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 500;
    background: #2563eb;
    color: #fff;
    text-decoration: none;
    transition: background .15s;
}

._a2wfo.a2wl-info .btn:hover {
    background: #1d4ed8;
}

.a2wl-card._a2wfo {
    opacity: 0.5;
    filter: grayscale(20%);
    pointer-events: none;
    user-select: none;
}

.a2wl-card._a2wfo .a2wl-help {
    pointer-events: auto;
    opacity: 1;
    filter: none;
    cursor: pointer;
}
