.wc-wallet-checkout-card {
    max-width: 500px;
    margin: 40px auto;
    background: #ffffff;
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.06), 0 5px 15px rgba(0, 0, 0, 0.03);
    padding: 38px;
    text-align: center;
    font-family: 'Inter', 'Segoe UI', -apple-system, BlinkMacSystemFont, sans-serif;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.wc-wallet-checkout-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08), 0 8px 20px rgba(0, 0, 0, 0.04);
}

.wc-wallet-checkout-card h2 {
    color: #1a1a2e;
    font-size: 2.3em;
    margin-bottom: 28px;
    font-weight: 800;
    letter-spacing: -0.5px;
    position: relative;
    display: inline-block;
}

.wc-wallet-checkout-card h2::after {
    content: "";
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, #6366f1, #8b5cf6);
    border-radius: 2px;
    transition: width 0.3s ease;
}

.wc-wallet-checkout-card:hover h2::after {
    width: 100px;
}

.wc-wallet-field {
    margin-bottom: 28px;
    text-align: left;
    position: relative;
    overflow: hidden;
}

.wc-wallet-field label {
    display: block;
    font-weight: 600;
    color: #4b5563;
    margin-bottom: 10px;
    font-size: 0.9em;
    letter-spacing: 0.3px;
    text-transform: uppercase;
    transition: color 0.2s ease;
    position: relative;
    padding-left: 2px;
}

.wc-wallet-field label::before {
    content: "";
    position: absolute;
    left: -8px;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 0;
    background: #6366f1;
    transition: height 0.2s ease;
    border-radius: 2px;
}

.wc-wallet-field:focus-within label {
    color: #6366f1;
}

.wc-wallet-field:focus-within label::before {
    height: 70%;
}

.wc-wallet-field input,
.wc-wallet-field select {
    width: 100%;
    padding: 16px 18px;
    border: 2px solid #e5e7eb;
    border-radius: 14px;
    font-size: 1.05em;
    box-sizing: border-box;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    background-color: #f9fafb;
    color: #1f2937;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.03) inset;
}

.wc-wallet-field input::placeholder {
    color: #94a3b8;
    transition: opacity 0.2s ease;
}

.wc-wallet-field input:focus::placeholder {
    opacity: 0.6;
}

.wc-wallet-field input:focus,
.wc-wallet-field select:focus {
    border-color: #6366f1;
    outline: none;
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.15);
    background-color: #ffffff;
    transform: translateY(-2px);
}

.wc-wallet-address-container {
    background: linear-gradient(135deg, #f3f4f6, #f8fafc);
    padding: 22px;
    border-radius: 16px;
    margin: 30px 0;
    border: 2px solid #e5e7eb;
    position: relative;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.02);
    overflow: hidden;
}

.wc-wallet-address-container::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, #6366f1, #8b5cf6, #ec4899);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.wc-wallet-address-container:hover::before {
    opacity: 1;
}

.wc-wallet-address-input {
    display: flex;
    gap: 14px;
    align-items: center;
}

.wc-wallet-address-input input {
    flex-grow: 1;
    border: 2px solid #e2e8f0;
    background: #ffffff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.wc-wallet-qr {
    position: relative;
    margin: 30px auto;
    perspective: 1000px;
}

.wc-wallet-qr img {
    max-width: 185px;
    border-radius: 10px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
    padding: 12px;
    background: #ffffff;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 2px solid #f3f4f6;
    transform-style: preserve-3d;
}

.wc-wallet-qr img:hover {
    transform: translateY(-10px) rotateY(5deg);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.12);
    border-color: #e5e7eb;
}

.wc-wallet-qr::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    width: 140px;
    height: 20px;
    background: radial-gradient(ellipse at center, rgba(0, 0, 0, 0.1) 0%, rgba(0, 0, 0, 0) 70%);
    border-radius: 50%;
    transition: all 0.4s ease;
    opacity: 0.5;
}

.wc-wallet-qr:hover::after {
    transform: translateX(-50%) scaleX(1.1);
    opacity: 0.7;
}

.wc-wallet-timer {
    font-size: 1.3em;
    color: #333347;
    font-weight: 700;
    margin: 25px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    position: relative;
    transition: color 0.3s ease;
}

.wc-wallet-timer::before {
    content: "";
    display: inline-block;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #10b981;
    box-shadow: 0 0 0 rgba(16, 185, 129, 0.7);
    animation: pulse 2s infinite;
}

.wc-wallet-timer.warning {
    color: #ef4444;
    font-weight: 700;
    animation: shake 0.5s ease-in-out;
}

.wc-wallet-timer.warning::before {
    background: #ef4444;
    animation: pulse-warning 1.5s infinite;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(16, 185, 129, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
    }
}

@keyframes pulse-warning {
    0% {
        box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(239, 68, 68, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(239, 68, 68, 0);
    }
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    10%, 30%, 50%, 70%, 90% { transform: translateX(-5px); }
    20%, 40%, 60%, 80% { transform: translateX(5px); }
}

.wc-wallet-button {
    padding: 14px 26px;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    color: #ffffff;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    font-size: 1.05em;
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 6px 15px rgba(99, 102, 241, 0.2);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.wc-wallet-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.3), rgba(255, 255, 255, 0.1));
    z-index: -1;
    transition: left 0.6s ease;
}

.wc-wallet-button:hover {
    background: linear-gradient(135deg, #4f46e5, #7c3aed);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(99, 102, 241, 0.25);
}

.wc-wallet-button:hover::before {
    left: 100%;
}

.wc-wallet-button:active {
    transform: translateY(0);
    box-shadow: 0 3px 8px rgba(99, 102, 241, 0.2);
}

.wc-wallet-submit {
    width: 100%;
    padding: 18px;
    background: linear-gradient(135deg, #22c55e, #10b981);
    color: #ffffff;
    border: none;
    border-radius: 14px;
    font-size: 1.15em;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 8px 20px rgba(16, 185, 129, 0.2);
    margin-top: 15px;
    letter-spacing: 0.6px;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.wc-wallet-submit::after {
    content: "";
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.3) 0%, rgba(255, 255, 255, 0) 70%);
    opacity: 0;
    transform: scale(0.5);
    transition: transform 0.7s ease, opacity 0.7s ease;
    z-index: -1;
}

.wc-wallet-submit:hover {
    background: linear-gradient(135deg, #16a34a, #0d9488);
    transform: translateY(-4px);
    box-shadow: 0 12px 25px rgba(16, 185, 129, 0.25);
}

.wc-wallet-submit:hover::after {
    opacity: 1;
    transform: scale(1);
}

.wc-wallet-submit:active {
    transform: translateY(0);
    box-shadow: 0 5px 12px rgba(16, 185, 129, 0.2);
}

.wc-wallet-message {
    padding: 20px;
    margin: 28px 0;
    border-radius: 14px;
    text-align: center;
    font-weight: 500;
    border-left: 4px solid transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    animation: slide-in 0.5s forwards;
}

@keyframes slide-in {
    0% { transform: translateY(20px); opacity: 0; }
    100% { transform: translateY(0); opacity: 1; }
}

.wc-wallet-message::before {
    content: "";
    display: block;
    width: 24px;
    height: 24px;
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
}

.wc-wallet-message.error {
    background: #fef2f2;
    color: #b91c1c;
    border-left-color: #ef4444;
    box-shadow: 0 5px 15px rgba(239, 68, 68, 0.1);
}

.wc-wallet-message.error::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23ef4444'%3E%3Cpath d='M12 22C6.477 22 2 17.523 2 12S6.477 2 12 2s10 4.477 10 10-4.477 10-10 10zm-1-7v2h2v-2h-2zm0-8v6h2V7h-2z'/%3E%3C/svg%3E");
    animation: pulse-subtle 2s infinite;
}

.wc-wallet-message.success {
    background: #f0fdf4;
    color: #166534;
    border-left-color: #22c55e;
    box-shadow: 0 5px 15px rgba(34, 197, 94, 0.1);
}

.wc-wallet-message.success::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%2322c55e'%3E%3Cpath d='M12 22C6.477 22 2 17.523 2 12S6.477 2 12 2s10 4.477 10 10-4.477 10-10 10zm-.997-6l7.07-7.071-1.414-1.414-5.656 5.657-2.829-2.829-1.414 1.414L11.003 16z'/%3E%3C/svg%3E");
    animation: pulse-subtle 2s infinite;
}

@keyframes pulse-subtle {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

.wc-wallet-field input:not(:placeholder-shown) + .wc-wallet-field-validation {
    opacity: 1;
    transform: translateY(0);
}

.wc-wallet-field-validation {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(10px);
    opacity: 0;
    transition: all 0.3s ease;
    color: #22c55e;
}

.wc-wallet-field input:focus ~ .wc-wallet-field-validation {
    transform: translateY(-50%) scale(1.1);
}

/* Adding subtle loading animation for QR code */
.wc-wallet-qr.loading::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2;
    border-radius: 10px;
    animation: pulse-loading 1.5s infinite;
}

@keyframes pulse-loading {
    0% { opacity: 0.8; }
    50% { opacity: 0.5; }
    100% { opacity: 0.8; }
}

/* Add shine effect on card */
.wc-wallet-checkout-card::before {
    content: "";
    position: absolute;
    top: -100%;
    left: -100%;
    width: 300%;
    height: 300%;
    background: linear-gradient(
        135deg,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0.03) 30%,
        rgba(255, 255, 255, 0.1) 50%,
        rgba(255, 255, 255, 0.03) 70%,
        rgba(255, 255, 255, 0) 100%
    );
    transform: rotate(45deg);
    transition: all 1s ease;
    pointer-events: none;
}

.wc-wallet-checkout-card:hover::before {
    animation: shine 1.5s infinite;
}

@keyframes shine {
    0% {
        top: -100%;
        left: -100%;
    }
    100% {
        top: 100%;
        left: 100%;
    }
}

/* Improved focus animation */
@keyframes focus-ring {
    0% { box-shadow: 0 0 0 0 rgba(99, 102, 241, 0.5); }
    70% { box-shadow: 0 0 0 8px rgba(99, 102, 241, 0); }
    100% { box-shadow: 0 0 0 0 rgba(99, 102, 241, 0); }
}

.wc-wallet-field input:focus,
.wc-wallet-field select:focus {
    animation: focus-ring 1.5s infinite;
}

@media (max-width: 480px) {
    .wc-wallet-checkout-card {
        margin: 15px;
        padding: 25px 20px;
        border-radius: 16px;
    }
    
    .wc-wallet-checkout-card h2 {
        font-size: 1.8em;
    }
    
    .wc-wallet-address-input {
        flex-direction: column;
    }
    
    .wc-wallet-field {
        margin-bottom: 18px;
    }
    
    .wc-wallet-qr img {
        max-width: 150px;
    }
    
    .wc-wallet-submit {
        padding: 14px;
    }
    
    .wc-wallet-message {
        padding: 16px;
    }
}