/* Corporate Discount Plugin Styles */

/* Works in both Classic & Block Checkout */
.cd-wrapper {
    background: #f0f6ff;
    border: 1.5px solid #b3d0f5;
    border-radius: 10px;
    padding: 22px 24px;
    margin-bottom: 24px;
    font-family: inherit;
}

/* Block checkout wrapper positioning */
.wp-block-woocommerce-checkout .cd-wrapper,
.wc-block-checkout .cd-wrapper {
    margin: 0 0 24px 0;
    width: 100%;
    box-sizing: border-box;
}

.cd-heading {
    font-size: 18px;
    font-weight: 700;
    margin: 0 0 6px 0;
    color: #1a1a1a;
}

.cd-subtext {
    font-size: 14px;
    color: #555;
    margin: 0 0 16px 0;
}

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

#cd-company-input {
    flex: 1;
    min-width: 200px;
    padding: 11px 14px;
    border: 1.5px solid #ccc;
    border-radius: 6px;
    font-size: 15px;
    outline: none;
    transition: border-color 0.25s;
    background: #fff;
}

#cd-company-input:focus {
    border-color: #2271b1;
    box-shadow: 0 0 0 2px rgba(34,113,177,0.15);
}

#cd-verify-btn {
    padding: 11px 22px;
    background: #2271b1;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
    white-space: nowrap;
}

#cd-verify-btn:hover {
    background: #135e96;
}

#cd-verify-btn:disabled {
    background: #aaa;
    cursor: not-allowed;
}

.cd-status {
    margin-top: 12px;
    padding: 0;
    font-size: 14px;
    min-height: 0;
    transition: all 0.3s;
}

.cd-status.cd-success {
    background: #edfaf1;
    border: 1px solid #68d391;
    border-radius: 6px;
    padding: 10px 14px;
    color: #276749;
}

.cd-status.cd-error {
    background: #fff5f5;
    border: 1px solid #fc8181;
    border-radius: 6px;
    padding: 10px 14px;
    color: #c53030;
}

.cd-status.cd-loading {
    background: #ebf8ff;
    border: 1px solid #90cdf4;
    border-radius: 6px;
    padding: 10px 14px;
    color: #2b6cb0;
}

/* Pulse animation for loading */
@keyframes cd-pulse {
    0%, 100% { opacity: 1; }
    50%       { opacity: 0.5; }
}
.cd-status.cd-loading {
    animation: cd-pulse 1.2s ease-in-out infinite;
}
