@media (width < 1000px) {
    #rent-app.rent-layout--responsive {
        --rent-review-height: 68px;
        --rent-responsive-gutter: clamp(8px, 2vw, 16px);
    }

    #rent-app .rent-responsive-controls {
        display: block;
    }

    #rent-app .rent-responsive-feature-buttons {
        display: flex;
        justify-content: flex-end;
        gap: 6px;
        margin: 0 calc(var(--rent-responsive-gutter) + 10px) 7px;
    }

    #rent-app .rent-responsive-feature-buttons .rent-responsive-feature-button {
        gap: 6px;
        min-height: 34px;
        padding-block: 4px;
        padding-inline: 6px 10px;
        border: 1px solid var(--color-primary);
        border-radius: 9px;
        background: linear-gradient(115deg, color-mix(in srgb, var(--color-primary) 30%, var(--color-primary-hover)), var(--color-primary-hover));
        color: var(--color-contrast);
    }

    #rent-app .rent-responsive-feature-buttons .rent-responsive-feature-button:hover {
        border-color: var(--color-primary-font);
        background: var(--color-primary-hover);
    }

    #rent-app .rent-responsive-feature-buttons .rent-responsive-feature-button[aria-pressed="true"] {
        background: var(--color-primary-hover);
        box-shadow: inset 0 0 0 1px var(--color-contrast);
    }

    #rent-app .rent-responsive-feature-icon {
        display: grid;
        flex: none;
        place-items: center;
        box-sizing: border-box;
        width: 22px;
        height: 22px;
        border: 1px solid color-mix(in srgb, var(--color-contrast) 34%, transparent);
        border-radius: 50%;
        background: color-mix(in srgb, var(--color-contrast) 16%, transparent);
        font-size: 11px;
    }

    #rent-app .rent-responsive-header {
        position: relative;
        z-index: 8;
        display: block;
        margin: 0 var(--rent-responsive-gutter);
        padding-block: 12px 5px;
        border-start-start-radius: var(--rent-unified-radius);
        border-start-end-radius: var(--rent-unified-radius);
        background: var(--color-window);
    }

    #rent-app .rent-responsive-nav {
        position: relative;
        display: flex;
        align-items: center;
        gap: 5px;
        min-width: 0;
        margin-inline: 10px;
    }

    #rent-app :is(.rent-responsive-primary, .rent-responsive-extra) {
        display: flex;
        flex: none;
        align-items: center;
        gap: 5px;
        min-width: 0;
    }

    #rent-app .rent-responsive-extra {
        margin-inline-start: 4px;
    }

    #rent-app .rent-responsive-nav-item {
        display: inline-flex;
        flex: none;
        align-items: center;
        justify-content: center;
        gap: 5px;
        min-height: 36px;
        padding: 5px clamp(8px, 1.25vw, 13px);
        border: 0;
        border-radius: 6px;
        background: var(--color-element);
        color: var(--color-font);
        font: inherit;
        font-size: 13px;
        font-weight: 600;
        line-height: 1.2;
        text-align: center;
        white-space: nowrap;
        cursor: pointer;
    }

    #rent-app .rent-responsive-nav-item:hover {
        background: var(--color-element-hover);
    }

    #rent-app .rent-responsive-nav-item:is([aria-pressed="true"], [aria-current="true"]) {
        background: var(--color-primary);
        color: var(--color-contrast);
    }

    #rent-app .rent-responsive-nav-item:focus-visible {
        outline: 2px solid var(--color-primary-font);
        outline-offset: 2px;
    }

    #rent-app .rent-responsive-menu-toggle {
        display: none;
        min-width: 40px;
    }

    #rent-app .rent-responsive-nav[data-compact]:not(.is-measuring) .rent-responsive-primary {
        flex: 1 1 auto;
    }

    #rent-app .rent-responsive-nav[data-compact]:not(.is-measuring) .rent-responsive-primary button {
        flex: 1 1 auto;
        min-width: 0;
        white-space: normal;
        overflow-wrap: anywhere;
    }

    #rent-app .rent-responsive-nav[data-compact]:not(.is-measuring) .rent-responsive-menu-toggle {
        display: inline-flex;
    }

    #rent-app .rent-responsive-nav[data-compact]:not(.is-measuring) .rent-responsive-extra {
        position: absolute;
        inset-block-start: calc(100% + 5px);
        inset-inline-end: 0;
        display: none;
        align-items: stretch;
        min-width: min(164px, 100%);
        max-width: 100%;
        margin: 0;
        padding: 5px;
        border: 1px solid var(--rent-unified-line);
        border-radius: var(--rent-unified-radius);
        background: var(--color-window);
        box-shadow: var(--shadow-window);
    }

    #rent-app .rent-responsive-nav[data-compact]:not(.is-measuring) .rent-responsive-extra.is-open {
        display: grid;
    }

    #rent-app .rent-responsive-nav[data-compact]:not(.is-measuring) .rent-responsive-extra button {
        justify-content: flex-start;
        text-align: start;
        white-space: normal;
    }

    #rent-app .rent-unified-workspace {
        display: block;
        margin-inline: var(--rent-responsive-gutter);
        padding-block-start: 5px;
        background: var(--color-window);
    }

    #rent-app .rent-unified-workspace > .tab--single,
    #rent-app .rent-unified-workspace > :is(#tab-2, .rent-orders-bootstrap) {
        padding-inline: 0;
    }

    #rent-app .rent-unified-workspace:has(> .rent-orders-bootstrap[data-rent-boot-orders]) > #tab-1 {
        display: none;
    }

    #rent-app .rent-unified-workspace > .rent-orders-bootstrap[data-rent-boot-orders] {
        display: block;
    }

    #rent-app .rent-guest-workspace:not(.rent-unified--numbers) > #tab-2 {
        display: block;
    }

    #rent-app .rent-guest-panel {
        gap: 14px;
    }

    #rent-app .rent-guest-workspace .rent-responsive-catalogue-tabs {
        padding-inline-end: 0;
    }

    #rent-app .rent-unified-workspace :is(.rent-unified-mobile-orders, .rent-unified-orders-header) {
        display: none;
    }

    #rent-app .rent-unified-orders {
        border-start-start-radius: var(--rent-unified-radius);
    }

    #rent-app .rent-unified-workspace #tab-1 .rent-workspace {
        --rent-mode-switch-size: 28px;
        padding: 0 10px 10px;
        border-radius: var(--rent-unified-radius);
        background: var(--color-window);
    }

    #rent-app .rent-unified-workspace #tab-1 :is(.rent-unified-settings-header, h2.rent-unified-heading, .rent-quick-options),
    #rent-app .rent-picker:not(.rent-picker--services) .rent-picker-star,
    #rent-app .rent-unified-catalogue .service_list__country_item .services-list__star,
    #rent-app .rent-unified-workspace .rent-unified-favorites {
        display: none;
    }

    #rent-app .rent-unified-workspace #tab-1 :is(.rent-unified-settings, .rent-unified-catalogue) {
        padding: 10px 0;
        border: 0;
        border-radius: 0;
        background: transparent;
        box-shadow: none;
    }

    #rent-app .rent-unified-workspace #tab-1 .rent-unified-catalogue {
        padding-block: 5px 0;
        border-block-start: 1px solid var(--rent-unified-line);
    }

    #rent-app .rent-unified-workspace #tab-1 .rent-filters {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px 8px;
    }

    #rent-app .rent-unified-workspace #tab-1 .rent-filter-label {
        margin-block-end: 5px;
        font-size: 12px;
    }

    #rent-app .rent-unified-workspace #tab-1 .rent-filters .change-country {
        grid-column: auto;
    }

    #rent-app .rent-unified-workspace #tab-1 .rent-filters .rent-provider-field {
        grid-column: 1 / -1;
    }

    #rent-app .rent-unified-settings .rent-provider-new {
        margin-inline-start: 3px;
        padding: 1px 3px;
        font-size: 9px;
    }

    #rent-app .rent-unified-workspace .rent-period-controls {
        grid-template-columns: clamp(42px, 7vw, 64px) minmax(0, 1fr);
    }

    #rent-app .rent-unified-workspace .change-service {
        margin: 0;
    }

    #rent-app .rent-unified-workspace .rent-workspace > .change_mod__box {
        justify-content: end;
        align-content: start;
        height: 0;
        margin: 0;
        padding: 0;
        inset-block-start: 8px;
    }

    #rent-app .rent-unified-workspace .rent-catalogue-toolbar {
        grid-template-areas: "tabs tabs" "search sort";
        gap: 7px 8px;
    }

    #rent-app .rent-responsive-catalogue-tabs {
        min-height: 36px;
        padding-inline-end: calc(var(--rent-mode-switch-size) + 6px);
    }

    #rent-app .rent-responsive-catalogue-tabs button {
        padding-inline: 8px;
        font-size: 13px;
    }

    #rent-app .rent-unified-workspace .rent-unified-catalogue-scroll {
        max-block-size: none;
        padding-inline-end: 0;
        overflow: visible;
        scrollbar-gutter: auto;
    }

    #rent-app .rent-unified-catalogue .services-list > .service > label {
        min-height: 60px;
    }

    #rent-app .rent-unified-workspace:has(.rent-unified-mobile-review):not(.rent-unified--numbers) {
        padding-block-end: calc(var(--rent-review-height) + 12px + env(safe-area-inset-bottom, 0px));
    }

    #rent-app .rent-unified-workspace .rent-unified-mobile-review:not([v-cloak]) {
        position: fixed;
        inset: auto 0 0;
        z-index: 9;
        box-sizing: border-box;
        display: grid;
        grid-template-columns: minmax(0, 1fr) minmax(0, 40%);
        align-items: center;
        gap: 10px;
        min-height: calc(var(--rent-review-height) + env(safe-area-inset-bottom, 0px));
        padding: 7px max(var(--rent-responsive-gutter), env(safe-area-inset-right, 0px))
            calc(7px + env(safe-area-inset-bottom, 0px)) max(var(--rent-responsive-gutter), env(safe-area-inset-left, 0px));
        border-block-start: 1px solid var(--rent-unified-order-line);
        box-shadow: var(--shadow-window);
    }

    #rent-app .rent-responsive-review-total {
        display: grid;
        gap: 3px;
        min-width: 0;
        color: var(--rent-unified-muted);
        font-size: 12px;
        line-height: 1.15;
    }

    #rent-app :is(.rent-responsive-review-services, .rent-responsive-review-amount, .rent-responsive-review-selection) {
        display: flex;
        align-items: center;
        gap: 4px;
        min-width: 0;
    }

    #rent-app .rent-responsive-review-icons {
        display: flex;
        flex: none;
        gap: 2px;
    }

    #rent-app .rent-responsive-review-icons img {
        box-sizing: border-box;
        width: 15px;
        height: 15px;
        padding: 1px;
        border-radius: 50%;
        background: var(--color-element);
        object-fit: contain;
    }

    #rent-app .rent-responsive-review-selection {
        position: relative;
        flex: 1 1 0;
        overflow: hidden;
        white-space: nowrap;
    }

    #rent-app .rent-responsive-review-names {
        min-width: 0;
        overflow: hidden;
        color: var(--color-font);
        text-overflow: ellipsis;
    }

    #rent-app .rent-responsive-review-more {
        flex: none;
    }

    #rent-app .rent-responsive-review-measure {
        position: absolute;
        visibility: hidden;
        width: max-content;
        pointer-events: none;
    }

    #rent-app .rent-responsive-review-amount {
        align-items: baseline;
        flex-wrap: wrap;
        row-gap: 0;
    }

    #rent-app .rent-responsive-review-total strong {
        color: var(--color-primary-font);
        font-size: 23px;
        font-weight: 600;
        font-variant-numeric: tabular-nums;
        overflow-wrap: anywhere;
    }

    #rent-app .rent-unified-mobile-review .btn {
        display: inline-flex;
        box-sizing: border-box;
        align-items: center;
        justify-content: center;
        width: 100%;
        min-height: 44px;
        min-width: 0;
        margin: 0;
        padding: 6px 8px;
        font-size: 13px;
        line-height: 1.15;
        white-space: normal;
        text-align: center;
        overflow-wrap: anywhere;
    }

    /* Keep the Help launcher above the checkout bar and let inputs use the keyboard space. */
    body:has(#rent-app.rent-layout--responsive .rent-unified-mobile-review:not([v-cloak]))
        #cw-bubble-holder .woot-widget-bubble:not(.woot--hide, .woot--close) {
        bottom: calc(82px + env(safe-area-inset-bottom, 0px));
    }

    body:has(#rent-app :is(input[type="text"], input[type="search"], textarea):focus, .rent-settings-dropdown input:focus)
        #rent-app .rent-unified-workspace .rent-unified-mobile-review:not([v-cloak]) {
        visibility: hidden;
    }
}

@media (width < 700px) {
    #rent-app :is(.rent-catalogue-search, .rent_search_number, .rent_search_number_history, .rent-picker-search) input,
    body:has(#rent-app.rent-layout--responsive) .rent-settings-dropdown input {
        font-size: 16px;
    }
}

@media (600px <= width < 1000px) {
    #rent-app .rent-unified-workspace #tab-1 .rent-filters {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1.12fr);
    }

    #rent-app .rent-unified-workspace #tab-1 .rent-filters .rent-provider-field {
        grid-column: auto;
    }
}

@media (700px <= width < 1000px) {
    #rent-app .rent-unified-workspace .change-service .services-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (width < 1000px) {
    #rent-app .rent-unified-orders-tools .rent_search_number {
        order: -1;
        flex: 1 1 100%;
    }

    #rent-app .rent-unified-orders-tools .rent_search_number :is(input, button) {
        height: 40px;
    }

    #rent-app .rent-unified-controls {
        position: static;
        justify-content: space-between;
        margin-block-end: 8px;
    }

    #rent-app .rent-unified-rented-table .rent-unified-mobile-sort {
        display: inline-flex;
        gap: 5px;
        min-height: 32px;
        padding: 4px 8px;
        font-size: 11px;
        white-space: nowrap;
    }

    #rent-app .rent-unified-rented-table .rent-unified-mobile-sort > :is(i, span) {
        color: var(--color-primary-font);
    }

    #rent-app .rent-unified-rented-table .rent-unified-sound-toggle {
        width: 34px;
        height: 32px;
        background: var(--color-element);
    }

    #rent-app :is(.rent-unified-table, .rent-unified-table > :is(tbody, tfoot)) {
        display: block;
        min-width: 0;
    }

    #rent-app .rent-unified-table > :is(colgroup, thead) {
        position: absolute;
        width: 1px;
        height: 1px;
        clip-path: inset(50%);
        overflow: hidden;
    }

    #rent-app .rent-unified-table > :is(tbody, tfoot) > tr,
    #rent-app .rent-unified-table > :is(tbody, tfoot) > tr > :is(td, th) {
        display: block;
        min-width: 0;
    }

    #rent-app .rent-unified-table > tbody > tr > :is(td, th) {
        padding-inline: 9px;
    }

    #rent-app .rent-unified-table > tbody > :is(.rent-unified-draft-row, .rent-unified-active-row) {
        display: grid;
        align-items: center;
        gap: 7px 9px;
        padding: 9px;
        border-block-end: 1px solid var(--rent-unified-line);
    }

    #rent-app .rent-unified-table > tbody > :is(.rent-unified-draft-row, .rent-unified-active-row) > td {
        padding: 0;
        border: 0;
    }

    #rent-app .rent-unified-table > tbody > :is(.rent-unified-draft-row, .rent-unified-active-row) > td[data-label]:not(.auto_renew_column)::before {
        content: none;
    }

    #rent-app .rent-unified-table > .rent-unified-draft > .rent-unified-draft-row {
        grid-template-columns: minmax(0, 1fr) max-content 30px;
        grid-template-areas:
            "service total remove"
            "details details details"
            "expiry  daily   .";
        gap: 2px 7px;
        box-sizing: border-box;
        min-block-size: 64px;
        padding: 6px 10px;
        border-inline: 1px solid var(--rent-unified-order-line);
        background: var(--rent-unified-order-bg);
    }

    #rent-app .rent-unified-table > .rent-unified-draft > .rent-unified-draft-row > td {
        border-inline: 0;
    }

    #rent-app .rent-unified-table > .rent-unified-draft > .rent-unified-draft-row > :is(.rent-unified-service-cell, [data-label="Price"]) {
        display: contents;
    }

    #rent-app .rent-unified-table .rent-unified-draft-row:has(+ .rent-unified-draft-warning) {
        border-block-end: 0;
    }

    #rent-app .rent-unified-draft-row .rent-unified-service {
        grid-area: service;
        align-self: start;
        min-block-size: 26px;
        font-size: 13px;
        line-height: 1.25;
    }

    #rent-app .rent-unified-draft-row .rent-unified-service strong {
        font-weight: 500;
        overflow-wrap: anywhere;
    }

    #rent-app .rent-unified-draft-row .rent-unified-service .rent-order-icon {
        width: 23px;
        min-width: 23px;
        height: 23px;
    }

    #rent-app .rent-unified-draft-row .rent-unified-service-cell > .rent-order-note {
        grid-column: 1 / -1;
        grid-row: 4;
        margin: 0;
    }

    #rent-app .rent-unified-draft-row td[data-label="Country / Provider"] { grid-area: details; }
    #rent-app .rent-unified-draft-row td[data-label="Period / Expiration"] { grid-area: expiry; }

    #rent-app .rent-responsive-draft-meta {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        gap: 2px 5px;
        font-size: 11.5px;
        line-height: 1.2;
    }

    #rent-app .rent-responsive-draft-meta .rent-unified-country img {
        width: 18px;
        height: 13px;
    }

    #rent-app .rent-responsive-draft-meta > span + span::before {
        margin-inline-end: 5px;
        content: "·";
    }

    #rent-app .rent-responsive-draft-meta .rent-unified-secondary {
        margin-block-start: 0;
    }

    #rent-app .rent-unified-draft-row td[data-label="Price"] > strong {
        grid-area: total;
        align-self: start;
        text-align: end;
        font-size: 15px;
        font-weight: 600;
        font-variant-numeric: tabular-nums;
        line-height: 26px;
        white-space: nowrap;
    }

    #rent-app .rent-unified-draft-row td[data-label="Price"] > .rent-unified-secondary {
        grid-area: daily;
        text-align: end;
        white-space: nowrap;
    }

    #rent-app .rent-unified-draft-row :is(time, td[data-label="Price"] > .rent-unified-secondary) {
        margin-block-start: 0;
        font-size: 11px;
        line-height: 1.2;
    }

    #rent-app .rent-unified-draft-row .rent-unified-draft-action {
        grid-area: remove;
        align-self: start;
    }

    #rent-app .rent-unified-draft-action .rent-order-remove {
        width: 30px;
        height: 26px;
        margin: 0;
    }

    #rent-app .rent-unified-table :is(.rent-unified-draft-row > .rent-unified-number, .rent-unified-rented-row > td[data-label="Price"], .rent-unified-pending-row > td[data-label="Actions"]) {
        display: none;
    }

    #rent-app .rent-unified-table .rent-unified-total-row td {
        padding: 0;
    }

    #rent-app .rent-unified-draft-frame .rent-unified-total {
        grid-template-columns: minmax(0, 1fr) auto;
        gap: 6px 8px;
        padding: 8px 10px;
    }

    #rent-app .rent-unified-draft-frame .rent-unified-total-info small {
        gap: 1px 5px;
        font-size: 11px;
        line-height: 1.3;
    }

    #rent-app .rent-unified-draft-frame .rent-unified-total-info small > span + span::before {
        margin-inline-end: 5px;
        content: "·";
    }

    #rent-app .rent-unified-draft-frame .rent-unified-total-cost strong {
        font-size: 22px;
    }

    #rent-app .rent-unified-total-actions {
        grid-column: 1 / -1;
        display: grid;
        grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr);
    }

    #rent-app .rent-unified-draft-frame .rent-unified-total-actions .btn {
        min-inline-size: 0;
        min-height: 36px;
        padding-inline: 6px;
    }

    #rent-app .rent-unified-table > tbody > .rent-unified-active-row {
        grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
        background: var(--color-element);
    }

    #rent-app .rent-unified-table > .rent-unified-active > .rent-unified-active-row > td {
        background: transparent;
    }

    #rent-app .rent-unified-table :is(.rent-unified-active-row > td[data-label="Country / Provider"], .rent-unified-active-row > td[data-label="Expiration"], .rent-unified-active-row > td[data-label="Period / Expiration"]) {
        text-align: end;
    }

    #rent-app .rent-unified-active-row .rent-unified-location {
        margin-inline-start: auto;
    }

    #rent-app .rent-unified-table .rent-unified-location {
        min-width: 0;
    }

    #rent-app .rent-unified-table .rent-unified-location .rent-unified-provider {
        position: static;
        display: block;
        translate: none;
        max-width: 100%;
        margin-block-end: 2px;
        text-align: end;
    }

    #rent-app .rent-unified-table .rent-unified-country-name {
        max-width: none;
    }

    #rent-app .rent-unified-active-row > .actions {
        grid-area: auto / 1 / auto / -1;
    }

    #rent-app .rent-unified-table > tbody > .rent-unified-active-row > .auto_renew_column {
        grid-area: auto / 1 / auto / -1;
        display: flex;
        align-items: center;
        justify-content: flex-end;
        gap: 6px;
    }

    #rent-app .rent-unified-active-row > .auto_renew_column > div {
        display: flex;
        min-width: 0;
        min-height: 0;
    }

    #rent-app .rent-unified-table .rent-unified-active-row > .auto_renew_column::before {
        content: attr(data-label);
        color: var(--rent-unified-muted);
        font-size: 11px;
    }

    #rent-app .rent-unified-active-row .rent-unified-phone {
        flex-wrap: wrap;
        row-gap: 0;
    }

    #rent-app .rent-unified-rented-table .rent-unified-active > .rent-unified-rented-row {
        box-sizing: border-box;
        grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
        grid-template-areas: "service country" "phone expiry" "actions actions";
        align-items: start;
        gap: 4px 8px;
        margin-block-end: 5px;
        padding: 8px;
        border: 0;
        border-radius: 5px;
    }

    #rent-app .rent-unified-rented-table .rent-unified-active > .rent-unified-rented-row > td {
        padding: 0;
        border: 0;
    }

    #rent-app .rent-unified-rented-row > .rent-unified-service-cell { grid-area: service; }
    #rent-app .rent-unified-rented-row > [data-label="Country / Provider"] { grid-area: country; }
    #rent-app .rent-unified-rented-row > .rent-unified-number { grid-area: phone; }
    #rent-app .rent-unified-rented-row > [data-label="Expiration"] { grid-area: expiry; }
    #rent-app .rent-unified-rented-row > .actions { grid-area: actions; }

    #rent-app .rent-unified-rented-table .rent-unified-rented-row .rent-order-icon {
        width: 25px;
        min-width: 25px;
        height: 25px;
    }

    #rent-app .rent-unified-rented-row .rent-unified-rented-service {
        gap: 0;
        line-height: 1.2;
    }

    #rent-app .rent-unified-rented-row :is(.rent-unified-rented-service, .rent-unified-phone) strong {
        font-size: 13px;
        font-weight: 500;
    }

    #rent-app .rent-unified-rented-table .rent-unified-rented-row .rent-unified-copy {
        width: 22px;
        height: 22px;
        min-width: 22px;
        min-height: 22px;
        margin: 0;
    }

    #rent-app .rent-unified-rented-row .rent-unified-phone {
        gap: 0 5px;
    }

    #rent-app .rent-unified-rented-row .rent-unified-number-meta {
        gap: 2px 5px;
    }

    #rent-app .rent-unified-rented-table .rent-unified-rented-row .rent-unified-quiet-action {
        min-height: 18px;
        padding: 1px 3px;
        font-size: 11px;
    }

    #rent-app .rent-unified-rented-table .rent-unified-rented-row .rent-unified-number-meta button {
        background: transparent;
    }

    #rent-app .rent-unified-rented-table .rent-unified-rented-row .rent-unified-number-meta button:hover {
        background: color-mix(in srgb, var(--color-primary) 12%, transparent);
    }

    #rent-app .rent-unified-rented-row .rent-unified-country {
        justify-content: flex-end;
        gap: 4px;
    }

    #rent-app .rent-unified-rented-row .rent-unified-country img {
        width: 18px;
        height: 13px;
    }

    #rent-app .rent-unified-rented-table .rent-unified-rented-row :is(.rent-unified-country-name, .rent-unified-provider) {
        white-space: normal;
        overflow-wrap: anywhere;
    }

    #rent-app .rent-unified-rented-row > [data-label="Expiration"] {
        line-height: 1.25;
        font-variant-numeric: tabular-nums;
    }

    #rent-app .rent-unified-rented-table .rent-unified-number-actions {
        grid-template-columns: minmax(0, 1.4fr) minmax(0, 1.05fr) minmax(0, .95fr);
        gap: 5px;
    }

    #rent-app .rent-unified-rented-table .rent-unified-number-actions .btn {
        min-height: 30px;
        min-width: 0;
        gap: 3px;
        padding: 3px 4px;
        font-size: 11px;
    }

    #rent-app .rent-unified-rented-table .rent-unified-number-actions .rent-unified-sms-toggle { grid-area: 1 / 1; }
    #rent-app .rent-unified-rented-table .rent-unified-number-actions .rent-unified-prolong { grid-area: 1 / 2; }
    #rent-app .rent-unified-rented-table .rent-unified-number-actions .rent-unified-remove-number { grid-area: 1 / 3; }
    #rent-app .rent-unified-rented-table .rent-unified-number-actions .rent-unified-activate { grid-area: 2 / 1 / auto / -1; }

    #rent-app .rent-unified-rented-table .rent-unified-number-actions .rent-unified-prolong[aria-expanded="true"] {
        border-color: var(--color-primary);
        background: color-mix(in srgb, var(--color-primary) 22%, transparent);
    }

    #rent-app .rent-unified-rented-table .rent-unified-number-actions > .polong_info_icon {
        grid-area: 1 / 2 / 2 / 3;
    }

    #rent-app .rent-unified-rented-table .rent-unified-active > .rent-unified-rented-row:has(+ :is(.rent-unified-note-row, .sub-row, .rent_number_info)) {
        margin-block-end: 0;
        border-end-start-radius: 0;
        border-end-end-radius: 0;
    }

    #rent-app .rent-unified-rented-table .rent-unified-active > :is(.rent-unified-note-row, .sub-row, .rent_number_info) > td {
        padding: 0 8px 8px;
        border: 0;
        background: var(--color-element);
    }

    #rent-app .rent-unified-rented-table .rent-unified-active > :is(.rent-unified-note-row, .sub-row, .rent_number_info):not(:has(+ :is(.sub-row, .rent_number_info))) {
        margin-block-end: 5px;
    }

    #rent-app .rent-unified-rented-table .rent-unified-active > :is(.rent-unified-note-row, .sub-row, .rent_number_info):not(:has(+ :is(.sub-row, .rent_number_info))) > td {
        border-end-start-radius: 5px;
        border-end-end-radius: 5px;
    }

    #rent-app .rent-unified-rented-table .rent-unified-rented-row.rent-unified-sms-open,
    #rent-app .rent-unified-rented-table .rent-unified-active > :is(.rent-unified-note-row.rent-unified-sms-open, .rent-unified-sms-row) > td {
        border-inline-start: 2px solid var(--color-primary);
        padding-inline-start: 6px;
    }

    #rent-app .rent-unified-rented-table .rent-unified-sms-tools {
        gap: 3px 6px;
        line-height: 1.25;
    }

    #rent-app .rent-responsive-sms-count {
        margin-inline-start: 3px;
        color: var(--rent-unified-muted);
        font-size: 11px;
    }

    #rent-app .rent-unified-rented-table .rent-unified-sms-message {
        grid-template-columns: minmax(0, 1fr) auto;
        grid-template-areas: "sender sender" "text buttons";
        align-items: start;
        gap: 4px 8px;
        min-height: 0;
        padding: 7px 8px;
    }

    #rent-app .rent-unified-rented-table .rent-unified-sms-message:has(.rent-unified-sms-report) {
        grid-template-areas: "sender sender" "text text" "buttons buttons";
    }

    #rent-app .rent-unified-rented-table .rent-unified-sms-sender {
        grid-area: sender;
        font-size: 12px;
    }

    #rent-app .rent-unified-sms-sender > div {
        display: flex;
        flex: 1;
        align-items: baseline;
        justify-content: space-between;
        flex-wrap: wrap;
        gap: 3px 6px;
    }

    #rent-app .rent-unified-rented-table .rent-unified-sms-sender span {
        margin: 0;
        text-align: end;
        font-size: 10.5px;
    }

    #rent-app .rent-unified-rented-table .rent-unified-sms-text {
        grid-area: text;
    }

    #rent-app .rent-unified-rented-table .rent-unified-sms-buttons {
        grid-area: buttons;
        align-self: end;
        justify-content: flex-end;
    }

    #rent-app .rent-unified-rented-table .rent-unified-sms-buttons button {
        min-height: 26px;
        margin: 0;
    }

    #rent-app .rent-responsive-prolong-heading {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 6px;
        margin-block-end: 3px;
        font-size: 12px;
    }

    #rent-app .rent-responsive-prolong-heading .fa {
        margin-inline-end: 3px;
        color: var(--color-primary-font);
    }

    #rent-app .rent-responsive-prolong-heading .rent-order-action {
        width: 26px;
        height: 24px;
        margin: 0;
    }

    #rent-app .rent-unified-rented-table .rent-unified-prolong-fields {
        grid-template-areas: "extend expiration" "limit limit" "cost submit";
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 4px 8px;
    }

    #rent-app .rent-unified-rented-table .rent-unified-prolong-field {
        gap: 2px;
    }

    #rent-app .rent-unified-rented-table .rent-unified-prolong-date {
        text-align: end;
    }

    #rent-app .rent-unified-rented-table .rent-unified-prolong-expiration {
        font-size: 12px;
    }

    #rent-app .rent-unified-rented-table .rent-unified-prolong-footer {
        margin-block-start: 0;
    }

    #rent-app .rent-unified-rented-table .rent-unified-prolong-cost strong {
        font-size: 20px;
    }

    #rent-app .rent-unified-rented-table .rent-unified-prolong-period :is(input, select),
    #rent-app .rent-unified-rented-table .rent-unified-prolong-submit {
        min-height: 32px;
    }

    #rent-app .rent-unified-rented-table .rent-unified-prolong-period select {
        max-width: 100%;
    }
}

@media (760px <= width < 1000px) {
    #rent-app .rent-unified-rented-table {
        --rent-number-columns: minmax(0, 1.1fr) minmax(0, .9fr) minmax(0, 1.12fr) minmax(0, .72fr) minmax(246px, 1.9fr);
    }

    #rent-app .rent-unified-rented-table:has(.rent-unified-col-renew) {
        --rent-number-columns: minmax(0, 1.1fr) minmax(0, .9fr) minmax(0, 1.12fr) minmax(0, .72fr) minmax(246px, 1.9fr) 60px;
    }

    #rent-app .rent-unified-rented-table:not(:has(.rent-unified-pending-row)) .rent-unified-table > thead {
        position: static;
        display: block;
        width: 100%;
        height: auto;
        clip-path: none;
        overflow: visible;
    }

    #rent-app .rent-unified-rented-table .rent-unified-table > thead > tr,
    #rent-app .rent-unified-rented-table .rent-unified-active > .rent-unified-rented-row {
        display: grid;
        grid-template-columns: var(--rent-number-columns);
        grid-template-areas: none;
        align-items: center;
        gap: 0 6px;
    }

    #rent-app .rent-unified-rented-table .rent-unified-table > thead > tr {
        margin-block-end: 5px;
        padding: 5px 8px;
        border-radius: 5px;
        background: var(--color-element);
    }

    #rent-app .rent-unified-rented-table .rent-unified-table > thead th {
        min-width: 0;
        padding: 0;
        border: 0;
        font-size: 11px;
        white-space: normal;
    }

    #rent-app .rent-unified-rented-table .rent-unified-table > thead th:nth-child(5) {
        display: none;
    }

    #rent-app .rent-unified-rented-table .rent-unified-active > .rent-unified-rented-row > td {
        grid-area: auto;
    }

    #rent-app .rent-unified-rented-table .rent-unified-rented-row > .auto_renew_column {
        justify-content: center;
    }

    #rent-app .rent-unified-rented-table .rent-unified-number-actions .btn {
        padding-inline: 3px;
    }

    #rent-app .rent-unified-rented-table .rent-unified-active-row > .auto_renew_column::before {
        content: none;
    }

    #rent-app .rent-unified-rented-table .rent-unified-prolong-fields {
        grid-template-areas: "extend expiration cost submit" "limit limit limit limit";
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) max-content minmax(130px, auto);
    }

    #rent-app .rent-unified-rented-table .rent-unified-prolong-date {
        text-align: start;
    }
}

@media (width <= 360px) {
    #rent-app .rent-responsive-nav-item {
        padding-inline: 7px;
        font-size: 12px;
    }
}

@media (width < 1000px) {
    @container rent-archive (max-width: 565px) {
        #rent-app .rent-archive-row:has(.rent-archive-actions button) {
            grid-template-columns: minmax(0, 1fr) minmax(0, .4fr) minmax(75px, .6fr);
        }

        #rent-app .rent-archive-row:has(.rent-archive-actions button) > .rent-archive-phone {
            grid-column: 2 / -1;
        }

        #rent-app .rent-archive-row:has(.rent-archive-actions button) > .rent-archive-period {
            grid-column: 1 / 3;
        }

        #rent-app .rent-archive-row > .rent-archive-actions:has(button) {
            grid-column: 3;
        }

        #rent-app .rent-archive-row .rent-archive-restore {
            min-width: 0;
        }
    }
}
