/* Revolution: compact category cards. Desktop spacing is inherited from the theme. */
.ur-compact-category .product-grid .product-thumb > .image img.img-responsive {
    display: block;
    width: 100%;
    max-width: 100%;
    height: auto;
    object-fit: contain;
    transform: none;
}
.product-info input.disabled_option + label {
    opacity: .35 !important;
    box-shadow: none !important;
}
.product-info input.disabled_option + label.ur-stock-trigger {
    cursor: pointer;
}
.product-info input.disabled_option + label.ur-stock-trigger:focus-visible {
    outline: 2px solid #286fba;
    outline-offset: 2px;
    opacity: .6 !important;
}
.ur-stock-select-link { background: none; border: 0; padding: 5px 0; color: #286fba; text-decoration: underline; }
@media (max-width: 991px) {
    .container.ur-category-page { width: 100%; padding-left: 5px; padding-right: 5px; }
    .ur-category-page > .row { margin-left: -5px; margin-right: -5px; }
    .ur-category-page > .row > #content { padding-left: 5px; padding-right: 5px; }
    #content .row.products_category.ur-compact-category { display: flex; flex-wrap: wrap; margin-left: -4px; margin-right: -4px; }
    #content .ur-compact-category > .clearfix { display: none !important; }
    #content .ur-compact-category > .product-grid { display: flex; flex-direction: column; padding-left: 4px; padding-right: 4px; margin: 0; float: none; }
    #content .ur-compact-category .product-grid .product-thumb { display: flex; flex-direction: column; flex: 1; padding: 8px; margin-bottom: 8px; }
    #content .ur-compact-category .product-grid .product-thumb > .image { width: 100% !important; }
    #content .ur-compact-category .product-grid .caption { display: flex; flex-direction: column; flex: 1; padding-top: 8px; margin-top: 8px; }
    #content .ur-compact-category .product-grid h4 { height: auto !important; min-height: var(--ur-title-height, 0px) !important; margin-bottom: 6px; }
    #content .ur-compact-category .product-grid .description_options { height: auto !important; min-height: var(--ur-options-height, 0px) !important; margin-bottom: 8px; }
    #content .ur-compact-category .product-grid .description:empty,
    #content .ur-compact-category .product-grid .description:has(> span:only-child:empty) { display: none !important; }
    #content .ur-compact-category .product-grid .description + .well-sm.product-info { margin: 6px 0 0; padding: 0; }
    #content .ur-compact-category .product-grid .well-sm.product-info { height: auto !important; min-height: 0 !important; }
    #content .ur-compact-category .product-grid .options .form-group { margin-bottom: 6px; }
    #content .ur-compact-category .product-grid .options .radio { margin-top: 2px; margin-bottom: 2px; }
    #content .ur-compact-category .product-grid .options .radio > label:not(.label-in-img) { min-width: 25px; min-height: 27px; padding: 5px 4px; line-height: 15px; }
    #content .ur-compact-category .product-grid .product_buttons { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; height: auto !important; min-height: 0 !important; margin-top: auto; }
    #content .ur-compact-category .product-grid .product_buttons > .price { order: 0; flex: 1 1 0; min-width: 0; white-space: nowrap; float: none !important; text-align: left !important; height: auto !important; min-height: 0 !important; width: auto !important; margin: 0 !important; padding: 0; font-size: clamp(14px, 4.2vw, 16px); font-weight: 600; }
    #content .ur-compact-category .product-grid .product_buttons > .cart { order: 2; flex: 0 0 auto; float: none !important; margin: 0 0 0 auto !important; width: auto !important; }
    #content .ur-compact-category .product-grid .cart > a { height: 28px; display: inline-flex; align-items: center; }
    #content .ur-compact-category .product-grid .cart .fa-border { display: inline-flex; align-items: center; justify-content: center; height: 28px; margin: 0; padding: 4px; font-size: 12px; line-height: 1; }
    #content .ur-compact-category .product-grid .cart .prlistb { font-size: 11px; padding-left: 3px; }
    #content .ur-compact-category .product-grid .product_buttons > .number { order: 1; }
    #content .ur-compact-category .product-grid .product_buttons > .number.bordnone,
    #content .ur-compact-category .product-grid .product_buttons > .clearfix { display: none !important; }
    #content .ur-compact-category .product-grid .product_buttons > .quick_btn { order: 3; flex-basis: 100%; }
}
@media (max-width: 359px) {
    #content .ur-compact-category .product-grid .product-thumb { padding: 3px; }
    #content .ur-compact-category .product-grid .product_buttons { gap: 2px; }
    #content .ur-compact-category .product-grid .product_buttons > .price { font-size: 14px; }
    #content .ur-compact-category .product-grid .cart .fa-border { padding-left: 2px; padding-right: 2px; }
}
@media (min-width: 768px) and (max-width: 991px) {
    /* Revolution uses display:table for its boxed wrapper here. A percentage
       container makes Owl's measured width feed back into the table width. */
    .container.ur-category-page { width: 750px; max-width: 100%; }
}
.ur-stock-open { overflow: hidden; }
.ur-stock-overlay[hidden], #ur-stock-form[hidden] { display: none !important; }
.ur-stock-overlay { position: fixed; inset: 0; z-index: 10050; display: flex; align-items: center; justify-content: center; padding: 16px; background: rgba(0,0,0,.55); }
.ur-stock-dialog { position: relative; width: 100%; max-width: 520px; max-height: calc(100vh - 32px); max-height: calc(100dvh - 32px); overflow-y: auto; padding: 26px; border-radius: 4px; background: #fff; box-shadow: 0 8px 35px rgba(0,0,0,.25); color: #333; text-align: left; font: 14px/1.5 Roboto,Arial,sans-serif; }
.ur-stock-dialog h2 { margin: 0 24px 16px 0; padding-bottom: 12px; border-bottom: 1px solid #ddd; font-size: 22px; line-height: 1.3; color: #333; }
.ur-stock-close { position: absolute; top: 8px; right: 10px; padding: 3px 10px; border: 0; background: none; font-size: 28px; line-height: 1; color: #666; }
.ur-stock-product { font-weight: bold; margin: 0 0 14px; }
#ur-stock-form > label { display: block; margin: 12px 0 4px; font-weight: normal; }
#ur-stock-form .form-control { height: 38px; width: 100%; border: 1px solid #ddd; border-radius: 3px; background: #fff; color: #333; font-size: 14px; padding: 7px 10px; }
#ur-stock-form .ur-stock-agree { display: flex; gap: 8px; align-items: flex-start; margin-top: 16px; font-size: 12px; }
#ur-stock-form .ur-stock-agree input { flex-shrink: 0; margin-top: 4px; }
.ur-stock-submit { background: #e47364; border: 1px solid #e47364; color: #fff; margin-top: 14px; padding: 9px 16px; border-radius: 3px; }
.ur-stock-submit:hover, .ur-stock-submit:focus { background: #dd4b39; border-color: #dd4b39; color: #fff; }
.ur-stock-message:not(:empty) { padding: 10px 12px; margin: 10px 0; background: #f3f8fc; border-left: 3px solid #286fba; }
.ur-stock-message.ur-stock-error { background: #fff3f1; border-left-color: #dd4b39; }
.ur-stock-trap { position: absolute; width: 1px; height: 1px; overflow: hidden; left: -10000px; }
@media (max-width: 480px) {
    .ur-stock-dialog { padding: 20px 16px; }
    .ur-stock-dialog h2 { font-size: 20px; }
    .ur-stock-submit { width: 100%; }
}
