.algeria-cod-form {
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    margin: 20px 0;
    direction: rtl;
}

.algeria-cod-form .form-row {
    margin-bottom: 20px;
}

.algeria-cod-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    color: black;
    text-align: right;
}

.algeria-cod-form input[type="text"],
.algeria-cod-form input[type="tel"],
.algeria-cod-form select {
    width: 100%;
    padding: 12px;
    border: 2px solid #28a745;
    border-radius: 5px;
    background: white;
    color: black;
    font-size: 14px;
    text-align: right;
    box-sizing: border-box;
}

.algeria-cod-form input:focus,
.algeria-cod-form select:focus {
    outline: none;
    border-color: #218838;
    box-shadow: 0 0 5px rgba(40, 167, 69, 0.3);
}

.delivery-options {
    border: 2px solid #28a745;
    border-radius: 5px;
    padding: 15px;
    background: white;
}

.delivery-option {
    margin-bottom: 10px;
}

.delivery-option:last-child {
    margin-bottom: 0;
}

.delivery-option input[type="radio"] {
    display: none;
}

.delivery-label {
    display: flex;
    align-items: center;
    padding: 10px;
    border: 2px solid #ddd;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
    color: black;
    text-align: right;
}

.delivery-label:hover {
    border-color: #28a745;
}

.delivery-option input[type="radio"]:checked + .delivery-label {
    border-color: #28a745;
    background-color: #f8fff9;
}

.checkmark {
    width: 20px;
    height: 20px;
    border: 2px solid #ddd;
    border-radius: 50%;
    margin-left: 10px;
    position: relative;
    transition: all 0.3s ease;
}

.delivery-option input[type="radio"]:checked + .delivery-label .checkmark {
    border-color: #28a745;
    background-color: #28a745;
}

.delivery-option input[type="radio"]:checked + .delivery-label .checkmark::after {
    content: '✓';
    color: white;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 12px;
    font-weight: bold;
}

.total-section {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 5px;
    border: 2px solid #28a745;
}

.price-breakdown .price-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    color: black;
}

.price-breakdown .total-price {
    border-top: 1px solid #ddd;
    padding-top: 8px;
    margin-top: 8px;
    font-weight: bold;
    font-size: 16px;
}

.confirm-button {
    background: #28a745;
    color: white;
    padding: 15px 30px;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    cursor: pointer;
    width: 100%;
    transition: background 0.3s ease;
}

.confirm-button:hover {
    background: #218838;
}

.confirm-button:disabled {
    background: #6c757d;
    cursor: not-allowed;
}

#cod-message {
    padding: 10px;
    border-radius: 5px;
    text-align: center;
    font-weight: bold;
}

#cod-message.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

#cod-message.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

small {
    color: #666;
    text-align: right;
    display: block;
    margin-top: 5px;
    font-size: 12px;
}