/**
 * ShipCode frontend styles.
 */

.shipcode-container {
    text-align: center;
    padding: 24px;
    margin: 20px 0;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    background: #fafafa;
}

.shipcode-message {
    font-size: 16px;
    margin-bottom: 16px;
    color: #333;
}

/* Claim button */
.shipcode-claim-btn {
    display: inline-block;
    padding: 12px 32px;
    font-size: 16px;
    font-weight: 600;
    color: #fff;
    background: #2271b1;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.2s;
}

.shipcode-claim-btn:hover {
    background: #135e96;
}

.shipcode-claim-btn:disabled {
    background: #a0a0a0;
    cursor: not-allowed;
}

/* Code display */
.shipcode-code-display {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 12px 20px;
    background: #fff;
    border: 2px dashed #2271b1;
    border-radius: 8px;
    margin-top: 8px;
}

.shipcode-code {
    font-family: monospace;
    font-size: 20px;
    font-weight: 700;
    color: #2271b1;
    letter-spacing: 1px;
}

/* Copy button */
.shipcode-copy-btn {
    padding: 6px 16px;
    font-size: 13px;
    color: #2271b1;
    background: #f0f0f1;
    border: 1px solid #2271b1;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s;
}

.shipcode-copy-btn:hover {
    background: #2271b1;
    color: #fff;
}

.shipcode-copy-btn.shipcode-copied {
    background: #00a32a;
    border-color: #00a32a;
    color: #fff;
}

/* Error message */
.shipcode-error {
    color: #d63638;
    font-size: 14px;
    margin-top: 12px;
}

/* Claimed state */
.shipcode-claimed {
    background: #f0f6fc;
    border-color: #2271b1;
}

/* Daily limit reached */
.shipcode-limit {
    background: #fef7e0;
    border-color: #dba617;
}

.shipcode-limit .shipcode-message {
    color: #8a6d12;
}

/* Prediction form */
.shipcode-prediction {
    background: #f8f9fa;
}

.shipcode-question {
    font-size: 17px;
    font-weight: 600;
    color: #1d2327;
    margin-bottom: 16px;
}

.shipcode-answers {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 16px;
    text-align: left;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}

.shipcode-answer-label {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 6px;
    cursor: pointer;
    font-size: 15px;
    transition: border-color 0.2s, background 0.2s;
}

.shipcode-answer-label:hover {
    border-color: #2271b1;
    background: #f0f6fc;
}

.shipcode-answer-label input[type="radio"] {
    margin: 0;
}

.shipcode-phone-group {
    margin-bottom: 16px;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
    text-align: left;
}

.shipcode-phone-group label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 6px;
    color: #50575e;
}

.shipcode-phone-input {
    width: 100%;
    padding: 10px 12px;
    font-size: 15px;
    border: 1px solid #ddd;
    border-radius: 6px;
    box-sizing: border-box;
}

.shipcode-phone-input:focus {
    border-color: #2271b1;
    outline: none;
    box-shadow: 0 0 0 1px #2271b1;
}

.shipcode-validation-error {
    color: #d63638;
    font-size: 14px;
    margin-bottom: 12px;
}

/* Action link button */
.shipcode-action-link-wrap {
    margin-top: 14px;
}

.shipcode-action-btn {
    display: inline-block;
    padding: 10px 28px;
    font-size: 15px;
    font-weight: 600;
    color: #fff;
    background: #00a32a;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.2s;
}

.shipcode-action-btn:hover {
    background: #008a20;
    color: #fff;
}

/* Responsive */
@media (max-width: 480px) {
    .shipcode-code-display {
        flex-direction: column;
        gap: 8px;
    }

    .shipcode-code {
        font-size: 16px;
    }

    .shipcode-answers,
    .shipcode-phone-group {
        max-width: 100%;
    }
}
