body.buyer-auth-locked {
    overflow: hidden;
}

.buyer-menu-entry {
    list-style: none;
}

.buyer-menu-link {
    background: none;
    border: none;
    color: #022c16;
    font-size: 16px;
    padding: 10px 0;
    text-align: left;
    width: 100%;
    cursor: pointer;
}

.buyer-menu-link:hover {
    text-decoration: underline;
}

.buyer-auth {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Open Sans', sans-serif;
}

.buyer-auth__overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    backdrop-filter: blur(2px);
}

.buyer-auth__dialog {
    position: relative;
    width: 100%;
    max-width: 420px;
    background: #fff;
    border-radius: 24px;
    padding: 32px;
    z-index: 1;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
}

.buyer-auth__close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 32px;
    height: 32px;
    border: none;
    background: transparent;
    cursor: pointer;
}

.buyer-auth__close::before,
.buyer-auth__close::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 18px;
    height: 2px;
    background: #0b1424;
}

.buyer-auth__close::before {
    transform: translate(-50%, -50%) rotate(45deg);
}

.buyer-auth__close::after {
    transform: translate(-50%, -50%) rotate(-45deg);
}

.buyer-step {
    font-family: 'Roboto', sans-serif;
}

.buyer-step h2 {
    margin: 0 0 8px;
    font-size: 28px;
    line-height: 1.2;
    color: #0b1424;
    text-align: center;
}

.buyer-step__subtitle {
    margin: 0 0 20px;
    color: #4c5567;
    font-size: 15px;
    line-height: 1.2;
}

.buyer-label {
    font-size: 14px;
    color: #4c5567;
    margin-bottom: 6px;
    display: block;
}

.buyer-input {
    margin-bottom: 16px;
}

.buyer-input input {
    width: 100%;
    border: 1px solid #dfe3e7;
    border-radius: 12px;
    padding: 14px 16px;
    font-size: 16px;
    transition: border-color .2s ease;
}

.buyer-input input:focus {
    border-color: #2f8f62;
    outline: none;
}

.buyer-primary-btn,
.buyer-secondary-btn {
    width: 100%;
    border: none;
    border-radius: 12px;
    padding: 14px 18px;
    cursor: pointer;
    transition: opacity .2s ease;
    font-family: Roboto, sans-serif;
    font-weight: 600;
    font-size: 20px;
    line-height: 100%;
    opacity: 1;
    gap: 10px;

}

.buyer-primary-btn {
    background: #1a8d61;
    color: #fff;
}

.buyer-primary-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.buyer-secondary-btn {
    background: #eff2f5;
    color: #0b1424;
}

.buyer-link,
.buyer-secondary-link {
    background: none;
    border: none;
    color: #1a8d61;
    font-size: 14px;
    margin-top: 16px;
    cursor: pointer;
    text-decoration: underline;
}

.buyer-secondary-link {
    color: #4c5567;
    text-decoration: none;
}

.buyer-error {
    color: #d93025;
    font-size: 14px;
    min-height: 18px;
    margin: 8px 0;
}

.buyer-legal {
    font-size: 12px;
    color: #7a8294;
    margin-top: 16px;
    line-height: 1.5;
}

.buyer-legal a {
    color: #1a8d61;
    text-decoration: underline;
}

.buyer-code {
    display: flex;
    gap: 12px;
    margin: 12px 0 16px;
    justify-content: space-around;
}

.buyer-code input {
    flex: 0 0 56px;
    max-width: 56px;
    border: none;
    border-bottom: 3px solid #dfe3e7;
    font-size: 26px;
    text-align: center;
    padding: 12px 0;
    background: transparent;
}

.buyer-code input.is-filled {
    border-bottom-color: #111;
}

.buyer-code input.is-active {
    border-bottom-color: #1a8d61;
}

.buyer-inline-btn,
.buyer-inline-edit {
    border: none;
    background: none;
    cursor: pointer;
    width: 20px;
    height: 20px;
    margin-left: 8px;
    position: relative;
}

.buyer-inline-btn::before,
.buyer-inline-edit::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg width='20' height='20' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M13.586 3l3.414 3.414-9.9 9.9H3.687v-4.414z' stroke='%23022c16' stroke-width='1.5' fill='none'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-size: contain;
}

.buyer-account-card {
    border: 1px solid #e3e7ed;
    border-radius: 16px;
    padding: 16px;
    margin-bottom: 16px;
}

.buyer-account-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.buyer-account-row:last-child {
    margin-bottom: 0;
}

.buyer-account-value {
    margin: 0;
    font-weight: 600;
    color: #0b1424;
}

.buyer-status {
    font-size: 13px;
    color: #7a8294;
}

.buyer-status.success {
    color: #1a8d61;
}

.buyer-status.pending {
    color: #d97706;
}

.buyer-account-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

@media (max-width: 640px) {
    .buyer-code {
        gap: 8px;
        justify-content: space-between;
    }

    .buyer-code input {
        flex: 0 0 48px;
        max-width: 48px;
    }

    .buyer-auth__dialog {
        height: 100%;
        max-width: none;
        border-radius: 0;
        padding: 32px 20px;
    }
}

.buyer-fav-list {
    position: fixed;
    inset: 0;
    z-index: 9998;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Open Sans', sans-serif;
}

.buyer-fav-list__overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
}

.buyer-fav-list__dialog {
    position: relative;
    width: 100%;
    max-width: 420px;
    background: #fff;
    border-radius: 20px;
    padding: 24px;
    z-index: 1;
    box-shadow: 0 16px 44px rgba(0, 0, 0, 0.18);
}

.buyer-fav-list__close {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 28px;
    height: 28px;
    border: none;
    background: transparent;
    cursor: pointer;
}

.buyer-fav-list__close::before,
.buyer-fav-list__close::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 16px;
    height: 2px;
    background: #0b1424;
}

.buyer-fav-list__close::before {
    transform: translate(-50%, -50%) rotate(45deg);
}

.buyer-fav-list__close::after {
    transform: translate(-50%, -50%) rotate(-45deg);
}

.buyer-fav-list__title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 14px;
}

.buyer-fav-list__lists {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 16px;
}

.buyer-fav-list__item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 14px;
    border: 1px solid #e3e7ed;
    border-radius: 12px;
    cursor: pointer;
    transition: border-color .2s ease, background .2s ease;
}

.buyer-fav-list__item:hover {
    border-color: #1a8d61;
    background: #f4fbf8;
}

.buyer-fav-list__item-name {
    font-weight: 600;
    color: #0b1424;
}

.buyer-fav-list__item-count {
    font-size: 13px;
    color: #6b7280;
}

.buyer-fav-list__item--created {
    background: #fff7ed;
    border-color: #ffa500;
}

.buyer-fav-list__item--created:hover {
    background: #ffedd5;
    border-color: #ff8c00;
}

.buyer-fav-list__create {
    margin-top: 6px;
}

.buyer-fav-list__create-link {
    display: inline-block;
    margin-top: 12px;
    color: #1a8d61;
    text-decoration: none;
    font-size: 14px;
    cursor: pointer;
    transition: color .2s ease;
}

.buyer-fav-list__create-link:hover {
    color: #0d6e47;
    text-decoration: underline;
}

.buyer-fav-list__create .buyer-primary-btn {
    margin-top: 6px;
}

.buyer-fav-list[hidden] {
    display: none;
}

