/* Patch 11: mobile Warranty presentation inherits shared root palette/focus treatment. */
/* IndoSurgicals Warranty — conservative mobile public-page polish v1.0
   Presentation only. No warranty workflow, validation, security or upload logic. */

@media (max-width: 760px) {
    /* Registration page: keep iOS from zooming form controls and improve touch comfort. */
    .isp-warranty-page input:not([type="hidden"]):not([type="file"]),
    .isp-warranty-page select,
    .isp-warranty-page textarea {
        font-size: 16px !important;
    }

    .isp-warranty-page input:not([type="hidden"]):not([type="file"]),
    .isp-warranty-page select {
        min-height: 48px;
    }

    .isp-warranty-page textarea {
        line-height: 1.5;
    }

    .isp-warranty-field label,
    .isp-warranty-public-field label {
        line-height: 1.35;
    }

    .isp-warranty-form-actions button,
    .isp-warranty-hero-actions a,
    .isp-warranty-label-help,
    .isp-warranty-public-button {
        min-height: 46px;
    }

    .isp-warranty-form-actions button {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        font-size: 14px;
    }

    .isp-warranty-progress li strong {
        font-size: 11px;
        line-height: 1.25;
    }

    .isp-warranty-progress li span {
        min-width: 28px;
        min-height: 28px;
    }

    .isp-warranty-label-help strong {
        font-size: 14px;
        line-height: 1.35;
    }

    .isp-warranty-label-help small,
    .isp-warranty-field-help,
    .isp-warranty-file-name {
        font-size: 12px;
        line-height: 1.45;
    }

    .isp-warranty-file-control {
        min-height: 46px !important;
    }

    .isp-warranty-label-modal-close {
        width: 44px;
        height: 44px;
        top: 8px;
        right: 8px;
    }

    /* Status / claim / feedback / verification public cards. */
    .isp-warranty-public-page {
        margin: 20px auto 28px;
        padding: 0 14px;
    }

    .isp-warranty-public-head {
        padding: 22px 18px;
    }

    .isp-warranty-public-head h1 {
        margin-bottom: 7px !important;
        font-size: 26px !important;
        line-height: 1.18 !important;
    }

    .isp-warranty-public-head p {
        font-size: 15px;
        line-height: 1.5;
    }

    .isp-warranty-public-body {
        padding: 22px 18px;
    }

    .isp-warranty-public-grid {
        gap: 15px;
    }

    .isp-warranty-public-field {
        gap: 8px;
    }

    .isp-warranty-public-field input,
    .isp-warranty-public-field select,
    .isp-warranty-public-field textarea {
        min-height: 48px;
        padding: 12px 13px;
        font-size: 16px;
        line-height: 1.35;
    }

    .isp-warranty-public-field textarea {
        min-height: 132px;
        line-height: 1.5;
    }

    .isp-warranty-public-field small {
        font-size: 12px;
        line-height: 1.45;
    }

    .isp-warranty-public-actions {
        gap: 10px;
        margin-top: 20px;
    }

    .isp-warranty-public-button {
        display: inline-flex;
        min-height: 46px;
        padding: 11px 18px;
        align-items: center;
        justify-content: center;
        line-height: 1.25;
        text-align: center;
    }

    .isp-warranty-alert {
        padding: 13px 14px;
        font-size: 14px;
        line-height: 1.55;
    }

    .isp-warranty-summary {
        font-size: 14px;
    }

    .isp-warranty-summary th,
    .isp-warranty-summary td {
        padding: 11px 12px;
        line-height: 1.45;
        overflow-wrap: anywhere;
    }

    .isp-warranty-status-item {
        min-height: 44px;
        padding: 12px 13px;
        line-height: 1.4;
    }

    /* Clear keyboard focus without changing mouse/touch appearance. */
    .isp-warranty-page a:focus-visible,
    .isp-warranty-page button:focus-visible,
    .isp-warranty-page input:focus-visible,
    .isp-warranty-page select:focus-visible,
    .isp-warranty-page textarea:focus-visible,
    .isp-warranty-public-page a:focus-visible,
    .isp-warranty-public-page button:focus-visible,
    .isp-warranty-public-page input:focus-visible,
    .isp-warranty-public-page select:focus-visible,
    .isp-warranty-public-page textarea:focus-visible {
        outline: 3px solid rgba(0, 143, 135, .24);
        outline-offset: 2px;
    }
}

@media (max-width: 440px) {
    .isp-warranty-progress li strong {
        font-size: 10px;
    }

    .isp-warranty-public-head,
    .isp-warranty-public-body {
        padding-left: 16px;
        padding-right: 16px;
    }

    .isp-warranty-public-actions {
        display: grid;
        grid-template-columns: 1fr;
    }

    .isp-warranty-public-button {
        width: 100%;
        box-sizing: border-box;
    }
}

@media (max-width: 340px) {
    .isp-warranty-public-page {
        padding-left: 10px;
        padding-right: 10px;
    }

    .isp-warranty-progress {
        padding-left: 12px;
        padding-right: 12px;
    }

    .isp-warranty-progress li strong {
        font-size: 9.5px;
    }
}


/* Patch 21.1 — post-submission Warranty status summary correction.
   Fixes long values being clipped by the legacy auto-layout table on phones. */
@media (max-width: 760px) {
    .isp-warranty-public-page .isp-warranty-summary {
        width: 100% !important;
        max-width: 100% !important;
        table-layout: fixed;
        box-sizing: border-box;
    }

    .isp-warranty-public-page .isp-warranty-summary th,
    .isp-warranty-public-page .isp-warranty-summary td {
        box-sizing: border-box;
        min-width: 0;
        max-width: none;
        white-space: normal !important;
        overflow: visible !important;
        overflow-wrap: anywhere;
        word-break: break-word;
        hyphens: auto;
    }

    .isp-warranty-public-page .isp-warranty-summary th {
        width: 40% !important;
    }

    .isp-warranty-public-page .isp-warranty-summary td {
        width: 60% !important;
    }

    .isp-warranty-public-page .isp-warranty-summary td strong,
    .isp-warranty-public-page .isp-warranty-summary td a {
        white-space: normal !important;
        overflow-wrap: anywhere;
        word-break: break-word;
    }
}

@media (max-width: 440px) {
    .isp-warranty-public-page .isp-warranty-summary th {
        width: 42% !important;
        padding-left: 10px;
        padding-right: 9px;
        font-size: 13px;
    }

    .isp-warranty-public-page .isp-warranty-summary td {
        width: 58% !important;
        padding-left: 10px;
        padding-right: 10px;
        font-size: 13.5px;
    }
}

@media (max-width: 340px) {
    /* On the smallest supported phones, stack label/value pairs to guarantee
       that registration numbers, masked emails and long product names stay visible. */
    .isp-warranty-public-page .isp-warranty-summary,
    .isp-warranty-public-page .isp-warranty-summary tbody,
    .isp-warranty-public-page .isp-warranty-summary tr,
    .isp-warranty-public-page .isp-warranty-summary th,
    .isp-warranty-public-page .isp-warranty-summary td {
        display: block;
        width: 100% !important;
    }

    .isp-warranty-public-page .isp-warranty-summary tr {
        border-bottom: 1px solid var(--isp-root-line, #e8edef);
    }

    .isp-warranty-public-page .isp-warranty-summary tr:last-child {
        border-bottom: 0;
    }

    .isp-warranty-public-page .isp-warranty-summary th {
        border-bottom: 0;
        padding: 9px 11px 4px;
    }

    .isp-warranty-public-page .isp-warranty-summary td {
        border-bottom: 0;
        padding: 4px 11px 10px;
    }
}
