:root {
    --probo-connect-green-background: #d4edda;
    --probo-connect-green-text: #155724;

    --probo-connect-blue-background: #d5ebf1;
    --probo-connect-blue-text: #003d66;

    --probo-connect-purple-background: #cfc4e8;
    --probo-connect-purple-text: #4e2e8d;

    --probo-connect-yellow-background: #fff3cd;
    --probo-connect-yellow-text: #856404;

    --probo-connect-red-background: #f8d7da;
    --probo-connect-red-text: #721c24;

    --probo-connect-gray-background: #e2e3e5;
    --probo-connect-gray-text: #383d41;
}

.probo-connect-status{
    --badge-background : var(--probo-connect-gray-background);
    --badge-text : var(--probo-connect-gray-text);

    display: inline-flex;
    line-height: 2.5em;
    background: var(--badge-background);
    color: var(--badge-text);
    padding : 0 10px;
    border-radius: 4px;
    border-bottom: 1px solid rgba(0, 0, 0, .05);
    margin: -.25em 0;
    cursor: inherit !important;
    white-space: nowrap;
    max-width: 100%;
}

.probo-connect-status.green{
    --badge-background : var(--probo-connect-green-background);
    --badge-text : var(--probo-connect-green-text)
}
.probo-connect-status.blue{
    --badge-background : var(--probo-connect-blue-background);
    --badge-text : var(--probo-connect-blue-text)
}
.probo-connect-status.purple{
    --badge-background : var(--probo-connect-purple-background);
    --badge-text : var(--probo-connect-purple-text)
}
.probo-connect-status.yellow{
    --badge-background : var(--probo-connect-yellow-background);
    --badge-text : var(--probo-connect-yellow-text)
}
.probo-connect-status.red{
    --badge-background : var(--probo-connect-red-background);
    --badge-text : var(--probo-connect-red-text)
}
.probo-connect-status.gray{
    --badge-background : var(--probo-connect-gray-background);
    --badge-text : var(--probo-connect-gray-text)
}

.probo-connect-status-dot{
    width:10px;
    height:10px;
    line-height: 0;
    padding:0;
    border:0;
    border-radius: 100%;
    transform: scale(1);


}
.probo-connect-status-dot.gray > span{
    display: block;
    height: inherit;
    width: inherit;
   animation: pulse 1s cubic-bezier(0, 0, 0.2, 1) infinite;
    background-color: inherit;

    border-radius: inherit;
}

@keyframes pulse {

    75%, 100% {
        transform: scale(1.7);
        opacity: 0;
    }
}


.probo-order-panel {
    color: #333;
    padding: 23px 24px 12px;
}

.probo-order-panel-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: 2fr;
    grid-column-gap: 0px;
    grid-row-gap: 20px;
}

@media (max-width: 768px) {
    .probo-order-panel-grid {
        grid-template-columns: repeat(1, 1fr);
    }
}

.probo-order-panel-column h3,
.probo-order-panel h3 {
    font-size: 14px;
    margin: 1.33em 0 0;
}

.probo-order-panel-column dl {
    display: grid;
    grid-gap: 4px 20px;
    grid-template-columns: max-content;
    align-items: center;
    min-height:30px;
}

.probo-order-panel-column dt {
    color: #777;
}

.probo-order-panel-column dd {
    margin: 0;
    grid-column-start: 2;
    align-self:center;
    display: flex;
    align-items: center;
}

.probo-order-metabox .synctime {
    text-align: right;
    font-style: italic;
    font-size: smaller;
    color: #777;
    margin-left: auto;
}

.probo-order-metabox .probo-order-log-link {
    display: inline-block;
    margin-top: 8px;
    font-size: smaller;
    color: #888;
    text-decoration: none;
}

.probo-order-metabox .probo-order-log-link:hover {
    color: #2271b1;
    text-decoration: underline;
}

.probo-order-metabox .actions {
    display: flex;
    border-top: 1px solid #dfdfdf;
    padding: 1.5em 2em;
    background: #f8f8f8;
    line-height: 2em;
    margin: -12px;
    margin-top: 10px;
}

.probo-order-metabox [data-probo="edittoggle"]{

    cursor: pointer;
    width: 14px;
    height: 0;
    padding: 14px 0 0;
    margin: 0 0 0 6px;
    overflow: hidden;
    position: relative;
    color: #999;
    border: 0;
}
.probo-order-metabox [data-probo="edittoggle"]:hover{
    color: #000;
}

.probo-order-metabox [data-probo="edittoggle"] span{
    display: none;
}

.probo-order-metabox [data-probo="edittoggle"],
.probo-order-metabox [data-probo="edittoggle"]::after {
    font-family: Dashicons;
    content: "\f464";
}

.probo-order-metabox [data-probo="editablestate"].editing [data-probo="edittoggle"]::after{
    content: "\f171";
}


.probo-order-metabox [data-probo="editablestate"] {

}

.probo-order-metabox [data-probo="editablestate"] .read {
    display: block;
}

.probo-order-metabox [data-probo="editablestate"] .edit {
    display: none;
}

.probo-order-metabox [data-probo="editablestate"].editing .read {
    display: none;
}

.probo-order-metabox [data-probo="editablestate"].editing .edit {
    display: block;
}

.probo-order-meta-data{
    min-height:30px;
}

/* Order reference field: empty means "use the generated prefix + order number",
   which the placeholder shows. Read-only once the order reached Probo. */
.probo-order-reference-input {
    width: 100%;
    max-width: 260px;
}

/* Admin override notice */
.probo-admin-override-notice {
    background:var(--probo-connect-yellow-background);
    padding: 6px 10px;
    margin: 0 0 8px;
    font-size: 12px;
    color: var(--probo-connect-yellow-text);
}

/* Product panel intro notice (explains which Probo catalog applies) */
.probo-panel-intro-notice {
    background:var(--probo-connect-blue-background);
    padding: 10px 12px;
    margin: 0 0 12px;
    color: var(--probo-connect-blue-text);
}

.probo-panel-intro-notice p {
    margin: 0;
    padding: 0;
}

/* ==========================================================================
   Probo Dialog Styles
   ========================================================================== */

/* Base dialog styles */
.probo-dialog {
    padding: 0;
    border: none;
    border-radius: 8px;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.1), 0 16px 48px rgba(0, 0, 0, 0.2);
    max-width: 600px;
    width: calc(100% - 32px);
    background: #fff;
}

.probo-dialog::backdrop {
    background: rgba(0, 0, 0, 0.5);
}

/* Dialog header */
.probo-dialog header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 24px 0;
    background: #fff;
}

.probo-dialog header h3 {
    margin: 0;
    font-size: 20px;
    font-weight: 400;
    color: #1e1e1e;
}

.probo-dialog header .close-btn {
    background: none;
    border: none;
    font-size: 28px;
    font-weight: 300;
    cursor: pointer;
    padding: 0;
    line-height: 1;
    color: #757575;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
}

.probo-dialog header .close-btn:hover {
    background: #f0f0f0;
    color: #1e1e1e;
}

/* Dialog content */
.probo-dialog .dialog-content {
    padding: 24px;
    max-height: 60vh;
    overflow-y: auto;
}

/* Dialog fields */
.probo-dialog .dialog-field {
    margin-bottom: 16px;
}

.probo-dialog .dialog-field:last-child {
    margin-bottom: 0;
}

.probo-dialog .dialog-field label {
    display: block;
    margin-bottom: 8px;
    font-weight: 400;
    font-size: 13px;
    color: #1e1e1e;
}

.probo-dialog .dialog-field input[type="text"],
.probo-dialog .dialog-field input[type="email"],
.probo-dialog .dialog-field select {
    width: 100%;
    padding: 10px 12px;
    font-size: 14px;
    border: 1px solid #8c8f94;
    border-radius: 4px;
    background: #fff;
    box-sizing: border-box;
}

.probo-dialog .dialog-field input:focus,
.probo-dialog .dialog-field select:focus {
    border-color: #3858e9;
    box-shadow: 0 0 0 1px #3858e9;
    outline: none;
}

/* Dialog checkbox field */
.probo-dialog .dialog-field-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 12px;
    background: #f6f7f7;
    border-radius: 4px;
}

.probo-dialog .dialog-field-checkbox input[type="checkbox"] {
    margin-top: 2px;
    width: 18px;
    height: 18px;
}

.probo-dialog .dialog-field-checkbox .description {
    font-size: 13px;
    color: #646970;
    margin-top: 4px;
}

/* Dialog section titles and descriptions */
.probo-dialog .dialog-section-title {
    font-size: 13px;
    font-weight: 600;
    color: #1e1e1e;
    margin: 24px 0 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid #e0e0e0;
}

.probo-dialog .dialog-section-title:first-child {
    margin-top: 0;
}

.probo-dialog .dialog-description {
    font-size: 13px;
    color: #646970;
    margin-bottom: 16px;
}

/* Dialog footer */
.probo-dialog footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding: 16px 24px;
    background: #fff;
    border-top: 1px solid #e0e0e0;
}

.probo-dialog footer .footer-notice {
    font-size: 12px;
    color: #757575;
    font-style: italic;
}

.probo-dialog footer .button-primary {
    background: #3858e9;
    border: 1px solid #3858e9;
    color: #fff;
    padding: 8px 16px;
    border-radius: 4px;
    font-size: 13px;
    cursor: pointer;
    flex-shrink: 0;
}

.probo-dialog footer .button-primary:hover {
    background: #2145e6;
    border-color: #2145e6;
}

/* ==========================================================================
   Sender Dialog - Opening Hours Grid
   ========================================================================== */

.probo-dialog .opening-hours-grid {
    display: grid;
    grid-template-columns: 140px 1fr 1fr 1fr;
    gap: 8px;
    align-items: center;
}

.probo-dialog .opening-hours-grid label {
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.probo-dialog .opening-hours-grid input[type="text"],
.probo-dialog .opening-hours-grid input[type="time"] {
    padding: 8px 10px;
    font-size: 13px;
    border: 1px solid #8c8f94;
    border-radius: 4px;
    width:100px !important;
}

.probo-dialog .opening-hours-grid input[type="text"]:focus,
.probo-dialog .opening-hours-grid input[type="time"]:focus {
    border-color: #3858e9;
    box-shadow: 0 0 0 1px #3858e9;
    outline: none;
}

/* ==========================================================================
   Shipping Methods Dialog
   ========================================================================== */

.probo-dialog .shipping-method-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    margin-bottom: 8px;
    transition: background-color 0.15s ease;
}

.probo-dialog .shipping-method-item:last-child {
    margin-bottom: 0;
}

.probo-dialog .shipping-method-item:hover {
    background: #f9f9f9;
}

.probo-dialog .shipping-method-item input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin: 0;
    flex-shrink: 0;
}

.probo-dialog .shipping-method-item .method-info {
    flex: 1;
    min-width: 0;
}

.probo-dialog .shipping-method-item .method-name {
    font-weight: 500;
    font-size: 14px;
    color: #1e1e1e;
    margin: 0 0 2px;
}

.probo-dialog .shipping-method-item .method-code {
    font-size: 12px;
    color: #757575;
    font-family: monospace;
}

.probo-dialog .no-methods {
    padding: 24px;
    text-align: center;
    color: #757575;
    font-style: italic;
}

/* Shipping type group styles */
.probo-dialog .shipping-type-group {
    margin-bottom: 20px;
}

.probo-dialog .shipping-type-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
    font-weight: 600;
}

.probo-dialog .shipping-type-header .type-count {
    color: #757575;
    font-weight: normal;
}


.probo-slideout{
    top: 0;
    isolation: isolate;
    left:auto !important;
    right:0 !important;
    border-radius: 0;
    position: fixed;
    inset: 0 auto 0 0;
    box-shadow: 0 10px 15px -3px #0000001a, 0 4px 6px -4px #0000001a;
    transition: transform .3s cubic-bezier(.4, 0, .2, 1);
    overflow: hidden;
    max-width: 80%;
    width:700px;
    height: 100vh;
    min-height: 100vh;
    max-height: 100vh;
    will-change: transform;
}
.probo-slideout:popover-open{
    display: flex;
    flex-direction: column;
}
.probo-slideout main{
    overflow:scroll;
    padding: 0 10px;
}
.probo-slideout .dialog-content{
    flex: 1;
    max-width:inherit;
    overflow-y: auto;
}

/* ==========================================================================
   Delivery Slide-Out
   ========================================================================== */

/* Destination cards */
.probo-delivery-destinations {
    margin-bottom: 20px;
}

.probo-destination-card {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    padding: 12px;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    margin-bottom: 6px;
    background: #fff;
    cursor: pointer;
    transition: border-color 0.15s ease, background-color 0.15s ease;
    font-size: 13px;
    box-sizing: border-box;
}

.probo-destination-card:hover {
    background: #f9f9f9;
    border-color: #c3c4c7;
}

.probo-destination-card.selected {
    border-color: #3858e9;
    background: #f0f3ff;
    box-shadow: 0 0 0 1px #3858e9;
}

.probo-destination-card input[type="radio"] {
    margin: 0;
    flex-shrink: 0;
    accent-color: #3858e9;
}

.probo-destination-card .card-body {
    flex: 1;
    min-width: 0;
}

.probo-destination-card .card-title {
    font-weight: 500;
    color: #1e1e1e;
}

.probo-destination-card .card-body address {
    font-style: normal;
    font-size: 12px;
    color: #646970;
    line-height: 1.5;
    margin-top: 2px;
}

/* Products details/summary */
.probo-delivery-products-details {
    margin-bottom: 20px;
}

.probo-delivery-products-details > summary {
    font-size: 13px;
    font-weight: 600;
    color: #1e1e1e;
    cursor: pointer;
    padding: 8px 0;
    border-bottom: 1px solid #e0e0e0;
    list-style: none;
    display: flex;
    align-items: center;
    gap: 6px;
    user-select: none;
}

.probo-delivery-products-details > summary::before {
    content: '▶';
    font-size: 10px;
    color: #757575;
    transition: transform 0.15s ease;
}

.probo-delivery-products-details[open] > summary::before {
    transform: rotate(90deg);
}

.probo-delivery-product-summary {
    padding-bottom: 16px;
    margin-bottom: 16px;
}

.probo-delivery-product-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 6px 0;
}

.probo-delivery-product-item .product-name {
    flex: 1;
    font-weight: 500;
    font-size: 13px;
    color: #1e1e1e;
}

.probo-delivery-product-item .product-code {
    font-family: monospace;
    font-size: 12px;
    color: #757575;
}

.probo-delivery-product-item .product-qty {
    font-size: 13px;
    color: #646970;
    flex-shrink: 0;
}

.probo-delivery-loading {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 24px 0;
    color: #646970;
    font-size: 13px;
}

.probo-delivery-loading .spinner {
    float: none;
    margin: 0;
}

.probo-delivery-empty {
    padding: 24px 0;
    text-align: center;
    color: #757575;
    font-style: italic;
    font-size: 13px;
}

.probo-delivery-date-group {
    margin-bottom: 20px;
}

.probo-delivery-date-heading {
    font-size: 13px;
    font-weight: 600;
    color: #1e1e1e;
    margin: 0 0 10px;
    padding-bottom: 6px;
    border-bottom: 1px solid #e0e0e0;
}

.probo-delivery-method-card {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    padding: 12px;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    margin-bottom: 6px;
    background: #fff;
    cursor: pointer;
    transition: border-color 0.15s ease, background-color 0.15s ease;
    font-size: 13px;
    text-align: left;
}

.probo-delivery-method-card:hover {
    background: #f9f9f9;
    border-color: #c3c4c7;
}

.probo-delivery-method-card.selected {
    border-color: #3858e9;
    background: #f0f3ff;
    box-shadow: 0 0 0 1px #3858e9;
}

.probo-delivery-method-card.is-current {
    border-color: #c3c4c7;
    background: #f6f7f7;
}

.probo-delivery-method-card .method-name {
    flex: 1;
    font-weight: 500;
    color: #1e1e1e;
}

.probo-delivery-method-card .method-price {
    font-weight: 600;
    color: #1e1e1e;
    flex-shrink: 0;
}

.probo-delivery-method-card .method-rush,
.probo-delivery-method-card .method-preset-badge {
    font-size: 11px;
    padding: 2px 6px;
    border-radius: 3px;
    flex-shrink: 0;
}

.probo-delivery-method-card .method-rush {
    background: var(--probo-connect-yellow-background);
    color: var(--probo-connect-yellow-text);
}

.probo-delivery-method-card .method-preset-badge {
    background: #e8f0fe;
    color: #3858e9;
    font-weight: 600;
    text-transform: lowercase;
}

#probo-delivery-slideout footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

#probo-delivery-slideout .footer-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}


/* ==========================================================================
   Select2 product dropdown thumbnails
   ========================================================================== */

.probo-select2-option {
	display: flex;
	align-items: center;
	gap: 8px;
}

.probo-select2-option img {
	width: 32px;
	height: 32px;
	object-fit: contain;
	border-radius: 2px;
	flex-shrink: 0;
}

.probo-select2-selection img {
	width: 24px;
	height: 24px;
}

/* ==========================================================================
   Probo Products Catalog
   ========================================================================== */

/* Shared status badges (sync status) */
.probo-products-catalog .column-status .probo-lifecycle {
	display: inline-block;
	padding: 2px 8px;
	border-radius: 3px;
	font-size: 12px;
	font-weight: 500;
}

.probo-lifecycle.probo-lifecycle-available{
	background: var(--probo-connect-green-background);
	color: var(--probo-connect-green-text);
}

.probo-products-catalog .probo-status-pending {
	background: var(--probo-connect-yellow-background);
	color: var(--probo-connect-yellow-text);
}

.probo-products-catalog .probo-status-error {
	background: var(--probo-connect-red-background);
	color: var(--probo-connect-red-text);
}

.probo-products-catalog .probo-status-unknown {
	background: var(--probo-connect-gray-background);
	color: var(--probo-connect-gray-text);
}

/* Sync status dot */
.probo-sync-dot {
	display: inline-block;
	width: 10px;
	height: 10px;
	border-radius: 50%;
	vertical-align: middle;
}

.probo-sync-dot--synced {
	background-color: #46b450;
}

.probo-sync-dot--pending {
	background-color: #f0a500;
}

.probo-sync-dot--syncing {
	background-color: #826eb4;
}

.probo-sync-dot--error {
	background-color: #dc3232;
}

/* Shared lifecycle badges (product status) */
.probo-lifecycle {
	display: inline-block;
	padding: 2px 8px;
	border-radius: 3px;
	font-size: 11px;
	font-weight: 500;
	vertical-align: middle;
}

.probo-products-catalog .probo-lifecycle {
	margin-left: 6px;
}

.probo-lifecycle-available {
	background: #e9ecef;
	color: #495057;
}

.probo-lifecycle-new {
	background: #cce5ff;
	color: #004085;
}

.probo-lifecycle-updated {
	background: var(--probo-connect-green-background);
	color: var(--probo-connect-green-text);
}

.probo-lifecycle-eol {
	background: var(--probo-connect-yellow-background);
	color: var(--probo-connect-yellow-text);
}

.probo-lifecycle-discontinued {
	background: var(--probo-connect-red-background);
	color: var(--probo-connect-red-text);
}

.probo-lifecycle-unknown {
	background: var(--probo-connect-gray-background);
	color: var(--probo-connect-gray-text);
}

/* Shared elements */
.probo-products-catalog .probo-no-links {
	color: #999;
	font-style: italic;
}

/* ==========================================================================
   Probo Products Catalog - List Page
   ========================================================================== */

.probo-products-catalog .probo-last-sync {
	display: inline-block;
	margin-left: 15px;
	color: #666;
	font-style: italic;
}

.probo-products-catalog .column-image {
	width: 58px;
	padding-right: 0;
}

.probo-products-catalog .column-api_code {
	width: 150px;
}

.probo-products-catalog .column-sync_status {
	width: 110px;
	text-align: center;
	/* Wide enough for the longest header word so it wraps by word, not mid-word. */
	word-break: normal;
	overflow-wrap: normal;
}

.probo-products-catalog .column-actions {
	width: 160px;
}

.probo-products-catalog .probo-sync-all-btn,
.probo-products-catalog .probo-full-sync-btn {
	margin-right: 5px;
}

.probo-products-catalog .probo-delete-all-btn {
	color: #b32d2e !important;
	border-color: #b32d2e !important;
}

.probo-products-catalog .probo-import-btn:disabled,
.probo-products-catalog .probo-sync-all-btn:disabled,
.probo-products-catalog .probo-full-sync-btn:disabled {
	opacity: 0.6;
	cursor: not-allowed;
}

/* ==========================================================================
   Probo Products Catalog - Detail Page
   ========================================================================== */

.probo-product-detail .probo-product-detail-grid {
	display: grid;
	grid-template-columns: 300px 1fr;
	gap: 30px;
	margin-top: 20px;
}

.probo-product-detail .probo-product-image-container {
	background: #fff;
	border: 1px solid #ddd;
	border-radius: 4px;
	padding: 20px;
	text-align: center;
}

.probo-product-detail .probo-product-image-container img {
	max-width: 100%;
	height: auto;
}

.probo-product-detail .probo-no-image {
	font-size: 150px;
	width: 150px;
	height: 150px;
	color: #ccc;
}

.probo-product-detail .probo-product-info {
	background: #fff;
	border: 1px solid #ddd;
	border-radius: 4px;
	padding: 20px;
}

.probo-product-detail .form-table th {
	width: 150px;
	padding: 10px 0;
}

.probo-product-detail .form-table td {
	padding: 10px 0;
}

.probo-product-detail h3 {
	margin-top: 30px;
	margin-bottom: 15px;
	border-bottom: 1px solid #ddd;
	padding-bottom: 10px;
}

.probo-product-detail .probo-linked-products-list {
	margin: 0;
	padding: 0;
	list-style: none;
}

.probo-product-detail .probo-linked-products-list li {
	padding: 8px 0;
	border-bottom: 1px solid #eee;
}

.probo-product-detail .probo-linked-products-list li:last-child {
	border-bottom: none;
}

.probo-product-detail .product-type,
.probo-product-detail .product-status {
	color: #666;
	font-size: 12px;
	margin-left: 5px;
}

.probo-product-detail .probo-product-actions {
	margin-top: 30px;
	padding-top: 20px;
	border-top: 1px solid #ddd;
}

.probo-product-detail .probo-product-actions .button {
	margin-right: 10px;
}

.probo-product-detail .probo-product-actions .button .dashicons {
	margin-right: 5px;
}

.probo-product-detail .probo-refresh-btn:disabled,
.probo-product-detail .probo-import-btn:disabled {
	opacity: 0.6;
	cursor: not-allowed;
}

@media screen and (max-width: 782px) {
	.probo-product-detail .probo-product-detail-grid {
		grid-template-columns: 1fr;
	}
}

/* ==========================================================================
   Probo Dashboard
   ========================================================================== */

/* ==========================================================================
   Dashboard (admin.php?page=probo-connect)

   Native WordPress-admin styling: white panels on the #f0f0f1 canvas,
   1px #c3c4c7 borders, no radius. Functional accent colours only —
   blue (info), green (good), amber (attention). No purple.
   ========================================================================== */

/* The theme-install button also renders on the Probo settings tab, outside the
   dashboard wrapper, so it carries the same tokens for its opt-in dialog. */
.probo-dashboard,
.probo-theme-install {
	--pd-line: #dcdcde;
	--pd-line-soft: #efeff1;
	--pd-panel-border: #c3c4c7;
	--pd-panel-shadow: 0 1px 1px rgba(0, 0, 0, 0.04);
	--pd-ink: #1d2327;
	--pd-ink-2: #50575e;
	--pd-muted: #646970;
	--pd-blue: #2271b1;
	--pd-blue-soft: #e8f1f8;
	--pd-blue-ink: #0f4b75;
	--pd-green: #0a6b2d;
	--pd-green-soft: #edfaef;
	--pd-amber: #dba617;
	--pd-amber-soft: #fcf0e3;
	--pd-amber-ink: #8a4b08;
	--pd-red: #d63638;
	--pd-accent: #1b4dff;
}

/* --- Page head + connection status ---------------------------------------- */

.probo-dash-head {
	display: flex;
	align-items: flex-end;
	gap: 16px;
	flex-wrap: wrap;
	margin-bottom: 6px;
}

.probo-dash-head__title {
	margin: 0;
	padding: 0;
	font-size: 23px;
	font-weight: 400;
	line-height: 1.3;
}

.probo-dash-status {
	display: flex;
	align-items: center;
	gap: 8px;
	flex-wrap: wrap;
	padding-bottom: 4px;
}

.probo-dash-pill {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	height: 24px;
	padding: 0 9px;
	border-radius: 12px;
	font-size: 12px;
	font-weight: 600;
}

.probo-dash-pill__dot {
	width: 6px;
	height: 6px;
	border-radius: 999px;
	background: currentcolor;
}

.probo-dash-pill--ok {
	background: var(--pd-green-soft);
	color: var(--pd-green);
}

.probo-dash-pill--error {
	background: #fcebea;
	color: var(--pd-red);
}

.probo-dash-status__meta {
	font-size: 12px;
	color: var(--pd-muted);
}

.probo-dash-head__actions {
	margin-left: auto;
	display: flex;
	gap: 8px;
	padding-bottom: 2px;
}

.probo-dash-head__actions .button {
	white-space: nowrap;
}

.probo-dash-btn--sync {
	border-color: var(--pd-blue);
	color: var(--pd-blue);
}

.probo-dash-rule {
	border: 0;
	border-top: 1px solid var(--pd-line);
	margin: 14px 0 18px;
}

/* --- Companion-theme banner ----------------------------------------------- */

.probo-dash-banner {
	display: flex;
	align-items: stretch;
	border: 1px solid var(--pd-panel-border);
	border-left: 4px solid var(--pd-accent);
	background: #fff;
	box-shadow: var(--pd-panel-shadow);
	overflow: hidden;
	margin-bottom: 20px;
}

.probo-dash-banner__body {
	flex: 1 1 auto;
	min-width: 0;
	padding: 16px 20px 18px;
}

.probo-dash-banner__eyebrow {
	display: flex;
	align-items: center;
	gap: 8px;
	margin-bottom: 7px;
	font-size: 13px;
	font-weight: 600;
}

.probo-dash-banner__mark {
	width: 16px;
	height: 16px;
	border-radius: 3px;
	background: var(--pd-accent);
	flex: none;
}

.probo-dash-banner__title {
	font-size: 14px;
	font-weight: 600;
	margin-bottom: 4px;
}

.probo-dash-banner__text {
	margin: 0 0 14px;
	font-size: 13px;
	line-height: 1.6;
	color: var(--pd-ink-2);
	max-width: 56ch;
}

.probo-dash-banner__actions {
	display: flex;
	align-items: center;
	gap: 16px;
	flex-wrap: wrap;
}

.probo-dash-banner__button.button-primary {
	background: var(--pd-accent);
	border-color: var(--pd-accent);
}

.probo-dash-banner__button.button-primary:hover,
.probo-dash-banner__button.button-primary:focus {
	background: #133ccc;
	border-color: #133ccc;
}

.probo-dash-banner__dismiss {
	color: var(--pd-muted);
}

.probo-dash-banner__shots {
	flex: none;
	width: 330px;
	position: relative;
	align-self: stretch;
	min-height: 168px;
}

.probo-dash-banner__shot {
	position: absolute;
	width: 176px;
	height: auto;
	display: block;
	border: 1px solid var(--pd-line);
	border-radius: 4px;
}

.probo-dash-banner__shot--1 {
	top: 24px;
	left: 16px;
	box-shadow: 0 6px 16px rgba(0, 0, 0, 0.1);
	transform: rotate(-5deg);
}

.probo-dash-banner__shot--2 {
	top: 28px;
	left: 134px;
	box-shadow: 0 10px 26px rgba(0, 0, 0, 0.14);
	transform: rotate(4deg);
}

.probo-dash-banner__shot--3 {
	top: 14px;
	left: 76px;
	box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
	transform: rotate(-1.5deg);
	z-index: 1;
}

@media ( max-width: 782px ) {
	.probo-dash-banner__shots {
		display: none;
	}
}

/* --- Theme-download opt-in modal ------------------------------------------ */

/* Wrapper around the install button and its dialog. display: contents keeps the
   banner's flex row intact while giving the settings field the same markup. */
.probo-theme-install {
	display: contents;
}

.probo-dash-modal {
	width: min(460px, calc(100vw - 32px));
	padding: 0;
	border: 1px solid var(--pd-panel-border);
	border-radius: 4px;
	box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2);
	color: var(--pd-ink);
}

.probo-dash-modal::backdrop {
	background: rgba(0, 0, 0, 0.5);
}

.probo-dash-modal__inner {
	padding: 22px 24px 20px;
}

.probo-dash-modal__title {
	margin: 0 0 10px;
	padding: 0;
	border: 0;
	font-size: 16px;
	font-weight: 600;
}

.probo-dash-modal__text {
	margin: 0 0 16px;
	font-size: 13px;
	line-height: 1.6;
	color: var(--pd-ink-2);
}

.probo-dash-modal__optin {
	display: flex;
	align-items: flex-start;
	gap: 8px;
	font-size: 13px;
	line-height: 1.5;
	margin-bottom: 20px;
	cursor: pointer;
}

.probo-dash-modal__optin input {
	margin-top: 2px;
	flex: none;
}

.probo-dash-modal__actions {
	display: flex;
	justify-content: flex-end;
	gap: 10px;
}

.probo-dash-modal__confirm.is-disabled {
	pointer-events: none;
	opacity: 0.5;
}

/* --- Collapsible setup checklist ------------------------------------------ */

.probo-dash-checklist {
	background: #fff;
	border: 1px solid var(--pd-panel-border);
	box-shadow: var(--pd-panel-shadow);
	margin-bottom: 20px;
}

.probo-dash-checklist__bar {
	display: flex;
	align-items: center;
	gap: 14px;
	padding: 12px 16px;
	flex-wrap: wrap;
}

.probo-dash-checklist__heading {
	font-size: 14px;
	font-weight: 600;
}

.probo-dash-checklist__progress {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	font-size: 12px;
	color: var(--pd-ink-2);
}

.probo-dash-checklist__track {
	display: block;
	width: 120px;
	height: 6px;
	border-radius: 3px;
	background: var(--pd-line);
	overflow: hidden;
}

.probo-dash-checklist__fill {
	display: block;
	height: 6px;
	background: var(--pd-green);
}

.probo-dash-checklist__toggle {
	margin-left: auto;
	display: inline-flex;
	align-items: center;
	gap: 4px;
	border: 0;
	background: none;
	cursor: pointer;
	color: var(--pd-muted);
	font-size: 13px;
}

.probo-dash-checklist__chevron {
	font-size: 16px;
	width: 16px;
	height: 16px;
}

.probo-dash-checklist.is-collapsed .probo-dash-checklist__chevron {
	transform: rotate(180deg);
}

.probo-dash-checklist__step {
	border-top: 1px solid var(--pd-line);
	background: #fbfbfc;
	padding: 12px 16px 14px;
	display: flex;
	align-items: flex-start;
	gap: 12px;
}

.probo-dash-checklist__step.is-current {
	background: #fff;
}

.probo-dash-checklist.is-collapsed .probo-dash-checklist__steps {
	display: none;
}

.probo-dash-checklist__radio {
	width: 18px;
	height: 18px;
	flex: none;
	border-radius: 999px;
	border: 2px solid var(--pd-panel-border);
	margin-top: 1px;
	position: relative;
}

.probo-dash-checklist__step.is-done .probo-dash-checklist__radio {
	background: var(--pd-green);
	border-color: var(--pd-green);
}

.probo-dash-checklist__step.is-done .probo-dash-checklist__radio::after {
	content: "";
	position: absolute;
	top: 2px;
	left: 4px;
	width: 4px;
	height: 8px;
	border: solid #fff;
	border-width: 0 2px 2px 0;
	transform: rotate(45deg);
}

.probo-dash-checklist__step.is-done .probo-dash-checklist__step-title {
	color: var(--pd-muted);
	font-weight: 400;
}

.probo-dash-checklist__step.is-done .probo-dash-checklist__step-desc {
	color: var(--pd-muted);
}

.probo-dash-checklist__text {
	flex: 1 1 auto;
	min-width: 0;
}

.probo-dash-checklist__step-title {
	font-size: 13px;
	font-weight: 600;
	margin-bottom: 2px;
}

.probo-dash-checklist__step-desc {
	font-size: 13px;
	color: var(--pd-ink-2);
}

.probo-dash-checklist__cta {
	flex: none;
	white-space: nowrap;
}

.probo-dash-checklist__skip {
	flex: none;
	border: 0;
	background: none;
	cursor: pointer;
	color: var(--pd-muted);
	font-size: 13px;
	padding: 4px 2px;
}

/* --- Two-column panels ---------------------------------------------------- */

.probo-dash-columns {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	gap: 20px;
	align-items: start;
}

@media ( max-width: 782px ) {
	.probo-dash-columns {
		grid-template-columns: 1fr;
	}
}

.probo-dash-panel {
	background: #fff;
	border: 1px solid var(--pd-panel-border);
	box-shadow: var(--pd-panel-shadow);
}

.probo-dash-panel__head {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 12px 16px;
	border-bottom: 1px solid var(--pd-line);
}

.probo-dash-panel__title {
	font-size: 14px;
	font-weight: 600;
}

.probo-dash-panel__meta {
	margin-left: auto;
	font-size: 12px;
	color: var(--pd-muted);
}

.probo-dash-count-pill {
	display: inline-flex;
	align-items: center;
	height: 20px;
	padding: 0 8px;
	border-radius: 10px;
	background: var(--pd-amber-soft);
	color: var(--pd-amber-ink);
	font-size: 11px;
	font-weight: 700;
}

.probo-dash-panel__foot {
	padding: 11px 16px;
	background: #fbfbfc;
	font-size: 13px;
}

.probo-dash-panel__foot--split {
	display: flex;
	justify-content: space-between;
	gap: 12px;
}

.probo-dash-recent__synced {
	color: var(--pd-muted);
}

.probo-dash-empty {
	padding: 20px 16px;
	color: var(--pd-muted);
	font-style: italic;
	margin: 0;
}

/* --- Notification filter tabs + rows -------------------------------------- */

.probo-dash-tabs {
	display: flex;
	gap: 2px;
	padding: 9px 16px 0;
	border-bottom: 1px solid var(--pd-line);
}

.probo-dash-tab {
	padding: 5px 10px 8px;
	border: 0;
	background: none;
	cursor: pointer;
	font-size: 13px;
	color: var(--pd-ink-2);
}

.probo-dash-tab.is-active {
	font-weight: 600;
	color: var(--pd-ink);
	box-shadow: inset 0 -2px 0 var(--pd-blue);
}

.probo-dash-tab__count {
	color: #8c8f94;
}

.probo-dash-note {
	padding: 14px 16px;
	border-bottom: 1px solid var(--pd-line-soft);
}

.probo-dash-note--attention {
	box-shadow: inset 3px 0 0 var(--pd-amber);
}

.probo-dash-note--changed {
	box-shadow: inset 3px 0 0 var(--pd-blue);
}

.probo-dash-note__meta {
	display: flex;
	align-items: center;
	gap: 8px;
	margin-bottom: 5px;
}

.probo-dash-note__text {
	font-size: 13px;
	line-height: 1.6;
	margin-bottom: 7px;
}

.probo-dash-note__products {
	font-size: 12px;
	color: var(--pd-muted);
}

.probo-dash-note__empty {
	padding: 20px 16px;
	color: var(--pd-muted);
	font-style: italic;
}

/* --- Severity / status badges --------------------------------------------- */

.probo-dash-badge {
	display: inline-flex;
	align-items: center;
	height: 20px;
	padding: 0 8px;
	border-radius: 3px;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.02em;
	text-transform: uppercase;
}

.probo-dash-badge--attention {
	background: var(--pd-amber-soft);
	color: var(--pd-amber-ink);
}

.probo-dash-badge--changed {
	background: var(--pd-blue-soft);
	color: var(--pd-blue-ink);
}

.probo-dash-badge--new {
	background: var(--pd-green-soft);
	color: var(--pd-green);
}

/* --- New & updated list --------------------------------------------------- */

.probo-dash-recent__list {
	margin: 0;
	padding: 0;
	list-style: none;
}

.probo-dash-recent__row {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 11px 16px;
	border-bottom: 1px solid var(--pd-line-soft);
}

.probo-dash-recent__thumb {
	width: 40px;
	height: 40px;
	flex: none;
	display: flex;
	align-items: center;
	justify-content: center;
}

.probo-dash-recent__thumb img {
	max-width: 40px;
	max-height: 40px;
	object-fit: contain;
}

.probo-dash-recent__info {
	flex: 1 1 auto;
	min-width: 0;
}

.probo-dash-recent__name {
	display: block;
	font-size: 13px;
	font-weight: 600;
}

.probo-dash-recent__sub {
	display: block;
	font-size: 12px;
	color: var(--pd-muted);
	margin-top: 1px;
}

.probo-dash-recent__date {
	font-size: 12px;
	color: var(--pd-muted);
	flex: none;
}

/* --- Help footer ---------------------------------------------------------- */

.probo-dash-help {
	margin-top: 22px;
	padding: 14px 16px;
	background: #fff;
	border: 1px solid var(--pd-panel-border);
	box-shadow: var(--pd-panel-shadow);
	display: flex;
	align-items: center;
	gap: 22px;
	font-size: 13px;
	flex-wrap: wrap;
}

.probo-dash-help__title {
	font-weight: 600;
}

.probo-dash-help__meta {
	margin-left: auto;
	color: var(--pd-muted);
	font-size: 12px;
}

/* ==========================================================================
   Settings — Two-Column Section Layout
   ========================================================================== */

.probo-settings-section {
    display: flex;
    flex-flow: row;
    align-items: flex-start;
    gap: 32px;
    margin: 48px auto 0;
    max-width: 1032px;
}

.probo-settings-section__sidebar {
    flex: 0 0 280px;
    width: 280px;
    padding-top: 4px;
}

.probo-settings-section__title {
    font-size: 14px;
    font-weight: 600;
    color: #1e1e1e;
    margin: 0 0 8px;
    line-height: 1.4;
    border-bottom: none;
    padding: 0;
}

.probo-settings-section__desc {
    font-size: 13px;
    color: #646970;
    margin: 0 0 12px;
    line-height: 1.6;
}

.probo-settings-section__desc a,
.probo-settings-section__link {
    color: var(--wp-admin-theme-color, #2271b1);
    text-decoration: none;
    font-size: 13px;
}

.probo-settings-section__desc a:hover,
.probo-settings-section__link:hover {
    color: var(--wp-admin-theme-color-darker-10, #135e96);
    text-decoration: underline;
}

.probo-settings-section__desc a:active,
.probo-settings-section__link:active {
    color: var(--wp-admin-theme-color-darker-20, #005a87);
}

.probo-settings-section__link {
    display: inline-block;
}

.probo-settings-section__link:focus-visible {
    outline: var(--wp-admin-border-width-focus, 2px) solid var(--wp-admin-theme-color, #2271b1);
    outline-offset: 2px;
    border-radius: 2px;
}

.probo-settings-section__card {
    flex: 1 1 auto;
    min-width: 0;
    background-color: rgb(255, 255, 255);
    color: rgb(30, 30, 30);
    position: relative;
    box-shadow: rgba(0, 0, 0, 0.1) 0px 0px 0px 1px;
    outline: none;
    border-radius: 3px;
    padding: 24px;
}

/* Reset WooCommerce form-table inside card */
.probo-settings-section__card .form-table {
    margin: 0;
    border-collapse: collapse;
    width: 100%;
}

.probo-settings-section__card .form-table th,
.probo-settings-section__card .form-table td {
    padding: 12px 0;
}

.probo-settings-section__card .form-table tr:last-child th,
.probo-settings-section__card .form-table tr:last-child td {
    border-bottom: none;
}

.probo-settings-section__card .form-table th {
    width: 220px;
    vertical-align: top;
    padding-top: 14px;
    font-weight: 600;
    font-size: 13px;
    color: #1e1e1e;
}

/* When a field has no title, hide the empty <th> and let <td> span full width */
.probo-settings-section__card .form-table th:has(> label:empty) {
    display: none;
}

.probo-settings-section__card .form-table th:has(> label:empty) + td {
    width: 100%;
    padding-top: 4px;
    padding-bottom: 4px;
}

/* Nested section sub-headers inside card (WC title type within open group) */
.probo-settings-section__card h2 {
    font-size: 13px;
    font-weight: 600;
    padding: 14px 0 0;
    margin: 0;
    border-bottom: none;
}

.probo-settings-section__card h2:empty {
    display: none;
}

/* Color picker: swatch + input on one line */
.probo-settings-section__card .forminp-color {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px; /* reset WC's font-size: 0 trick */
}

.probo-settings-section__card .forminp-color .colorpickpreview {
    flex: 0 0 auto;
    float: none; /* undo WC's float: left */
    width: 30px;
    height: 30px;
}

.probo-settings-section__card .forminp-color input.colorpick {
    width: auto !important; /* undo WC's 448px */
    flex: 0 0 auto;
}

.probo-settings-section__card .forminp {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Disabled state: grey overlay when a required module is inactive */
.probo-settings-section__card--disabled {
    position: relative;
    pointer-events: none;
    user-select: none;
}

.probo-settings-section__card--disabled .probo-settings-section__card-overlay {
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.92);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 3px;
    z-index: 1;
}

.probo-settings-section__card--disabled .probo-settings-section__card-overlay p {
    margin: 0;
    font-size: 13px;
    text-align: center;
    font-weight:bold;
    padding: 0 24px;
    width:400px;
}

/* Align WooCommerce save button with the card column, pushed to the right */
.probo-settings-section ~ p.submit {
    max-width: 1032px;
    margin-left: auto;
    margin-right: auto;
    padding-left: calc(280px + 32px);
    text-align: right;
}

@media screen and (max-width: 960px) {
    .probo-settings-section {
        flex-direction: column;
        gap: 12px;
    }

    .probo-settings-section__sidebar {
        flex: none;
        width: 100%;
    }

    .probo-settings-section ~ p.submit {
        padding-left: 0;
    }
}

/* ==========================================================================
   New Product Configurator — Two-step product picker
   ========================================================================== */

/* Make the slideout a flex column so header/main/footer fill the full height.
   Scoped to :popover-open so the browser's default display:none is not overridden. */
#probo-new-product-configurator:popover-open {
    display: flex;
    flex-direction: column;
}

#probo-new-product-configurator main {
    flex: 1;
    overflow-y: auto;
    padding: 16px 24px;
    display: flex;
    flex-direction: column;
}

#probo-product-picker {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 0;
}

#probo-product-search {
    width: 100%;
    padding: 8px 10px;
    font-size: 14px;
    border: 1px solid #8c8f94;
    border-radius: 4px;
    margin-bottom: 16px;
    box-sizing: border-box;
}

#probo-product-search:focus {
    border-color: #3858e9;
    box-shadow: 0 0 0 1px #3858e9;
    outline: none;
}

.probo-product-loading {
    padding: 32px 0;
    text-align: center;
    color: #646970;
    font-size: 13px;
}

.probo-product-empty {
    padding: 32px 0;
    text-align: center;
    color: #757575;
    font-style: italic;
    font-size: 13px;
}

#probo-product-grid {
    display: grid;
    grid-template-columns: repeat( auto-fill, minmax( 160px, 1fr ) );
    gap: 12px;
    overflow-y: auto;
    flex: 1;
    align-content: start;
}

.probo-product-card {
    cursor: pointer;
    outline: 1px solid #d1d5db;
    border: none;
    border-radius: .5rem;
    padding: 0;
    min-height: 220px;
    background: #ffffff;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transition: outline-color 0.15s ease, box-shadow 0.15s ease;
    font-family: inherit;
    font-size: inherit;
    text-align: left;
}

.probo-product-card:hover {
    outline-color: #3858e9;
    box-shadow: 0 0 0 1px #3858e9;
}

.probo-product-card:focus {
    outline-color: #3858e9;
    box-shadow: 0 0 0 1px #3858e9;
}

.probo-product-card img {
    width: 100%;
    aspect-ratio: 4/3;
    object-fit: cover;
    display: block;
    flex-shrink: 0;
}

.probo-product-title {
    font-size: 13px;
    padding: 10px 12px 12px;
    line-height: 1.4;
    word-break: break-word;
    color: #1e1e1e;
    font-weight: 600;
}

/* Step 2: configurator step */
#probo-configurator-step {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 0;
}

#probo-configurator-step connect-product-configurator {
    display: block;
    flex: 1;
}

/* Probo buttons in the orders list Actions column. */
.wc-action-button.probo_sync::after {
    font-family: 'dashicons';
    content: '\f463';
}

.wc-action-button.probo_fetch_status::after {
    font-family: 'dashicons';
    content: '\f531';
}

.wc-action-button.probo-action-disabled {
    opacity: 0.4;
    pointer-events: none;
    cursor: default;
}

