/* Petal Club Frontend Styles */

/* Apply consistent styling to all builders */
.ilpc-builder {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.ilpc-builder-header {
    margin-bottom: 20px;
    padding: 20px;
    background: #fff;
}

.ilpc-builder-header.two-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    align-items: start;
}

.ilpc-wizard-header { 
    display: grid; 
    grid-template-columns: 1fr 1fr 1fr; 
    gap: 14px; 
    align-items: center; 
    margin: 10px 0 20px; 
    position: relative;
}

.ilpc-wizard-progress {
    grid-column: 1 / -1;
    position: absolute;
    bottom: -6px; left: 0; right: 0;
    height: 4px;
    background: #e9ecf7;
    border-radius: 2px;
    overflow: hidden;
}

.ilpc-wizard-progress-bar {
    height: 100%;
    width: 33.33%;
    background: linear-gradient(90deg,#667eea,#764ba2);
    transition: width .3s ease;
}

.ilpc-step-pill {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #fff;
    border: 2px solid #e0e4f4;
    border-radius: 10px;
    padding: 10px 14px;
    box-shadow: 0 2px 10px rgba(102,126,234,0.08);
    color: #3a3f63;
    font-weight: 500;
}

.ilpc-step-pill .ilpc-step-index {
    width: 28px; height: 28px;
    border-radius: 14px;
    background: #e9ecf7;
    color: #4a5290;
    display: inline-flex; align-items: center; justify-content: center;
    font-weight: 600;
}

.ilpc-step-pill.ilpc-active {
    border-color: #667eea;
    box-shadow: 0 4px 16px rgba(118,75,162,0.15);
}

.ilpc-step-pill.ilpc-active .ilpc-step-index {
    background: #667eea; color: #fff;
}

.ilpc-summary h2 {
    margin-top: 0;
}

.ilpc-media .ilpc-slider,
.ilpc-media .ilpc-slider.placeholder {
    position: relative;
    border: 1px solid #eee;
    border-radius: 10px;
    overflow: hidden;
    background: #fafafa;
}

.ilpc-slider-viewport {
    overflow: hidden;
}

.ilpc-slider-track {
    display: flex;
    transition: transform 0.3s ease;
}

.ilpc-slider-item {
    min-width: 100%;
    height: 320px;
}

.ilpc-slider-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.ilpc-slider-prev,
.ilpc-slider-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.5);
    color: #fff;
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 18px;
    cursor: pointer;
}

.ilpc-slider-prev { left: 10px; }
.ilpc-slider-next { right: 10px; }

.ilpc-image-placeholder {
    width: 100%;
    height: 320px;
    background: repeating-linear-gradient(45deg, #f1f1f1, #f1f1f1 10px, #e6e6e6 10px, #e6e6e6 20px);
}

.ilpc-builder-header h2 {
    margin: 0 0 15px 0;
    font-size: 2.5em;
    font-weight: 300;
}

.ilpc-builder-header p {
    margin: 0;
    font-size: 1.1em;
    opacity: 0.9;
}

.ilpc-builder-content {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    overflow: hidden;
}

/* Ensure only step 1 is visible by default; JS will toggle visibility */
.ilpc-step { display: none; }
.ilpc-product-selection.ilpc-step { display: block; }
.ilpc-delivery-setup, .ilpc-payment-summary { display: none; }

.ilpc-product-selection,
.ilpc-delivery-setup,
.ilpc-payment-summary,
.ilpc-tier-selection,
.ilpc-stem-selection,
.ilpc-plan-selection,
.ilpc-delivery-payment {
    padding: 30px;
}

.ilpc-product-selection h3,
.ilpc-delivery-setup h3,
.ilpc-payment-summary h3,
.ilpc-tier-selection h3,
.ilpc-stem-selection h3,
.ilpc-plan-selection h3,
.ilpc-delivery-payment h3 {
    margin: 0 0 20px 0;
    color: #333;
    font-size: 1.5em;
    font-weight: 500;
}

.ilpc-product-selection p,
.ilpc-delivery-setup p,
.ilpc-tier-selection p,
.ilpc-stem-selection p,
.ilpc-plan-selection p,
.ilpc-delivery-payment p {
    color: #666;
    margin-bottom: 25px;
    font-size: 1.1em;
}

/* Products Grid */
.ilpc-products-grid {
    margin-bottom: 30px;
}

.ilpc-products-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.ilpc-products-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
}

#ilpc-product-search {
    flex: 1;
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
}

.ilpc-per-page { display: flex; align-items: center; gap: 8px; }
.ilpc-per-page select {
    padding: 6px 10px;
    min-width: 80px;
    border: 1px solid #ddd;
    border-radius: 6px;
    background: #fff;
}

.ilpc-pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
}

.ilpc-pagination .page-btn {
    padding: 8px 12px;
    border: 1px solid #ddd;
    background: #fff;
    border-radius: 6px;
    cursor: pointer;
}

.ilpc-pagination .page-btn.active {
    background: #667eea;
    color: #fff;
    border-color: #667eea;
}

/* Neutralize theme button arrows inside builder */
.ilpc-builder .button::after { display: none !important; content: none !important; }
.ilpc-builder .button { position: relative; }

.ilpc-product-card {
    background: #fff;
    border: 2px solid #e1e5e9;
    border-radius: 12px;
    padding: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.ilpc-product-card:hover {
    border-color: #667eea;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.15);
}

.ilpc-product-card.selected {
    border-color: #667eea;
    background: linear-gradient(135deg, #f8fbff 0%, #e8f4ff 100%);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.2);
}

.ilpc-product-card.selected::before {
    content: "✓";
    position: absolute;
    top: 15px;
    right: 15px;
    background: #667eea;
    color: white;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: bold;
}

.ilpc-product-card h4 {
    margin: 0 0 10px 0;
    color: #333;
    font-size: 1.2em;
}

.ilpc-product-card .price {
    color: #667eea;
    font-size: 1.3em;
    font-weight: 600;
    margin-bottom: 15px;
}

.ilpc-product-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 15px;
}

/* Navigation Buttons */
.ilpc-builder-navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 30px;
    background: #f8f9fa;
    border-top: 1px solid #e1e5e9;
}

.ilpc-nav-buttons {
    display: flex;
    gap: 15px;
}

.ilpc-nav-btn {
    padding: 12px 24px;
    font-size: 14px;
    font-weight: 600;
    border: 2px solid #667eea;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

.ilpc-nav-btn.ilpc-btn-secondary {
    background: white;
    color: #667eea;
}

.ilpc-nav-btn.ilpc-btn-secondary:hover {
    background: #667eea;
    color: white;
    transform: translateY(-2px);
}

.ilpc-nav-btn.ilpc-btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-color: #667eea;
}

.ilpc-nav-btn.ilpc-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.3);
}

.ilpc-nav-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none !important;
}

.ilpc-nav-btn:disabled:hover {
    transform: none !important;
    box-shadow: none !important;
}

/* Stripe Payment Elements */
.ilpc-card-section {
    margin: 20px 0;
}

#ilpc-card-element {
    padding: 12px 16px;
    border: 2px solid #e1e5e9;
    border-radius: 8px;
    background: white;
    font-size: 16px;
    transition: all 0.3s ease;
}

#ilpc-card-element:focus-within {
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

#ilpc-card-element.StripeElement--focus {
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

#ilpc-card-element.StripeElement--invalid {
    border-color: #dc3545;
    box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.1);
}

#ilpc-card-errors {
    margin-top: 10px;
    padding: 10px 12px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
}

/* Payment Terms */
.ilpc-payment-terms {
    margin: 20px 0;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e1e5e9;
}

.ilpc-payment-terms label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 14px;
    line-height: 1.5;
    color: #333;
    cursor: pointer;
}

.ilpc-payment-terms input[type="checkbox"] {
    margin: 0;
    width: 18px;
    height: 18px;
    accent-color: #667eea;
}

/* Cemetery Plan Specific Styles */
.ilpc-cemetery-builder {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Dashboard Styles */
.ilpc-dashboard {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.ilpc-dashboard h2 {
    text-align: center;
    color: #2c3e50;
    font-size: 2.5em;
    font-weight: 700;
    margin-bottom: 40px;
    position: relative;
}

.ilpc-dashboard h2::before,
.ilpc-dashboard h2::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 100px;
    height: 2px;
    background: linear-gradient(90deg, transparent, #4CAF50, transparent);
}

.ilpc-dashboard h2::before {
    left: -120px;
}

.ilpc-dashboard h2::after {
    right: -120px;
}

.ilpc-no-memberships {
    text-align: center;
    padding: 60px 20px;
    background: #f8f9fa;
    border-radius: 12px;
    border: 2px dashed #dee2e6;
}

.ilpc-no-memberships p {
    font-size: 18px;
    color: #6c757d;
    margin-bottom: 30px;
}

.ilpc-memberships-overview {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.ilpc-membership-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid #e1e5e9;
}

.ilpc-membership-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

.ilpc-membership-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 25px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.ilpc-membership-header h3 {
    margin: 0;
    font-size: 24px;
    font-weight: 600;
}

.ilpc-membership-status {
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.ilpc-status-active {
    background: rgba(255, 255, 255, 0.2);
    color: white;
}

.ilpc-status-pending {
    background: rgba(255, 193, 7, 0.2);
    color: #ffc107;
}

.ilpc-status-cancelled {
    background: rgba(220, 53, 69, 0.2);
    color: #dc3545;
}

.ilpc-membership-details {
    padding: 30px;
}

.ilpc-membership-summary {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.ilpc-summary-item {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.ilpc-label {
    font-size: 14px;
    color: #6c757d;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.ilpc-value {
    font-size: 18px;
    color: #2c3e50;
    font-weight: 600;
}

.ilpc-membership-actions {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.ilpc-membership-actions .ilpc-nav-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    border: none;
    border-radius: 8px;
}

.ilpc-membership-actions .ilpc-nav-btn::before {
    content: '→';
    font-size: 16px;
    font-weight: bold;
}

.ilpc-membership-actions .ilpc-nav-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.ilpc-deliveries-section {
    background: #f8f9fa;
    padding: 25px 30px;
    border-top: 1px solid #e1e5e9;
}

.ilpc-deliveries-section h4 {
    color: #2c3e50;
    font-size: 20px;
    font-weight: 600;
    margin: 0 0 20px 0;
}

.ilpc-deliveries-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.ilpc-delivery-item {
    background: #fff;
    border: 1px solid #e1e5e9;
    border-radius: 8px;
    padding: 20px;
    transition: all 0.3s ease;
}

.ilpc-delivery-item:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transform: translateY(-1px);
}

.ilpc-delivery-info h5 {
    color: #2c3e50;
    font-size: 18px;
    font-weight: 600;
    margin: 0 0 15px 0;
    border-bottom: 1px solid #e1e5e9;
    padding-bottom: 10px;
}

.ilpc-delivery-field {
    margin-bottom: 15px;
}

.ilpc-delivery-field p {
    margin: 8px 0;
    color: #666;
    font-size: 14px;
    line-height: 1.4;
}

.ilpc-delivery-field strong {
    color: #2c3e50;
    font-weight: 600;
}

.ilpc-delivery-address {
    margin-top: 5px;
    padding: 10px;
    background: #f8f9fa;
    border-radius: 6px;
    border-left: 3px solid #667eea;
}

.ilpc-delivery-address div {
    margin: 2px 0;
    color: #666;
    font-size: 14px;
}

.ilpc-edit-btn {
    background: #667eea !important;
    color: white !important;
    border: 1px solid #5a67d8 !important;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    cursor: pointer;
    margin-left: 10px;
    transition: all 0.3s ease;
    display: inline-block !important;
    opacity: 1 !important;
    visibility: visible !important;
    text-decoration: none !important;
    font-weight: 500 !important;
}

.ilpc-edit-btn:hover {
    background: #5a67d8 !important;
    border-color: #4a5bc8 !important;
}

.ilpc-edit-form {
    margin-top: 10px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 6px;
    border: 1px solid #e1e5e9;
}

.ilpc-edit-input {
    width: 100%;
    padding: 8px 12px;
    border: 2px solid #e1e5e9;
    border-radius: 4px;
    font-size: 14px;
    margin-bottom: 10px;
}

.ilpc-edit-input:focus {
    outline: none;
    border-color: #667eea;
}

.ilpc-save-btn,
.ilpc-cancel-btn {
    padding: 6px 12px;
    border: none;
    border-radius: 4px;
    font-size: 12px;
    cursor: pointer;
    margin-right: 8px;
    transition: all 0.3s ease;
}

.ilpc-save-btn {
    background: #4CAF50 !important;
    color: white !important;
    border: 1px solid #45a049 !important;
    text-decoration: none !important;
    font-weight: 500 !important;
    display: inline-block !important;
    opacity: 1 !important;
    visibility: visible !important;
}

.ilpc-save-btn:hover {
    background: #45a049 !important;
    border-color: #3d8b40 !important;
}

.ilpc-cancel-btn {
    background: #6c757d !important;
    color: white !important;
    border: 1px solid #5a6268 !important;
    text-decoration: none !important;
    font-weight: 500 !important;
    display: inline-block !important;
    opacity: 1 !important;
    visibility: visible !important;
}

.ilpc-cancel-btn:hover {
    background: #5a6268 !important;
    border-color: #495057 !important;
}

/* Responsive Design */
@media (max-width: 768px) {
    .ilpc-dashboard h2 {
        font-size: 2em;
    }
    
    .ilpc-dashboard h2::before,
    .ilpc-dashboard h2::after {
        width: 50px;
    }
    
    .ilpc-dashboard h2::before {
        left: -60px;
    }
    
    .ilpc-dashboard h2::after {
        right: -60px;
    }
    
    .ilpc-membership-header {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    .ilpc-membership-summary {
        grid-template-columns: 1fr;
    }
    
    .ilpc-membership-actions {
        justify-content: center;
    }
    
    .ilpc-membership-actions .button {
        flex: 1;
        justify-content: center;
    }
}

/* Cemetery Plan Billing and Payment Styles */
.ilpc-cemetery-builder .ilpc-delivery-payment {
    padding: 30px;
}

.ilpc-cemetery-builder .ilpc-delivery-section,
.ilpc-cemetery-builder .ilpc-payment-section {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 25px;
}

.ilpc-cemetery-builder .ilpc-delivery-section h4,
.ilpc-cemetery-builder .ilpc-payment-section h4 {
    color: #2c3e50;
    font-size: 20px;
    font-weight: 600;
    margin: 0 0 15px 0;
    padding-bottom: 10px;
    border-bottom: 2px solid #e1e5e9;
}

.ilpc-cemetery-builder .ilpc-delivery-section p,
.ilpc-cemetery-builder .ilpc-payment-section p {
    color: #666;
    font-size: 14px;
    line-height: 1.5;
    margin: 0 0 20px 0;
}

.ilpc-cemetery-builder .ilpc-payment-details {
    background: #fff;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
    border: 1px solid #e1e5e9;
}

.ilpc-cemetery-builder .ilpc-payment-details h4 {
    color: #2c3e50;
    font-size: 18px;
    font-weight: 600;
    margin: 0 0 15px 0;
    border-bottom: 1px solid #e1e5e9;
    padding-bottom: 10px;
}

.ilpc-cemetery-builder .ilpc-payment-details p {
    margin: 8px 0;
    color: #666;
    font-size: 14px;
    line-height: 1.4;
}

.ilpc-cemetery-builder .ilpc-payment-details p strong {
    color: #2c3e50;
    font-weight: 600;
}

.ilpc-cemetery-builder .ilpc-billing-info {
    background: #fff;
    border-radius: 8px;
    padding: 25px;
    margin-bottom: 20px;
    border: 1px solid #e1e5e9;
}

.ilpc-cemetery-builder .ilpc-billing-info h4 {
    color: #2c3e50;
    font-size: 18px;
    font-weight: 600;
    margin: 0 0 20px 0;
    border-bottom: 1px solid #e1e5e9;
    padding-bottom: 10px;
}

.ilpc-cemetery-builder .ilpc-billing-fields .ilpc-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 15px;
}

.ilpc-cemetery-builder .ilpc-billing-fields .ilpc-form-row.full-width {
    grid-template-columns: 1fr;
}

.ilpc-cemetery-builder .ilpc-billing-fields label {
    display: block;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 5px;
    font-size: 14px;
}

.ilpc-cemetery-builder .ilpc-billing-fields input,
.ilpc-cemetery-builder .ilpc-billing-fields textarea {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e1e5e9;
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.3s ease;
    background: #fff;
}

.ilpc-cemetery-builder .ilpc-billing-fields input:focus,
.ilpc-cemetery-builder .ilpc-billing-fields textarea:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.ilpc-cemetery-builder .ilpc-billing-fields input::placeholder,
.ilpc-cemetery-builder .ilpc-billing-fields textarea::placeholder {
    color: #aab7c4;
}

.ilpc-cemetery-builder .ilpc-billing-fields textarea {
    resize: vertical;
    min-height: 80px;
}

.ilpc-cemetery-builder .ilpc-card-section {
    background: #fff;
    border-radius: 8px;
    padding: 25px;
    margin-bottom: 20px;
    border: 1px solid #e1e5e9;
}

.ilpc-cemetery-builder .ilpc-card-section h4 {
    color: #2c3e50;
    font-size: 18px;
    font-weight: 600;
    margin: 0 0 20px 0;
    border-bottom: 1px solid #e1e5e9;
    padding-bottom: 10px;
}

.ilpc-cemetery-builder .ilpc-card-element-container {
    margin-bottom: 15px;
}

.ilpc-cemetery-builder .ilpc-card-element-container label {
    display: block;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 8px;
    font-size: 14px;
}

.ilpc-cemetery-builder #ilpc-card-element {
    padding: 15px;
    border: 2px solid #e1e5e9;
    border-radius: 8px;
    background: #fff;
    font-size: 16px;
    transition: all 0.3s ease;
}

.ilpc-cemetery-builder #ilpc-card-element:focus-within {
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.ilpc-cemetery-builder #ilpc-card-element.StripeElement--focus {
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.ilpc-cemetery-builder #ilpc-card-element.StripeElement--invalid {
    border-color: #e74c3c;
    box-shadow: 0 0 0 3px rgba(231, 76, 60, 0.1);
}

.ilpc-cemetery-builder #ilpc-card-errors {
    color: #e74c3c;
    font-size: 14px;
    margin-top: 10px;
    padding: 10px;
    background: #fdf2f2;
    border: 1px solid #fecaca;
    border-radius: 6px;
}

.ilpc-cemetery-builder .ilpc-payment-terms {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
    border: 1px solid #e1e5e9;
}

.ilpc-cemetery-builder .ilpc-payment-terms label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 14px;
    line-height: 1.5;
    color: #2c3e50;
    cursor: pointer;
    margin: 0;
}

.ilpc-cemetery-builder .ilpc-payment-terms input[type="checkbox"] {
    margin: 0;
    width: 18px;
    height: 18px;
    accent-color: #667eea;
}

.ilpc-cemetery-builder .ilpc-delivery-details-form {
    background: #fff;
    border-radius: 8px;
    padding: 25px;
    margin-bottom: 20px;
    border: 1px solid #e1e5e9;
}

.ilpc-cemetery-builder .ilpc-delivery-details-form .ilpc-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 15px;
}

.ilpc-cemetery-builder .ilpc-delivery-details-form .ilpc-form-row.full-width {
    grid-template-columns: 1fr;
}

.ilpc-cemetery-builder .ilpc-delivery-details-form label {
    display: block;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 5px;
    font-size: 14px;
}

.ilpc-cemetery-builder .ilpc-delivery-details-form input,
.ilpc-cemetery-builder .ilpc-delivery-details-form select,
.ilpc-cemetery-builder .ilpc-delivery-details-form textarea {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e1e5e9;
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.3s ease;
    background: #fff;
}

.ilpc-cemetery-builder .ilpc-delivery-details-form input:focus,
.ilpc-cemetery-builder .ilpc-delivery-details-form select:focus,
.ilpc-cemetery-builder .ilpc-delivery-details-form textarea:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.ilpc-cemetery-builder .ilpc-delivery-details-form input::placeholder,
.ilpc-cemetery-builder .ilpc-delivery-details-form textarea::placeholder {
    color: #aab7c4;
}

.ilpc-cemetery-builder .ilpc-delivery-details-form textarea {
    resize: vertical;
    min-height: 80px;
}

.ilpc-cemetery-builder .ilpc-delivery-details-form select {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m6 8 4 4 4-4'/%3e%3c/svg%3e");
    background-position: right 12px center;
    background-repeat: no-repeat;
    background-size: 16px;
    padding-right: 40px;
    appearance: none;
}

.ilpc-cemetery-builder .ilpc-delivery-details-form label:after {
    content: " *";
    color: #e74c3c;
}

.ilpc-cemetery-builder .ilpc-delivery-details-form label:not([for*="required"]):after {
    content: "";
}

.ilpc-tier-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin: 30px 0;
}

.ilpc-tier-option {
    background: #fff;
    border: 2px solid #e1e5e9;
    border-radius: 12px;
    padding: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.ilpc-tier-option:hover {
    border-color: #667eea;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.15);
}

.ilpc-tier-option.selected {
    border-color: #667eea;
    background: linear-gradient(135deg, #f8fbff 0%, #e8f4ff 100%);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.2);
}

.ilpc-tier-option.selected::before {
    content: "✓";
    position: absolute;
    top: 15px;
    right: 15px;
    background: #667eea;
    color: white;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: bold;
}

.ilpc-tier-header {
    text-align: center;
    margin-bottom: 20px;
}

.ilpc-tier-header h4 {
    font-size: 24px;
    font-weight: 600;
    color: #2c3e50;
    margin: 0 0 10px 0;
}

.ilpc-tier-price {
    font-size: 28px;
    font-weight: 700;
    color: #667eea;
    margin: 0;
}

.ilpc-tier-features {
    text-align: center;
}

.ilpc-tier-features p {
    margin: 8px 0;
    color: #666;
    font-size: 14px;
    line-height: 1.4;
}

.ilpc-tier-features p:first-child {
    font-weight: 600;
    color: #2c3e50;
}

.ilpc-stems-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    margin: 30px 0;
}

.ilpc-stem-option {
    background: #fff;
    border: 2px solid #e1e5e9;
    border-radius: 12px;
    padding: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    text-align: center;
}

.ilpc-stem-option:hover {
    border-color: #667eea;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.15);
}

.ilpc-stem-option.selected {
    border-color: #667eea;
    background: linear-gradient(135deg, #f8fbff 0%, #e8f4ff 100%);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.2);
}

.ilpc-stem-option.selected::before {
    content: "✓";
    position: absolute;
    top: 15px;
    right: 15px;
    background: #667eea;
    color: white;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: bold;
}

.ilpc-stem-quantity {
    margin-top: 15px;
    text-align: center;
}

.ilpc-stem-quantity label {
    display: block;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 8px;
    font-size: 14px;
}

.ilpc-stem-qty {
    width: 80px;
    padding: 8px 12px;
    border: 2px solid #e1e5e9;
    border-radius: 6px;
    font-size: 14px;
    text-align: center;
    transition: all 0.3s ease;
    background: #fff;
}

.ilpc-stem-qty:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.ilpc-stem-qty::-webkit-inner-spin-button,
.ilpc-stem-qty::-webkit-outer-spin-button {
    opacity: 1;
    height: 20px;
}

.ilpc-stem-item {
    background: #fff;
    border: 2px solid #e1e5e9;
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    transition: all 0.3s ease;
}

.ilpc-stem-item:hover {
    border-color: #667eea;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.15);
}

.ilpc-stem-image {
    margin-bottom: 15px;
}

.ilpc-stem-image img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    border-radius: 8px;
}

.ilpc-stem-placeholder {
    width: 100%;
    height: 150px;
    background: #f8f9fa;
    border: 2px dashed #e1e5e9;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6c757d;
    font-size: 14px;
}

.ilpc-stem-info h5 {
    margin: 0 0 10px 0;
    color: #2c3e50;
    font-size: 18px;
}

.ilpc-stem-price {
    color: #667eea;
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 15px;
}

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

.ilpc-stem-quantity label {
    font-weight: 600;
    color: #2c3e50;
}

.ilpc-stem-qty {
    width: 60px;
    padding: 8px;
    border: 2px solid #e1e5e9;
    border-radius: 6px;
    text-align: center;
    font-size: 16px;
}

.ilpc-stem-qty:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.ilpc-selection-summary {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 25px;
    margin: 30px 0;
    border: 1px solid #e1e5e9;
}

.ilpc-selection-summary h4 {
    color: #2c3e50;
    font-size: 20px;
    font-weight: 600;
    margin: 0 0 20px 0;
    padding-bottom: 10px;
    border-bottom: 2px solid #e1e5e9;
}

.ilpc-summary-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid #e1e5e9;
}

.ilpc-summary-item:last-child {
    border-bottom: none;
}

.ilpc-monthly-total {
    font-weight: 600;
    font-size: 18px;
    color: #667eea;
    border-top: 2px solid #667eea;
    margin-top: 15px;
    padding-top: 15px;
}

.ilpc-monthly-total strong {
    color: #667eea;
}

.ilpc-payment-details {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 30px;
    border: 1px solid #e1e5e9;
}

.ilpc-payment-details h4 {
    color: #2c3e50;
    font-size: 20px;
    font-weight: 600;
    margin: 0 0 20px 0;
    padding-bottom: 10px;
    border-bottom: 2px solid #e1e5e9;
}

.ilpc-payment-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid #e1e5e9;
}

.ilpc-payment-row:last-child {
    border-bottom: none;
}

.ilpc-payment-row.total {
    font-weight: 600;
    font-size: 18px;
    color: #667eea;
    border-top: 2px solid #667eea;
    margin-top: 15px;
    padding-top: 15px;
}

/* Cemetery Delivery Details Form */
.ilpc-delivery-details-form {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 25px;
    margin: 20px 0;
    border: 1px solid #e1e5e9;
}

.ilpc-delivery-details-form .ilpc-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.ilpc-delivery-details-form .ilpc-form-row.full-width {
    grid-template-columns: 1fr;
}

.ilpc-delivery-details-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #2c3e50;
    font-size: 14px;
}

.ilpc-delivery-details-form input,
.ilpc-delivery-details-form select,
.ilpc-delivery-details-form textarea {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e1e5e9;
    border-radius: 8px;
    font-size: 16px;
    color: #2c3e50;
    background: white;
    transition: all 0.3s ease;
}

.ilpc-delivery-details-form input:focus,
.ilpc-delivery-details-form select:focus,
.ilpc-delivery-details-form textarea:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.ilpc-delivery-details-form input::placeholder,
.ilpc-delivery-details-form textarea::placeholder {
    color: #6c757d;
    opacity: 0.7;
}

.ilpc-delivery-details-form select {
    cursor: pointer;
}

.ilpc-delivery-details-form textarea {
    resize: vertical;
    min-height: 80px;
}

/* Required field indicator */
.ilpc-delivery-details-form label:after {
    content: " *";
    color: #dc3545;
}

.ilpc-delivery-details-form label:not([for*="required"]):after {
    content: "";
}

/* Combined Delivery & Payment Step */
.ilpc-delivery-payment {
    padding: 30px;
}

.ilpc-delivery-section,
.ilpc-payment-section {
    margin-bottom: 40px;
}

.ilpc-delivery-section h4,
.ilpc-payment-section h4 {
    font-size: 20px;
    font-weight: 600;
    margin: 0 0 15px 0;
    color: #2c3e50;
    padding-bottom: 10px;
    border-bottom: 2px solid #e1e5e9;
}

.ilpc-delivery-section p {
    color: #666;
    margin-bottom: 20px;
    font-size: 14px;
    line-height: 1.5;
}

/* Update existing step padding */
.ilpc-tier-selection,
.ilpc-stem-selection {
    padding: 30px;
}

/* Weekly Plan Builder */
.ilpc-weekly-builder {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.ilpc-weekly-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin: 30px 0;
}

.ilpc-weekly-option {
    background: #fff;
    border: 2px solid #e1e5e9;
    border-radius: 12px;
    padding: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.ilpc-weekly-option:hover {
    border-color: #667eea;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.15);
}

.ilpc-weekly-option.selected {
    border-color: #667eea;
    background: linear-gradient(135deg, #f8fbff 0%, #e8f4ff 100%);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.2);
}

.ilpc-weekly-option.selected::before {
    content: "✓";
    position: absolute;
    top: 15px;
    right: 15px;
    background: #667eea;
    color: white;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: bold;
}

.ilpc-weekly-header {
    text-align: center;
    margin-bottom: 20px;
}

.ilpc-weekly-header h4 {
    font-size: 24px;
    font-weight: 600;
    color: #2c3e50;
    margin: 0 0 10px 0;
}

.ilpc-weekly-price {
    font-size: 28px;
    font-weight: 700;
    color: #667eea;
    margin: 0;
}

.ilpc-weekly-features {
    text-align: center;
}

.ilpc-weekly-features p {
    margin: 8px 0;
    color: #666;
    font-size: 14px;
    line-height: 1.4;
}

.ilpc-weekly-features p:first-child {
    font-weight: 600;
    color: #2c3e50;
}

/* Weekly Plan Step Padding */
.ilpc-plan-selection {
    padding: 30px;
}

/* Weekly Plan Delivery & Payment */
.ilpc-weekly-builder .ilpc-delivery-payment {
    padding: 30px;
}

.ilpc-weekly-builder .ilpc-delivery-section,
.ilpc-weekly-builder .ilpc-payment-section {
    margin-bottom: 40px;
}

.ilpc-weekly-builder .ilpc-delivery-section h4,
.ilpc-weekly-builder .ilpc-payment-section h4 {
    font-size: 20px;
    font-weight: 600;
    margin: 0 0 15px 0;
    color: #2c3e50;
    padding-bottom: 10px;
    border-bottom: 2px solid #e1e5e9;
}

.ilpc-weekly-builder .ilpc-delivery-section p {
    color: #666;
    margin-bottom: 20px;
    font-size: 14px;
    line-height: 1.5;
}

/* Weekly Plan Payment Details */
.ilpc-weekly-builder .ilpc-payment-details {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 30px;
}

.ilpc-weekly-builder .ilpc-payment-details h4 {
    font-size: 18px;
    font-weight: 600;
    margin: 0 0 15px 0;
    color: #2c3e50;
    border: none;
    padding: 0;
}

.ilpc-weekly-builder .ilpc-payment-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid #e1e5e9;
}

.ilpc-weekly-builder .ilpc-payment-row:last-child {
    border-bottom: none;
}

.ilpc-weekly-builder .ilpc-payment-row.total {
    font-weight: 600;
    font-size: 16px;
    color: #667eea;
    border-top: 2px solid #667eea;
    margin-top: 10px;
    padding-top: 15px;
}

/* Weekly Plan Options */
.ilpc-weekly-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin: 30px 0;
}

.ilpc-weekly-option {
    background: #f8f9fa;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    padding: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}

.ilpc-weekly-option:hover {
    border-color: #667eea;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.1);
}

.ilpc-weekly-option.selected {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-color: #667eea;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.3);
}

.ilpc-weekly-header {
    margin-bottom: 20px;
}

.ilpc-weekly-header h4 {
    font-size: 1.5em;
    font-weight: 700;
    margin: 0 0 10px 0;
    color: inherit;
}

.ilpc-weekly-price {
    font-size: 1.3em;
    font-weight: 600;
    color: inherit;
}

.ilpc-weekly-features {
    text-align: left;
}

.ilpc-weekly-features p {
    margin: 8px 0;
    font-size: 0.95em;
    color: inherit;
}

.ilpc-weekly-features p:before {
    content: "✓ ";
    font-weight: bold;
    color: inherit;
}

/* Weekly Plan Billing Information - Updated to match actual HTML */
.ilpc-weekly-builder .ilpc-card-section {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
}

.ilpc-weekly-builder .ilpc-card-section h4 {
    margin: 0 0 15px 0;
    color: #333;
    font-size: 1.2em;
    font-weight: 500;
}

.ilpc-weekly-builder .ilpc-card-section .ilpc-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 15px;
}

.ilpc-weekly-builder .ilpc-card-section .ilpc-form-row.full-width {
    grid-template-columns: 1fr;
}

.ilpc-weekly-builder .ilpc-card-section label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
    color: #333;
}

.ilpc-weekly-builder .ilpc-card-section input,
.ilpc-weekly-builder .ilpc-card-section textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    transition: border-color 0.3s ease;
}

.ilpc-weekly-builder .ilpc-card-section input:focus,
.ilpc-weekly-builder .ilpc-card-section textarea:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.ilpc-weekly-builder .ilpc-card-section input.error,
.ilpc-weekly-builder .ilpc-card-section textarea.error {
    border-color: #dc3545;
    box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.1);
}

/* Weekly Plan Stripe Elements */
.ilpc-weekly-builder .ilpc-card-element-container {
    margin: 20px 0;
}

.ilpc-weekly-builder .ilpc-card-element-container label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
    color: #333;
}

.ilpc-weekly-builder #ilpc-card-element {
    padding: 12px 16px;
    border: 2px solid #e1e5e9;
    border-radius: 8px;
    background: white;
    font-size: 16px;
    transition: all 0.3s ease;
}

.ilpc-weekly-builder #ilpc-card-element:focus-within {
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.ilpc-weekly-builder #ilpc-card-element.StripeElement--focus {
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.ilpc-weekly-builder #ilpc-card-element.StripeElement--invalid {
    border-color: #dc3545;
    box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.1);
}

.ilpc-weekly-builder #ilpc-card-errors {
    margin-top: 10px;
    padding: 10px 12px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
}

/* Weekly Plan Payment Terms */
.ilpc-weekly-builder .ilpc-payment-terms {
    margin: 20px 0;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e1e5e9;
}

.ilpc-weekly-builder .ilpc-payment-terms label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 14px;
    line-height: 1.5;
    color: #333;
    cursor: pointer;
}

.ilpc-weekly-builder .ilpc-payment-terms input[type="checkbox"] {
    margin: 0;
    width: 18px;
    height: 18px;
    accent-color: #667eea;
}

/* Weekly Plan Delivery Details Form */
.ilpc-weekly-builder .ilpc-delivery-details-form {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 25px;
    margin: 20px 0;
    border: 1px solid #e1e5e9;
}

.ilpc-weekly-builder .ilpc-delivery-details-form .ilpc-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.ilpc-weekly-builder .ilpc-delivery-details-form .ilpc-form-row.full-width {
    grid-template-columns: 1fr;
}

.ilpc-weekly-builder .ilpc-delivery-details-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #2c3e50;
    font-size: 14px;
}

.ilpc-weekly-builder .ilpc-delivery-details-form input,
.ilpc-weekly-builder .ilpc-delivery-details-form select,
.ilpc-weekly-builder .ilpc-delivery-details-form textarea {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e1e5e9;
    border-radius: 8px;
    font-size: 16px;
    color: #2c3e50;
    background: white;
    transition: all 0.3s ease;
}

.ilpc-weekly-builder .ilpc-delivery-details-form input:focus,
.ilpc-weekly-builder .ilpc-delivery-details-form select:focus,
.ilpc-weekly-builder .ilpc-delivery-details-form textarea:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.ilpc-weekly-builder .ilpc-delivery-details-form input::placeholder,
.ilpc-weekly-builder .ilpc-delivery-details-form textarea::placeholder {
    color: #6c757d;
    opacity: 0.7;
}

.ilpc-weekly-builder .ilpc-delivery-details-form select {
    cursor: pointer;
}

.ilpc-weekly-builder .ilpc-delivery-details-form textarea {
    resize: vertical;
    min-height: 80px;
}

/* Required field indicator for weekly plan */
.ilpc-weekly-builder .ilpc-delivery-details-form label:after {
    content: " *";
    color: #dc3545;
}

.ilpc-weekly-builder .ilpc-delivery-details-form label:not([for*="required"]):after {
    content: "";
}

/* Add to Selection Button Styling - More Specific */
.ilpc-builder .add-to-selection,
.ilpc-product-card .add-to-selection,
button.add-to-selection {
    width: 100%;
    padding: 12px 24px;
    font-size: 14px;
    font-weight: 600;
    border: 2px solid #667eea;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    text-align: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
    color: white !important;
    border-color: #667eea !important;
    margin-top: 15px;
    font-family: inherit;
}

.ilpc-builder .add-to-selection:hover,
.ilpc-product-card .add-to-selection:hover,
button.add-to-selection:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.3);
}

.ilpc-builder .add-to-selection.selected,
.ilpc-product-card .add-to-selection.selected,
button.add-to-selection.selected {
    background: #28a745 !important;
    border-color: #28a745 !important;
    color: white !important;
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(40, 167, 69, 0.3);
}

.ilpc-builder .add-to-selection.selected:hover,
.ilpc-product-card .add-to-selection.selected:hover,
button.add-to-selection.selected:hover {
    background: #218838 !important;
    border-color: #218838 !important;
    transform: scale(1.05) translateY(-2px);
    box-shadow: 0 6px 16px rgba(40, 167, 69, 0.4);
}

/* Remove any theme button overrides */
.add-to-selection::after { 
    display: none !important; 
    content: none !important; 
}

/* Responsive adjustments for weekly plan */
@media (max-width: 768px) {
    .ilpc-weekly-builder .ilpc-card-section .ilpc-form-row {
        grid-template-columns: 1fr;
    }
    
    .ilpc-weekly-builder .ilpc-delivery-details-form .ilpc-form-row {
        grid-template-columns: 1fr;
    }
}

/* Your Selection Section Styling */
.ilpc-selection-summary {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 20px;
    margin-top: 20px;
    border: 1px solid #e9ecef;
}

.ilpc-selection-summary h4 {
    margin: 0 0 15px 0;
    color: #333;
    font-size: 1.2em;
    font-weight: 600;
}

.selected-product-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #e9ecef;
}

.selected-product-item:last-child {
    border-bottom: none;
}

.selected-product-name {
    font-weight: 500;
    color: #333;
    flex: 1;
}

.selected-product-price {
    font-weight: 600;
    color: #28a745;
    margin: 0 15px;
}

.remove-product {
    background: #dc3545;
    color: white;
    border: none;
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 12px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.remove-product:hover {
    background: #c82333;
}

.ilpc-selection-count {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #e9ecef;
    font-weight: 600;
    color: #666;
}

/* Delivery Forms Styling */
.delivery-form {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
    border: 1px solid #e9ecef;
}

.delivery-form h5 {
    margin: 0 0 15px 0;
    color: #333;
    font-size: 1.1em;
    font-weight: 600;
}

.delivery-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 15px;
}

.delivery-form-row.full-width {
    grid-template-columns: 1fr;
}

.delivery-form label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
    color: #333;
    font-size: 14px;
}

.delivery-form input,
.delivery-form textarea,
.delivery-form select {
    width: 100%;
    padding: 10px 12px;
    border: 2px solid #e1e5e9;
    border-radius: 6px;
    font-size: 14px;
    color: #2c3e50;
    background: white;
    transition: all 0.3s ease;
}

.delivery-form input:focus,
.delivery-form textarea:focus,
.delivery-form select:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.delivery-form input::placeholder,
.delivery-form textarea::placeholder {
    color: #6c757d;
    opacity: 0.7;
}

.delivery-form textarea {
    resize: vertical;
    min-height: 80px;
}

.delivery-form select {
    cursor: pointer;
}

/* Required field indicator */
.delivery-form label:after {
    content: " *";
    color: #dc3545;
}

.delivery-form label:not([for*="required"]):after {
    content: "";
}

/* Copy recipient button */
.delivery-copy-actions {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #e9ecef;
}

#ilpc-copy-first-recipient {
    background: #6c757d;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 14px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

#ilpc-copy-first-recipient:hover {
    background: #5a6268;
}

/* Payment Summary Styling */
.ilpc-payment-breakdown {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
    border: 1px solid #e9ecef;
}

.ilpc-payment-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid #e9ecef;
}

.ilpc-payment-row:last-child {
    border-bottom: none;
    font-weight: 600;
    font-size: 1.1em;
}

.ilpc-payment-row.total {
    border-top: 2px solid #667eea;
    padding-top: 15px;
    margin-top: 10px;
    font-weight: 700;
    font-size: 1.2em;
    color: #333;
}

/* Billing Information Styling */
.ilpc-billing-info {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
    border: 1px solid #e9ecef;
}

.ilpc-billing-info h4 {
    margin: 0 0 15px 0;
    color: #333;
    font-size: 1.2em;
    font-weight: 600;
}

.ilpc-billing-fields .ilpc-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 15px;
}

.ilpc-billing-fields .ilpc-form-row.full-width {
    grid-template-columns: 1fr;
}

.ilpc-billing-fields label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
    color: #333;
    font-size: 14px;
}

.ilpc-billing-fields input,
.ilpc-billing-fields textarea {
    width: 100%;
    padding: 10px 12px;
    border: 2px solid #e1e5e9;
    border-radius: 6px;
    font-size: 14px;
    color: #2c3e50;
    background: white;
    transition: all 0.3s ease;
}

.ilpc-billing-fields input:focus,
.ilpc-billing-fields textarea:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.ilpc-billing-fields input::placeholder,
.ilpc-billing-fields textarea::placeholder {
    color: #6c757d;
    opacity: 0.7;
}

.ilpc-billing-fields textarea {
    resize: vertical;
    min-height: 80px;
}

/* Error states */
.delivery-form input.error,
.delivery-form textarea.error,
.delivery-form select.error,
.ilpc-billing-fields input.error,
.ilpc-billing-fields textarea.error {
    border-color: #dc3545;
    box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.1);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .delivery-form-row,
    .ilpc-billing-fields .ilpc-form-row {
        grid-template-columns: 1fr;
    }
    
    .selected-product-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .selected-product-price {
        margin: 0;
    }
}

/* Dashboard Tabs */
.ilpc-dashboard-tabs {
    margin-top: 20px;
}

.ilpc-tab-nav {
    display: flex;
    border-bottom: 2px solid #e0e0e0;
    margin-bottom: 20px;
    background: #fff;
    border-radius: 8px 8px 0 0;
    overflow: hidden;
}

.ilpc-tab-btn {
    flex: 1;
    background: #f8f9fa;
    border: none;
    padding: 15px 20px;
    font-size: 16px;
    font-weight: 500;
    color: #666;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border-bottom: 3px solid transparent;
}

.ilpc-tab-btn:hover {
    background: #e9ecef;
    color: #333;
}

.ilpc-tab-btn.ilpc-tab-active {
    background: #fff;
    color: #667eea;
    border-bottom-color: #667eea;
    font-weight: 600;
}

.ilpc-tab-icon {
    font-size: 18px;
}

.ilpc-tab-content {
    background: #fff;
    border-radius: 0 0 8px 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    overflow: hidden;
}

.ilpc-tab-pane {
    display: none;
    padding: 20px;
}

.ilpc-tab-pane.ilpc-tab-active {
    display: block;
}

/* Frontend Upcoming Deliveries Section */
.ilpc-upcoming-deliveries-section {
    margin-top: 0;
    padding: 0;
    background: transparent;
    border-radius: 0;
    box-shadow: none;
}

.ilpc-upcoming-deliveries-section h3 {
    margin-top: 0;
    margin-bottom: 20px;
    color: #333;
    font-size: 18px;
    font-weight: 600;
}

.ilpc-frontend-upcoming-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.ilpc-frontend-upcoming-item {
    display: flex;
    align-items: flex-start;
    padding: 15px;
    background: #f9f9f9;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.ilpc-frontend-upcoming-item:hover {
    border-color: #667eea;
    box-shadow: 0 2px 8px rgba(102,126,234,0.1);
}

.ilpc-frontend-upcoming-icon {
    font-size: 24px;
    margin-right: 15px;
    margin-top: 2px;
    flex-shrink: 0;
}

.ilpc-frontend-upcoming-content {
    flex: 1;
    min-width: 0;
}

.ilpc-frontend-upcoming-title {
    font-weight: 600;
    font-size: 16px;
    margin-bottom: 8px;
    color: #333;
}

.ilpc-frontend-upcoming-meta {
    font-size: 14px;
    color: #666;
    margin-bottom: 8px;
    line-height: 1.4;
}

.ilpc-frontend-upcoming-meta strong {
    color: #333;
}

.ilpc-frontend-upcoming-address {
    font-size: 13px;
    color: #888;
    line-height: 1.4;
}

.ilpc-frontend-upcoming-actions {
    text-align: right;
    margin-left: 15px;
    flex-shrink: 0;
}

.ilpc-frontend-skip-delivery {
    background: #667eea;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-bottom: 8px;
}

.ilpc-frontend-skip-delivery:hover {
    background: #5a6fd8;
    transform: translateY(-1px);
}

.ilpc-frontend-skip-delivery:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
}

.ilpc-frontend-skip-count {
    font-size: 11px;
    color: #666;
    margin-top: 5px;
}

.ilpc-frontend-skip-limit {
    font-size: 11px;
    color: #dc3232;
    font-weight: 600;
    margin-bottom: 8px;
    display: block;
}

/* Mobile responsiveness for upcoming deliveries */
@media (max-width: 768px) {
    .ilpc-frontend-upcoming-item {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .ilpc-frontend-upcoming-actions {
        margin-left: 0;
        margin-top: 15px;
        text-align: left;
        width: 100%;
    }
    
    .ilpc-frontend-upcoming-icon {
        margin-bottom: 10px;
    }
    
    /* Mobile responsiveness for tabs */
    .ilpc-tab-nav {
        flex-direction: column;
        border-bottom: none;
        border-radius: 8px;
        margin-bottom: 15px;
    }
    
    .ilpc-tab-btn {
        border-bottom: 1px solid #e0e0e0;
        border-radius: 0;
    }
    
    .ilpc-tab-btn:first-child {
        border-radius: 8px 8px 0 0;
    }
    
    .ilpc-tab-btn:last-child {
        border-radius: 0 0 8px 8px;
        border-bottom: none;
    }
    
    .ilpc-tab-btn.ilpc-tab-active {
        border-bottom-color: #667eea;
    }
    
    .ilpc-tab-content {
        border-radius: 8px;
    }
}
