/**
 * SmartCheckout Main CSS
 * Plugin Name: SmartCheckout
 */

/* Container & Form */
.smartcheckout-container {
    max-width: 1080px;
    margin: 0 auto;
    padding: 30px 15px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    color: #333;
    text-align: center;
}

.smartcheckout-form {
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    padding: 20px;
    margin-top: 20px;
}

/* Product Image */
.smartcheckout-product-image {
    margin-bottom: 30px;
    text-align: center;
    width: 100%;
    max-width: 1080px;
    height: auto;
    margin-left: auto;
    margin-right: auto;
}

.smartcheckout-product-image img {
    width: 1080px;
    height: 1080px;
    max-width: 100%;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

/* Steps */
.smartcheckout-step {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #f0f0f0;
    text-align: left;
}

.smartcheckout-step:last-child {
    border-bottom: none;
}

.step-title {
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 20px;
    color: #222;
    padding-bottom: 10px;
    border-bottom: 2px solid #f0f0f0;
}

/* Customer Form */
.form-row {
    margin-bottom: 15px;
}

.two-columns {
    display: flex;
    gap: 15px;
}

.two-columns .form-group {
    flex: 1;
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
    color: #555;
}

.form-group .required {
    color: #F44336;
}

.form-control {
    width: 100%;
    padding: 10px 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 15px;
    transition: border-color 0.2s ease;
}

.form-control:focus {
    border-color: #4CAF50;
    outline: none;
    box-shadow: 0 0 0 2px rgba(76, 175, 80, 0.2);
}

.form-text {
    font-size: 12px;
    color: #888;
    margin-top: 5px;
}

/* Payment Methods */
.payment-methods {
    margin-top: 15px;
}

.payment-method {
    margin-bottom: 15px;
    padding: 15px;
    border: 1px solid #eee;
    border-radius: 5px;
    background-color: #fafafa;
}

.payment-method label {
    display: flex;
    align-items: center;
    font-weight: 500;
    color: #333;
    cursor: pointer;
}

.payment-method input[type="radio"] {
    margin-right: 10px;
}

.payment-description {
    display: block;
    margin-top: 5px;
    font-weight: normal;
    font-size: 13px;
    color: #666;
}

/* Action Buttons */
.smartcheckout-actions {
    margin-top: 30px;
    text-align: center;
}

.smartcheckout-submit-btn {
    background-color: #4CAF50;
    color: white;
    border: none;
    padding: 12px 30px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.2s ease;
    width: 100%;
    max-width: 300px;
}

.smartcheckout-submit-btn:hover {
    background-color: #3d8b40;
}

/* Loading Spinner */
.loading-spinner {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin: 20px 0;
}

.spinner {
    border: 4px solid rgba(0, 0, 0, 0.1);
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border-left-color: #4CAF50;
    animation: spin 1s linear infinite;
    margin-bottom: 10px;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

/* Messages */
.smartcheckout-message {
    margin-top: 20px;
    padding: 15px;
    border-radius: 5px;
    text-align: center;
}

.smartcheckout-message .success {
    background-color: #E8F5E9;
    color: #3d8b40;
    padding: 15px;
    border-radius: 5px;
    border-left: 4px solid #4CAF50;
}

.smartcheckout-message .error {
    background-color: #FFEBEE;
    color: #c62828;
    padding: 15px;
    border-radius: 5px;
    border-left: 4px solid #F44336;
}

.smartcheckout-error {
    background-color: #FFEBEE;
    color: #c62828;
    padding: 15px;
    border-radius: 5px;
    margin-bottom: 20px;
    border-left: 4px solid #F44336;
    text-align: center;
}

/* Responsive Design */
@media screen and (max-width: 1080px) {
    .smartcheckout-product-image {
        height: auto;
        width: 100%;
    }
    
    .smartcheckout-product-image img {
        width: 100%;
        height: auto;
    }
}

@media screen and (max-width: 768px) {
    .two-columns {
        flex-direction: column;
        gap: 0;
    }
}