/* SuuqOne Shipping — Checkout UI */

/* ----------------------------------------------------------------
 *  Loading spinner on shipping totals while WC recalculates
 * ----------------------------------------------------------------*/

.woocommerce-shipping-totals.suuqone-loading {
    position: relative;
    pointer-events: none;
}

.woocommerce-shipping-totals.suuqone-loading::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.7);
    z-index: 2;
}

.woocommerce-shipping-totals.suuqone-loading::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2.5px solid #e0e0e0;
    border-top-color: #e91e63;
    border-radius: 50%;
    z-index: 3;
    animation: suuqone-spin 0.6s linear infinite;
}

@keyframes suuqone-spin {
    to { transform: rotate(360deg); }
}

/* ----------------------------------------------------------------
 *  Hide Dokan / WooCommerce redundant item lists — our vendor
 *  block already displays per-vendor item breakdowns.
 * ----------------------------------------------------------------*/

.woocommerce-shipping-contents {
    display: none !important;
}

/* ----------------------------------------------------------------
 *  Vendor block — Amazon-style grouped shipping display
 * ----------------------------------------------------------------*/

.suuqone-vendor-block {
    margin-top: 6px;
    padding: 10px 12px;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    font-size: 0.88em;
    line-height: 1.5;
}

/* Route: "Kismayo → Hargeisa" */
.suuqone-route {
    font-size: 0.85em;
    color: #6b7280;
    margin-bottom: 3px;
}

.suuqone-mode {
    display: inline-block;
    background: #e5e7eb;
    color: #374151;
    font-size: 0.8em;
    padding: 1px 6px;
    border-radius: 3px;
    margin-left: 4px;
    text-transform: uppercase;
    font-weight: 500;
    letter-spacing: 0.03em;
}

/* ETA line */
.suuqone-eta {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 0.85em;
    color: #059669;
    font-weight: 500;
    margin-bottom: 6px;
}

.suuqone-eta svg {
    width: 14px;
    height: 14px;
    fill: currentColor;
    flex-shrink: 0;
}

/* Items list */
.suuqone-items-list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.suuqone-items-list li {
    font-size: 0.85em;
    color: #4b5563;
    padding: 1px 0;
}

.suuqone-items-list li::before {
    content: "·";
    margin-right: 6px;
    color: #9ca3af;
    font-weight: bold;
}

.suuqone-qty {
    color: #9ca3af;
    font-size: 0.9em;
}

/* ----------------------------------------------------------------
 *  Warning notices (amber)
 * ----------------------------------------------------------------*/

.suuqone-warnings {
    margin: 6px 0 0;
    padding: 0;
    list-style: none;
}

.suuqone-warnings li {
    font-size: 0.8em;
    color: #92400e;
    background: #fffbeb;
    border: 1px solid #fcd34d;
    border-radius: 4px;
    padding: 5px 8px;
    margin-bottom: 3px;
    line-height: 1.35;
}

/* ----------------------------------------------------------------
 *  Block notices (red) — items that cannot be shipped
 * ----------------------------------------------------------------*/

.suuqone-blocks {
    margin: 6px 0 0;
    padding: 0;
    list-style: none;
}

.suuqone-blocks li {
    font-size: 0.8em;
    color: #991b1b;
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: 4px;
    padding: 5px 8px;
    margin-bottom: 3px;
    line-height: 1.35;
}

/* ----------------------------------------------------------------
 *  Order conflict notices
 * ----------------------------------------------------------------*/

.suuqone-conflicts {
    margin: 6px 0 0;
    font-size: 0.8em;
    color: #9a3412;
    background: #fff7ed;
    border: 1px solid #fdba74;
    border-radius: 4px;
    padding: 5px 8px;
    line-height: 1.35;
}

.suuqone-conflicts p {
    margin: 0;
}

/* ----------------------------------------------------------------
 *  Suggestion notices (blue/info)
 * ----------------------------------------------------------------*/

.suuqone-suggestions {
    margin: 6px 0 0;
    font-size: 0.8em;
    color: #1e40af;
    background: #eff6ff;
    border: 1px solid #93c5fd;
    border-radius: 4px;
    padding: 5px 8px;
    line-height: 1.35;
}

.suuqone-suggestions p {
    margin: 0 0 2px;
}

.suuqone-suggestions p:last-child {
    margin-bottom: 0;
}

/* ----------------------------------------------------------------
 *  "Delivery not available" notice (used when checkout: false)
 * ----------------------------------------------------------------*/

.suuqone-unavailable {
    font-size: 0.88em;
    color: #991b1b;
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: 6px;
    padding: 12px 14px;
    margin-top: 6px;
    line-height: 1.5;
}

.suuqone-unavailable-reason {
    margin: 0 0 6px;
}

.suuqone-unavailable-items {
    margin: 4px 0 0;
    padding: 0 0 0 1.2em;
    list-style: disc;
}

.suuqone-unavailable-items li {
    font-size: 0.92em;
    margin-bottom: 2px;
}

.suuqone-unavailable .suuqone-conflicts {
    margin-top: 8px;
    color: #9a3412;
    background: #fff7ed;
    border-color: #fdba74;
}

.suuqone-unavailable .suuqone-suggestions {
    margin-top: 8px;
    color: #1e40af;
    background: #eff6ff;
    border-color: #93c5fd;
}

/* ----------------------------------------------------------------
 *  Global shipping notices — appears once after all packages
 * ----------------------------------------------------------------*/

.suuqone-global-notices-row td {
    padding: 0 !important;
    border: none !important;
}

.suuqone-global-notices {
    padding: 0 0 4px;
}

.suuqone-notice {
    font-size: 0.85em;
    line-height: 1.45;
    border-radius: 5px;
    padding: 8px 12px;
    margin-top: 8px;
}

.suuqone-notice:first-child {
    margin-top: 0;
}

.suuqone-notice ul {
    margin: 4px 0 0;
    padding: 0 0 0 1.2em;
    list-style: disc;
}

.suuqone-notice ul li {
    margin-bottom: 2px;
}

.suuqone-notice p {
    margin: 0 0 2px;
}

.suuqone-notice p:last-child {
    margin-bottom: 0;
}

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

.suuqone-notice--warning {
    color: #92400e;
    background: #fffbeb;
    border: 1px solid #fcd34d;
}

.suuqone-notice--info {
    color: #1e40af;
    background: #eff6ff;
    border: 1px solid #93c5fd;
}
