/* SupplyClub PRO Membership Page Styles */

/* Base Layout - Full Width */
.dpe-pro-membership-page,
.dpe-cancellation-page,
.dpe-confirmation-page {
    width: 100%;
    max-width: none;
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    line-height: 1.6;
}

/* Make WooCommerce content full width */
.woocommerce-MyAccount-content {
    width: 100% !important;
    max-width: none !important;
}

/* Back Link */
.dpe-back-link {
    margin-bottom: 20px;
}

.dpe-back-link a {
    display: inline-flex;
    align-items: center;
    color: #6b7280;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.2s;
}

.dpe-back-link a:hover {
    color: #059669;
}

.dpe-back-link .dashicons {
    margin-right: 5px;
    font-size: 16px;
}

/* Header Sections - Thinner */
.dpe-pro-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    padding: 20px 25px;
    background: linear-gradient(135deg, #059669 0%, #047857 100%);
    color: white;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(5, 150, 105, 0.2);
}

.dpe-cancel-header,
.dpe-final-warning {
    text-align: center;
    margin-bottom: 25px;
    padding: 20px 25px;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border-radius: 8px;
    border-left: 4px solid #059669;
}

.dpe-final-warning {
    background: linear-gradient(135deg, #fef2f2 0%, #fee2e2 100%);
    border-left-color: #dc2626;
}

.dpe-pro-status h2,
.dpe-cancel-header h2,
.dpe-final-warning h2 {
    margin: 0 0 10px 0;
    font-size: 28px;
    font-weight: 700;
}

.dpe-pro-status h2 {
    color: white;
}

.dpe-cancel-header h2 {
    color: #1f2937;
}

.dpe-final-warning h2 {
    color: #dc2626;
}

.dpe-subtitle {
    margin: 0;
    opacity: 0.8;
    font-size: 16px;
}

.dpe-status-badge {
    display: inline-flex;
    align-items: center;
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.25);
    border-radius: 25px;
    font-size: 14px;
    font-weight: 600;
    backdrop-filter: blur(10px);
}

.dpe-status-badge .dashicons {
    margin-right: 6px;
    font-size: 18px;
}

.dpe-member-since {
    text-align: right;
    opacity: 0.9;
    font-size: 14px;
}

/* Warning Icons */
.dpe-warning-icon,
.dpe-reminder-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    background: #059669;
    border-radius: 50%;
    margin: 0 auto 20px;
}

.dpe-final-warning .dpe-warning-icon {
    background: #dc2626;
}

.dpe-warning-icon .dashicons,
.dpe-reminder-icon .dashicons {
    color: white;
    font-size: 30px;
}

/* Content Sections - Thinner */
.dpe-benefits-section,
.dpe-savings-section,
.dpe-recent-orders,
.dpe-lose-section,
.dpe-cost-impact,
.dpe-last-chance,
.dpe-email-verification {
    margin-bottom: 25px;
    padding: 20px 25px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    border: 1px solid #e5e7eb;
}

.dpe-benefits-section h3,
.dpe-savings-section h3,
.dpe-recent-orders h3,
.dpe-lose-section h3,
.dpe-cost-impact h3,
.dpe-last-chance h3,
.dpe-email-verification h3 {
    margin: 0 0 25px 0;
    color: #1f2937;
    font-size: 22px;
    font-weight: 700;
    position: relative;
    padding-bottom: 10px;
}

.dpe-benefits-section h3:after,
.dpe-savings-section h3:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background: #059669;
    border-radius: 2px;
}

/* Benefits Grid - 4 Columns, Compact */
.dpe-benefits-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
}

.dpe-benefit-card {
    padding: 15px 10px;
    background: linear-gradient(135deg, #f0fdf4 0%, #f7fee7 100%);
    border: 2px solid #d1fae5;
    border-radius: 8px;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.dpe-benefit-card:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #059669 0%, #10b981 100%);
}

.dpe-benefit-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(5, 150, 105, 0.15);
    border-color: #059669;
}

.dpe-benefit-card .dashicons {
    font-size: 24px !important;
    color: #059669;
    margin-bottom: 8px;
    padding: 10px;
    background: white;
    border-radius: 50%;
    box-shadow: 0 3px 10px rgba(5, 150, 105, 0.2);
    width: 44px !important;
    height: 44px !important;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    font-family: dashicons !important;
    text-decoration: none !important;
    line-height: 1 !important;
}

.dpe-benefit-card h4 {
    margin: 0;
    color: #1f2937;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.3;
}

/* Remove descriptions for now */
.dpe-benefit-card p {
    display: none;
}

/* Savings Stats */
.dpe-savings-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 25px;
}

.dpe-stat-card {
    padding: 25px;
    background: white;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
}

.dpe-stat-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.dpe-stat-card.dpe-highlight {
    border-color: #059669;
    background: linear-gradient(135deg, #f0fdf4 0%, #ecfdf5 100%);
    position: relative;
}

.dpe-stat-card.dpe-highlight:before {
    content: '★';
    position: absolute;
    top: -10px;
    right: -10px;
    background: #059669;
    color: white;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
}

.dpe-stat-number {
    font-size: 36px;
    font-weight: 800;
    color: #059669;
    margin-bottom: 8px;
    text-shadow: 0 2px 4px rgba(5, 150, 105, 0.1);
}

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

/* Orders List */
.dpe-orders-list {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    overflow: hidden;
}

.dpe-order-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    border-bottom: 1px solid #e5e7eb;
    transition: background-color 0.2s;
    background: white;
}

.dpe-order-item:hover {
    background-color: #f0fdf4;
}

.dpe-order-item:last-child {
    border-bottom: none;
}

.dpe-order-info {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.dpe-order-info strong {
    color: #1f2937;
    font-weight: 600;
}

.dpe-order-date {
    color: #6b7280;
    font-size: 14px;
}

.dpe-order-total {
    text-align: right;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.dpe-saved-amount {
    color: #059669;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.dpe-order-amount {
    font-weight: 700;
    color: #1f2937;
    font-size: 16px;
}

/* Action Buttons */
.dpe-membership-actions {
    margin-top: 40px;
    padding: 30px;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border-radius: 12px;
    border: 1px solid #e5e7eb;
}

.dpe-action-buttons {
    display: flex;
    gap: 20px;
    margin-bottom: 25px;
}

.dpe-shop-button {
    background: linear-gradient(135deg, #059669 0%, #047857 100%) !important;
    border: none !important;
    color: white !important;
    padding: 15px 30px !important;
    border-radius: 8px !important;
    font-weight: 600 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    transition: all 0.3s ease !important;
    box-shadow: 0 4px 15px rgba(5, 150, 105, 0.3) !important;
}

.dpe-shop-button:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 8px 25px rgba(5, 150, 105, 0.4) !important;
}

.dpe-manage-button {
    background: white !important;
    border: 2px solid #d1d5db !important;
    color: #374151 !important;
    padding: 15px 30px !important;
    border-radius: 8px !important;
    font-weight: 600 !important;
    transition: all 0.3s ease !important;
}

.dpe-manage-button:hover {
    background: #f9fafb !important;
    border-color: #9ca3af !important;
    transform: translateY(-1px) !important;
}

/* Manage Options */
.dpe-manage-options {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 25px;
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.dpe-manage-content h4 {
    margin: 0 0 25px 0;
    color: #1f2937;
    font-size: 18px;
    font-weight: 600;
}

.dpe-option-item {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 20px 0;
    border-bottom: 1px solid #f3f4f6;
    transition: all 0.2s ease;
}

.dpe-option-item:hover {
    background: #f9fafb;
    margin: 0 -25px;
    padding: 20px 25px;
    border-radius: 8px;
}

.dpe-option-item:last-child {
    border-bottom: none;
}

.dpe-option-item .dashicons {
    font-size: 28px;
    color: #6b7280;
    flex-shrink: 0;
    padding: 10px;
    background: #f3f4f6;
    border-radius: 50%;
}

.dpe-cancel-option .dashicons {
    color: #dc2626;
    background: #fef2f2;
}

.dpe-option-item > div {
    flex: 1;
}

.dpe-option-item strong {
    display: block;
    margin: 0 0 5px 0;
    color: #1f2937;
    font-size: 16px;
    font-weight: 600;
}

.dpe-option-item p {
    margin: 0;
    color: #6b7280;
    font-size: 14px;
}

/* Buttons */
.dpe-cancel-button {
    background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%) !important;
    border: none !important;
    color: white !important;
    padding: 12px 25px !important;
    border-radius: 8px !important;
    font-weight: 600 !important;
    transition: all 0.3s ease !important;
}

.dpe-cancel-button:hover {
    transform: translateY(-1px) !important;
    box-shadow: 0 5px 15px rgba(220, 38, 38, 0.3) !important;
}

.button-secondary {
    background: white !important;
    border: 2px solid #d1d5db !important;
    color: #374151 !important;
    padding: 12px 20px !important;
    border-radius: 8px !important;
    transition: all 0.2s ease !important;
}

.button-secondary:hover {
    background: #f9fafb !important;
    border-color: #9ca3af !important;
    color: #1f2937 !important;
}

/* Cancellation Flow Styles */
.dpe-savings-reminder {
    text-align: center;
    margin-bottom: 25px;
    padding: 20px 25px;
    background: linear-gradient(135deg, #f0fdf4 0%, #ecfdf5 100%);
    border-radius: 8px;
    border: 2px solid #d1fae5;
}

.dpe-savings-reminder .dpe-reminder-icon {
    display: none;
}

.dpe-reminder-stats {
    display: flex;
    gap: 30px;
    justify-content: center;
}

.dpe-reminder-stat {
    text-align: center;
}

.dpe-reminder-stat strong {
    display: block;
    font-size: 24px;
    color: #059669;
    font-weight: 700;
}

.dpe-reminder-stat span {
    font-size: 12px;
    color: #6b7280;
    text-transform: uppercase;
    font-weight: 500;
}

/* Form Styles */
.dpe-reason-form,
.dpe-confirm-form {
    background: white;
    padding: 30px;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
}

.dpe-form-section {
    margin-bottom: 30px;
}

.dpe-form-section h3 {
    margin: 0 0 20px 0;
    color: #1f2937;
    font-size: 18px;
    font-weight: 600;
}

.dpe-reason-options {
    display: grid;
    gap: 15px;
}

.dpe-reason-option {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    padding: 20px;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.dpe-reason-option:hover {
    border-color: #059669;
    background: #f0fdf4;
}

.dpe-reason-option input[type="radio"]:checked + .dpe-reason-content {
    color: #059669;
}

.dpe-reason-option input[type="radio"] {
    margin-top: 3px;
}

.dpe-reason-content strong {
    display: block;
    margin-bottom: 5px;
    color: #1f2937;
    font-weight: 600;
}

.dpe-reason-content p {
    margin: 0;
    color: #6b7280;
    font-size: 14px;
}

.dpe-form-section textarea {
    width: 100%;
    padding: 15px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-family: inherit;
    resize: vertical;
    transition: border-color 0.2s;
}

.dpe-form-section textarea:focus {
    outline: none;
    border-color: #059669;
    box-shadow: 0 0 0 3px rgba(5, 150, 105, 0.1);
}

.dpe-form-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 30px;
}

/* Retention Offers */
.dpe-retention-offers {
    display: grid;
    gap: 20px;
    margin-bottom: 25px;
}

/* Split retention section - 50/50 layout */
.dpe-retention-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 25px;
}

.dpe-offer-card {
    padding: 20px 25px;
    background: white;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    position: relative;
    transition: all 0.3s ease;
}

.dpe-offer-card.dpe-featured-offer {
    border-color: #059669;
    background: linear-gradient(135deg, #f0fdf4 0%, #ecfdf5 100%);
    transform: scale(1.02);
}

.dpe-offer-badge {
    position: absolute;
    top: -10px;
    right: 20px;
    background: #dc2626;
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
}

.dpe-featured-offer .dpe-offer-badge {
    background: #059669;
}

.dpe-offer-card h3 {
    margin: 0 0 15px 0;
    color: #1f2937;
    font-size: 20px;
    font-weight: 700;
}

.dpe-offer-price {
    margin-bottom: 20px;
}

.dpe-old-price {
    text-decoration: line-through;
    color: #9ca3af;
    margin-right: 10px;
}

.dpe-new-price {
    color: #059669;
    font-size: 24px;
    font-weight: 700;
}

.dpe-offer-benefits {
    list-style: none;
    padding: 0;
    margin: 0 0 20px 0;
}

.dpe-offer-benefits li {
    padding: 8px 0;
    color: #374151;
    position: relative;
    padding-left: 25px;
}

.dpe-offer-benefits li:before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #059669;
    font-weight: bold;
}

/* Cancel Confirm Page - Split Sections */
.dpe-lose-cost-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
    margin-bottom: 25px;
}

.dpe-lose-section,
.dpe-cost-impact {
    margin-bottom: 0;
}

/* Wider input for cost calculator */
.dpe-calculator-input input {
    width: 120px;
    padding: 8px 12px;
    font-size: 16px;
}

/* Override WooCommerce number input width */
.woocommerce-js input[type=number] {
    max-width: 120px;
    min-height: 30px;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .dpe-pro-header {
        flex-direction: column;
        text-align: center;
        gap: 15px;
        padding: 15px 20px;
    }
    
    .dpe-member-since {
        text-align: center;
        margin: 0;
    }
    
    .dpe-benefits-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .dpe-savings-stats {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .dpe-action-buttons {
        flex-direction: column;
    }
    
    .dpe-option-item {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
    
    .dpe-order-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .dpe-order-total {
        text-align: left;
        flex-direction: row;
        gap: 20px;
        align-items: center;
    }
    
    .dpe-savings-reminder {
        text-align: center;
    }
    
    .dpe-reminder-stats {
        justify-content: center;
        gap: 20px;
    }
    
    .dpe-form-actions {
        flex-direction: column;
    }
    
    .dpe-retention-split,
    .dpe-lose-cost-split {
        grid-template-columns: 1fr;
        gap: 15px;
    }
}

@media (max-width: 480px) {
    .dpe-benefits-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    .dpe-benefit-card {
        padding: 12px 8px;
    }
    
    .dpe-benefit-card h4 {
        font-size: 13px;
    }
    
    .dpe-pro-header,
    .dpe-cancel-header,
    .dpe-final-warning {
        padding: 15px;
    }
    
    .dpe-benefits-section,
    .dpe-savings-section,
    .dpe-recent-orders,
    .dpe-membership-actions {
        padding: 15px;
    }
}