.anyrent-form {
    display: grid;
    gap: .75rem;
    max-width: 640px
}

.anyrent-row {
    display: grid;
    gap: .25rem
}

.anyrent-card {
    border: 1px solid #e4e4e7;
    border-radius: .5rem;
    padding: 1rem;
    margin: .75rem 0
}

.anyrent-card__image {
    margin: -1rem -1rem 1rem -1rem;
    border-radius: .5rem .5rem 0 0;
    overflow: hidden;
    background: #f8f9fa;
}

.anyrent-card__image img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    max-height: 200px;
}

.anyrent-card__title {
    font-weight: 600;
    margin-bottom: .25rem
}

.anyrent-optionals .anyrent-opt {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: .5rem 0;
    border-bottom: 1px dashed #eee
}

.anyrent-feedback {
    font-size: .9rem;
    opacity: .8
}

.anyrent-vehicle-image {
    display: block;
    border-radius: .375rem;
    object-fit: contain;
}

details.anyrent-acc {
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: .5rem .75rem;
    background: #fff;
}

details.anyrent-acc+details.anyrent-acc {
    margin-top: .5rem;
}

details.anyrent-acc>summary {
    cursor: pointer;
    font-weight: 600;
    list-style: none;
}

details.anyrent-acc>summary::-webkit-details-marker {
    display: none;
}

details.anyrent-acc[open] {
    box-shadow: 0 1px 0 rgba(0, 0, 0, .02);
}

/* Selected Optionals List */
.anyrent-selected-optionals {
    margin: 1rem 0;
}

.anyrent-optionals-section {
    margin-bottom: 1.5rem;
}

.anyrent-optionals-section-title {
    font-size: 0.9rem;
    font-weight: 600;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin: 0 0 0.75rem 0;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #e2e8f0;
}

.anyrent-optional-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
    border-bottom: 1px solid #f1f5f9;
}

.anyrent-optional-item:last-child {
    border-bottom: none;
}

.anyrent-optional-name {
    font-size: 0.95rem;
    color: #334155;
}

.anyrent-optional-price {
    font-size: 0.95rem;
    font-weight: 600;
    color: #0f172a;
    white-space: nowrap;
    margin-left: 1rem;
}

/* Compact variant - no section titles */
.anyrent-selected-optionals:not(:has(.anyrent-optionals-section-title)) .anyrent-optional-item {
    padding: 0.4rem 0;
}

/* Driver form instances */
.anyrent-driver-template,
.anyrent-driver-instance {
    margin-bottom: 2rem;
}

.anyrent-driver-heading {
    font-size: 1.25rem;
    font-weight: 600;
    color: #1e293b;
    margin: 0 0 1rem 0;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #e2e8f0;
}

.anyrent-driver-separator {
    margin: 2rem 0;
    border: none;
    border-top: 1px solid #e5e7eb;
}

/* Optional details in driver form */
.anyrent-driver-template details,
.anyrent-driver-instance details {
    margin-top: 1rem;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 0.75rem;
    background: #f8fafc;
}

.anyrent-driver-template details summary,
.anyrent-driver-instance details summary {
    cursor: pointer;
    font-weight: 500;
    color: #475569;
    list-style: none;
    padding: 0.25rem 0;
}

.anyrent-driver-template details summary::-webkit-details-marker,
.anyrent-driver-instance details summary::-webkit-details-marker {
    display: none;
}

.anyrent-driver-template details[open],
.anyrent-driver-instance details[open] {
    padding-bottom: 0.5rem;
}

.anyrent-driver-template details[open] summary,
.anyrent-driver-instance details[open] summary {
    margin-bottom: 0.75rem;
}