.basket-warranty-open {
    font: inherit;
    cursor: pointer;
}

.warranty-dialog {
    box-sizing: border-box;
    width: min(94vw, 560px);
    max-width: 560px;
    max-height: min(90vh, 760px);
    margin: auto;
    overflow-y: auto;
    padding: 1.5rem;
    border: 1px solid var(--catalog-border, #d9dfea);
    border-radius: 0.9rem;
    background: #fff;
    color: #172033;
    box-shadow: 0 24px 80px rgba(15, 23, 42, 0.3);
    font-family: 'Manrope', sans-serif;
}

.warranty-dialog::backdrop {
    background: rgba(15, 23, 42, 0.62);
    backdrop-filter: blur(3px);
}

.warranty-dialog-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.25rem;
}

.warranty-dialog-header h2 {
    margin: 0.2rem 0 0.35rem;
    font-size: 1.4rem;
    line-height: 1.25;
}

.warranty-dialog-header p:last-child {
    margin: 0;
    color: var(--catalog-muted, #6a7180);
    line-height: 1.5;
}

.warranty-dialog .checkout-kicker {
    margin: 0;
    color: #1f4b9b;
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
}

.warranty-dialog-close {
    display: grid;
    place-items: center;
    width: 2.5rem;
    height: 2.5rem;
    flex: 0 0 auto;
    border: 1px solid var(--catalog-border, #d9dfea);
    border-radius: 50%;
    background: #fff;
    color: #172033;
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
}

.warranty-dialog-form {
    display: grid;
    gap: 0.9rem;
}

.warranty-dialog-form label {
    display: grid;
    gap: 0.35rem;
    color: #172033;
    font-size: 0.9rem;
    font-weight: 700;
}

.warranty-dialog-form input,
.warranty-dialog-form textarea {
    box-sizing: border-box;
    width: 100%;
    min-height: 2.8rem;
    border: 1px solid #cbd5e1;
    border-radius: 0.55rem;
    padding: 0.65rem 0.75rem;
    background: #fff;
    color: #172033;
    font: inherit;
    font-weight: 400;
}

.warranty-dialog-form textarea {
    min-height: 5rem;
    resize: vertical;
}

.warranty-dialog-form input:focus,
.warranty-dialog-form textarea:focus {
    outline: 3px solid rgba(31, 75, 155, 0.18);
    border-color: #1f4b9b;
}

.warranty-dialog-actions {
    display: flex;
    justify-content: flex-end;
    gap: 0.75rem;
    margin-top: 0.25rem;
}

.warranty-dialog-actions > button {
    width: auto;
    min-width: 130px;
    min-height: 2.6rem;
    padding: 0 1rem;
}

.warranty-dialog-actions > button[type="submit"] {
    min-width: 205px;
    white-space: nowrap;
}

.warranty-dialog-actions [data-warranty-close] {
    border: 1px solid var(--catalog-border, #d9dfea);
    border-radius: 0.6rem;
    background: #fff;
    color: #172033;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
}

@media (max-width: 520px) {
    .warranty-dialog {
        width: calc(100vw - 24px);
        max-height: calc(100dvh - 24px);
        padding: 1.1rem;
    }

    .warranty-dialog-actions {
        flex-direction: column-reverse;
    }

    .warranty-dialog-actions > button {
        width: 100%;
    }
}
