/* ==========================================================================
   WooCommerce COD Anti-Fraud - WhatsApp OTP Box Stylesheet
   ========================================================================== */

#wc-cod-otp-wrapper,
.wc-cod-otp-wrapper {
    margin: 20px 0;
    padding: 20px 24px;
    border: 2px solid #25D366;
    background: linear-gradient(135deg, #ffffff 0%, #f0fdf4 100%);
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.12);
    font-family: inherit;
    box-sizing: border-box;
    transition: all 0.3s ease;
}

.wc-cod-otp-wrapper.wc-cod-verified {
    border-color: #10b981;
    background: #f0fdf4;
}

.wc-cod-otp-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.wc-cod-whatsapp-icon {
    font-size: 26px;
    line-height: 1;
    display: inline-block;
}

.wc-cod-otp-title {
    margin: 0 !important;
    padding: 0 !important;
    color: #075e54 !important;
    font-size: 17px !important;
    font-weight: 700 !important;
    line-height: 1.3 !important;
}

.wc-cod-otp-instructions {
    margin: 0 0 16px 0 !important;
    color: #374151 !important;
    font-size: 14px !important;
    line-height: 1.5 !important;
}

/* Pulsanti e Azioni */
.wc-cod-otp-actions {
    margin-bottom: 12px;
}

.wc-cod-btn {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    padding: 10px 18px !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    border-radius: 8px !important;
    border: none !important;
    cursor: pointer !important;
    text-decoration: none !important;
    transition: background-color 0.2s ease, transform 0.1s ease !important;
    line-height: 1.4 !important;
}

.wc-cod-btn-send {
    background-color: #25D366 !important;
    color: #ffffff !important;
    box-shadow: 0 3px 10px rgba(37, 211, 102, 0.25) !important;
}

.wc-cod-btn-send:hover {
    background-color: #1ebc57 !important;
    color: #ffffff !important;
}

.wc-cod-otp-verify-block {
    margin-top: 12px;
    margin-bottom: 12px;
}

.wc-cod-input-row {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.wc-cod-otp-input {
    width: 170px !important;
    max-width: 100% !important;
    height: 40px !important;
    padding: 6px 12px !important;
    font-size: 18px !important;
    font-weight: 700 !important;
    text-align: center !important;
    letter-spacing: 3px !important;
    border: 2px solid #25D366 !important;
    border-radius: 8px !important;
    background: #ffffff !important;
    color: #075e54 !important;
    box-sizing: border-box !important;
    outline: none !important;
}

.wc-cod-otp-input:focus {
    border-color: #075e54 !important;
    box-shadow: 0 0 0 3px rgba(7, 94, 84, 0.15) !important;
}

.wc-cod-btn-verify {
    background-color: #075e54 !important;
    color: #ffffff !important;
    height: 40px !important;
    padding: 0 20px !important;
}

.wc-cod-btn-verify:hover {
    background-color: #054840 !important;
    color: #ffffff !important;
}

.wc-cod-btn-verified {
    background-color: #10b981 !important;
    color: #ffffff !important;
    cursor: default !important;
}

/* Messaggi di stato */
.wc-cod-otp-status {
    margin-top: 10px;
}

.wc-cod-msg {
    padding: 10px 14px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.4;
    margin-top: 6px;
}

.wc-cod-msg-success {
    background-color: #d1fae5;
    color: #065f46;
    border: 1px solid #a7f3d0;
}

.wc-cod-msg-error {
    background-color: #fee2e2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

.wc-cod-msg-info {
    background-color: #e0f2fe;
    color: #075985;
    border: 1px solid #bae6fd;
}

.wc-cod-thankyou-wrapper {
    margin: 25px 0;
}
