/**
 * Rentman Inventory - Frontend Styles
 * 
 * CSS Custom Properties (can be overridden in theme):
 * --rentman-primary-color
 * --rentman-secondary-color
 * --rentman-price-color
 * --rentman-card-radius
 * --rentman-card-background
 * --rentman-card-border
 * --rentman-text-color
 * --rentman-text-muted
 * --rentman-font-family
 */

/* CSS Variables with defaults */
.rentman-inventory {
    --rentman-primary-color: #e8e8e8;
    --rentman-primary-text: #000000;
    --rentman-secondary-color: #4b5563;
    --rentman-secondary-text: #ffffff;
    --rentman-price-color: #212121;
    --rentman-card-radius: 8px;
    --rentman-card-background: #ffffff;
    --rentman-card-border: #e5e7eb;
    --rentman-text-color: #1f2937;
    --rentman-text-muted: #6b7280;
    --rentman-font-family: inherit;
    --rentman-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    --rentman-shadow-hover: 0 4px 12px rgba(0, 0, 0, 0.15);
    --rentman-transition: 0.2s ease;

    font-family: var(--rentman-font-family);
    color: var(--rentman-text-color);
    max-width: 100%;
    margin: 0 auto;
}

/* Toolbar */
.rentman-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.75rem;
    padding: 1rem;
    background: var(--rentman-card-background);
    border: 1px solid var(--rentman-card-border);
    border-radius: var(--rentman-card-radius);
}

/* Search */
.rentman-search-wrapper {
    position: relative;
    flex: 1;
    min-width: 200px;
    max-width: 400px;
}

.rentman-search {
    width: 100%;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    font-family: inherit;
    border: 1px solid var(--rentman-card-border);
    border-radius: var(--rentman-card-radius);
    background: var(--rentman-card-background);
    color: var(--rentman-text-color);
    transition: border-color var(--rentman-transition), box-shadow var(--rentman-transition);
}

.rentman-search:focus {
    outline: none;
    border-color: var(--rentman-primary-color);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--rentman-primary-color) 30%, transparent);
}

/* View Toggle */
.rentman-view-toggle {
    display: flex;
    gap: 0.25rem;
    padding: 0.25rem;
    background: #f3f4f6;
    border-radius: var(--rentman-card-radius);
}

/* Sort Dropdown */
.rentman-sort-wrapper {
    display: flex;
    align-items: center;
}

.rentman-sort {
    padding: 0.5rem 2rem 0.5rem 0.75rem;
    font-size: 0.875rem;
    font-family: inherit;
    color: var(--rentman-text-color);
    background: var(--rentman-card-background);
    border: 1px solid var(--rentman-card-border);
    border-radius: var(--rentman-card-radius);
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.5rem center;
    transition: border-color var(--rentman-transition);
}

.rentman-sort:hover {
    border-color: var(--rentman-text-muted);
}

.rentman-sort:focus {
    outline: none;
    border-color: var(--rentman-primary-color);
}

.rentman-view-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem;
    border: none;
    background: transparent;
    color: var(--rentman-text-muted);
    border-radius: calc(var(--rentman-card-radius) - 2px);
    cursor: pointer;
    transition: all var(--rentman-transition);
}

.rentman-view-btn:hover {
    color: var(--rentman-text-color);
}

.rentman-view-btn.active {
    background: var(--rentman-card-background);
    color: var(--rentman-primary-color);
    box-shadow: var(--rentman-shadow);
}

/* Category Tabs */
.rentman-categories {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--rentman-card-border);
}

.rentman-category-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    font-family: inherit;
    font-weight: 500;
    color: var(--rentman-text-muted);
    background: transparent;
    border: 1px solid var(--rentman-card-border);
    border-radius: 9999px;
    cursor: pointer;
    transition: all var(--rentman-transition);
}

.rentman-category-btn:hover {
    color: var(--rentman-text-color);
    border-color: var(--rentman-text-muted);
}

.rentman-category-btn.active {
    color: var(--rentman-primary-text);
    background: var(--rentman-primary-color);
    border-color: var(--rentman-primary-color);
}

.rentman-category-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 1.5rem;
    height: 1.5rem;
    padding: 0 0.375rem;
    font-size: 0.75rem;
    font-weight: 600;
    background: rgba(0, 0, 0, 0.1);
    border-radius: 9999px;
}

.rentman-category-btn.active .rentman-category-count {
    background: rgba(0, 0, 0, 0.15);
}

/* Equipment Grid */
.rentman-equipment--grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
}

.rentman-equipment--grid .rentman-item {
    display: flex;
    flex-direction: column;
    background: var(--rentman-card-background);
    border: 1px solid var(--rentman-card-border);
    border-radius: var(--rentman-card-radius);
    overflow: hidden;
    box-shadow: var(--rentman-shadow);
    transition: box-shadow var(--rentman-transition), transform var(--rentman-transition);
}

.rentman-equipment--grid .rentman-item:hover {
    box-shadow: var(--rentman-shadow-hover);
    transform: translateY(-2px);
}

.rentman-equipment--grid .rentman-item__image {
    position: relative;
    aspect-ratio: 1/1;
    overflow: hidden;
    background: #f9fafb;
}

.rentman-equipment--grid .rentman-item__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--rentman-transition);
}

.rentman-equipment--grid .rentman-item:hover .rentman-item__image img {
    transform: scale(1.05);
}

.rentman-equipment--grid .rentman-item__content {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 1.25rem;
}

/* Equipment List */
.rentman-equipment--list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.rentman-equipment--list .rentman-item {
    display: flex;
    flex-direction: row;
    background: var(--rentman-card-background);
    border: 1px solid var(--rentman-card-border);
    border-radius: var(--rentman-card-radius);
    overflow: hidden;
    box-shadow: var(--rentman-shadow);
    transition: box-shadow var(--rentman-transition);
}

.rentman-equipment--list .rentman-item:hover {
    box-shadow: var(--rentman-shadow-hover);
}

.rentman-equipment--list .rentman-item__image {
    position: relative;
    flex-shrink: 0;
    width: 120px;
    height: 120px;
    background: #f9fafb;
}

.rentman-equipment--list .rentman-item__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.rentman-equipment--list .rentman-item__content {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 0.875rem 1rem;
    min-width: 0;
}

.rentman-equipment--list .rentman-item__footer {
    margin-top: auto;
}

/* Item Components */
.rentman-item__no-image {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    color: #d1d5db;
}

.rentman-item__badge {
    position: absolute;
    top: 0.75rem;
    left: 0.75rem;
    padding: 0.25rem 0.75rem;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.025em;
    color: var(--rentman-primary-text);
    background: var(--rentman-primary-color);
    border-radius: 9999px;
}

.rentman-item__header {
    margin-bottom: 0.5rem;
}

.rentman-item__code {
    display: inline-block;
    margin-bottom: 0.25rem;
    padding: 0.125rem 0.5rem;
    font-size: 0.75rem;
    font-weight: 500;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    color: var(--rentman-text-muted);
    background: #f3f4f6;
    border-radius: 4px;
}

.rentman-item__title {
    margin: 0;
    font-size: 1.125rem;
    font-weight: 600;
    line-height: 1.4;
    color: var(--rentman-text-color);
}

.rentman-item__description {
    margin: 0.5rem 0;
    font-size: 0.875rem;
    line-height: 1.6;
    color: var(--rentman-text-muted);
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.rentman-equipment--list .rentman-item__description {
    -webkit-line-clamp: 2;
}

.rentman-item__category {
    display: inline-block;
    margin-top: 0.5rem;
    font-size: 0.75rem;
    color: var(--rentman-text-muted);
    font-weight: 500;
}

.rentman-item__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--rentman-card-border);
}

.rentman-item__price {
    display: flex;
    flex-direction: column;
    gap: 0.125rem;
}

.rentman-item__price-value {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--rentman-price-color);
}

.rentman-item__price-suffix {
    font-size: 0.75rem;
    color: var(--rentman-text-muted);
}

/* No Results */
.rentman-no-results {
    padding: 3rem;
    text-align: center;
    color: var(--rentman-text-muted);
    background: var(--rentman-card-background);
    border: 1px solid var(--rentman-card-border);
    border-radius: var(--rentman-card-radius);
}

/* Hidden items (filtered out) */
.rentman-item.rentman-hidden {
    display: none !important;
}

/* Responsive */
@media (max-width: 768px) {
    .rentman-toolbar {
        gap: 0.75rem;
        padding: 0.75rem;
        align-items: stretch;
    }

    .rentman-search-wrapper {
        flex: 1 0 100%;
        max-width: none;
    }

    .rentman-sort-wrapper {
        flex: 1 1 auto;
    }

    .rentman-sort {
        width: 100%;
    }

    .rentman-view-toggle {
        flex: 0 0 auto;
        align-self: center;
    }

    .rentman-categories {
        overflow-x: auto;
        flex-wrap: nowrap;
        padding-bottom: 1rem;
        margin-bottom: 1rem;
        -webkit-overflow-scrolling: touch;
    }

    .rentman-category-btn {
        flex-shrink: 0;
    }

    .rentman-equipment--list .rentman-item {
        flex-direction: column;
    }

    .rentman-equipment--list .rentman-item__image {
        width: 100%;
        aspect-ratio: 1/1;
    }

    .rentman-equipment--grid {
        grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    }
}

@media (max-width: 480px) {
    .rentman-equipment--grid {
        grid-template-columns: 1fr;
    }
}

/* Print styles */
@media print {
    .rentman-toolbar,
    .rentman-categories,
    .rentman-tabs {
        display: none;
    }

    .rentman-equipment--grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .rentman-item {
        break-inside: avoid;
        box-shadow: none !important;
        border: 1px solid #ccc !important;
    }
}

/* ==========================================
   TABS (Main Category Navigation)
   ========================================== */
.rentman-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
    padding: 0.5rem;
    background: var(--rentman-card-background);
    border: 1px solid var(--rentman-card-border);
    border-radius: var(--rentman-card-radius);
}

.rentman-tab {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.625rem 1.25rem;
    font-size: 0.9375rem;
    font-family: inherit;
    font-weight: 500;
    color: var(--rentman-text-muted);
    background: transparent;
    border: none;
    border-radius: calc(var(--rentman-card-radius) - 2px);
    cursor: pointer;
    transition: all var(--rentman-transition);
}

.rentman-tab:hover {
    color: var(--rentman-text-color);
    background: #f3f4f6;
}

.rentman-tab.active {
    color: var(--rentman-primary-text);
    background: var(--rentman-primary-color);
}

.rentman-tab-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 1.5rem;
    height: 1.375rem;
    padding: 0 0.5rem;
    font-size: 0.75rem;
    font-weight: 600;
    background: rgba(0, 0, 0, 0.08);
    border-radius: 9999px;
}

.rentman-tab.active .rentman-tab-count {
    background: rgba(0, 0, 0, 0.15);
}

/* ==========================================
   SUBCATEGORIES (Second Level Filter)
   ========================================== */
.rentman-subcategories-container {
    margin-bottom: 0.75rem;
}

.rentman-subcategories {
    display: flex;
    flex-wrap: wrap;
    gap: 0.375rem;
    padding: 0.375rem;
    background: var(--rentman-card-background);
    border: 1px solid var(--rentman-card-border);
    border-radius: var(--rentman-card-radius);
}

.rentman-subcategory {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.4rem 0.875rem;
    font-size: 0.8125rem;
    font-family: inherit;
    font-weight: 500;
    color: var(--rentman-text-muted);
    background: transparent;
    border: none;
    border-radius: calc(var(--rentman-card-radius) - 2px);
    cursor: pointer;
    transition: all var(--rentman-transition);
}

.rentman-subcategory:hover {
    color: var(--rentman-text-color);
    background: #f3f4f6;
}

.rentman-subcategory.active {
    color: var(--rentman-primary-text);
    background: var(--rentman-primary-color);
}

.rentman-subcategory-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 1.25rem;
    height: 1.125rem;
    padding: 0 0.375rem;
    font-size: 0.6875rem;
    font-weight: 600;
    background: rgba(0, 0, 0, 0.08);
    border-radius: 9999px;
}

.rentman-subcategory.active .rentman-subcategory-count {
    background: rgba(0, 0, 0, 0.15);
}

/* ==========================================
   PAGINATION
   ========================================== */
.rentman-pagination {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-top: 2rem;
    padding: 1rem;
    background: var(--rentman-card-background);
    border: 1px solid var(--rentman-card-border);
    border-radius: var(--rentman-card-radius);
}

.rentman-pagination-info {
    font-size: 0.875rem;
    color: var(--rentman-text-muted);
}

.rentman-pagination-buttons {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.rentman-page-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2.25rem;
    height: 2.25rem;
    padding: 0 0.75rem;
    font-size: 0.875rem;
    font-family: inherit;
    font-weight: 500;
    color: var(--rentman-text-color);
    background: transparent;
    border: 1px solid var(--rentman-card-border);
    border-radius: calc(var(--rentman-card-radius) - 2px);
    cursor: pointer;
    transition: all var(--rentman-transition);
}

.rentman-page-btn:hover:not(:disabled) {
    border-color: var(--rentman-primary-color);
    color: var(--rentman-primary-color);
}

.rentman-page-btn.active {
    background: var(--rentman-primary-color);
    border-color: var(--rentman-primary-color);
    color: var(--rentman-primary-text);
}

.rentman-page-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.rentman-page-prev,
.rentman-page-next {
    padding: 0 1rem;
}

.rentman-page-dots {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    color: var(--rentman-text-muted);
}

/* ==========================================
   LOADING OVERLAY
   ========================================== */
.rentman-loading {
    display: none;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    background: rgba(255, 255, 255, 0.8);
    z-index: 10;
    color: var(--rentman-text-muted);
    font-size: 0.9375rem;
}

.rentman-equipment-container {
    position: relative;
    min-height: 200px;
    transition: opacity 0.2s ease;
}

.rentman-loading-spinner {
    width: 24px;
    height: 24px;
    border: 3px solid var(--rentman-card-border);
    border-top-color: var(--rentman-primary-color);
    border-radius: 50%;
    animation: rentman-spin 0.8s linear infinite;
}

@keyframes rentman-spin {
    to {
        transform: rotate(360deg);
    }
}

/* ==========================================
   RESPONSIVE PAGINATION
   ========================================== */
@media (max-width: 640px) {
    .rentman-pagination {
        flex-direction: column;
        text-align: center;
    }

    .rentman-pagination-buttons {
        flex-wrap: wrap;
        justify-content: center;
    }

    .rentman-page-prev,
    .rentman-page-next {
        width: 100%;
        justify-content: center;
    }

    .rentman-tabs {
        overflow-x: auto;
        flex-wrap: nowrap;
        -webkit-overflow-scrolling: touch;
    }

    .rentman-tab {
        flex-shrink: 0;
    }

    .rentman-subcategories {
        overflow-x: auto;
        flex-wrap: nowrap;
        -webkit-overflow-scrolling: touch;
    }

    .rentman-subcategory {
        flex-shrink: 0;
    }
}

/* ==========================================
   INVENTORY WRAPPER (with sidebar)
   ========================================== */
.rentman-inventory-wrapper {
    display: flex;
    gap: 1rem;
    position: relative;
}

.rentman-inventory-wrapper .rentman-inventory {
    flex: 1;
    min-width: 0;
}

/* ==========================================
   INQUIRY SIDEBAR
   ========================================== */
.rentman-inquiry-sidebar {
    position: sticky;
    top: 2rem;
    width: 280px;
    max-height: calc(100vh - 4rem);
    background: var(--rentman-card-background, #ffffff);
    color: var(--rentman-text-color, #1f2937);
    border: 1px solid var(--rentman-card-border);
    border-radius: var(--rentman-card-radius);
    display: none;
    flex-direction: column;
    flex-shrink: 0;
    transition: all var(--rentman-transition);
    overflow: hidden;
}

.rentman-inquiry-sidebar.has-items {
    display: flex;
}

.rentman-inquiry-sidebar__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 1rem;
    border-bottom: 1px solid var(--rentman-card-border);
}

.rentman-inquiry-sidebar__header h3 {
    margin: 0;
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--rentman-text-color, #1f2937);
}

.rentman-inquiry-sidebar__count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 1.5rem;
    height: 1.5rem;
    padding: 0 0.5rem;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--rentman-primary-text);
    background: var(--rentman-primary-color);
    border-radius: 9999px;
}

.rentman-inquiry-sidebar__items {
    overflow-y: auto;
    max-height: 300px;
}

.rentman-inquiry-sidebar__item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem;
}

.rentman-inquiry-sidebar__item-image {
    width: 32px;
    height: 32px;
    border-radius: 4px;
    overflow: hidden;
    flex-shrink: 0;
    background: #f3f4f6;
}

.rentman-inquiry-sidebar__item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.rentman-inquiry-sidebar__item-name {
    flex: 1;
    font-size: 0.8125rem;
    color: var(--rentman-text-color, #1f2937);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.rentman-inquiry-sidebar__item-remove {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    color: var(--rentman-text-muted, #6b7280);
    cursor: pointer;
    flex-shrink: 0;
    border: none;
    background: none;
    padding: 0;
}

.rentman-inquiry-sidebar__item-remove:hover {
    opacity: 1;
    color: #f87171;
    background: #fef2f2;
}

.rentman-inquiry-sidebar__empty {
    padding: 2rem 1rem;
    text-align: center;
    color: var(--rentman-text-muted);
    font-size: 0.875rem;
}

.rentman-inquiry-sidebar__footer {
    padding: 0.75rem 1rem 1rem;
}

.rentman-inquiry-sidebar__submit {
    width: 100%;
    padding: 0.75rem 1.5rem;
    font-size: 0.9375rem;
    font-weight: 600;
    font-family: inherit;
    color: var(--rentman-primary-text);
    background: var(--rentman-primary-color);
    border: none;
    border-radius: calc(var(--rentman-card-radius) - 2px);
    cursor: pointer;
    transition: all var(--rentman-transition);
}

.rentman-inquiry-sidebar__submit:hover:not(:disabled) {
    filter: brightness(0.9);
}

.rentman-inquiry-sidebar__submit:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* ==========================================
   ITEM ADD BUTTON
   ========================================== */
.rentman-item__add-btn {
    width: 36px;
    height: 36px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--rentman-primary-color);
    background: transparent;
    color: var(--rentman-primary-color);
    border-radius: 50%;
    cursor: pointer;
    transition: all var(--rentman-transition);
    flex-shrink: 0;
}

.rentman-item__add-btn:hover {
    background: var(--rentman-primary-color);
    color: var(--rentman-primary-text);
}

.rentman-item__add-btn.added {
    background: var(--rentman-price-color);
    border-color: var(--rentman-price-color);
    color: #fff;
}

.rentman-item__add-btn.added svg {
    transform: rotate(45deg);
}

.rentman-item__clickable {
    cursor: pointer;
}

/* ==========================================
   MODALS
   ========================================== */
.rentman-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2147483647;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 126px 1rem 1rem;
    overflow: hidden;
    overscroll-behavior: contain;
}

.rentman-modal__backdrop {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.rentman-modal__content {
    position: relative;
    width: 100%;
    max-width: 500px;
    max-height: calc(100vh - 126px - 1rem);
    background: #fff;
    border-radius: var(--rentman-card-radius, 8px);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.rentman-modal__content--large {
    max-width: 960px;
}

/* Body scroll lock when modal is open.
 * `scrollbar-gutter: stable` on <html> reserves the scrollbar space so the page
 * doesn't jump when the scrollbar disappears. We intentionally do NOT set
 * `overflow-y: scroll` on <body> here — a "ghost" scrollbar on fixed body
 * captures wheel events and starves the modal's own scroll target. */
html.rentman-modal-open {
    overflow: hidden !important;
    scrollbar-gutter: stable;
}

html.rentman-modal-open body {
    overflow: hidden !important;
    position: fixed !important;
    width: 100% !important;
}

.rentman-modal__content--small {
    max-width: 400px;
}

.rentman-modal__close {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    width: 32px;
    height: 32px;
    padding: 0;
    border: none;
    background: rgba(0, 0, 0, 0.05);
    color: var(--rentman-text-color, #1f2937);
    font-size: 1.5rem;
    line-height: 1;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--rentman-transition, 0.2s ease);
}

.rentman-modal__close:hover {
    background: rgba(0, 0, 0, 0.1);
}

.rentman-modal__body {
    padding: 1.25rem;
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    color: #333;
    flex: 1 1 auto;
    min-height: 0;
}

.rentman-modal__body--centered {
    text-align: center;
}

.rentman-modal__body h2 {
    margin: 0 0 1rem 0;
    font-size: 1.25rem;
    color: #333;
}

/* ==========================================
   ITEM DETAIL (in modal)
   ========================================== */
.rentman-item-detail {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 1.25rem;
    align-items: start;
}

.rentman-item-detail__image {
    border-radius: var(--rentman-card-radius);
    overflow: hidden;
    background: #f3f4f6;
    aspect-ratio: 1/1;
}

.rentman-item-detail__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Bottom section spans full width */
.rentman-item-detail__bottom {
    grid-column: 1 / -1;
    padding-top: 0.5rem;
}

/* Detail Tabs */
.rentman-detail-tabs {
    display: flex;
    gap: 0;
    margin: 0 0 1rem 0;
    padding: 0;
    border: none !important;
    background: none !important;
    list-style: none;
}

.rentman-detail-tab {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.375rem;
    margin: 0 !important;
    padding: 0.75rem 0.5rem !important;
    font-size: 0.875rem !important;
    font-family: inherit !important;
    font-weight: 500 !important;
    line-height: 1.4 !important;
    color: var(--rentman-text-muted, #6b7280) !important;
    background: none !important;
    background-color: transparent !important;
    background-image: none !important;
    border: none !important;
    border-top: none !important;
    border-left: none !important;
    border-right: none !important;
    border-bottom: 3px solid transparent !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    outline: none !important;
    cursor: pointer;
    transition: color 0.2s ease, border-color 0.2s ease;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    appearance: none !important;
    text-transform: none !important;
    text-decoration: none !important;
    letter-spacing: normal !important;
}

.rentman-detail-tab:hover,
.rentman-detail-tab:focus {
    color: var(--rentman-text-color, #1f2937) !important;
    background: none !important;
    background-color: transparent !important;
    box-shadow: none !important;
    border-top: none !important;
    border-left: none !important;
    border-right: none !important;
    outline: none !important;
}

.rentman-detail-tab.active {
    color: var(--rentman-text-color, #1f2937) !important;
    font-weight: 600 !important;
    background: none !important;
    background-color: transparent !important;
    border-bottom: 3px solid var(--rentman-primary-color, #e8e8e8) !important;
}

.rentman-detail-tab__count {
    font-size: 0.75rem !important;
    font-weight: 600 !important;
    color: var(--rentman-text-color, #1f2937) !important;
    background: none !important;
    padding: 0 !important;
    border: none !important;
    border-radius: 0 !important;
}

.rentman-detail-tab.active .rentman-detail-tab__count {
    color: var(--rentman-text-color, #1f2937) !important;
}

/* Tab Panels */
.rentman-detail-panel {
    display: none;
}

.rentman-detail-panel.active {
    display: block;
}

/* Simple list (legacy, unused once accessories become bookable rows) */
.rentman-item-detail__simple-list {
    margin: 0;
    padding: 0 0 0 1.25rem;
    list-style: disc;
}

.rentman-item-detail__simple-list li {
    padding: 0.15rem 0;
    font-size: 0.8125rem;
    color: var(--rentman-text-muted, #6b7280);
    line-height: 1.5;
}

/* Bookable accessory rows: [qty] [+] [name ... price] [chevron] with optional accordion body */
.rentman-accessory-list {
    display: flex;
    flex-direction: column;
    gap: 0.375rem;
}

.rentman-accessory-row {
    background: #f9fafb;
    border: 1px solid var(--rentman-card-border, #e5e7eb);
    border-radius: calc(var(--rentman-card-radius, 8px) - 2px);
    overflow: hidden;
}

.rentman-accessory-row__header {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    padding: 0.4rem 0.6rem;
}

.rentman-accessory-row.is-expandable .rentman-accessory-row__header {
    cursor: pointer;
}

.rentman-accessory-row.is-expandable .rentman-accessory-row__header:hover {
    background: #f3f4f6;
}

.rentman-accessory-row__actions {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    flex-shrink: 0;
}

.rentman-accessory-row__qty {
    width: 40px;
    padding: 0.25rem 0.3rem;
    text-align: center;
    font-size: 0.8125rem;
    font-weight: 500;
    color: #111827;
    border: 1px solid #d1d5db;
    border-radius: 4px;
    background: #fff;
}

.rentman-accessory-row__qty:focus {
    outline: none;
    border-color: #9ca3af;
    box-shadow: 0 0 0 2px rgba(156, 163, 175, 0.2);
}

.rentman-accessory-row__qty::-webkit-outer-spin-button,
.rentman-accessory-row__qty::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.rentman-accessory-row__qty[type=number] {
    -moz-appearance: textfield;
}

.rentman-accessory-row__add-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    padding: 0;
    border: 1.5px solid var(--rentman-primary-color);
    background: transparent;
    color: var(--rentman-primary-color);
    border-radius: 50%;
    cursor: pointer;
    transition: all var(--rentman-transition);
    flex-shrink: 0;
}

.rentman-accessory-row__add-btn:hover {
    background: var(--rentman-primary-color);
    color: var(--rentman-primary-text);
}

.rentman-accessory-row__add-btn.added {
    background: var(--rentman-price-color);
    border-color: var(--rentman-price-color);
    color: #fff;
}

.rentman-accessory-row__add-btn.added svg {
    transform: rotate(45deg);
}

.rentman-accessory-row__name {
    flex: 1;
    min-width: 0;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--rentman-text-color, #1f2937);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.rentman-accessory-row__price {
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--rentman-price-color, #212121);
    flex-shrink: 0;
}

.rentman-accessory-row__chevron {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    color: var(--rentman-text-muted, #6b7280);
    transition: transform var(--rentman-transition);
    flex-shrink: 0;
}

.rentman-accessory-row.is-expanded .rentman-accessory-row__chevron {
    transform: rotate(180deg);
}

.rentman-accessory-row__details {
    display: grid;
    grid-template-columns: 120px 1fr;
    gap: 0.75rem;
    padding: 0.75rem;
    border-top: 1px solid var(--rentman-card-border, #e5e7eb);
    background: #fff;
}

.rentman-accessory-row__details[hidden] {
    display: none;
}

.rentman-accessory-row__image {
    aspect-ratio: 1/1;
    background: #f3f4f6;
    border-radius: 4px;
    overflow: hidden;
}

.rentman-accessory-row__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.rentman-accessory-row__description {
    font-size: 0.8125rem;
    line-height: 1.5;
    color: #555;
}

.rentman-accessory-row__description * {
    margin: 0;
    padding: 0;
}

.rentman-accessory-row__description p + p {
    margin-top: 0.4rem;
}

.rentman-accessory-row__description ul,
.rentman-accessory-row__description ol {
    margin: 0.25rem 0;
    padding-left: 1.25rem;
}

.rentman-accessory-row__details:not([hidden]):has(> .rentman-accessory-row__description:only-child),
.rentman-accessory-row__details:not(:has(.rentman-accessory-row__image)) {
    grid-template-columns: 1fr;
}

@media (max-width: 520px) {
    .rentman-accessory-row__name {
        white-space: normal;
    }
    .rentman-accessory-row__details {
        grid-template-columns: 1fr;
    }
    .rentman-accessory-row__image {
        max-width: 180px;
    }
}

/* Extras list (set content with qty) */
.rentman-item-detail__extras-list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.rentman-item-detail__extras-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.375rem;
    padding: 0.2rem 0;
    font-size: 0.8125rem;
    color: var(--rentman-text-muted, #6b7280);
    line-height: 1.4;
}

.rentman-item-detail__content-qty {
    font-weight: 500;
    color: var(--rentman-text-muted, #6b7280);
    min-width: 1.5rem;
    flex-shrink: 0;
}

.rentman-item-detail__content-name {
    flex: 1;
}

.rentman-item-detail__info {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.rentman-item-detail__code {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--rentman-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.rentman-item-detail__title {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 600;
    line-height: 1.3;
    color: var(--rentman-text-color);
}

.rentman-item-detail__category {
    display: inline-block;
    padding: 0.25rem 0.5rem;
    font-size: 0.75rem;
    color: var(--rentman-text-muted);
    background: #f3f4f6;
    border-radius: 4px;
    width: fit-content;
}

.rentman-item-detail__price {
    margin-top: 0.5rem;
}

.rentman-item-detail__price-value {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--rentman-price-color);
}

.rentman-item-detail__price-suffix {
    font-size: 0.8125rem;
    color: var(--rentman-text-muted);
    margin-left: 0.25rem;
}

.rentman-item-detail__description {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--rentman-card-border);
    font-size: 0.875rem;
    line-height: 1.5;
    color: #555;
}

.rentman-item-detail__description * {
    margin: 0;
    padding: 0;
}

.rentman-item-detail__description p + p {
    margin-top: 0.5rem;
}

.rentman-item-detail__description ul,
.rentman-item-detail__description ol {
    margin: 0.25rem 0;
    padding-left: 1.25rem;
}

.rentman-item-detail__description br {
    display: block;
    content: "";
    margin: 0;
}

/* Actions (Quantity + Add Button) */
.rentman-item-detail__actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-top: 1rem;
    flex-wrap: nowrap;
}

.rentman-item-detail__actions .rentman-quantity-input {
    width: 70px;
    max-width: 70px;
    padding: 0.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    text-align: center;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    background: #fff;
    color: #111827;
    flex-shrink: 0;
}

.rentman-quantity-input:focus {
    outline: none;
    border-color: #9ca3af;
    box-shadow: 0 0 0 2px rgba(156, 163, 175, 0.2);
}

/* Hide spinner buttons in number input */
.rentman-quantity-input::-webkit-outer-spin-button,
.rentman-quantity-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}
.rentman-quantity-input[type=number] {
    -moz-appearance: textfield;
}

.rentman-item-detail__add-btn {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

/* ==========================================
   FORM ELEMENTS
   ========================================== */
.rentman-inquiry-form__grid {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
    gap: 1.5rem;
}

.rentman-inquiry-form__fields {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem 1rem;
    align-items: start;
}

.rentman-form-group--full {
    grid-column: 1 / -1;
}

.rentman-form-group--duration .rentman-duration-display {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0.5rem;
    font-size: 0.9375rem;
    color: var(--rentman-text-color, #1f2937);
}

.rentman-form-group--duration .rentman-duration-display__value {
    font-weight: 700;
    font-size: 1.0625rem;
}

.rentman-inquiry-form__items {
    background: #f9fafb;
    border-radius: 6px;
    padding: 1rem;
}

.rentman-inquiry-form__items h4 {
    margin: 0 0 0.5rem 0;
    font-size: 0.8125rem;
    font-weight: 600;
    color: #333;
}

.rentman-inquiry-form__items ul {
    margin: 0;
    padding: 0;
    list-style: none;
    font-size: 0.8125rem;
    color: #555;
    max-height: 200px;
    overflow-y: auto;
}

.rentman-inquiry-form__items li {
    padding: 0.35rem 0;
    border-bottom: 1px solid #e5e7eb;
    display: grid;
    grid-template-columns: 2.25rem 1fr;
    gap: 0.5rem;
    align-items: baseline;
}

.rentman-inquiry-form__items-qty {
    font-weight: 600;
    color: var(--rentman-text-color, #1f2937);
    text-align: right;
}

.rentman-inquiry-form__items-name {
    min-width: 0;
    word-break: break-word;
}

.rentman-inquiry-form__items li:last-child {
    border-bottom: none;
}

.rentman-inquiry-form__items li.rentman-inquiry-form__section-heading {
    margin-top: 0.5rem;
    padding-top: 0.5rem;
    border-top: 1px solid #d1d5db;
    border-bottom: none;
    color: var(--rentman-text-muted, #6b7280);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.rentman-form-group {
    margin-bottom: 0;
}

.rentman-form-group label {
    display: block;
    margin-bottom: 0.25rem;
    font-size: 0.8125rem;
    font-weight: 500;
    color: #333;
}

.rentman-form-group input[type="text"],
.rentman-form-group input[type="email"],
.rentman-form-group input[type="tel"],
.rentman-form-group input[type="number"],
.rentman-form-group input[type="date"],
.rentman-form-group input[type="time"],
.rentman-form-group input[type="datetime-local"],
.rentman-form-group textarea {
    width: 100%;
    padding: 0.5rem 0.75rem;
    font-size: 0.875rem;
    font-family: inherit;
    color: #333;
    background: #fff;
    border: 1px solid #d1d5db;
    border-radius: 4px;
    box-sizing: border-box;
}

.rentman-form-group input[type="text"]:focus,
.rentman-form-group input[type="email"]:focus,
.rentman-form-group input[type="tel"]:focus,
.rentman-form-group input[type="number"]:focus,
.rentman-form-group input[type="date"]:focus,
.rentman-form-group input[type="time"]:focus,
.rentman-form-group input[type="datetime-local"]:focus,
.rentman-form-group textarea:focus {
    outline: none;
    border-color: var(--rentman-primary-color);
}

.rentman-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
}

.rentman-form-hint {
    margin: 0.25rem 0 0;
    font-size: 0.75rem;
    color: var(--rentman-text-muted, #6b7280);
}

.rentman-radio-group {
    display: flex;
    gap: 1.25rem;
    flex-wrap: wrap;
}

.rentman-radio-option {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.25rem 0;
    font-size: 0.875rem;
    color: #333;
    cursor: pointer;
}

.rentman-radio-option input[type="radio"] {
    width: auto;
    margin: 0;
}

@media (max-width: 520px) {
    .rentman-form-row {
        grid-template-columns: 1fr;
    }
    .rentman-inquiry-form__fields {
        grid-template-columns: 1fr;
    }
}

/* Mietfaktor info icon + tooltip (trigger in the label next to "Mietdauer") */
.rentman-mietfaktor-trigger {
    position: relative;
    display: inline-flex;
    align-items: center;
    margin-left: 0.5rem;
    color: var(--rentman-text-color, #1f2937);
    cursor: pointer;
    vertical-align: middle;
    font-size: 0.8125rem;
    font-weight: 500;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.rentman-mietfaktor-trigger:hover,
.rentman-mietfaktor-trigger:focus {
    color: #000;
    outline: none;
}

.rentman-mietfaktor-trigger__label {
    pointer-events: none;
}

.rentman-mietfaktor-tooltip {
    position: absolute;
    top: calc(100% + 6px);
    left: 50%;
    transform: translateX(-50%) translateY(4px);
    width: max-content;
    max-width: 280px;
    padding: 0.6rem;
    background: #fff;
    color: var(--rentman-text-color, #1f2937);
    border: 1px solid var(--rentman-card-border, #e5e7eb);
    border-radius: var(--rentman-card-radius, 8px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.15s ease, transform 0.15s ease;
    z-index: 10;
}

.rentman-mietfaktor-trigger:hover .rentman-mietfaktor-tooltip,
.rentman-mietfaktor-trigger:focus .rentman-mietfaktor-tooltip,
.rentman-mietfaktor-trigger.is-open .rentman-mietfaktor-tooltip {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
    pointer-events: auto;
}

.rentman-mietfaktor-trigger.is-above .rentman-mietfaktor-tooltip {
    top: auto;
    bottom: calc(100% + 6px);
    transform: translateX(-50%) translateY(-4px);
}

.rentman-mietfaktor-trigger.is-above:hover .rentman-mietfaktor-tooltip,
.rentman-mietfaktor-trigger.is-above:focus .rentman-mietfaktor-tooltip,
.rentman-mietfaktor-trigger.is-above.is-open .rentman-mietfaktor-tooltip {
    transform: translateX(-50%) translateY(0);
}

.rentman-mietfaktor-tooltip__title {
    margin-bottom: 0.4rem;
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--rentman-text-color, #1f2937);
}

.rentman-mietfaktor-tooltip__hint {
    margin-top: 0.4rem;
    font-size: 0.6875rem;
    color: var(--rentman-text-muted, #6b7280);
}

.rentman-mietfaktor-table {
    display: flex;
    flex-direction: column;
    gap: 1px;
    max-height: 240px;
    overflow-y: auto;
    font-size: 0.8125rem;
}

.rentman-mietfaktor-table__row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.75rem;
    padding: 0.25rem 0.4rem;
    border-radius: 3px;
    color: var(--rentman-text-color, #1f2937);
    transition: background var(--rentman-transition), color var(--rentman-transition);
    white-space: nowrap;
}

.rentman-mietfaktor-table__row.is-active {
    background: var(--rentman-primary-color);
    color: var(--rentman-primary-text);
    font-weight: 600;
}

.rentman-mietfaktor-table__factor {
    font-weight: 600;
    flex-shrink: 0;
}

.rentman-inquiry-form__submit-row {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    margin-top: 1.25rem;
    flex-wrap: wrap;
}

.rentman-agb-checkbox {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: #333;
    cursor: pointer;
    line-height: 1.4;
    flex: 1 1 240px;
    min-width: 0;
}

.rentman-agb-checkbox input[type="checkbox"] {
    width: auto;
    margin: 0;
    flex-shrink: 0;
}

.rentman-agb-checkbox a {
    color: var(--rentman-price-color, #212121);
    text-decoration: underline;
    font-weight: 500;
}

.rentman-form-actions {
    display: flex;
    gap: 0.75rem;
    margin: 0;
    margin-left: auto;
}

.rentman-btn {
    padding: 0.65rem 1.25rem;
    font-size: 0.9375rem;
    font-weight: 600;
    font-family: inherit;
    border: none;
    border-radius: 9999px;
    cursor: pointer;
    min-width: 180px;
    text-align: center;
    transition: filter var(--rentman-transition, 0.2s ease);
}

.rentman-modal button.rentman-btn--primary,
.rentman-modal .rentman-btn.rentman-btn--primary,
button.rentman-btn.rentman-btn--primary {
    color: #000 !important;
    background: #ffe02e !important;
    border: none !important;
}

.rentman-modal button.rentman-btn--primary:hover,
button.rentman-btn.rentman-btn--primary:hover {
    filter: brightness(0.92);
    background: #ffe02e !important;
    color: #000 !important;
}

.rentman-modal button.rentman-btn--secondary,
.rentman-modal .rentman-btn.rentman-btn--secondary,
button.rentman-btn.rentman-btn--secondary {
    color: #fff !important;
    background: #111317 !important;
    border: none !important;
}

.rentman-modal button.rentman-btn--secondary:hover,
button.rentman-btn.rentman-btn--secondary:hover {
    filter: brightness(1.25);
    background: #111317 !important;
    color: #fff !important;
}

@media (max-width: 600px) {
    .rentman-inquiry-form__grid {
        grid-template-columns: 1fr;
    }
}

/* ==========================================
   SUCCESS ICON
   ========================================== */
.rentman-success-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: #fff;
    background: var(--rentman-price-color);
    border-radius: 50%;
}

/* ==========================================
   RESPONSIVE - MODALS & SIDEBAR
   ========================================== */
@media (max-width: 900px) {
    .rentman-inventory-wrapper {
        flex-direction: column;
        padding-bottom: 70px; /* Space for collapsed bottom bar */
        margin-left: -10px;
        margin-right: -10px;
    }

    .rentman-inquiry-sidebar {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        top: auto;
        width: 100%;
        max-height: 55vh;
        background: var(--rentman-card-background, #fff);
        border: none;
        border-radius: 12px 12px 0 0;
        box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.15);
        z-index: 99999;
        transition: transform 0.3s ease;
        transform: translateY(calc(100% - 64px));
    }

    .rentman-inquiry-sidebar.expanded {
        transform: translateY(0);
    }

    /* Collapsed bar: header acts as the visible strip */
    .rentman-inquiry-sidebar__header {
        cursor: pointer;
        padding: 1rem 1.25rem;
        border-bottom: 1px solid var(--rentman-card-border, #e5e7eb);
        min-height: 64px;
        box-sizing: border-box;
        display: flex;
        align-items: center;
        gap: 0.75rem;
    }

    /* Drag indicator */
    .rentman-inquiry-sidebar__header::before {
        content: '';
        position: absolute;
        top: 8px;
        left: 50%;
        transform: translateX(-50%);
        width: 36px;
        height: 4px;
        background: #d1d5db;
        border-radius: 2px;
    }

    /* Items list: scrollable within panel */
    .rentman-inquiry-sidebar__items {
        max-height: calc(55vh - 64px - 70px);
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }

    /* Footer button inside panel */
    .rentman-inquiry-sidebar__footer {
        border-top: 1px solid var(--rentman-card-border, #e5e7eb);
    }
}

@media (max-width: 700px) {
    .rentman-modal {
        padding: 100px 0 0;
        align-items: flex-end;
    }

    .rentman-modal__content,
    .rentman-modal__content--large {
        max-width: 100%;
        max-height: calc(100vh - 100px);
        border-radius: var(--rentman-card-radius, 8px) var(--rentman-card-radius, 8px) 0 0;
    }

    .rentman-item-detail {
        grid-template-columns: 1fr;
    }

    .rentman-item-detail__image {
        aspect-ratio: 1/1;
        max-height: 280px;
    }

    .rentman-item-detail__image img {
        height: 100%;
        object-fit: cover;
    }
}
