.loopword-plan-selector {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    margin-bottom: 20px;
    gap: 30px;
}

.plan-option {
    flex: 1;
    min-width: 250px;
    background-color: #F6F6F6;
    border: 4px solid #E5E5E5;
    border-radius: 10px;
    text-align: center;
    padding: 20px;
    box-sizing: border-box;
    overflow: visible;
    transition: all 0.3s ease;
    position: relative;
}

.plan-option input[type="radio"] {
    display: none;
}

.plan-label {
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 550px;
    cursor: pointer;
}

.plan-header {
    flex-shrink: 0;
}

.plan-title {
    color: #8F6903;
    font-weight: bold;
    margin: 0;
    text-align: left;
}

.plan-price {
    margin: 20px 0;
    color: #34496D;
    font-size: 18px;
    font-weight: bold;
    text-align: center;
}

.plan-features {
    text-align: left;
    color: #34496D;
    flex: 1;
    overflow-y: auto;
    font-size: 16px;
    line-height: 1.6;
}

.plan-quantity-section {
    margin-top: auto;
    padding-top: 20px;
    padding-bottom: 20px;
    border-top: 1px solid #E0E0E0;
}

.plan-quantity-section.enterprise {
    border-top: 1px solid #E0E0E0;
}

.quantity-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.quantity-label {
    color: #34496D;
    font-weight: bold;
}

.quantity-input {
    width: 60px !important;
    height: 32px !important;
    padding: 5px !important;
    border: 1px solid #34496D !important;
    border-radius: 5px !important;
}

.checkbox-visual {
    display: inline-block;
    width: 30px;
    height: 30px;
    border: 3px solid #CCCCCC;
    border-radius: 6px;
    position: relative;
    background-color: white;
    transition: all 0.3s ease;
}

.plan-option input[type="radio"]:checked + .plan-label .checkbox-visual {
    background-color: #DEB64B;
    border-color: #DEB64B;
}

.plan-option input[type="radio"]:checked + .plan-label .checkbox-visual::after {
    content: "✓";
    font-size: 20px;
    color: white;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-weight: bold;
}

.selected-badge {
    position: absolute;
    top: -2px;
    right: -2px;
    background: #DEB64B;
    color: white;
    padding: 5px 15px;
    font-size: 12px;
    font-weight: bold;
    border-radius: 0 8px 0 15px;
    display: none;
    z-index: 10;
}

.plan-option input[type="radio"]:checked + .plan-label {
    border-color: #DEB64B;
}

/* Selected plan styling */
.plan-option.selected {
    border-color: #DEB64B;
    box-shadow: 0 0 20px rgba(222, 182, 75, 0.5);
    background-color: #FFF9E6;
}

.plan-option.selected .selected-badge {
    display: block;
}

.plan-option.selected .plan-title {
    color: #DEB64B;
}

@media (max-width: 768px) {
    .loopword-plan-selector {
        flex-direction: column;
        gap: 20px;
    }
    
    .plan-option {
        min-width: auto;
    }
    
    .plan-label {
        min-height: auto;
    }
}
