/* eqc-style.css - Express Quick Checkout with button animation */
.eqc-wrap {
    max-width: 520px;
    margin: 16px auto;
    border: 1px solid #eee;
    padding: 14px;
    border-radius: 8px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.03);
    font-family: inherit;
}

.eqc-label {
    display: block;
    margin-bottom: 10px;
    font-size: 14px;
}

.eqc-wrap input[type="text"],
.eqc-wrap input[type="email"],
.eqc-wrap input[type="tel"],
.eqc-wrap select,
.eqc-wrap textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid; /* Overridden by dynamic CSS */
    border-radius: 6px;
    font-size: 14px;
    box-sizing: border-box;
    transition: border-color 0.3s ease;
}

.eqc-wrap input[type="text"]:focus,
.eqc-wrap input[type="email"]:focus,
.eqc-wrap input[type="tel"]:focus,
.eqc-wrap select:focus,
.eqc-wrap textarea:focus {
    outline: none;
}

.eqc-actions {
    text-align: center;
    margin-top: 20px;
}

.eqc-submit, .eqc-sticky-button {
    color: #fff;
    border: 0;
    padding: 14px 28px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 16px;
    min-width: 180px;
    position: relative;
    font-weight: bold;
    transition: background 0.3s, transform 0.3s, box-shadow 0.3s;
}

.eqc-submit {
    animation: slide 1s infinite;
}

.eqc-submit:hover, .eqc-sticky-button:hover {
    transform: translateY(-3px) scale(1.03);
    box-shadow: 0 6px 12px rgba(0,0,0,0.15);
}

.eqc-submit:active {
    animation: pulse 0.3s ease;
}

.eqc-sticky-button {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
    text-align: center;
}

.eqc-sticky-button.hidden {
    opacity: 0;
    visibility: hidden;
}

@keyframes slide {
    0% { transform: translateX(0); }
    50% { transform: translateX(5px); }
    100% { transform: translateX(0); }
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(0.95); }
    100% { transform: scale(1); }
}

.eqc-feedback {
    margin-top: 10px;
    padding: 10px;
    border-radius: 6px;
    display: none;
    font-size: 14px;
}

.eqc-success {
    color: green;
    background: #e0ffe0;
}

.eqc-error {
    color: red;
    background: #ffe0e0;
}

.eqc-total {
    text-align: center;
    margin-top: 10px;
    font-weight: bold;
    font-size: 16px;
    color: #0073aa;
}

.eqc-notice {
    color: red;
    text-align: center;
    padding: 10px;
    border: 1px solid red;
    border-radius: 6px;
    margin: 16px auto;
    max-width: 520px;
}

@media (max-width: 600px) {
    .eqc-wrap {
        padding: 12px;
        margin: 12px 6px;
    }
    .eqc-submit, .eqc-sticky-button {
        width: 90%;
        min-width: auto;
    }
}