/**
 * Bee1 Order Cancellation - Frontend CSS
 */

.bee1-cancel-wrapper {
    direction: rtl;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

/* Success Message */
.bee1-success-message {
    text-align: center;
    padding: 60px 20px;
    background: #f8fff8;
    border: 2px solid #28a745;
    border-radius: 10px;
    margin-bottom: 30px;
}

.bee1-success-message .success-icon {
    font-size: 64px;
    margin-bottom: 20px;
}

.bee1-success-message h2 {
    color: #28a745;
    margin-bottom: 15px;
}

.bee1-success-message .request-id {
    color: #0073aa;
    font-size: 1.2em;
}

/* Container */
.bee1-cancel-container {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 30px;
    align-items: start;
}

@media (max-width: 768px) {
    .bee1-cancel-container {
        grid-template-columns: 1fr;
    }
}

/* Policy Column */
.bee1-policy-column {
    background: #f8f9fa;
    padding: 25px;
    border-radius: 10px;
    border: 1px solid #e9ecef;
}

.bee1-policy-column h3 {
    margin-top: 0;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #dee2e6;
    color: #333;
}

.bee1-policy-content {
    font-size: 14px;
    line-height: 1.8;
    color: #555;
}

.bee1-policy-content h4 {
    color: #333;
    margin-top: 20px;
}

.bee1-policy-content ul {
    margin-right: 20px;
}

/* Form Column */
.bee1-form-column {
    background: #fff;
    padding: 25px;
    border-radius: 10px;
    border: 1px solid #e9ecef;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.bee1-form-column h3 {
    margin-top: 0;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid #0073aa;
    color: #333;
}

/* No Orders Message */
.bee1-no-orders {
    text-align: center;
    padding: 40px 20px;
    background: #fff3cd;
    border-radius: 8px;
    color: #856404;
}

/* Form Sections */
.bee1-form-section {
    margin-bottom: 30px;
    padding-bottom: 25px;
    border-bottom: 1px solid #eee;
}

.bee1-form-section:last-of-type {
    border-bottom: none;
}

.bee1-form-section h4 {
    margin-top: 0;
    margin-bottom: 15px;
    color: #333;
    font-size: 16px;
}

/* Form Rows */
.bee1-form-row {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
}

@media (max-width: 480px) {
    .bee1-form-row {
        flex-direction: column;
    }
}

/* Form Fields */
.bee1-form-field {
    flex: 1;
}

.bee1-form-field.full-width {
    width: 100%;
}

.bee1-form-field label {
    display: block;
    margin-bottom: 6px;
    font-weight: 600;
    color: #444;
    font-size: 14px;
}

.bee1-form-field .required {
    color: #e74c3c;
}

.bee1-form-field input,
.bee1-form-field select,
.bee1-form-field textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.bee1-form-field input:focus,
.bee1-form-field select:focus,
.bee1-form-field textarea:focus {
    border-color: #0073aa;
    box-shadow: 0 0 0 3px rgba(0,115,170,0.15);
    outline: none;
}

/* Order Items */
.bee1-order-items {
    margin-top: 15px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
}

.bee1-order-items > label {
    display: block;
    margin-bottom: 10px;
    font-weight: 600;
}

.bee1-items-list {
    max-height: 300px;
    overflow-y: auto;
}

.bee1-item-checkbox {
    display: flex;
    align-items: center;
    padding: 12px;
    background: #fff;
    border: 1px solid #e9ecef;
    border-radius: 6px;
    margin-bottom: 8px;
    cursor: pointer;
    transition: border-color 0.3s, background 0.3s;
}

.bee1-item-checkbox:hover {
    border-color: #0073aa;
    background: #f0f7fc;
}

.bee1-item-checkbox input[type="checkbox"] {
    width: 20px;
    height: 20px;
    margin-left: 12px;
}

.bee1-item-checkbox.selected {
    border-color: #0073aa;
    background: #e8f4f8;
}

.bee1-item-info {
    flex: 1;
}

.bee1-item-name {
    font-weight: 600;
    color: #333;
    margin-bottom: 3px;
}

.bee1-item-meta {
    font-size: 12px;
    color: #666;
}

.bee1-item-price {
    font-weight: bold;
    color: #28a745;
}

/* Action Options */
.bee1-action-options {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

@media (max-width: 600px) {
    .bee1-action-options {
        grid-template-columns: 1fr;
    }
}

.bee1-action-option {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px 15px;
    background: #f8f9fa;
    border: 2px solid #e9ecef;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s;
    text-align: center;
}

.bee1-action-option:hover {
    border-color: #0073aa;
    background: #f0f7fc;
}

.bee1-action-option input[type="radio"] {
    display: none;
}

.bee1-action-option input[type="radio"]:checked + .option-icon,
.bee1-action-option input[type="radio"]:checked ~ .option-text {
    color: #0073aa;
}

.bee1-action-option:has(input:checked) {
    border-color: #0073aa;
    background: #e8f4f8;
    box-shadow: 0 0 0 3px rgba(0,115,170,0.15);
}

.option-icon {
    font-size: 32px;
    margin-bottom: 10px;
}

.option-text {
    font-size: 13px;
    font-weight: 600;
    color: #333;
}

/* Submit */
.bee1-form-submit {
    margin-top: 25px;
}

.bee1-submit-btn {
    width: 100%;
    padding: 15px 30px !important;
    font-size: 16px !important;
    font-weight: bold;
    background: #0073aa !important;
    color: #fff !important;
    border: none !important;
    border-radius: 8px !important;
    cursor: pointer;
    transition: background 0.3s !important;
}

.bee1-submit-btn:hover {
    background: #005177 !important;
}

.bee1-submit-btn:disabled {
    background: #ccc !important;
    cursor: not-allowed;
}

/* Form Errors */
.bee1-form-errors {
    margin-top: 15px;
    padding: 15px;
    background: #f8d7da;
    border: 1px solid #f5c6cb;
    border-radius: 6px;
    color: #721c24;
}

.bee1-form-errors ul {
    margin: 0;
    padding-right: 20px;
}

/* Loading State */
.bee1-loading {
    position: relative;
    pointer-events: none;
}

.bee1-loading::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255,255,255,0.7);
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.bee1-order-items {
    animation: fadeIn 0.3s ease;
}

/* Select All Items */
.bee1-select-all {
    margin-bottom: 10px;
    padding: 10px;
    background: #e9ecef;
    border-radius: 6px;
}

.bee1-select-all label {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-weight: 600;
}

.bee1-select-all input {
    margin-left: 8px;
}
