/* Only empty slots become actions; the '+N more' slot retains its meaning. */
#yith-woocompare-preview-bar .compare-list li.product-placeholder.dc-picker-slot {
    display: flex; flex: 0 0 78px; width: 78px; min-height: 90px; padding: 0;
    border: 1px dashed #e5bc6880; border-radius: 12px; background: #ffffff06;
}
#yith-woocompare-preview-bar .dc-picker-open {
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    gap: 5px; width: 100%; min-height: 90px; padding: 7px 3px; border: 0;
    border-radius: 12px; background: transparent; color: #e5bc68; font: inherit;
    font-size: 10px; cursor: pointer; line-height: 1.7; transition: background .18s, transform .18s;
}
#yith-woocompare-preview-bar .dc-picker-open:hover { background: #e5bc6817; transform: translateY(-2px); }
#yith-woocompare-preview-bar .dc-picker-plus { display: block; font-size: 27px; line-height: 1; font-weight: 400; }
#didgah-product-picker { position: fixed; inset: 0; z-index: 11000; display: flex; align-items: center; justify-content: center; padding: max(12px, env(safe-area-inset-top)) 12px max(12px, env(safe-area-inset-bottom)); background: #091b32b8; backdrop-filter: blur(6px); box-sizing: border-box; }
#didgah-product-picker[hidden] { display: none; }
#didgah-product-picker *, #didgah-product-picker *::before, #didgah-product-picker *::after { box-sizing: border-box; }
#didgah-product-picker .dc-picker-panel { display: flex; flex-direction: column; width: min(560px, 100%); max-height: 85vh; max-height: 85dvh; padding: 24px; border-radius: 20px; background: #fff; box-shadow: 0 20px 70px #0004; color: #10243d; direction: rtl; text-align: right; font-family: inherit; animation: dc-picker-enter .2s ease-out; }
#didgah-product-picker header { display: flex; align-items: start; justify-content: space-between; gap: 12px; }
#didgah-product-picker h2 { margin: 0; font-size: 21px; font-weight: 700; line-height: 1.6; color: #10243d; }
#didgah-product-picker header p { margin: 4px 0 18px; color: #637184; font-size: 12px; }
#didgah-product-picker button, #didgah-product-picker input { font-family: inherit; }
#didgah-product-picker .dc-picker-close { display: flex; align-items: center; justify-content: center; flex-shrink: 0; border: 0; border-radius: 50%; width: 40px; height: 40px; padding: 0; background: #f0f3f7; color: #10243d; font-size: 27px; line-height: 1; cursor: pointer; }
#didgah-product-picker form { margin: 0; }
#didgah-product-picker label { display: block; font-size: 13px; margin-bottom: 8px; }
#didgah-product-picker input { display: block; width: 100%; min-height: 48px; border: 1px solid #c8d2df; border-radius: 12px; padding: 10px 14px; background: #fafbfd; font-size: 16px; color: #10243d; outline-offset: 2px; }
#didgah-product-picker .dc-picker-status { margin: 12px 0; color: #52657c; font-size: 12px; line-height: 1.8; }
#didgah-product-picker ul { min-height: 0; overflow: auto; overscroll-behavior: contain; list-style: none; margin: 0; padding: 0; }
#didgah-product-picker li { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-top: 1px solid #e6ebf2; }
#didgah-product-picker li img { flex: 0 0 52px; width: 52px; height: 52px; object-fit: contain; border-radius: 8px; }
#didgah-product-picker .dc-picker-details { flex: 1; min-width: 0; }
#didgah-product-picker strong { display: block; font-size: 13px; font-weight: 600; line-height: 1.8; overflow-wrap: anywhere; unicode-bidi: plaintext; }
#didgah-product-picker .dc-picker-details span { display: block; color: #637184; font-size: 12px; margin-top: 4px; }
#didgah-product-picker .dc-picker-add { flex-shrink: 0; padding: 10px 14px; min-height: 44px; border: 0; border-radius: 10px; background: #e5bc68; color: #10243d; font-size: 12px; font-weight: 700; cursor: pointer; }
#didgah-product-picker button:disabled { opacity: .55; cursor: wait; }
#didgah-product-picker footer { padding-top: 14px; border-top: 1px solid #e6ebf2; color: #637184; font-size: 11px; line-height: 1.8; }
#didgah-product-picker :focus-visible, #yith-woocompare-preview-bar .dc-picker-open:focus-visible { outline: 3px solid #d1a24c; outline-offset: 3px; }
@keyframes dc-picker-enter { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
@media (max-width: 600px) {
    #yith-woocompare-preview-bar .compare-list li.product-placeholder.dc-picker-slot { flex-basis: 72px; width: 72px; min-height: 86px; }
    #yith-woocompare-preview-bar .dc-picker-open { min-height: 86px; }
    #didgah-product-picker .dc-picker-panel { padding: 16px; border-radius: 16px; }
    #didgah-product-picker h2 { font-size: 18px; }
    #didgah-product-picker li { gap: 8px; }
    #didgah-product-picker .dc-picker-add { padding: 10px; }
}
@media (prefers-reduced-motion: reduce) { #didgah-product-picker .dc-picker-panel { animation: none; } #yith-woocompare-preview-bar .dc-picker-open { transition: none; } }
/* YITH's <=480px rules hide every span in placeholder cells: restore action labels. */
#yith-woocompare-preview-bar .compare-list li.product-placeholder.dc-picker-slot .dc-picker-open span { display: block; }
