.lk-module {
    --lk-ink: #2f170f;
    --lk-muted: #5c5752;
    --lk-surface: #faf7f2;
    --lk-card: #fff8eb;
    --lk-border: #d5bda0;
    --lk-yellow: #ffb600;
    min-width: 0;
    color: var(--lk-ink);
    overflow-wrap: anywhere;
}

.lk-module .lk-title {
    margin: 0 0 1rem;
    color: var(--lk-ink);
    font-size: 1.625rem;
    font-weight: 800;
    line-height: 1.15;
}

.lk-module.lk-page {
    padding: 1rem;
    margin-bottom: 1.5rem;
    border-radius: .75rem;
    background: var(--lk-surface);
}

.lk-module.lk-narrow {
    max-width: 38rem;
    margin-right: auto;
    margin-left: auto;
}

.lk-module.lk-auth {
    max-width: 32rem;
}

.lk-module .lk-card {
    min-width: 0;
    padding: .75rem;
    border: 1px solid var(--lk-border);
    border-radius: .75rem;
    background: var(--lk-card);
}

.lk-module .lk-card-title {
    margin-bottom: 0;
    color: var(--lk-ink);
    font-size: 1.05rem;
    font-weight: 700;
    line-height: 1.3;
}

.lk-module .lk-meta,
.lk-module .lk-empty {
    color: var(--lk-muted);
}

.lk-module .lk-meta {
    margin-top: .2rem;
    font-size: .9rem;
}

.lk-module .lk-list,
.lk-module .lk-pet-grid {
    display: grid;
    gap: .75rem;
}

.lk-module .lk-list {
    margin-bottom: 1.25rem;
}

.lk-module.lk-back {
    position: relative;
    display: grid;
    min-height: 42px;
    padding: .5rem 2.25rem;
    place-items: center;
    border-radius: .5rem;
    background: #f0efed;
    color: var(--lk-ink);
    font-weight: 600;
    text-align: center;
}

.lk-module.lk-back {
    margin-bottom: .75rem;
}

.lk-module.lk-back i {
    position: absolute;
    left: 1rem;
}

.lk-module .lk-primary,
.lk-module .lk-secondary,
.lk-module .lk-danger {
    max-width: 100%;
    min-height: 44px;
    border-radius: .625rem;
    font-weight: 700;
    white-space: normal;
}

.lk-module a.lk-primary,
.lk-module a.lk-secondary,
.lk-module a.lk-danger {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .4rem;
}

.lk-module .lk-primary {
    border-color: var(--lk-yellow);
    background: var(--lk-yellow);
    color: #221004;
}

.lk-module .lk-primary:not(:disabled):hover {
    border-color: #e89d00;
    background: #e89d00;
    color: #221004;
}

.lk-module .lk-secondary {
    border-color: var(--lk-border);
    background: #fff4df;
    color: var(--lk-ink);
}

.lk-module .lk-secondary:hover {
    border-color: #a88053;
    background: #ffebc4;
    color: var(--lk-ink);
}

.lk-module .lk-danger {
    color: #a92020;
}

.lk-module .lk-danger:hover {
    background: #fbe8e4;
    color: #8a1818;
}

.lk-module .lk-icon-button {
    display: inline-flex;
    flex: 0 0 42px;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    padding: 0;
    border-radius: .625rem;
    color: var(--lk-ink);
    font-size: 1.1rem;
}

.lk-module .lk-icon-button:hover {
    background: #ffeac2;
    color: var(--lk-ink);
}

.lk-layout a:not(.btn),
.lk-module a:not(.btn) {
    color: #714316;
    text-decoration: none;
}

.lk-layout a:not(.btn):hover,
.lk-module a:not(.btn):hover {
    color: #4b2807;
    text-decoration: none;
}

.lk-layout :focus-visible,
.lk-module :focus-visible {
    outline: 2px solid #845109;
    outline-offset: 2px;
}

.lk-module .form-control {
    min-width: 0;
    min-height: 42px;
    border-color: var(--lk-border);
    border-radius: .5rem;
    background-color: #fffdfb;
    color: #211812;
}

.lk-module .form-control[readonly] {
    background-color: #f0ede8;
}

.lk-module .form-control:focus {
    border-color: #a87631;
    box-shadow: 0 0 0 .125rem #f6dcad;
}

.lk-module .form-group > label:not(.custom-control-label) {
    margin-bottom: .25rem;
    font-weight: 700;
}

.lk-module .lk-consent {
    min-height: 27px;
    padding-left: 1.875rem;
    color: #2d241b;
    line-height: 1.35;
}

.lk-module .lk-consent .custom-control-label::before,
.lk-module .lk-consent .custom-control-label::after {
    top: .0625rem;
    left: -1.875rem;
    width: 1.25rem;
    height: 1.25rem;
    border-radius: .25rem;
}

.lk-module .lk-consent .custom-control-label::before {
    border-color: #735d4f;
    background-color: #fffdfb;
}

.lk-module .lk-consent .custom-control-input:checked ~ .custom-control-label::before {
    border-color: #145a36;
    background-color: #145a36;
}

.lk-module .lk-password {
    position: relative;
}

.lk-module .lk-password .form-control {
    padding-right: 3rem;
}

.lk-module .lk-password-toggle {
    position: absolute;
    top: 50%;
    right: 1px;
    transform: translateY(-50%);
}

.lk-module .lk-auth-links {
    display: grid;
    justify-items: center;
    gap: .75rem;
    margin-top: 1rem;
}

.lk-module .lk-auth-note {
    margin-top: 1rem;
    color: var(--lk-muted);
    text-align: center;
}

.lk-module .lk-address-list:empty {
    display: none;
}

.lk-module .lk-address-list:not(:empty) + .lk-empty {
    display: none;
}

.lk-module .lk-address,
.lk-module .lk-product {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: .625rem;
}

.lk-module .lk-address-icon {
    padding-left: .125rem;
    font-size: 1.25rem;
}

.lk-module .lk-pet {
    display: grid;
    grid-template-columns: 68px minmax(0, 1fr);
    align-items: center;
    gap: .875rem;
}

.lk-module .lk-pet-image,
.lk-module .lk-product-image {
    display: block;
    width: 60px;
}

.lk-module .lk-pet-image {
    width: 100%;
}

.lk-module .lk-pet-image img,
.lk-module .lk-product-image img {
    width: 100%;
    aspect-ratio: 1;
    border-radius: .5rem;
    object-fit: contain;
}

.lk-module .lk-pet-image img {
    object-fit: cover;
}

.lk-module .lk-pet-field {
    display: grid;
    grid-template-columns: minmax(6.5rem, 1fr) minmax(0, 2fr);
    align-items: center;
    gap: .5rem;
}

.lk-module .lk-pet-photo img {
    max-width: 100%;
    height: auto;
}

.lk-module[data-lk-pet-form="0"] [data-lk-pet-delete],
.lk-module[data-lk-pet-form="0"] .lk-pet-edit-title,
.lk-module:not([data-lk-pet-form="0"]) .lk-pet-new-title {
    display: none;
}

.lk-module .lk-notify-controls {
    display: flex;
    flex-wrap: wrap;
    column-gap: 1.15rem;
}

.lk-module .lk-notify-control {
    display: inline-flex;
    min-height: 42px;
    align-items: center;
    gap: .4rem;
    margin: 0;
    cursor: pointer;
}

.lk-module .lk-notify-control:not(:has(input)) {
    display: none;
}

.lk-module .lk-notify-control input {
    width: 1.125rem;
    height: 1.125rem;
    accent-color: #145a36;
}

.lk-module .lk-profile-grid {
    display: grid;
    gap: 1rem;
}

.lk-module .lk-organizations {
    align-self: start;
}

.lk-module .lk-organizations summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .5rem;
    min-height: 32px;
    list-style: none;
    cursor: pointer;
}

.lk-module .lk-organizations summary::-webkit-details-marker {
    display: none;
}

.lk-module .lk-organizations[open] summary i {
    transform: rotate(90deg);
}

.lk-module .lk-promo-control {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    margin-top: .625rem;
    border: 1px solid var(--lk-border);
    border-radius: .5rem;
    background: #fff1d7;
    text-align: center;
}

.lk-module .lk-promo-control > span {
    padding: .4rem;
}

.lk-module .lk-promo-toggle {
    min-height: 42px;
    padding: .35rem .5rem;
    border-left: 1px solid var(--lk-border);
    border-radius: 0;
    color: var(--lk-ink);
}

.lk-module .lk-promo-toggle:hover {
    background: #ffe8b8;
}

@media (max-width: 767.98px) {
    .lk-module .lk-mobile-wide,
    .lk-module a.lk-mobile-wide {
        width: 100%;
    }
}

@media (min-width: 576px) {
    .lk-module.lk-page {
        padding: 1.5rem;
    }

    .lk-module .lk-title {
        font-size: 1.9rem;
    }

    .lk-module .lk-pet-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 992px) {
    .lk-module .lk-profile-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .lk-module .lk-pet-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

.lk-content { min-width: 0; }

.lk-sidebar {
    margin-bottom: 1rem;
    padding: .4rem;
    border: 1px solid #eadac5;
    border-radius: .75rem;
    background: #faf7f2;
}

.lk-sidebar-toggle {
    display: flex;
    align-items: center;
    gap: .65rem;
    min-height: 44px;
    width: 100%;
    color: #32190d;
    text-align: left;
    font-weight: 700;
}

.lk-sidebar-toggle[aria-expanded="true"] .fa-chevron-down { transform: rotate(180deg); }

.lk-section-list a:not(.btn) {
    display: flex;
    align-items: center;
    gap: .65rem;
    min-height: 43px;
    padding: .45rem .6rem;
    border-radius: .45rem;
    color: #38291e;
}

.lk-section-list a:not(.btn):hover { background: #f1e7d9; }
.lk-section-list a[aria-current="page"]:not(.btn) {
    background: #ffe7a7;
    color: #32190d;
    font-weight: 700;
}

.lk-section-list li:first-child {
    margin-bottom: .35rem;
    padding-bottom: .35rem;
    border-bottom: 1px solid #eadac5;
}

.lk-profile-session {
    margin-top: 1rem;
    padding-top: .85rem;
    border-top: 1px solid var(--lk-border);
}

@media (min-width: 992px) {
    .lk-layout {
        display: grid;
        grid-template-columns: 13rem minmax(0, 1fr);
        gap: 1rem;
        align-items: start;
    }

    .lk-sidebar { margin-bottom: 0; }

    .lk-layout .lk-module.lk-narrow {
        max-width: none;
        margin-inline: 0;
    }

    .lk-layout .lk-narrow > form { max-width: 44rem; }
}

@media (min-width: 1200px) {
    .lk-layout { grid-template-columns: 14rem minmax(0, 1fr); gap: 1.25rem; }
}
