/*
 * Osiyatech - Purchase Order (Gifting PO) checkout styles
 */

/* Payment Method Container */
.payment-method.osiyatech_purchaseorder {
    margin-bottom: 20px;
}

/* Payment Method Title - Better alignment */
.payment-method.osiyatech_purchaseorder .payment-method-title {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    padding: 12px 0;
}

.payment-method.osiyatech_purchaseorder .payment-method-title .radio {
    margin-right: 10px;
    margin-top: 0;
    flex-shrink: 0;
}

.payment-method.osiyatech_purchaseorder .payment-method-title .label {
    margin: 0;
    font-weight: 600;
    cursor: pointer;
}

/* Payment Method Content - Proper spacing */
.payment-method.osiyatech_purchaseorder .payment-method-content {
    margin-left: 0;
    margin-top: 15px;
    padding: 20px 0 0 0;
    border-top: 1px solid #e6e6e6;
}

/* Informational Message - Better styling */
.payment-method.osiyatech_purchaseorder .po-info-message {
    margin-bottom: 20px;
}

.payment-method.osiyatech_purchaseorder .po-info-message .message.notice {
    font-size: 13px;
    line-height: 1.6;
    padding: 15px 20px;
    border-radius: 4px;
    margin: 0;
}

.payment-method.osiyatech_purchaseorder .po-info-message .message.notice p {
    margin: 0;
    padding-left: 20px;
    text-align: justify;
}

/* Form Fields - Consistent spacing and alignment */
.payment-method.osiyatech_purchaseorder .field {
    margin-bottom: 20px;
    clear: both;
}

.payment-method.osiyatech_purchaseorder .field.required {
    margin-bottom: 20px;
}

.payment-method.osiyatech_purchaseorder .field .label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    font-size: 14px;
    color: #333;
}

.payment-method.osiyatech_purchaseorder .field .label span {
    display: inline-block;
}

.payment-method.osiyatech_purchaseorder .field .control {
    width: 100%;
    max-width: 100%;
}

.payment-method.osiyatech_purchaseorder .field .control input[type="text"],
.payment-method.osiyatech_purchaseorder .field .control select {
    width: 100%;
    max-width: 100%;
    padding: 5px 12px;
    font-size: 14px;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
    transition: border-color 0.3s ease;
}

.payment-method.osiyatech_purchaseorder .field .control input[type="text"]:focus,
.payment-method.osiyatech_purchaseorder .field .control select:focus {
    border-color: #007bdb;
    outline: none;
    box-shadow: 0 0 0 1px #007bdb;
}

.payment-method.osiyatech_purchaseorder .field .control input[type="text"]:disabled,
.payment-method.osiyatech_purchaseorder .field .control select:disabled {
    background-color: #f5f5f5;
    cursor: not-allowed;
    opacity: 0.7;
}

/* Select dropdown styling */
.payment-method.osiyatech_purchaseorder .field .control select {
    background-color: #fff;
    cursor: pointer;
}

/* Buttons - Proper alignment and spacing */
.payment-method.osiyatech_purchaseorder .actions-toolbar {
    margin-top: 25px;
    margin-bottom: 15px;
    clear: both;
}

.payment-method.osiyatech_purchaseorder .actions-toolbar.submit-section {
    margin-top: 20px;
}

.payment-method.osiyatech_purchaseorder .actions-toolbar .primary {
    float: none;
    text-align: left;
}

.payment-method.osiyatech_purchaseorder .actions-toolbar .action {
    padding: 12px 30px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 4px;
    transition: all 0.3s ease;
    min-width: 160px;
}

.payment-method.osiyatech_purchaseorder .actions-toolbar .action.primary {
    background-color: #007bdb;
    border-color: #007bdb;
    color: #fff;
}

.payment-method.osiyatech_purchaseorder .actions-toolbar .action.primary:hover:not(:disabled) {
    background-color: #0056b3;
    border-color: #0056b3;
}

.payment-method.osiyatech_purchaseorder .actions-toolbar .action:disabled,
.payment-method.osiyatech_purchaseorder .actions-toolbar .action.disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Messages - Consistent styling */
.payment-method.osiyatech_purchaseorder .message {
    margin: 15px 0;
    padding: 12px 40px;
    border-radius: 4px;
    font-size: 14px;
    line-height: 1.5;
}

.payment-method.osiyatech_purchaseorder .message.success {
    background-color: #d4edda;
    border: 1px solid #c3e6cb;
    color: #155724;
}

.payment-method.osiyatech_purchaseorder .message.info {
    background-color: #d1ecf1;
    border: 1px solid #bee5eb;
    color: #0c5460;
}

.payment-method.osiyatech_purchaseorder .message.warning {
    background-color: #fff3cd;
    border: 1px solid #ffc107;
    color: #856404;
    padding: 12px 20px;
}

.payment-method.osiyatech_purchaseorder .message.warning strong {
    font-weight: 600;
}

/* Workflow Instructions */
.payment-method.osiyatech_purchaseorder .po-workflow-instructions {
    margin: 15px 0;
}

/* Checkout Agreements Block */
.payment-method.osiyatech_purchaseorder .checkout-agreements-block {
    margin: 20px 0;
    clear: both;
}

/* Responsive Design */
@media (max-width: 768px) {
    .payment-method.osiyatech_purchaseorder .payment-method-content {
        padding-left: 0;
    }
    
    .payment-method.osiyatech_purchaseorder .actions-toolbar .action {
        width: 100%;
        min-width: auto;
    }
    
    .payment-method.osiyatech_purchaseorder .po-info-message .message.notice {
        padding: 12px 15px;
        font-size: 12px;
    }
}

/* Clear floats */
.payment-method.osiyatech_purchaseorder .field::after,
.payment-method.osiyatech_purchaseorder .actions-toolbar::after {
    content: "";
    display: table;
    clear: both;
}
