.lngc-section {
    padding: 24px 0 40px;
    background: var(--gray1, #f4f4f4);
}

.lngc-section *,
.lngc-section *::before,
.lngc-section *::after {
    box-sizing: border-box;
}

.lngc-section [hidden] {
    display: none !important;
}

.lngc-layout {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 700px));
    gap: 0 32px;
    justify-content: center;
    align-items: start;
}

.lngc-breadcrumbs {
    grid-column: 2;
    grid-row: 1;
    padding: 24px 24px 0;
    border-radius: 16px 16px 0 0;
    background: white;
}

.lngc-breadcrumbs .breadcrumbs {
    margin-bottom: 0;
}

.lngc-gallery {
    grid-column: 1;
    grid-row: 1 / 3;
    min-width: 0;
}

.lngc-artwork {
    position: relative;
    padding: 24px;
    border-radius: 16px;
    background: white;
}

.lngc-artwork picture,
.lngc-artwork picture img {
    display: block;
    width: 100%;
}

.lngc-artwork picture img {
    height: auto;
    aspect-ratio: 802 / 564;
    object-fit: cover;
    border-radius: 16px;
}

.lngc-thumbnails,
.lngc-gallery-prev,
.lngc-gallery-next {
    display: none;
}

.lngc-panel {
    grid-column: 2;
    grid-row: 2;
    min-width: 0;
    padding-top: 24px;
    border-radius: 0 0 16px 16px;
    background: white;
}

.lngc-intro {
    padding: 0 24px;
}

.lngc-intro h1 {
    margin: 0 0 16px;
    font-size: 32px;
    font-weight: 600;
}

.lngc-intro > p {
    margin: 0;
    color: var(--gray5, #737373);
    font-size: 16px;
    line-height: 1.4;
}

.lngc-rating,
.lngc-stars {
    display: flex;
    align-items: center;
}

.lngc-rating {
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 20px;
    font-size: 16px;
    font-weight: 400;
}

.lngc-rating strong {
    margin-left: -4px;
    font-weight: 600;
}

.lngc-stars {
    gap: 4px;
}

.lngc-stars .is-inactive {
    filter: grayscale(1);
    opacity: 0.4;
}

.lngc-form {
    display: flex;
    flex-direction: column;
    gap: 24px;
    margin-top: 24px;
}

.lngc-field {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 0 24px;
}

.lngc-field label {
    font-size: 14px;
    font-weight: 700;
}

.lngc-field label > span {
    color: #d50a0a;
}

.lngc-field input,
.lngc-field textarea {
    width: 100%;
    min-height: 45px;
    padding: 10px 16px;
    border: 1px solid var(--gray4, #dadada);
    border-radius: 8px;
    background: white;
    color: var(--black1, #252525);
    font: inherit;
    font-size: 16px;
    line-height: 1.5;
}

.lngc-field textarea {
    min-height: 100px;
    resize: vertical;
}

.lngc-field :is(input, textarea):focus {
    outline: none;
    border-color: var(--green1, #147444);
}

.lngc-field [aria-invalid="true"] {
    border-color: #b32d2e;
}

.lngc-hint {
    margin: 0;
    font-size: 13px;
    line-height: 1.4;
}

.lngc-counter {
    text-align: right;
    color: var(--gray5, #737373);
}

.lngc-purchase {
    display: flex;
    align-items: center;
    gap: 24px;
    padding: 16px 24px;
    border-top: 1px solid var(--green1, #147444);
}

.lngc-total {
    display: flex;
    align-items: center;
    gap: 10px;
    white-space: nowrap;
}

.lngc-total > span {
    color: var(--gray5, #737373);
    font-size: 14px;
    font-weight: 600;
}

.lngc-total strong {
    font-size: 24px;
    font-weight: 700;
}

.lngc-submit {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    min-height: 50px;
    padding: 12px 24px;
    border: 0;
    border-radius: 100px;
    background: var(--green1, #147444);
    color: white;
    font: inherit;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: background-color 0.2s;
}

.lngc-submit:hover:not(:disabled) {
    background: #105c36;
}

.lngc-submit:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.lngc-form[aria-busy="true"] .lngc-submit {
    cursor: wait;
}

.lngc-feedback {
    margin: -8px 24px 24px;
    padding: 12px 16px;
    border: 1px solid #bddac9;
    border-radius: 8px;
    background: #f1f8f4;
    color: #235b3c;
    font-size: 14px;
    line-height: 1.5;
}

.lngc-feedback a {
    color: inherit;
    text-decoration: underline;
}

.lngc-feedback.is-error {
    border-color: #edc5c5;
    background: #fff5f5;
    color: #962b2b;
}

html:has(.lngc-confirmation:modal) {
    overflow: hidden;
    scrollbar-gutter: stable;
}

body:has(.lngc-confirmation:modal) {
    overflow: clip;
}

.lngc-confirmation {
    position: fixed;
    inset: 0;
    display: flex;
    flex-direction: column;
    gap: 20px;
    width: 640px;
    max-width: calc(100% - 32px);
    max-height: calc(100dvh - 32px);
    margin: auto;
    padding: 24px;
    border: 0;
    border-radius: 16px;
    background: white;
    color: var(--black1, #252525);
    box-shadow: 0 12px 40px rgb(0 0 0 / 12%);
}

.lngc-confirmation:not([open]) {
    display: none;
}

.lngc-confirmation::backdrop {
    background: rgb(37 37 37 / 60%);
}

.lngc-confirmation-heading {
    display: flex;
    flex-shrink: 0;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.lngc-confirmation-heading h2 {
    margin: 0;
    font-size: 20px;
    font-weight: 700;
}

.lngc-close {
    position: relative;
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    padding: 0;
    border: 0;
    background: transparent;
    color: inherit;
    cursor: pointer;
}

.lngc-close::before,
.lngc-close::after {
    content: '';
    position: absolute;
    top: 11px;
    left: 3px;
    width: 18px;
    height: 2px;
    background: currentColor;
    transform: rotate(45deg);
}

.lngc-close::after {
    transform: rotate(-45deg);
}

.lngc-close:focus-visible,
.lngc-confirmation-actions :is(a, button):focus-visible {
    outline: 2px solid var(--green1, #147444);
    outline-offset: 3px;
}

.lngc-confirmation-body {
    display: flex;
    flex-direction: column;
    gap: 16px;
    min-height: 0;
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-width: thin;
    scrollbar-gutter: stable both-edges;
}

.lngc-confirmation-body > * {
    flex-shrink: 0;
}

.lngc-confirmation-image {
    display: block;
    width: 240px;
    max-width: 100%;
    height: auto;
    margin: 0 auto;
    border-radius: 8px;
    object-fit: contain;
}

.lngc-confirmation-body h3 {
    margin: 0;
    text-align: center;
    font-size: 24px;
    font-weight: 700;
}

.lngc-confirmation-details {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin: 0;
    font-size: 14px;
    line-height: 1.5;
    overflow-wrap: anywhere;
}

.lngc-confirmation-details dt {
    margin-bottom: 2px;
    color: var(--gray5, #737373);
    font-size: 12px;
}

.lngc-confirmation-details dd {
    margin: 0;
    white-space: pre-wrap;
}

.lngc-confirmation-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    margin: 0;
    padding-top: 16px;
    border-top: 1px solid var(--gray4, #dadada);
}

.lngc-confirmation-total strong {
    font-size: 20px;
    font-weight: 700;
    white-space: nowrap;
}

.lngc-confirmation-actions {
    display: grid;
    flex-shrink: 0;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.lngc-confirmation-actions a,
.lngc-confirmation-actions button {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 50px;
    padding: 12px 20px;
    border: 1px solid var(--green1, #147444);
    border-radius: 100px;
    background: var(--green1, #147444);
    color: white;
    font: inherit;
    font-size: 16px;
    font-weight: 700;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    transition: background-color 0.2s, color 0.2s;
}

.lngc-confirmation-actions a:hover {
    background: #105c36;
}

.lngc-confirmation-actions button {
    background: white;
    color: var(--green1, #147444);
}

.lngc-confirmation-actions button:hover {
    background: var(--green1, #147444);
    color: white;
}

@media (min-width: 769px) and (max-width: 1100px) {
    .lngc-layout {
        grid-template-columns: minmax(0, 2fr) minmax(0, 3fr);
        column-gap: 24px;
    }

    .lngc-purchase {
        flex-wrap: wrap;
        gap: 12px;
    }
}

@media (max-width: 768px) {
    .lngc-confirmation {
        padding: 16px;
    }

    .lngc-confirmation-image {
        width: 200px;
    }

    .lngc-confirmation-actions {
        grid-template-columns: 1fr;
    }

    .lngc-confirmation-actions a,
    .lngc-confirmation-actions button {
        min-height: 45px;
    }

    .lngc-section {
        padding-bottom: 32px;
    }

    .lngc-layout {
        display: flex;
        flex-direction: column;
        gap: 16px;
    }

    .lngc-breadcrumbs {
        order: -1;
        padding: 0 0 8px;
        background: none;
    }

    .lngc-gallery,
    .lngc-panel {
        width: 100%;
    }

    .lngc-panel {
        padding-top: 16px;
        border-radius: 16px;
    }

    .lngc-artwork {
        padding: 8px;
        border: 1px solid var(--gray4, #dadada);
    }

    .lngc-thumbnails {
        display: flex;
        gap: 8px;
        margin-top: 8px;
    }

    .lngc-thumbnails button {
        padding: 0;
        overflow: hidden;
        border: 1px solid var(--gray4, #dadada);
        border-radius: 4px;
        background: white;
        cursor: pointer;
    }

    .lngc-thumbnails [aria-pressed="true"] {
        border-color: var(--green1, #147444);
    }

    .lngc-thumbnails img {
        display: block;
        object-fit: cover;
    }

    .lngc-gallery-prev,
    .lngc-gallery-next {
        position: absolute;
        top: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        width: 40px;
        height: 40px;
        padding: 0;
        border: 1px solid var(--gray3, #e6e6e6);
        border-radius: 50%;
        background: white;
        transform: translateY(-50%);
        cursor: pointer;
    }

    .lngc-gallery-prev {
        left: 8px;
    }

    .lngc-gallery-prev img {
        transform: rotate(180deg);
    }

    .lngc-gallery-next {
        right: 8px;
    }

    .lngc-intro,
    .lngc-field {
        padding: 0 16px;
    }

    .lngc-intro h1 {
        margin-bottom: 8px;
        font-size: 24px;
    }

    .lngc-intro > p,
    .lngc-rating {
        font-size: 14px;
    }

    .lngc-rating {
        margin-top: 16px;
    }

    .lngc-form {
        gap: 16px;
        margin-top: 16px;
    }

    .lngc-field {
        gap: 4px;
    }

    .lngc-field label {
        font-size: 13px;
    }

    .lngc-hint {
        font-size: 12px;
    }

    .lngc-purchase {
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
        padding: 8px 16px 16px;
    }

    .lngc-total {
        justify-content: space-between;
    }

    .lngc-total strong {
        font-size: 20px;
    }

    .lngc-submit {
        min-height: 45px;
    }

    .lngc-feedback {
        margin: -4px 16px 16px;
    }
}
