/* Basic styling for group purchasing notices and dashboard */

.wc-org-gp-notice {
    display: block;
    margin: 20px 0 30px; /* top, horizontal, bottom spacing */
    padding: 8px 10px;
    background: #f5f7ff;
    border-left: 3px solid #4a6cf7;
    font-size: 0.9em;
}

.wc-org-gp-cart-note {
    margin-top: 8px;
    padding: 8px 10px;
    background: #f5f7ff;
    border-left: 3px solid #4a6cf7;
    font-size: 0.9em;
}

.wc-org-gp-dashboard {
    border: 1px solid #e5e5e5;
    padding: 15px;
    border-radius: 4px;
    background: #fff;
}

.wc-org-gp-dashboard h4 {
    margin-top: 0;
}

/* Simple horizontal progress bar on product page */
.wc-org-gp-progress {
    position: relative;
    width: 100%;
    max-width: 420px;
    height: 10px;
    background: #e5e7f3;
    border-radius: 999px;
    margin: 8px 0 6px;
    overflow: hidden;
}

.wc-org-gp-progress-bar {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 0;
    background: linear-gradient(90deg, #4a6cf7, #34c759);
    border-radius: 999px;
    transition: width 0.35s ease-out;
}

.wc-org-gp-progress-text {
    font-size: 0.9em;
    color: #333;
}

/* Vendor settings form styling */
.wc-org-gp-vendor-settings-wrapper {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    background: #fff;
    padding: 20px;
    border: 1px solid #ddd;
    border-radius: 4px;
    margin-bottom: 20px;
}

.wc-org-gp-vendor-form {
    display: block !important;
    visibility: visible !important;
}

.wc-org-gp-field {
    display: block !important;
    visibility: visible !important;
    margin-bottom: 15px;
}

.wc-org-gp-label {
    display: block !important;
    visibility: visible !important;
    font-weight: 500;
    color: #333;
    margin-bottom: 5px;
}

.wc-org-gp-checkbox {
    display: inline-block !important;
    visibility: visible !important;
    opacity: 1 !important;
    width: auto !important;
    height: auto !important;
    margin-right: 8px !important;
    vertical-align: middle;
}

.wc-org-gp-input,
input[name="wc_org_gp_threshold"],
input[name="wc_org_gp_duration_days"] {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    width: 100% !important;
    max-width: 400px;
    padding: 8px 12px !important;
    border: 1px solid #ddd !important;
    border-radius: 4px;
    font-size: 14px;
    margin-top: 5px;
}

.wc-org-gp-submit,
button.wc-org-gp-submit {
    display: inline-block !important;
    visibility: visible !important;
    opacity: 1 !important;
    background: #4a6cf7 !important;
    color: #fff !important;
    padding: 10px 20px !important;
    border: none !important;
    border-radius: 4px;
    font-size: 14px;
    cursor: pointer;
    transition: background 0.3s;
}

.wc-org-gp-submit:hover,
button.wc-org-gp-submit:hover {
    background: #3451d9 !important;
}

/* Organisation sessions table progress bar */
.wc-org-gp-org-table .wc-org-gp-table-progress {
    position: relative;
    width: 120px;
    height: 8px;
    background: #e5e7f3;
    border-radius: 999px;
    overflow: hidden;
    margin-bottom: 4px;
}

.wc-org-gp-org-table .wc-org-gp-table-progress-bar {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 0;
    background: linear-gradient(90deg, #4a6cf7, #34c759);
    border-radius: 999px;
}

.wc-org-gp-org-table .wc-org-gp-table-progress-text {
    font-size: 0.85em;
    color: #555;
}

/* Clickable email domain links */
.wc-org-gp-view-orders {
    color: #4a6cf7;
    text-decoration: none;
    font-weight: 500;
    cursor: pointer;
    transition: color 0.2s ease;
}

.wc-org-gp-view-orders:hover {
    color: #3451d9;
    text-decoration: underline;
}

/* Modal styling enhancements */
#wc-org-gp-orders-modal .shop_table {
    margin-top: 20px;
}

#wc-org-gp-orders-modal h3 {
    margin-top: 0;
    color: #333;
}
