.sdr-cart-subtotal-after-discount th,
.sdr-cart-subtotal-after-discount td {
    color: var( --sdr-checkout-subtotal-color, #2ea44f ) !important;
    font-weight: 600 !important;
}

/* Keep the minimum-order message on one line-run even when a theme sets the
   WooCommerce notice to display:flex; justify-content:space-between (Bricks,
   etc.). As the single grow-to-fill child there is no gap to distribute. */
.sdr-mo-notice-body {
    flex: 1 1 auto;
    text-align: left;
}

/* Minimum-order prompt — one standalone component for the cart progress and the
   shop/product banner. Theme-aware: the tint/border/track are translucent shades
   of the configured accent, so it reads cleanly on light and dark themes. */
.sdr-mo {
    margin: 1rem 0;
    padding: 1rem 1.15rem;
    border: 1px solid var( --sdr-mo-border, rgba( 33, 150, 243, 0.32 ) );
    border-radius: 12px;
    background: var( --sdr-mo-tint, rgba( 33, 150, 243, 0.08 ) );
    font-size: 0.95rem;
    line-height: 1.5;
}

.sdr-mo__head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 0.5rem;
    margin-bottom: 0.6rem;
}

.sdr-mo__title {
    font-weight: 700;
    font-size: 1.02rem;
    letter-spacing: -0.01em;
}

.sdr-mo__pct {
    font-weight: 600;
    color: var( --sdr-checkout-progress-color, #2196F3 );
    font-variant-numeric: tabular-nums;
}

.sdr-mo__track {
    overflow: hidden;
    width: 100%;
    height: 8px;
    border-radius: 999px;
    background: var( --sdr-mo-track, rgba( 33, 150, 243, 0.18 ) );
}

.sdr-mo__track span {
    display: block;
    height: 100%;
    min-width: 6px;
    border-radius: inherit;
    background: var( --sdr-checkout-progress-color, #2196F3 );
    transition: width 0.4s ease;
}

.sdr-mo__text {
    margin: 0.6rem 0 0;
}

/* The banner spans the full content width above the product/shop columns, even
   if a theme drops it into a flex, grid, or floated context. */
.sdr-mo--banner {
    width: 100%;
    flex-basis: 100%;
    clear: both;
    box-sizing: border-box;
}

.sdr-mo--cart .checkout-button {
    margin-top: 0.9rem;
    width: 100%;
    text-align: center;
    opacity: 0.65;
    cursor: not-allowed;
}

@media ( prefers-reduced-motion: reduce ) {
    .sdr-mo__track span {
        transition: none;
    }
}

.sdr-checkout-po-field__note,
.sdr-checkout-po-field__hint {
    margin: 0.5rem 0 0;
    color: #4e6478;
    font-size: 0.92rem;
    line-height: 1.45;
}

.sdr-checkout-upload {
    margin-top: 1.25rem;
}

.sdr-checkout-upload__label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.sdr-checkout-upload__optional {
    font-weight: 400;
    color: #7a8ba0;
}

.sdr-checkout-upload__dropzone {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.3rem;
    padding: 1.6rem 1.25rem;
    text-align: center;
    border: 1.5px dashed #c2d0de;
    border-radius: 12px;
    background: #f8fafc;
    cursor: pointer;
    transition: border-color 0.15s ease, background-color 0.15s ease;
}

.sdr-checkout-upload__dropzone:hover,
.sdr-checkout-upload__dropzone:focus-within {
    border-color: #0f172a;
    background: #f1f5f9;
}

.sdr-checkout-upload__dropzone.is-dragover {
    border-style: solid;
    border-color: #0f172a;
    background: #eef2ff;
}

/* Visually hidden native input: removes the browser's "Choose file" button
   while keeping the field keyboard-accessible and fully functional. */
.sdr-checkout-upload__input {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
    border: 0;
}

.sdr-checkout-upload__icon {
    width: 26px;
    height: 26px;
    color: #64748b;
}

.sdr-checkout-upload__prompt {
    font-size: 0.95rem;
    color: #334155;
}

.sdr-checkout-upload__prompt strong {
    font-weight: 600;
    color: #0f172a;
}

.sdr-checkout-upload__hint {
    font-size: 0.8rem;
    color: #7a8ba0;
}

.sdr-checkout-upload__status {
    display: block;
    margin-top: 0.5rem;
    font-size: 0.92rem;
}

.sdr-checkout-upload__status.is-error {
    color: #b42318;
}

.sdr-checkout-upload__status.is-success {
    color: #0f766e;
}

.sdr-checkout-upload__delete {
    margin-top: 0.6rem;
    padding: 0;
    border: 0;
    background: none;
    color: #b42318;
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.sdr-checkout-upload__delete:hover {
    color: #841c14;
}