/* ============================================================
   Minimum Order by Customer Group – Frontend Styles
   ============================================================ */

.mogcg-minimum-order {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 16px 20px;
    margin: 16px 0;
    border-radius: 8px;
    font-family: inherit;
    border: 1.5px solid transparent;
    transition: border-color 0.3s ease, background-color 0.3s ease;
}

/* Warning state */
.mogcg-minimum-order.mogcg--warning {
    background-color: #fff8ec;
    border-color: #f5a623;
    color: #7a4f00;
}

/* Reached state */
.mogcg-minimum-order.mogcg--reached {
    background-color: #edfaf3;
    border-color: #27ae60;
    color: #155a35;
}

/* Icon */
.mogcg-icon {
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    margin-top: 2px;
}

.mogcg-icon svg {
    width: 100%;
    height: 100%;
}

.mogcg--warning .mogcg-icon svg { stroke: #f5a623; }
.mogcg--reached  .mogcg-icon svg { stroke: #27ae60; }

/* Content */
.mogcg-content {
    flex: 1;
    min-width: 0;
}

.mogcg-title {
    margin: 0 0 4px;
    font-weight: 700;
    font-size: 0.95rem;
    line-height: 1.3;
}

.mogcg-desc {
    margin: 0 0 12px;
    font-size: 0.875rem;
    line-height: 1.5;
    opacity: 0.9;
}

/* Progress bar */
.mogcg-progress-bar {
    width: 100%;
    height: 10px;
    background-color: rgba(0, 0, 0, 0.1);
    border-radius: 99px;
    overflow: hidden;
}

.mogcg-progress-fill {
    height: 100%;
    border-radius: 99px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    min-width: 28px;
    transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.mogcg--warning .mogcg-progress-fill  { background-color: #f5a623; }
.mogcg--reached  .mogcg-progress-fill { background-color: #27ae60; }

.mogcg-progress-label {
    font-size: 0.65rem;
    font-weight: 700;
    color: #fff;
    padding-right: 5px;
    white-space: nowrap;
    line-height: 10px;
}
