/**
 * Payment Plan Options Component Styles
 * Displays payment plan selection with percentage and discount information
 * Relies on card-selectable.css for base card styling (border, hover, selected)
 *
 * @package Way2Rentals
 * @since 2.2.0
 */

/* Grid layout for panel body */
.w2r-plan-option + .w2r-plan-option {
    margin-top: 0;
}

/* Use CSS Grid for 2-column layout on wider screens */
.w2r-panel:has(.w2r-plan-option) .w2r-panel-body {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.75rem;
}

@media (min-width: 768px) {
    .w2r-panel:has(.w2r-plan-option) .w2r-panel-body {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Plan card layout - matches payment-methods.css structure */
.w2r-plan-option {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.25rem;
    gap: 1rem;
}

.w2r-plan-radio {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    margin: 0;
}

/* Icon with colored background - SAME as payment-methods */
.w2r-plan-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 10px;
    flex-shrink: 0;
}

.w2r-plan-icon i {
    font-size: 1.25rem;
    color: var(--color-btn-text);
}

/* Title and description container */
.w2r-plan-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
    flex: 1;
    min-width: 0;
}

.w2r-plan-title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--color-text-main);
    line-height: 1.3;
}

.w2r-plan-badge {
    background: var(--color-success);
    color: var(--color-btn-text);
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 0.65rem;
    font-weight: bold;
    text-transform: uppercase;
}

.w2r-plan-description {
    font-size: 0.75rem;
    font-weight: 400;
    color: var(--color-text-muted);
    line-height: 1.3;
}

.w2r-plan-discount {
    color: var(--color-success);
    font-weight: 500;
}

/* Mobile adjustments */
@media (max-width: 480px) {
    .w2r-plan-option {
        padding: 0.875rem 1rem;
    }

    .w2r-plan-icon {
        width: 40px;
        height: 40px;
    }

    .w2r-plan-icon i {
        font-size: 1.1rem;
    }

    .w2r-plan-title {
        font-size: 0.9rem;
    }

    .w2r-plan-description {
        font-size: 0.7rem;
    }
}
