/* ===================================================
   Atlanta Wholesale B2B Registration & Product Styling
   =================================================== */

/* Page Padding Reductions for Wholesale & Account Pages */
.page-id-9855 #nt-page.nt-goldsmith-inner-container,
.page-id-9855 .nt-goldsmith-content,
.page-id-9855 #nt-page,
.woocommerce-account #nt-page.nt-goldsmith-inner-container,
.woocommerce-account .nt-goldsmith-content,
.woocommerce-account #nt-page,
.page-id-12 #nt-page.nt-goldsmith-inner-container,
.page-id-12 .nt-goldsmith-content,
.page-id-12 #nt-page {
    padding-top: 10px !important;
    padding-bottom: 30px !important;
}

.page-id-9855 #nt-header-title.nt-header-title-wrapper,
.woocommerce-account #nt-header-title.nt-header-title-wrapper,
.page-id-12 #nt-header-title.nt-header-title-wrapper {
    padding-top: 25px !important;
    padding-bottom: 5px !important;
    min-height: auto !important;
}

/* --- Registration Form Container --- */
.wholesale-registration-container {
    max-width: 780px;
    margin: 10px auto 30px auto;
    padding: 30px 36px;
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.05);
    border: 1px solid #eaeaea;
    font-family: inherit;
    box-sizing: border-box;
}

.wholesale-registration-container h2.form-title {
    font-size: 24px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 1px solid #f0f0f0;
    letter-spacing: -0.3px;
}

/* 2 Fields in a Row Grid Layout */
.wholesale-form-grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 14px;
}

.wholesale-form-row {
    margin-bottom: 14px;
}

.wholesale-form-row label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #374151;
    margin-bottom: 5px;
    text-transform: capitalize;
}

.wholesale-form-row label .required {
    color: #dc2626;
    margin-left: 2px;
}

.wholesale-form-row input[type="text"],
.wholesale-form-row input[type="email"],
.wholesale-form-row input[type="tel"],
.wholesale-form-row input[type="url"],
.wholesale-form-row input[type="password"],
.wholesale-form-row select {
    width: 100%;
    height: 44px;
    padding: 8px 14px;
    border: 1px solid #d1d5db;
    border-radius: 4px;
    font-size: 14px;
    color: #111827;
    background-color: #ffffff;
    box-sizing: border-box;
    transition: all 0.2s ease;
}

.wholesale-form-row input:focus,
.wholesale-form-row select:focus {
    outline: none;
    border-color: #111827;
    box-shadow: 0 0 0 2px rgba(17, 24, 39, 0.1);
}

.wholesale-form-row input[type="file"] {
    display: block;
    width: 100%;
    padding: 8px 12px;
    font-size: 13px;
    color: #4b5563;
    background: #f9fafb;
    border: 1px dashed #d1d5db;
    border-radius: 4px;
    box-sizing: border-box;
}

.wholesale-form-row .file-help {
    font-size: 12px;
    color: #6b7280;
    margin-top: 4px;
}

@media (max-width: 680px) {
    .wholesale-form-grid-2 {
        grid-template-columns: 1fr;
        gap: 0;
        margin-bottom: 0;
    }
    .wholesale-registration-container {
        padding: 24px 18px;
        margin: 10px auto 20px auto;
    }
}

.wholesale-submit-btn {
    display: inline-block;
    width: 100%;
    height: 48px;
    line-height: 48px;
    padding: 0 24px;
    background: #111827;
    color: #ffffff !important;
    border: none;
    border-radius: 4px;
    font-size: 15px;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.1s ease;
    box-sizing: border-box;
}

.wholesale-submit-btn:hover {
    background: #374151;
    color: #ffffff !important;
}

.wholesale-form-footer-links {
    margin-top: 16px;
    text-align: center;
    font-size: 13px;
    color: #6b7280;
}

.wholesale-form-footer-links a {
    color: #111827;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

.wholesale-form-footer-links a:hover {
    color: #4b5563;
    text-decoration: underline;
}

/* Alerts */
.wholesale-alert {
    padding: 12px 16px;
    border-radius: 6px;
    margin-bottom: 18px;
    font-size: 14px;
    line-height: 1.5;
}

.wholesale-alert-error {
    background-color: #fef2f2;
    border: 1px solid #fecaca;
    color: #991b1b;
}

.wholesale-alert-info {
    background-color: #eff6ff;
    border: 1px solid #bfdbfe;
    color: #1e40af;
}

.wholesale-alert-warning {
    background-color: #fffbeb;
    border: 1px solid #fde68a;
    color: #92400e;
}

/* Success Card */
.wholesale-success-card {
    text-align: center;
    padding: 40px 30px;
}

.wholesale-success-icon {
    color: #10b981;
    margin-bottom: 12px;
}

.wholesale-success-message {
    font-size: 15px;
    color: #4b5563;
    margin-bottom: 20px;
    line-height: 1.6;
}

.wholesale-success-instructions {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    padding: 18px 24px;
    text-align: left;
    font-size: 13px;
    color: #334155;
    margin-bottom: 15px;
}

.wholesale-success-instructions ul {
    margin: 6px 0 0 0;
    padding-left: 18px;
}

.wholesale-success-instructions li {
    margin-bottom: 4px;
}

/* --- Catalog & Single Product Pricing & Lock Banner --- */
.wholesale-price-lock-banner {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 600;
    color: #b45309;
    background: #fffbeb;
    border: 1px solid #fde68a;
    padding: 4px 10px;
    border-radius: 20px;
    letter-spacing: 0.2px;
}

.wholesale-single-lock-wrapper {
    background: #fafafa;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 18px 20px;
    margin: 15px 0 20px 0;
}

.wholesale-single-lock-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 600;
    color: #111827;
    margin-bottom: 12px;
}

.wholesale-single-lock-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.wholesale-pill-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 16px;
    font-size: 13px;
    font-weight: 600;
    border-radius: 4px;
    text-decoration: none;
    transition: all 0.2s ease;
}

.wholesale-pill-btn.primary {
    background: #111827;
    color: #ffffff !important;
}

.wholesale-pill-btn.primary:hover {
    background: #374151;
}

.wholesale-pill-btn.secondary {
    background: #ffffff;
    color: #111827 !important;
    border: 1px solid #d1d5db;
}

.wholesale-pill-btn.secondary:hover {
    background: #f3f4f6;
}

/* Tier Badges in Header & Account */
.wholesale-tier-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 2px 8px;
    border-radius: 12px;
}

.wholesale-tier-badge.tier-silver {
    background: #f1f5f9;
    color: #475569;
    border: 1px solid #cbd5e1;
}

.wholesale-tier-badge.tier-gold {
    background: #fef3c7;
    color: #92400e;
    border: 1px solid #fcd34d;
}

.wholesale-tier-badge.tier-platinum {
    background: #e0e7ff;
    color: #3730a3;
    border: 1px solid #a5b4fc;
}

.wholesale-tier-price-display {
    display: flex;
    align-items: center;
    gap: 8px;
}

.wholesale-tier-price-display .regular-price-struck {
    text-decoration: line-through;
    color: #9ca3af;
    font-size: 0.9em;
}

.wholesale-tier-price-display .tier-discount-tag {
    font-size: 11px;
    font-weight: 600;
    background: #ecfdf5;
    color: #065f46;
    padding: 2px 6px;
    border-radius: 4px;
}

/* Wholesale Account Banner */
.wholesale-account-banner {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 16px 20px;
    margin-bottom: 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}

.wholesale-account-banner-content h4 {
    margin: 0 0 4px 0;
    font-size: 15px;
    font-weight: 600;
    color: #0f172a;
}

.wholesale-account-banner-content p {
    margin: 0;
    font-size: 13px;
    color: #64748b;
}

/* Admin Styles */
.wholesale-cert-preview-btn {
    display: inline-block;
    padding: 4px 10px;
    background: #0284c7;
    color: #ffffff;
    border-radius: 4px;
    text-decoration: none;
    font-size: 12px;
}

.wholesale-cert-preview-btn:hover {
    background: #0369a1;
    color: #ffffff;
}

/* WooCommerce Centered Luxury Login Card */
.goldsmith-auth-wrapper {
    max-width: 480px;
    margin: 10px auto 30px auto;
    padding: 28px 34px 22px 34px;
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.05);
    border: 1px solid #eaeaea;
    box-sizing: border-box;
}

.goldsmith-auth-wrapper h2.auth-title {
    font-size: 22px;
    font-weight: 700;
    color: #111827;
    margin: 0 0 20px 0;
    padding-bottom: 10px;
    border-bottom: 1px solid #f3f4f6;
    letter-spacing: -0.3px;
    text-align: left;
}

.goldsmith-auth-wrapper .woocommerce-form-login .woocommerce-form-row {
    margin-bottom: 14px;
    padding: 0;
}

.goldsmith-auth-wrapper .woocommerce-form-login label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #374151;
    margin-bottom: 5px;
}

.goldsmith-auth-wrapper .woocommerce-form-login input.woocommerce-Input--text {
    width: 100%;
    height: 44px;
    padding: 8px 14px;
    border: 1px solid #d1d5db;
    border-radius: 4px;
    font-size: 14px;
    color: #111827;
    background: #ffffff;
    box-sizing: border-box;
    transition: all 0.2s ease;
}

.goldsmith-auth-wrapper .woocommerce-form-login input.woocommerce-Input--text:focus {
    outline: none;
    border-color: #111827;
    box-shadow: 0 0 0 2px rgba(17, 24, 39, 0.1);
}

.goldsmith-auth-wrapper .login-remember-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    font-size: 13px;
    color: #4b5563;
}

.goldsmith-auth-wrapper .login-remember-row label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin: 0;
    cursor: pointer;
    font-weight: 400;
}

.goldsmith-auth-wrapper .login-remember-row a {
    color: #111827;
    text-decoration: none;
    font-size: 13px;
    white-space: nowrap;
}

.goldsmith-auth-wrapper .login-remember-row a:hover {
    text-decoration: underline;
}

.goldsmith-auth-wrapper button.woocommerce-form-login__submit {
    display: block;
    width: 100%;
    height: 46px;
    line-height: 46px;
    padding: 0 20px;
    background: #111827 !important;
    color: #ffffff !important;
    border: none;
    border-radius: 4px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    text-align: center;
    transition: background 0.2s ease;
}

.goldsmith-auth-wrapper button.woocommerce-form-login__submit:hover {
    background: #374151 !important;
}

.goldsmith-auth-wrapper .auth-footer-prompt {
    margin-top: 18px;
    padding-top: 14px;
    border-top: 1px solid #f3f4f6;
    text-align: center;
    font-size: 13px;
    color: #6b7280;
}

.goldsmith-auth-wrapper .auth-footer-prompt a {
    color: #111827;
    font-weight: 600;
    text-decoration: none;
}

.goldsmith-auth-wrapper .auth-footer-prompt a:hover {
    text-decoration: underline;
}
