/**
 * WC Handoff Checkout Styles
 */

.wc-handoff-code-entry-wrapper {
    max-width: 500px;
    margin: 0 auto;
    padding: 30px;
    background: #f9f9f9;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.wc-handoff-code-entry-wrapper h2 {
    margin-top: 0;
    margin-bottom: 10px;
    color: #333;
    font-size: 24px;
    text-align: center;
}

.wc-handoff-code-entry-wrapper p {
    color: #666;
    text-align: center;
    margin-bottom: 25px;
    font-size: 14px;
    line-height: 1.5;
}

.wc-handoff-form-group {
    margin-bottom: 20px;
}

.wc-handoff-form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
    font-size: 14px;
}

.wc-handoff-form-group input[type="text"] {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #ddd;
    border-radius: 4px;
    font-size: 18px;
    text-align: center;
    letter-spacing: 2px;
    text-transform: uppercase;
    transition: border-color 0.3s ease;
    box-sizing: border-box;
}

.wc-handoff-form-group input[type="text"]:focus {
    border-color: #7f54b3;
    outline: none;
    box-shadow: 0 0 0 3px rgba(127, 84, 179, 0.1);
}

.wc-handoff-form-group small {
    display: block;
    margin-top: 8px;
    color: #999;
    font-size: 12px;
    text-align: center;
}

.wc-handoff-form-group button {
    width: 100%;
    padding: 14px;
    font-size: 16px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    background-color: #7f54b3;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.wc-handoff-form-group button:hover {
    background-color: #6b449c;
}

.wc-handoff-form-group button:disabled {
    background-color: #ccc;
    cursor: not-allowed;
}

.wc-handoff-message {
    padding: 12px 15px;
    border-radius: 4px;
    margin-top: 15px;
    font-size: 14px;
    text-align: center;
    display: none;
}

.wc-handoff-message.success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
    display: block;
}

.wc-handoff-message.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
    display: block;
}

/* Loading state */
.wc-handoff-form-group button.loading {
    position: relative;
    color: transparent;
}

.wc-handoff-form-group button.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin-top: -10px;
    margin-left: -10px;
    border: 2px solid #fff;
    border-top-color: transparent;
    border-radius: 50%;
    animation: wc-handoff-spin 0.8s linear infinite;
}

@keyframes wc-handoff-spin {
    to {
        transform: rotate(360deg);
    }
}

/* Responsive */
@media (max-width: 600px) {
    .wc-handoff-code-entry-wrapper {
        padding: 20px;
        margin: 10px;
    }

    .wc-handoff-code-entry-wrapper h2 {
        font-size: 20px;
    }

    .wc-handoff-form-group input[type="text"] {
        font-size: 16px;
        padding: 10px;
    }
}
