.detail-form-field:has(input[name="extra_textverified_rental_trade_id"]) {
    display: none !important;
}

/* Keep host grid min-content sizing from pushing this plugin's product off-screen. */
body:has(.goods-detail-page input[name="extra_textverified_rental_trade_id"]) {
    grid-template-columns: minmax(0, 1fr);
}

#main:has(input[name="extra_textverified_rental_trade_id"]),
.goods-detail-page:has(input[name="extra_textverified_rental_trade_id"]) .detail-info {
    min-width: 0;
}

.goods-detail-page:has(input[name="extra_textverified_rental_trade_id"]) .detail-info {
    overflow-wrap: anywhere;
}

@media (max-width: 1024px) {
    .goods-detail-page:has(input[name="extra_textverified_rental_trade_id"]) .detail-layout {
        grid-template-columns: minmax(0, 1fr);
    }

    .goods-detail-page:has(input[name="extra_textverified_rental_trade_id"]) .detail-card {
        padding: 16px;
    }
}

.detail-form-field.tv-rental-renewal-field--visible:has(input[name="extra_textverified_rental_trade_id"]) {
    display: block !important;
}

/* 主题会按当前规格组合写入行内 display:none；真实办理方式不能因首屏默认组合被隐藏。 */
.spec-btn.tv-rental-operation-button {
    display: inline-block !important;
}

.tv-rental-picker {
    box-sizing: border-box;
    min-width: 0;
    max-width: 100%;
    overflow-wrap: anywhere;
    margin-top: 10px;
    padding: 12px;
    border: 1px solid #bfdbfe;
    border-radius: 8px;
    background: #f8fbff;
    color: #1e3a5f;
    line-height: 1.65;
}

.tv-rental-picker label {
    display: block;
    margin-bottom: 6px;
    font-size: 13px;
    font-weight: 600;
}

.tv-rental-picker select {
    box-sizing: border-box;
    min-width: 0;
    max-width: 100%;
    width: 100%;
    min-height: 36px;
    padding: 6px 10px;
    border: 1px solid #bfdbfe;
    border-radius: 6px;
    background: #fff;
    color: #1e293b;
}

.tv-rental-picker p {
    margin: 8px 0 0;
    font-size: 12px;
    color: #64748b;
}

.tv-rental-order-link {
    display: inline-flex;
    align-items: center;
    margin-top: 10px;
    padding: 7px 14px;
    border: 1px solid var(--primary-color, #4e6ef2);
    border-radius: 6px;
    background: var(--primary-color, #4e6ef2);
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
}

.tv-rental-order-link[hidden] {
    display: none;
}

.tv-rental-order-link:hover {
    color: #fff;
    filter: brightness(.95);
}

.tv-rental-order-link:focus-visible {
    outline: 2px solid var(--primary-color, #4e6ef2);
    outline-offset: 2px;
}

.tv-rental-picker--empty {
    border-color: #fed7aa;
    background: #fffaf0;
    color: #9a3412;
}

.tv-rental-picker--login {
    border-color: #bfdbfe;
    background: #eff6ff;
}

.tv-rental-picker--login p {
    margin: 0;
}

.tv-rental-login-link {
    margin-left: 6px;
    color: #4e6ef2;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
}

.tv-rental-login-link:hover {
    color: #3d5bd9;
    text-decoration: underline;
}

.tv-rental-login-link:focus-visible {
    outline: 2px solid #4e6ef2;
    outline-offset: 2px;
}

.tv-rental-capability-selector {
    margin-bottom: 16px;
}

.tv-rental-capability-selector__option:focus-visible {
    outline: 2px solid rgba(78, 110, 242, .35);
    outline-offset: 2px;
}

@media (max-width: 767px) {
    .tv-rental-capability-selector {
        margin-bottom: 13px;
    }
}

.tv-rental-detail-flow {
    display: block;
    width: 100%;
    max-width: 1672px;
    height: auto;
    margin: 0 auto;
}

.tv-rental-order-panel {
    box-sizing: border-box;
    min-width: 0;
    max-width: 100%;
    overflow-wrap: anywhere;
}

.tv-rental-order-panel audio {
    width: 100%;
    max-width: 320px;
}

@media (max-width: 1024px), (pointer: coarse) {
    .tv-rental-picker select,
    .tv-rental-order-link,
    .tv-rental-order-panel [data-tv-start] {
        min-height: 44px;
    }

    .tv-rental-picker select {
        font-size: 16px;
    }
}
