/* assets/css/frontend.css */
.wc-pod-form-container {
    margin: 2em 0;
    padding: 1.5em;
    border: 1px solid #eee;
    border-radius: 5px;
    background-color: #f9f9f9;
}

.pod-form-section {
    margin-bottom: 1.5em;
    padding-bottom: 1.5em;
    border-bottom: 1px solid #eee;
}

.pod-form-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.pod-form-section h4 {
    margin-top: 0;
    margin-bottom: 1em;
    font-size: 1.2em;
    color: #333;
}

.form-row {
    margin-bottom: 1em;
}

.form-row label {
    display: block;
    margin-bottom: 0.5em;
    font-weight: 600;
}

.form-row input[type="text"],
.form-row input[type="tel"],
.form-row input[type="number"],
.form-row select,
.form-row textarea {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.form-row.error input,
.form-row.error select,
.form-row.error textarea {
    border-color: #e2401c;
}

.required {
    color: #e2401c;
}

/* Product information styling */
.product-info {
    display: flex;
    align-items: center;
    margin-bottom: 1.5em;
}

.product-image {
    width: 80px;
    margin-right: 15px;
}

.product-meta h5 {
    margin-top: 0;
    margin-bottom: 0.5em;
}

/* Quantity selector styling */
.quantity-options {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.quantity-option {
    position: relative;
    display: inline-block;
    cursor: pointer;
}

.quantity-option input[type="radio"] {
    position: absolute;
    opacity: 0;
}

.quantity-option span {
    display: block;
    padding: 8px 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background-color: #fff;
}

.quantity-option input[type="radio"]:checked + span {
    background-color: #4169e1;
    color: #fff;
    border-color: #4169e1;
}

/* Variation selector styling */
.variation-options {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.variation-option {
    position: relative;
    display: inline-block;
    cursor: pointer;
}

.variation-option input[type="radio"] {
    position: absolute;
    opacity: 0;
}

.variation-option span {
    display: block;
    padding: 8px 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background-color: #fff;
}

.variation-option input[type="radio"]:checked + span {
    background-color: #4169e1;
    color: #fff;
    border-color: #4169e1;
}

/* Shipping methods styling */
.shipping-methods {
    margin-top: 1.5em;
}

.shipping-method {
    display: block;
    margin-bottom: 10px;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background-color: #fff;
    cursor: pointer;
}

.shipping-method input[type="radio"] {
    margin-right: 10px;
}

.method-name {
    margin-right: 10px;
}

.method-cost {
    float: right;
    font-weight: 600;
}

/* Order summary styling */
#toggle-summary {
    width: 100%;
    padding: 10px;
    background-color: #f1f1f1;
    border: 1px solid #ddd;
    border-radius: 4px;
    text-align: center;
    cursor: pointer;
}

#order-summary {
    margin-top: 15px;
    padding: 15px;
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.summary-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    padding-bottom: 10px;
    border-bottom: 1px dashed #eee;
}

.summary-item:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.summary-item.total-price {
    font-weight: 700;
    font-size: 1.1em;
    margin-top: 10px;
    padding-top: 10px;
    border-top: 2px solid #eee;
}

/* Buy Now button styling */
#pod-buy-now-button {
    display: block;
    width: 100%;
    padding: 12px 24px;
    font-size: 1.1em;
    font-weight: 600;
    text-align: center;
    background-color: #4169e1;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

#pod-buy-now-button:hover {
    background-color: #3a5fc8;
}

#pod-buy-now-button:disabled {
    background-color: #999;
    cursor: not-allowed;
}

/* Responsive styling */
@media (min-width: 768px) {
    .form-row {
        display: flex;
        align-items: flex-start;
    }
    
    .form-row label {
        width: 30%;
        padding-top: 8px;
        margin-bottom: 0;
    }
    
    .form-row input[type="text"],
    .form-row input[type="tel"],
    .form-row input[type="number"],
    .form-row select,
    .form-row textarea,
    .quantity-options,
    .variation-options {
        width: 70%;
    }
}

/* RTL support for Arabic */
.rtl .product-image {
    margin-right: 0;
    margin-left: 15px;
}

.rtl .quantity-option input[type="radio"] {
    margin-right: 0;
    margin-left: 5px;
}

.rtl .method-cost {
    float: left;
}