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

    --probo-connect-blue-background: #c8d7e1;
    --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 .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;
}

/* Admin override notice */
.probo-admin-override-notice {
    background: #fcf9e8;
    border-left: 4px solid #dba617;
    padding: 6px 10px;
    margin: 0 0 8px;
    font-size: 12px;
    color: #6e4e00;
}

/* ==========================================================================
   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: #d4edda;
	color: #155724;
}

.probo-products-catalog .probo-status-pending {
	background: #fff3cd;
	color: #856404;
}

.probo-products-catalog .probo-status-error {
	background: #f8d7da;
	color: #721c24;
}

.probo-products-catalog .probo-status-unknown {
	background: #e2e3e5;
	color: #383d41;
}

/* 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: #d4edda;
	color: #155724;
}

.probo-lifecycle-eol {
	background: #fff3cd;
	color: #856404;
}

.probo-lifecycle-discontinued {
	background: #f8d7da;
	color: #721c24;
}

.probo-lifecycle-unknown {
	background: #e2e3e5;
	color: #383d41;
}

/* 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: 44px;
	text-align: center;
}

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

.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
   ========================================================================== */

.probo-dashboard-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 20px;
	margin-top: 20px;
}

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

.probo-dashboard-section {
	background: #fff;
	border: 1px solid #c3c4c7;
	box-shadow: 0 1px 1px rgba(0, 0, 0, 0.04);
}

.probo-dashboard-section h2 {
	margin: 0;
	padding: 12px 16px;
	border-bottom: 1px solid #c3c4c7;
	font-size: 14px;
}

.probo-dashboard-product-list {
	margin: 0;
	padding: 0;
	list-style: none;
}

.probo-dashboard-product-list li {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 10px 16px;
	border-bottom: 1px solid #f0f0f1;
}

.probo-dashboard-product-list li:last-child {
	border-bottom: none;
}

.probo-dashboard-product-list .probo-product-image {
	flex-shrink: 0;
	width: 60px;
	height: 60px;
	display: flex;
	align-items: center;
	justify-content: center;
}

.probo-dashboard-product-list .probo-product-image img {
	max-width: 60px;
	max-height: 60px;
	object-fit: contain;
}

.probo-dashboard-product-list .probo-product-title a {
	text-decoration: none;
	font-weight: 600;
	color: #2271b1;
}

.probo-dashboard-product-list .probo-product-title a:hover {
	color: #135e96;
}

.probo-dashboard-empty {
	padding: 20px 16px;
	color: #646970;
	font-style: italic;
}

.probo-dashboard-footer {
	padding: 10px 16px;
	border-top: 1px solid #c3c4c7;
	text-align: right;
}

.probo-dashboard-notifications {
	display: flex;
	flex-direction: column;
	gap: 5px;
}

.probo-dashboard-notifications > .probo-dashboard-notification {
	border-left: 5px solid var(--probo-connect-gray-background);
	padding: 10px;
	display: flex;
	flex-direction: column;
}

/* ==========================================================================
   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;
}

/* 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;
}
