/**
 * Tayseer Frontend Styles
 * 
 * @package Tayseer
 * @version 1.2.0
 * @since 1.0.0
 */

/* ===========================
   Payment Form Container
   =========================== */
.tayseer-payment-content {
    border: 1px solid #dddddd;
    padding: 10px;
    margin-bottom: 10px;
}

/* ===========================
   Payment Label Styling
   =========================== */
.tayseer-payment-content .tayseer-payment-label {
    position: relative;
    display: inline-block;
    cursor: pointer;
    margin-bottom: 5px;
}

/* ===========================
   Preview Image
   =========================== */
.tayseer-payment-content #tayseer-payment-preview {
    max-width: 100%;
    width: 300px;
    border: 1px solid #dddddd;
}

/* ===========================
   Label Overlay Effect
   =========================== */
.tayseer-payment-content .tayseer-payment-label-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #444;
    opacity: 0;
    transition: 0.3s;
}

.tayseer-payment-content .tayseer-payment-label-help {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #fff;
    opacity: 0;
    text-shadow: 0 1px 1px #444;
    transition: 0.3s;
    width: 100%;
    text-align: center;
}

.tayseer-payment-content .tayseer-payment-label:hover .tayseer-payment-label-overlay {
    opacity: 0.3;
}

.tayseer-payment-content .tayseer-payment-label:hover .tayseer-payment-label-help {
    opacity: 1;
    top: 50%;
}

/* ===========================
   Form Inputs
   =========================== */
.tayseer-payment-content #tayseer-payment-input {
    display: block;
    margin-bottom: 5px;
}

.tayseer-payment-content #tayseer-payment-message {
    display: block;
    max-width: 100%;
    width: 302px;
    margin-bottom: 5px;
    resize: vertical;
}

/* ===========================
   Checkout Methods Styling
   =========================== */
[class*="payment_method_tayseer_"] img {
    width: 30px !important;
    height: 30px !important;
    aspect-ratio: 1/1;
    object-fit: cover;
}

/* ===========================
   Order Meta Display
   =========================== */
.tayseer-order-meta {
    margin-bottom: 15px;
    padding: 10px;
    background-color: #f9f9f9;
    border-left: 4px solid #0073aa;
}

.tayseer-order-meta label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
}

/* ===========================
   Attachment Display
   =========================== */
.tayseer-payment-attachement {
    margin-top: 15px;
    text-align: center;
}

.tayseer-payment-attachement img {
    max-width: 100%;
    height: auto;
    border: 1px solid #ddd;
    border-radius: 4px;
}

/* ===========================
   Form Buttons
   =========================== */
.tayseer-payment-form .button {
    background-color: #0073aa;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: background-color 0.3s ease;
}

.tayseer-payment-form .button:hover {
    background-color: #005a87;
}

.tayseer-payment-form .button:disabled {
    background-color: #ccc;
    cursor: not-allowed;
}

/* ===========================
   Error Messages
   =========================== */
.tayseer-payment-content .aridipay-message {
    padding: 12px;
    margin-bottom: 15px;
    background-color: #fef5e7;
    border-left: 4px solid #f39c12;
    color: #d68910;
    border-radius: 4px;
}

.tayseer-payment-content .error-message {
    padding: 12px;
    margin-bottom: 15px;
    background-color: #fadbd8;
    border-left: 4px solid #e74c3c;
    color: #c0392b;
    border-radius: 4px;
}

/* ===========================
   Success Messages
   =========================== */
.tayseer-payment-content .success-message {
    padding: 12px;
    margin-bottom: 15px;
    background-color: #d5f4e6;
    border-left: 4px solid #27ae60;
    color: #1e8449;
    border-radius: 4px;
}

/* ===========================
   Responsive Design
   =========================== */
@media (max-width: 768px) {
    .tayseer-payment-content #tayseer-payment-message {
        width: 100%;
    }

    .tayseer-payment-content #tayseer-payment-preview {
        width: 100%;
    }
}

/* ===========================
   RTL Support
   =========================== */
.rtl .tayseer-order-meta {
    border-left: none;
    border-right: 4px solid #0073aa;
}

.rtl [class*="payment_method_tayseer_"] {
    direction: rtl;
}
