.testdrive-trigger-compact.testdrive-trigger {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    width: 100%;
    max-width: 100%;
    min-height: 28px;
    height: auto;
    box-sizing: border-box;
    margin-top: 4px;
    padding: 2px 0;

    background: transparent;
    border: none;
    border-radius: 0;
    box-shadow: none;

    cursor: pointer;
    user-select: none;
    text-decoration: none;
    font-family: inherit;
    font-size: 13px;
    line-height: 1.3;
    color: #4d4d4d;
    white-space: nowrap;
    text-align: left;

    transition: color 0.15s ease;
    -webkit-tap-highlight-color: transparent;
}

.testdrive-trigger-compact.testdrive-trigger:hover {
    opacity: 1;
    background: transparent;
    border: none;
}

.testdrive-trigger-compact.testdrive-trigger:active {
    opacity: 0.8;
}

.testdrive-trigger-compact.testdrive-trigger:focus-visible {
    outline: 2px solid #ffed4e;
    outline-offset: 2px;
    border-radius: 4px;
}

.testdrive-trigger-wrapper {
    display: flex;
    align-items: center;
    gap: 6px;
    width: 100%;
    position: relative;
    min-height: 20px;
}

.testdrive-trigger-label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #4d4d4d;
    font-weight: 500;
    font-size: 13px;
    white-space: nowrap;
    flex-shrink: 0;
    transition: color 0.15s ease;
}

.testdrive-trigger-label::before {
    content: "";
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    background-color: #e6d400;
    -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' d='M5.5 17.5a3.5 3.5 0 1 0 0-7 3.5 3.5 0 0 0 0 7zM18.5 17.5a3.5 3.5 0 1 0 0-7 3.5 3.5 0 0 0 0 7zM15 6l-3 7-3-3M9 6h6M12 13H5.5M18.5 13H15'/></svg>") center/contain no-repeat;
            mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' d='M5.5 17.5a3.5 3.5 0 1 0 0-7 3.5 3.5 0 0 0 0 7zM18.5 17.5a3.5 3.5 0 1 0 0-7 3.5 3.5 0 0 0 0 7zM15 6l-3 7-3-3M9 6h6M12 13H5.5M18.5 13H15'/></svg>") center/contain no-repeat;
    transition: background-color 0.15s ease;
}

.testdrive-trigger-dots {
    display: none;
}

.testdrive-trigger-right {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    flex-shrink: 0;
    margin-left: auto;
}

.testdrive-trigger-value {
    display: inline-flex;
    align-items: center;
    padding: 2px 8px;
    border-radius: 999px;
    background: #f3f4f6;
    color: #4b5563;
    font-weight: 700;
    font-size: 13px;
    line-height: 1.1;
    white-space: nowrap;
}

.testdrive-trigger-value-free {
    background: #d1fae5;
    color: #065f46;
}

.testdrive-trigger-arrow {
    color: #c0c4c9;
    flex-shrink: 0;
    transition: transform 0.15s ease, color 0.15s ease;
}

.testdrive-trigger-compact.testdrive-trigger:hover .testdrive-trigger-arrow {
    color: #111827;
    transform: translateX(2px);
}

.testdrive-trigger-compact.testdrive-trigger:hover .testdrive-trigger-label {
    color: #111827;
}

.testdrive-trigger-compact.testdrive-trigger:hover .testdrive-trigger-label::before {
    background-color: #111827;
}

@media (max-width: 480px) {
    .testdrive-trigger-compact.testdrive-trigger {
        min-height: 26px;
        font-size: 12px;
        gap: 4px;
    }

    .testdrive-trigger-label {
        font-size: 12px;
        gap: 4px;
    }

    .testdrive-trigger-label::before {
        width: 14px;
        height: 14px;
    }

    .testdrive-trigger-value {
        font-size: 12px;
        padding: 2px 7px;
    }
}

:root {
    --testdrive-color-brand: #ffed4e;
    --testdrive-color-brand-dark: #e6d400;
    --testdrive-color-success: #10b981;
    --testdrive-color-success-light: #d1fae5;
    --testdrive-color-success-dark: #065f46;
    --testdrive-color-warning: #faaa32;
    --testdrive-color-warning-light: #fffbe0;
    --testdrive-color-warning-dark: #8a5a00;
    --testdrive-color-gray-50: #f9fafb;
    --testdrive-color-gray-100: #f3f4f6;
    --testdrive-color-gray-200: #e5e7eb;
    --testdrive-color-gray-300: #d1d5db;
    --testdrive-color-gray-400: #9ca3af;
    --testdrive-color-gray-500: #6b7280;
    --testdrive-color-gray-600: #4b5563;
    --testdrive-color-gray-700: #374151;
    --testdrive-color-gray-800: #1f2937;
    --testdrive-color-gray-900: #111827;
    --testdrive-shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --testdrive-shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
    --testdrive-shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --testdrive-radius-sm: 4px;
    --testdrive-radius: 6px;
    --testdrive-radius-md: 8px;
    --testdrive-radius-lg: 12px;
}

.testdrive-modal,
.testdrive-modal * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.testdrive-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
}

.testdrive-modal.is-open {
    display: block;
}

.testdrive-modal .testdrive-modal__overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    animation: testdriveFadeIn 0.2s ease;
}

@keyframes testdriveFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.testdrive-modal .testdrive-modal__container {
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    max-width: 600px;
    height: 100%;
    background: #f9fafb;
    animation: testdriveSlideInRight 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

@keyframes testdriveSlideInRight {
    from { transform: translateX(100%); }
    to { transform: translateX(0); }
}

.testdrive-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    height: 100%;
}

.testdrive-header {
    display: flex;
    align-items: center;
    padding: 16px 20px;
    background: white;
    border-bottom: 1px solid var(--testdrive-color-gray-200);
    flex-shrink: 0;
    position: sticky;
    top: 0;
    z-index: 5;
}

.testdrive-back {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--testdrive-color-gray-100);
    border: none;
    border-radius: var(--testdrive-radius);
    color: var(--testdrive-color-gray-600);
    cursor: pointer;
    transition: background-color 0.15s ease, color 0.15s ease;
    flex-shrink: 0;
    margin-right: 12px;
}

.testdrive-back:hover {
    background: var(--testdrive-color-brand);
    color: #111827;
}

.testdrive-header__title {
    font-size: 18px;
    font-weight: 700;
    color: var(--testdrive-color-gray-900);
    flex: 1;
    line-height: 1.2;
}

.testdrive-header__empty {
    width: 40px;
    flex-shrink: 0;
}

.testdrive-product-info {
    padding: 12px 20px;
    background: white;
    border-bottom: 1px solid var(--testdrive-color-gray-200);
    flex-shrink: 0;
}

.testdrive-product-info__name {
    font-size: 13px;
    font-weight: 500;
    color: var(--testdrive-color-gray-600);
    margin-bottom: 4px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.testdrive-product-info__code {
    font-size: 13px;
    color: var(--testdrive-color-gray-600);
}

.testdrive-product-info__code strong {
    color: var(--testdrive-color-gray-900);
    font-weight: 600;
}

.testdrive-main-content {
    flex: 1;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    min-height: 0;
    background: #f9fafb;
}

.testdrive-list {
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    flex: 1;
}

.testdrive-card {
    padding: 16px;
    background: white;
    border: 1px solid var(--testdrive-color-gray-200);
    border-radius: var(--testdrive-radius-lg);
    display: flex;
    gap: 14px;
    position: relative;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.testdrive-card:hover {
    border-color: var(--testdrive-color-gray-300);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.testdrive-card--highlight {
    border-color: var(--testdrive-color-brand);
    background: #fffef5;
}

.testdrive-card--highlight:hover {
    border-color: var(--testdrive-color-brand-dark);
    box-shadow: 0 0 0 3px rgba(255, 237, 78, 0.18), 0 2px 8px rgba(0, 0, 0, 0.06);
}

.testdrive-card__main {
    flex: 1;
    min-width: 0;
}

.testdrive-card__header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 8px;
    flex-wrap: wrap;
    gap: 8px;
}

.testdrive-card__title {
    font-size: 15px;
    font-weight: 600;
    color: var(--testdrive-color-gray-900);
    margin: 0;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    line-height: 1.3;
}

.testdrive-card__details {
    margin-bottom: 4px;
}

.testdrive-card__description {
    font-size: 13px;
    color: var(--testdrive-color-gray-600);
    line-height: 1.5;
    margin-bottom: 10px;
}

.testdrive-card__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.testdrive-card__area {
    display: inline-flex;
    align-items: center;
    font-size: 12px;
    color: var(--testdrive-color-gray-700);
    background: var(--testdrive-color-gray-100);
    padding: 4px 10px;
    border-radius: 999px;
    line-height: 1.3;
}

.testdrive-card__area svg {
    margin-right: 4px;
    flex-shrink: 0;
    color: var(--testdrive-color-gray-500);
}

.testdrive-benefits {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.testdrive-benefit {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 4px 0;
}

.testdrive-benefit__icon {
    color: var(--testdrive-color-success-dark);
    font-weight: 700;
    font-size: 12px;
    flex-shrink: 0;
    width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--testdrive-color-success-light);
    border-radius: 50%;
}

.testdrive-benefit__text {
    color: var(--testdrive-color-gray-900);
    font-size: 13px;
    font-weight: 500;
    line-height: 1.4;
}

.testdrive-phone-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 12px;
}

.testdrive-phone-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: var(--testdrive-color-gray-50);
    border: 1px solid var(--testdrive-color-gray-200);
    border-radius: var(--testdrive-radius-md);
    text-decoration: none;
    color: var(--testdrive-color-gray-900);
    transition: background-color 0.15s ease, border-color 0.15s ease;
}

.testdrive-phone-item:hover {
    background: #fffef5;
    border-color: var(--testdrive-color-brand);
}

.testdrive-phone-item__icon {
    flex-shrink: 0;
}

.testdrive-phone-item__content {
    flex: 1;
}

.testdrive-phone-item__number {
    font-weight: 600;
    color: var(--testdrive-color-gray-900);
    font-size: 14px;
    margin-bottom: 2px;
}

.testdrive-phone-item__operator {
    color: var(--testdrive-color-gray-600);
    font-size: 13px;
}

.testdrive-note {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 10px 12px;
    background: var(--testdrive-color-warning-light);
    border: 1px solid rgba(255, 237, 78, 0.6);
    border-radius: var(--testdrive-radius-md);
}

.testdrive-note__icon {
    color: var(--testdrive-color-warning-dark);
    flex-shrink: 0;
    margin-top: 1px;
}

.testdrive-note__text {
    color: var(--testdrive-color-warning-dark);
    font-size: 13px;
    font-weight: 500;
    line-height: 1.4;
}

@media (max-width: 768px) {
    .testdrive-modal .testdrive-modal__container {
        max-width: 100%;
    }

    .testdrive-header {
        padding: 12px 16px;
    }

    .testdrive-back {
        width: 36px;
        height: 36px;
        margin-right: 10px;
    }

    .testdrive-header__title {
        font-size: 16px;
    }

    .testdrive-product-info {
        padding: 10px 16px;
    }

    .testdrive-list {
        padding: 12px;
        gap: 10px;
    }

    .testdrive-card {
        padding: 14px;
        gap: 12px;
    }

    .testdrive-card__title {
        font-size: 14px;
    }

    .testdrive-card__description {
        font-size: 12px;
    }

    .testdrive-benefit__text {
        font-size: 12px;
    }

    .testdrive-phone-item__number {
        font-size: 13px;
    }

    .testdrive-phone-item__operator {
        font-size: 12px;
    }

    .testdrive-note__text {
        font-size: 12px;
    }
}

@media (max-width: 480px) {
    .testdrive-header {
        padding: 10px 12px;
    }

    .testdrive-back {
        width: 32px;
        height: 32px;
        margin-right: 8px;
    }

    .testdrive-header__title {
        font-size: 15px;
    }

    .testdrive-list {
        padding: 10px;
        gap: 10px;
    }

    .testdrive-card {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
        padding: 14px;
    }

    .testdrive-card__header {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
    }

    .testdrive-phone-item {
        padding: 10px;
    }
}

.testdrive-modal-open {
    overflow: hidden;
}

@media (hover: none) and (pointer: coarse) {
    .testdrive-card:active {
        opacity: 0.9;
    }

    .testdrive-phone-item:active {
        background: #fffef5;
        opacity: 0.9;
    }
}

@media (prefers-reduced-motion: reduce) {
    .testdrive-modal .testdrive-modal__overlay,
    .testdrive-modal .testdrive-modal__container,
    .testdrive-modal .testdrive-card {
        animation: none;
        transition: none;
    }
}