/* Pure Meal Prep Subscriptions - Frontend Styles */

.pmps-subscription-actions {
    margin-top: 20px;
    padding: 15px;
    background-color: #f9f9f9;
    border-radius: 5px;
    display: flex;
    gap: 10px;
}

.pmps-pause-btn,
.pmps-cancel-btn {
    padding: 10px 20px !important;
    font-size: 14px !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
}

.pmps-pause-btn:hover {
    background-color: #4CAF50 !important;
    color: white !important;
}

.pmps-cancel-btn:hover {
    background-color: #ff6b6b !important;
    color: white !important;
}

/* Modal Styles */
.pmps-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    animation: fadeIn 0.3s ease;
}

.pmps-modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.pmps-modal-content {
    background-color: white;
    padding: 30px;
    border-radius: 10px;
    max-width: 600px;
    width: 90%;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    animation: slideIn 0.3s ease;
}

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

.pmps-modal-header {
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 10px;
    color: #333;
}

.pmps-modal-subheader {
    font-size: 16px;
    color: #666;
    margin-bottom: 20px;
}

.pmps-reason-group {
    margin: 20px 0;
}

.pmps-reason-option {
    padding: 15px;
    margin: 10px 0;
    border: 2px solid #e0e0e0;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 10px;
}

.pmps-reason-option:hover {
    border-color: #0073aa;
    background-color: #f0f7ff;
}

.pmps-reason-option.active {
    border-color: #0073aa;
    background-color: #e8f4f8;
    font-weight: bold;
}

.pmps-reason-icon {
    font-size: 20px;
}

.pmps-reason-text {
    flex: 1;
}

.pmps-flow-options {
    margin: 20px 0;
    padding: 15px;
    background-color: #f9f9f9;
    border-left: 4px solid #0073aa;
    border-radius: 5px;
}

.pmps-flow-option {
    padding: 12px;
    margin: 8px 0;
    background-color: white;
    border: 1px solid #ddd;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.pmps-flow-option:hover {
    background-color: #0073aa;
    color: white;
    border-color: #0073aa;
}

.pmps-button-group {
    display: flex;
    gap: 10px;
    margin-top: 20px;
    justify-content: flex-end;
}

.pmps-btn {
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
    font-weight: bold;
    transition: all 0.3s ease;
}

.pmps-btn-primary {
    background-color: #0073aa;
    color: white;
}

.pmps-btn-primary:hover {
    background-color: #005a87;
}

.pmps-btn-secondary {
    background-color: #ddd;
    color: #333;
}

.pmps-btn-secondary:hover {
    background-color: #ccc;
}

.pmps-confirmation {
    text-align: center;
    padding: 30px 0;
}

.pmps-confirmation-icon {
    font-size: 50px;
    margin-bottom: 15px;
}

.pmps-confirmation-title {
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 10px;
    color: #4CAF50;
}

.pmps-confirmation-message {
    color: #666;
    margin-bottom: 20px;
    line-height: 1.6;
}

.pmps-details {
    background-color: #f9f9f9;
    padding: 15px;
    border-radius: 5px;
    margin: 20px 0;
    text-align: left;
}

.pmps-detail-row {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid #e0e0e0;
}

.pmps-detail-row:last-child {
    border-bottom: none;
}

.pmps-detail-label {
    font-weight: bold;
    color: #333;
}

.pmps-detail-value {
    color: #666;
}

.pmps-loading {
    display: none;
    text-align: center;
    padding: 20px;
}

.pmps-loading.active {
    display: block;
}

.pmps-spinner {
    border: 4px solid #f3f3f3;
    border-top: 4px solid #0073aa;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin: 0 auto 15px;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

.pmps-error {
    background-color: #ffebee;
    color: #c62828;
    padding: 15px;
    border-radius: 5px;
    margin: 15px 0;
    border-left: 4px solid #c62828;
}

.pmps-success {
    background-color: #e8f5e9;
    color: #2e7d32;
    padding: 15px;
    border-radius: 5px;
    margin: 15px 0;
    border-left: 4px solid #2e7d32;
}

.pmps-message {
    background-color: #e3f2fd;
    color: #1565c0;
    padding: 15px;
    border-radius: 5px;
    margin: 15px 0;
    border-left: 4px solid #1565c0;
}

/* Responsive */
@media (max-width: 600px) {
    .pmps-modal-content {
        padding: 20px;
        width: 95%;
    }

    .pmps-button-group {
        flex-direction: column;
    }

    .pmps-subscription-actions {
        flex-direction: column;
    }

    .pmps-reason-option {
        flex-direction: column;
        text-align: center;
    }

    .pmps-detail-row {
        flex-direction: column;
        gap: 5px;
    }
}
