/* Bulkzy for WooCommerce — Minimalist Frontend Styles */

/* 1. Minimum Order Quantity Notice (Product Page) */
.bulkzy-moq-notice {
    margin: 12px 0 16px;
    padding: 8px 12px;
    background: #fdfbf7;
    border: 1px solid #f3ece1;
    border-left: 3px solid #d97706;
    border-radius: 4px;
    font-size: 13px;
    color: #78350f;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.bulkzy-moq-notice strong {
    color: #451a03;
    font-weight: 600;
}

/* 2. Visual Bulk Pricing Table (Product Page) */
.bulkzy-pricing-table {
    margin: 20px 0 16px;
    padding: 16px 18px;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
}

.bulkzy-pricing-table h4 {
    margin: 0 0 10px;
    font-size: 14px;
    font-weight: 600;
    color: #111827;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.bulkzy-pricing-table .shop_table {
    width: 100%;
    border-collapse: collapse;
    margin: 0;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 4px;
    overflow: hidden;
}

/* Selectors are kept at table/cell depth so they outrank theme rules such as
   `.woocommerce table.shop_table td`, which otherwise zero out our cell padding
   and (in OceanWP) capitalise the copy. */
.bulkzy-pricing-table table.shop_table thead th {
    background: #f9fafb;
    color: #4b5563;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 8px 12px;
    border-bottom: 1px solid #e5e7eb;
    text-align: left;
}

.bulkzy-pricing-table table.shop_table tbody td {
    padding: 8px 12px;
    border-bottom: 1px solid #f3f4f6;
    font-size: 13px;
    color: #374151;
    text-transform: none;
}

/* The pricing table is printed inside `form.cart`, where WooCommerce's own
   `.woocommerce div.product form.cart table td` rule zeroes padding-left.
   Match that scope so the first column keeps its gutter. */
.woocommerce div.product form.cart .bulkzy-pricing-table table.shop_table tbody td {
    padding: 8px 12px;
}

.bulkzy-pricing-table table.shop_table tbody tr:last-child td {
    border-bottom: none;
}

.bulkzy-pricing-table table.shop_table tbody td.bulkzy-discount-text {
    color: #15803d;
    font-weight: 600;
}

.bulkzy-pricing-table .bulkzy-pricing-note {
    font-size: 12px;
    color: #6b7280;
    margin: 10px 0 0;
}

/* 3. Bulk Order Form & Quick Checkout Shortcode */
.bulkzy-landing-wrap {
    max-width: 920px;
    margin: 0 auto;
    padding: 20px;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
}

.bulkzy-landing-wrap h2 {
    font-size: 20px;
    font-weight: 600;
    color: #111827;
    margin-bottom: 4px;
}

.bulkzy-landing-wrap .bulkzy-landing-desc {
    margin-bottom: 16px;
    color: #6b7280;
    font-size: 13px;
}

.bulkzy-landing-wrap .bulkzy-clear-cart {
    margin-bottom: 12px;
    text-align: right;
    font-size: 12px;
    color: #4b5563;
}

.bulkzy-order-table table.shop_table {
    width: 100%;
    border-collapse: collapse;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    overflow: hidden;
}

.bulkzy-order-table table.shop_table thead th {
    padding: 10px 14px;
    border-bottom: 1px solid #e5e7eb;
    background: #f9fafb;
    color: #4b5563;
    font-size: 12px;
    font-weight: 600;
    text-align: left;
}

.bulkzy-order-table table.shop_table thead th.bulkzy-qty-col,
.bulkzy-order-table table.shop_table tbody td.bulkzy-qty-col {
    text-align: right;
}

.bulkzy-order-table table.shop_table tbody td {
    padding: 10px 14px;
    border-bottom: 1px solid #f3f4f6;
    vertical-align: middle;
    font-size: 13px;
    text-transform: none;
}

.bulkzy-order-table .bulkzy-moq-small {
    color: #b91c1c;
    font-weight: 500;
    font-size: 11px;
}

.bulkzy-order-table .bulkzy-qty-input {
    width: 80px;
    height: 36px;
    padding: 4px 6px;
    text-align: center;
    border: 1px solid #d1d5db;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 500;
    color: #111827;
    transition: border-color 0.15s ease;
}

.bulkzy-order-table .bulkzy-qty-input:focus {
    border-color: #111827;
    outline: none;
}

.bulkzy-form-footer {
    margin-top: 20px;
    padding-top: 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 14px;
    border-top: 1px solid #e5e7eb;
}

.bulkzy-live-total {
    font-size: 1.15em;
    font-weight: 600;
    color: #111827;
}

.bulkzy-live-total span:last-child {
    color: #15803d;
    font-weight: 700;
    margin-left: 4px;
}

.bulkzy-form-actions {
    display: flex;
    gap: 10px;
}

.bulkzy-form-actions .button {
    padding: 8px 16px !important;
    border-radius: 4px !important;
    font-weight: 500 !important;
    font-size: 13px !important;
    cursor: pointer;
    border: 1px solid #d1d5db !important;
    background: #ffffff !important;
    color: #111827 !important;
    transition: all 0.15s ease;
}

.bulkzy-form-actions .button:hover {
    background: #f9fafb !important;
    border-color: #9ca3af !important;
}

.bulkzy-form-actions .bulkzy-checkout-button {
    background: #111827 !important;
    color: #ffffff !important;
    border-color: #111827 !important;
}

.bulkzy-form-actions .bulkzy-checkout-button:hover {
    background: #1f2937 !important;
    border-color: #1f2937 !important;
}
