/**
 * 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;
}

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

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