.page-content {
    padding: 10px 0;
}

.width-200 {
    width: 200px !important;
}

@keyframes gradient {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

tr.inspected {
    background-size: 400% 400% !important;
    animation: gradient 15s ease infinite;
    /*background: linear-gradient(-45deg, white, yellow, white, yellow, white, yellow);*/
    /*background: linear-gradient(-45deg, white, #bada55, white, #bada55, white, #bada55);*/
    background: linear-gradient(-45deg, white, #AED6D5, white, #AED6D5, white, #AED6D5);
}

#intl_search {
    max-width: 95%;
    margin: 30px auto 50px auto;
}

#intl_hr {
    width: 20%;
    margin: 3px auto;
    border: 0;
    height: 1px;
    background-image: -webkit-linear-gradient(left, rgba(0, 0, 0, 0), rgba(0, 125, 121, 0.35), rgba(0, 0, 0, 0));
}

#intl_tagline {
    margin: 18px;
    font-size: 16px;
    color: #939c9c;
    font-weight: 500;
    letter-spacing: 1px;
}

#intl_search h4 {
    color: #161616;
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 1px;
    font-size: 16px;
}

#intl_search h5 {
    color: #161616;
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 1px;
    font-size: 14px;
}

#intl_search h4 a {
    color: #979797;
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 1px;
    text-decoration: none;
}

#intl_search h4 a:hover {
    color: #979797 !important;
}

#intl_search .search_shapes {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.search_btns {
    padding: 20px;
    background-color: white;
    border: 1px solid #66666660;
}

#intl_search .search_shapes .shape_card {
    border: 1px solid #66666660;
    border-radius: 10px !important;
    /*box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1) !important;*/
    width: 9.6rem;
    height: 13.2rem;
    cursor: pointer;
    text-align: center;
}

#intl_search .search_pill {
    border: 1px solid #66666660;
    border-radius: 10px !important;
    color: #161616;
    padding: 10px 16px;
    cursor: pointer;
    letter-spacing: 1px;
    white-space: nowrap;
    font-weight: 500;
}

#intl_search .input_group {
    /*border-right: 1px solid #66666660;*/
    margin-right: 12px;
    padding-right: 10px;
    white-space: nowrap;
}

#intl_search .large_input {
    width: 200px !important;
}

#intl_search .medium_input {
    width: 125px !important;
}

#intl_search .firstInput,
#intl_search .secondInput {
    float: left !important;
    width: 50% !important;
    min-width: 100px !important;
    padding: 20px;
}

#intl_search .firstInput {
    border-right: 0 !important;
    margin-right: 0px !important;
    border-radius: 10px 0px 0px 10px !important;
}

#intl_search .secondInput {
    border-left: 0 !important;
    border-radius: 0px 10px 10px 0px !important;
}


#intl_search .input_group input {
    border: 1px solid #66666660;
    border-radius: 10px !important;
    color: #161616;
    padding: 10px 16px;
    letter-spacing: 1px;
    white-space: nowrap;
    font-weight: 500;
    margin-right: 5px;
    background-color: transparent;
    width: 150px;
}

#intl_search .srch-input {
    padding: 20px !important;
}

#intl_search .margin-in {
    margin-right: 10px !important;
}

#intl_search .extra_search_input {
    border: 1px solid #66666660;
    border-radius: 10px !important;
    color: #161616;
    padding: 10px 16px;
    letter-spacing: 1px;
    white-space: nowrap;
    font-weight: 500;
    margin-right: 5px;
    background-color: transparent;
    width: 300px;
}

#intl_search .search_flex {
    display: flex;
    justify-content: flex-start;
    align-items: center;
}

#intl_search .search_pill.selected:not(.types) {
    font-weight: bold;
    box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1) !important;
}

#intl_search .search_pill.types {
    font-size: 14px;
}

#intl_search .search_pill.types.selected {
    box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1) !important;
}

.absolute {
    position: absolute;
}

#intl_search .flex_pills {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.flex_pills img {
    width: 60px;
}

.grid_lab {
    width: 70px;
}

#intl_search .justify-center {
    justify-content: center;
}

#intl_search .justify-start {
    justify-content: flex-start;
}

#intl_search .search_shapes .shape_card.selected {
    box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1) !important;
}

/*.local_type {*/
/*    margin-top: -50px !important;*/
/*}*/

#intl_search .search_shapes .shape_card h5 {
    color: #161616;
    text-transform: uppercase;
    font-weight: 600;
    text-align: center;
    letter-spacing: 1px;
    margin-top: 20px;
}

#intl_search .search_shapes img {
    width: 60px;
}

.intl_btn {
    box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1) !important;
    letter-spacing: 1px;
    border-radius: 5px !important;
    font-size: 17px;
}

#table_view thead th,
#table_view tbody td {
    color: #161616;
    vertical-align: middle;
}

#table_view thead th {
    background-color: rgb(249 250 251);
    border: 1px solid #66666660;
    letter-spacing: 1px;
    z-index: 900;
}

#table_view tbody td {
    border: 1px solid #66666660;
    letter-spacing: 1px;
    z-index: 1;
}

#table_view tbody td a {
    color: #161616;
}

#table_view tbody td a:hover {
    color: #161616 !important;
}

#table_view .checker {
    z-index: 1;
}

#list_bar p {
    color: #161616;
    letter-spacing: 1px;
    font-size: 16px;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    gap: 6px;
}

#list_bar p input[type="checkbox"] {
    margin: 0;
    padding: 0;
}

#list_bar {
    border: 1px solid #66666660;
    margin-bottom: 10px;
    padding: 10px 10px;
}

#list_bar svg {
    color: #161616;
    height: 30px;
    width: 30px;
    margin-bottom: -5px !important;
}

#table_bar {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    position: relative;
}

#table_view {
    min-width: 1200px;
}

#table_view tbody td.text-right {
    min-width: 14em !important;
}

/* Sticky checkbox column */
#table_view thead th:first-child,
#table_view tbody td:first-child {
    position: sticky;
    left: 0;
    z-index: 2;
    background-color: rgb(249 250 251);
}

#table_view tbody td:first-child {
    background-color: #fff;
    z-index: 1;
}


.sort_arrows svg {
    color: #161616;
    height: 25px;
    width: 25px;
}

.grid_svg svg {
    color: #161616;
    height: 25px;
    width: 25px;
    margin-bottom: -5px !important;
}

.sort_div {
    display: flex;
    justify-content: space-evenly;
    align-items: center;
}

.video_div {
    text-align: center;
}

#video_frame {
    background: rgb(249 250 251);
}


#diamondModal .modal-body *,
#diamondModal .modal-header *,
#videoModal .modal-header *,
#enqModal .modal-header * {
    color: black;
    letter-spacing: 1px;
}

#enquiry_view label {
    color: black;
    text-align: right;
}

#enquiry_view .table.table-bordered thead>tr>th {
    color: black;
    background-color: rgb(249 250 251);
    border: 1px solid #66666660 !important;
    letter-spacing: 1px;
}

#enquiry_view .table.table-bordered tbody>tr>td {
    color: black;
    border: 1px solid #66666660 !important;
    letter-spacing: 1px;
}

#enquiry_view .table.table-bordered tbody>tr>td>a:not(.intl_btn),
#enquiry_view .table.table-bordered tbody>tr>td>a:hover:not(.intl_btn) {
    color: black !important;
    letter-spacing: 1px;
}

#enquiry_view .table.table-bordered tbody>tr>td .svg-sm:hover {
    color: black !important;
}

#dlg_dia_comp_email_pdf .modal-body *,
#dlg_dia_comp_email_pdf .modal-header * {
    color: black;
    letter-spacing: 1px;
}

.grid_svg {
    border: 1px solid #66666660;
    border-radius: 5px !important;
    display: inline-block;
    padding: 3px;
    cursor: pointer;
}

.grid_flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.grid_img {
    display: flex;
    justify-content: center;
    align-items: center;
}

.grid_img img {
    width: auto;
    height: 200px;
}

.flex_grid p {
    margin: 0;
}

.sort_column {
    cursor: pointer;
}

.placeholder {
    height: 200px;
    width: 200px;
    background-color: #e7e7e7;
    border-radius: 10px !important;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #b5b5b5;
}

.placeholder h2 {
    font-size: 15px;
}

.toggle_view_icons {
    border: 1px solid #66666660;
    border-radius: 10px !important;
    display: inline-block;
    padding: 3px;
    cursor: pointer;
}

.img_only_pill {
    border: 1px solid #66666660;
    border-radius: 10px !important;
    display: inline-block;
    padding: 8px;
    cursor: pointer;
    color: #161616;
    letter-spacing: 1px;
    font-weight: bold;
}

.img_only_pill.selected {
    box-shadow: 0 4px 6px -1px rgb(0 0 0 / 10%), 0 2px 4px -2px rgb(0 0 0 / 10%) !important;
}

.flex-toggle-views {
    display: flex;
    justify-content: flex-end;
    gap: 5px;
}

#list_bar {
    display: grid;
    justify-content: space-between;
    align-items: center;
    flex-direction: column;
    grid-template-columns: 1fr auto 1fr;
}

#list_bar>div {
    /*flex-grow: 1;*/
    /*flex-basis: 0;*/
}

.flex_icons {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 5px;
}

.toggle_view_icons.selected {
    box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1) !important;
}

#grid_bar {
    margin-top: 25px;
}

.lightboxOverlay {
    z-index: 10000;
}

.share_dropdown {
    display: inline-block;
}

.share_dropdown ul {
    border-radius: 10px !important;
    overflow: hidden !important;
}

.share_dropdown ul li a,
.share_dropdown ul li i {
    color: black !important;
}

.share_dropdown ul li:hover {
    overflow: hidden !important;
}

.share_dropdown ul li:hover a {
    color: black !important;
}

.compare_image {
    max-width: 200px;
    max-height: 200px;
    width: auto;
    height: auto;
}


.more_field {
    display: none;
}

#diamond_actions {
    margin-bottom: 10px;
}

#action_bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.incl_gst {
    color: #646464;
}

.svg-sm svg {
    height: 20px;
    width: 20px;
    cursor: pointer;
}

.location_btn,
.compare_btn,
.boost_btn {
    font-size: 14px;
    border: 1px solid #66666660;
    border-radius: 6px !important;
    color: #161616;
    padding: 5px 16px;
    cursor: pointer;
    letter-spacing: 1px;
    white-space: nowrap;
    font-weight: 500;
    margin: 5px;
    display: inline-block;
}

.location_btn.selected {
    box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1) !important;
}

.boost_btn.selected {
    box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1) !important;
}

.dia_card {
    border: 1px solid #c3c3c360;
    border-radius: 5px !important;
    color: #161616;
    padding: 16px 16px;
    letter-spacing: 1px;
    white-space: nowrap;
    font-weight: 500;
    height: 435px;
    position: relative !important;
    cursor: pointer;
}

.detail_card {
    border-radius: 5px !important;
    color: #161616;
    padding: 16px 16px;
    letter-spacing: 1px;
    white-space: nowrap;
    font-weight: 500;
    height: 435px;
    background-color: rgb(249 250 251);
    border: 1px solid #c3c3c360;
    position: absolute;
    z-index: 800;
    width: 24em;
    display: none;
}

.detail_card.right {
    top: 0;
    left: 23em;
    border-left: 0;
    border-radius: 0px !important;
}

.detail_card.left {
    top: 0;
    right: 23em;
    border-right: 0;
    border-radius: 0px !important;
}

.dia_card.right,
.dia_card.checked.right {
    border-right: 0;
    border-radius: 0px !important;
}

.dia_card.left,
.dia_card.checked.left {
    border-left: 0;
    border-radius: 0px !important;
}

.detail_card h4 {
    margin-bottom: 10px;
    margin-top: 0;
}

.grid_item_sec {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-direction: column;
}

.grid_item_sec>div {
    width: 100%;
}

#interim_app {
    /*max-width: 1600px;*/
    margin: 0 auto;
    margin-bottom: 50px;
}

#sticky_bar {
    position: sticky;
    top: 71px;
    z-index: 99;
    padding-top: 10px;
}

.bg-transparent {
    background-color: transparent !important;
}

.flex_grid .grid_item {
    /*width: 27em;*/
    /*margin: 5px 5px;*/
    position: relative !important;
}

.dia_card {
    background-color: rgb(249 250 251);
    overflow: hidden;
    position: relative;
}

.video_360 svg {
    height: 30px;
    width: 30px;
}

#compare_sec {
    overflow-x: auto;
}

#compare_sec table #comp_head {
    letter-spacing: 1px;
}

#compare_sec table tbody tr:not(#comp_head) {
    letter-spacing: 1px;
    color: #161616;
}

#compare_sec,
#compare_bar {
    max-width: 90%;
    margin: 0 auto;
}

#compare_bar {
    text-align: center;
}

#compare_sec tbody td a {
    color: #161616;
}

#compare_sec tbody td a:hover {
    color: #161616 !important;
}

.grid_item .checker,
.grid-checkbox {
    position: absolute;
    right: 16px;
}

.checker {
    margin-right: 0 !important;
}

.ribbon {
    width: 150px;
    height: 150px;
    overflow: hidden;
    position: absolute;
    pointer-events: none;
}

.ribbon::before,
.ribbon::after {
    position: absolute;
    z-index: -1;
    content: '';
    display: block;
}

.ribbon span {
    position: absolute;
    display: block;
    width: 250px;
    padding: 5px 0;
    box-shadow: 0 5px 10px rgba(0, 0, 0, .1);
    color: #fff;
    font-size: 15px;
    text-shadow: 0 1px 1px rgba(0, 0, 0, .2);
    text-transform: uppercase;
    text-align: center;
    font-weight: bold;
    letter-spacing: 1px;
    pointer-events: none;
}

.ribbon-top-left {
    top: -10px;
    left: -10px;
}

.ribbon-top-left::before,
.ribbon-top-left::after {
    border-top-color: transparent;
    border-left-color: transparent;
}

.ribbon-top-left::before {
    top: 0;
    right: 0;
}

.ribbon-top-left::after {
    bottom: 0;
    left: 0;
}

.ribbon-top-left span {
    right: -25px;
    top: 30px;
    transform: rotate(-45deg);
}

.ribbon-top-right {
    top: -5px;
    right: -10px;
}

.ribbon-top-right::before,
.ribbon-top-right::after {
    border-top-color: transparent;
    border-right-color: transparent;
}

.ribbon-top-right::before {
    top: 0;
    left: 0;
}

.ribbon-top-right::after {
    bottom: 0;
    right: 0;
}

.ribbon-top-right span {
    left: -25px;
    top: 30px;
    transform: rotate(45deg);
}

#diamond_type_filter {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
}

#diamond_type_filter .flex_pills {
    flex-direction: column;
}

.w-12 {
    width: 5rem;
}

.h-12 {
    height: 5rem;
}

/* Natural diamond */
.btn.btn-link.btn-natural {
    color: #007D79;
    z-index: auto;
}

.btn.btn-link.btn-labgrown {
    color: #D0AA06;
    z-index: auto;
}

.share_pill {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    text-align: center;
    cursor: pointer;
    background-color: rgb(249 250 251 / 1);
    padding: .5rem;
    border-radius: .5rem !important;
    gap: .5rem;
    color: black;
}

.share_actions {
    gap: .5rem;
}

.border-2 {
    border: 2px solid black;
}

.share_links {
    padding: 0.75rem;
    margin-top: 0.75rem;
    margin-bottom: 0.75rem;
    border-radius: 0.5rem;
    border-top-width: 1px;
    border-color: #F3F4F6;
    box-shadow: var(--tw-ring-inset) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color);
    --ring-color: #D1D5DB;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
    border: 1px solid;
}

.link_item {
    display: flex;
    overflow: hidden;
    padding-top: 0.75rem;
    padding-bottom: 0.75rem;
    justify-content: space-between;
    align-items: center;
    column-gap: 1.5rem;
}

.link_sec {
    display: flex;
    column-gap: 1rem;
}

.link_base {
    flex: 1 1 auto;
    min-width: 0;
}

.main_link {
    color: #111827;
    font-size: 1.5rem !important;
    line-height: 1.5rem !important;
    font-weight: 600;
    padding: 0;
    margin: 0;
}

.copy_span_indi {
    color: #000000;
    font-size: 0.75rem;
    line-height: 1rem;
}

.copy_btn {
    padding-top: 0.25rem;
    padding-bottom: 0.25rem;
    padding-left: 0.625rem;
    padding-right: 0.625rem;
    background-color: #ffffff;
    color: #111827;
    font-size: 0.75rem;
    line-height: 1rem;
    font-weight: 600;
    border-radius: 9999px;
    box-shadow: var(--tw-ring-inset) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color);
    --tw-ring-inset: inset;
    --ring-color: #D1D5DB;
    cursor: pointer;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    border: 1px solid;
}

.copy_section {
    display: flex;
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
    padding-left: 0.75rem;
    padding-right: 0.75rem;
    background-color: #ffffff;
    color: #111827;
    font-size: 0.875rem;
    line-height: 1.25rem;
    font-weight: 600;
    justify-content: center;
    align-items: center;
    width: 100%;
    border-radius: 0.375rem;
    box-shadow: var(--tw-ring-inset) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color);
    --tw-ring-inset: inset;
    --ring-color: #D1D5DB;
    cursor: pointer;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    border: 1px solid;
}

.common_copy {
    margin-left: 0.5rem;
    color: #000000;
    font-size: 0.75rem;
    line-height: 1rem;
}

#dlg_share label,
#dlg_share span {
    color: black;
    font-size: 18px;
    padding: 5px;
}

#dlg_share .d-inline-block {
    display: inline-block;
}

#dlg_share .d-none {
    display: none;
}

#share_loader {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 18rem;
}

.share-sk-chase {
    width: 60px;
    height: 60px;
    position: relative;
    animation: share-sk-chase 2.5s infinite linear both;
}

.share-sk-chase-dot {
    width: 100%;
    height: 100%;
    position: absolute;
    left: 0;
    top: 0;
    animation: share-sk-chase-dot 2.0s infinite ease-in-out both;
}

.share-sk-chase-dot:before {
    content: '';
    display: block;
    width: 25%;
    height: 25%;
    background-color: black;
    border-radius: 100%;
    animation: share-sk-chase-dot-before 2.0s infinite ease-in-out both;
}

.share-sk-chase-dot:nth-child(1) {
    animation-delay: -1.1s;
}

.share-sk-chase-dot:nth-child(2) {
    animation-delay: -1.0s;
}

.share-sk-chase-dot:nth-child(3) {
    animation-delay: -0.9s;
}

.share-sk-chase-dot:nth-child(4) {
    animation-delay: -0.8s;
}

.share-sk-chase-dot:nth-child(5) {
    animation-delay: -0.7s;
}

.share-sk-chase-dot:nth-child(6) {
    animation-delay: -0.6s;
}

.share-sk-chase-dot:nth-child(1):before {
    animation-delay: -1.1s;
}

.share-sk-chase-dot:nth-child(2):before {
    animation-delay: -1.0s;
}

.share-sk-chase-dot:nth-child(3):before {
    animation-delay: -0.9s;
}

.share-sk-chase-dot:nth-child(4):before {
    animation-delay: -0.8s;
}

.share-sk-chase-dot:nth-child(5):before {
    animation-delay: -0.7s;
}

.share-sk-chase-dot:nth-child(6):before {
    animation-delay: -0.6s;
}

@keyframes share-sk-chase {
    100% {
        transform: rotate(360deg);
    }
}

@keyframes share-sk-chase-dot {

    80%,
    100% {
        transform: rotate(360deg);
    }
}

@keyframes share-sk-chase-dot-before {
    50% {
        transform: scale(0.4);
    }

    100%,
    0% {
        transform: scale(1.0);
    }
}


.flex_grid {
    display: flex;
    justify-content: center;
    width: 100%;
    flex-wrap: wrap;
    overflow-x: scroll;
    max-width: 1440px;
}

.flex_grid .grid_item {
    /* width: 21%; */
}

/* Retain old detail card placement and legacy responsive helpers. */
.detail_card.right {
    left: 100%;
    width: 105%;
}

.detail_card.left {
    right: 100%;
    width: 105%;
}

/* Media Queries */
@media (max-width: 1368px) {
    .flex_grid {
        justify-content: flex-start;
    }
}

@media (max-width: 768px) {
    .navbar-nav .open .dropdown-menu {
        position: static;
        float: none;
        width: auto;
        margin-top: 0;
        background-color: transparent;
        border: 0;
        -webkit-box-shadow: none;
        box-shadow: none;
    }

    .local_type {
        display: flex !important;
        flex-direction: row !important;
    }

    #diamond_type_filter .flex_pills {
        margin: 5px 0 !important;
    }

    #diamond_type_filter {
        display: flex;
        flex-direction: column;
    }
}

@media (min-width: 640px) {
    #list_bar {
        flex-direction: row;
    }

    #table_view thead th {
        /*position: sticky;*/
        top: 256px;
    }
}

@media (min-width: 768px) {

    .location_btn,
    .compare_btn {
        font-size: 18px;
        padding: 10px 16px;
    }

    #compare_bar {
        text-align: right;
    }

    #diamond_type_filter .flex_pills {
        flex-direction: row;
    }

    #intl_search .search_pill.types {
        font-size: 18px;
    }
}

@media (max-width: 550px) {
    #intl_search .search_shapes {
        flex-wrap: nowrap;
        overflow-x: scroll;
        scrollbar-color: lightgray #000 !important;
    }

    #intl_search .search_shapes .shape_card {
        padding: 7px;
        height: 13.5rem;
    }

    #intl_search .flex_pills {
        flex-wrap: wrap !important;
    }
}

/* =====================================================================
   Diamond grid — Image & Video media carousel
   Used by: grid_data.blade.php, grid_data_website.blade.php
   Matches the existing .grid_img preview height (200px).
   Both image + video  -> scrollable carousel (this block)
   Image only / video only / none -> handled inline in the blade files
   ===================================================================== */

.grid_img .media_carousel {
    position: relative;
    width: 100%;
    height: 200px;
}

/* Horizontal, snap-scrollable track (native swipe on touch devices) */
.grid_img .media_track {
    display: flex;
    width: 100%;
    height: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    /* Firefox */
    -ms-overflow-style: none;
    /* IE / old Edge */
}

.grid_img .media_track::-webkit-scrollbar {
    width: 0;
    height: 0;
    display: none;
    /* WebKit / Blink */
}

/* Each slide fills the preview box */
.grid_img .media_slide {
    position: relative;
    flex: 0 0 100%;
    width: 100%;
    height: 100%;
    scroll-snap-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Image slide keeps the original look: fills height, auto width, centered */
.grid_img .media_slide img {
    width: auto;
    height: 100%;
    max-width: 100%;
}

/* Video slide fills the preview box */
.grid_img .media_video_slide iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

/* Lightweight poster shown until the video is opened (lazy load) */
.grid_img .media_video_poster {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: #e7e7e7;
    cursor: pointer;
}

.grid_img .media_video_poster img {
    width: 48px;
    height: 48px;
    max-width: 48px;
}

.grid_img .media_video_slide.is-loaded .media_video_poster {
    display: none;
}

/* Prev / next arrows */
.grid_img .media_nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 26px;
    height: 26px;
    padding: 0;
    border: 1px solid #007D79 !important;
    border-radius: 50%;
    background: #ffffff !important;
    color: #007D79 !important;
    font-size: 14px;
    line-height: 24px;
    text-align: center;
    cursor: pointer;
    z-index: 10;
    opacity: 0.9 !important;
    visibility: visible !important;
    transition: opacity 0.2s, background-color 0.2s, transform 0.2s, visibility 0.2s;
}

.dia_card:hover .grid_img .media_nav {
    opacity: 1 !important;
}

.grid_img .media_nav:hover {
    opacity: 1 !important;
    background: #007D79 !important;
    color: #ffffff !important;
    transform: translateY(-50%) scale(1.05);
}

.grid_img .media_prev {
    left: 10px;
}

.grid_img .media_next {
    right: 10px;
}

/* Theme-based media nav colors for lab-grown */
.interim-theme-lab-grown .grid_img .media_nav {
    border-color: #D0AA62 !important;
    color: #D0AA62 !important;
}

.interim-theme-lab-grown .grid_img .media_nav:hover {
    background: #D0AA62 !important;
    color: #ffffff !important;
}

/* Dots */
.grid_img .media_dots {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 8px;
    display: flex;
    justify-content: center;
    gap: 10px;
    z-index: 10;
}

.grid_img .media_dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.6);
    border: 1px solid rgba(0, 0, 0, 0.2);
    cursor: pointer;
    transition: all 0.2s;
}

.grid_img .media_dot.active {
    background: #007D79;
    border-color: #007D79;
}

.interim-theme-lab-grown .grid_img .media_dot.active {
    background: #D0AA62;
    border-color: #D0AA62;
}

/* Single video (video exists, no image) */
.grid_img .media_single_video {
    position: relative;
    width: 100%;
    height: 200px;
}

.grid_img .media_single_video iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

/* =====================================================================
   Redesigned Search Page Filters Styles
   ===================================================================== */
#intl_search {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    color: #1e293b;
    background-color: #ffffff;
    max-width: 100%;
    padding: 0 15px;
}

/* Top Nav Selector Redesign */
.search-top-nav-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #e2e8f0;
    padding-bottom: 24px;
    margin-bottom: 60px;
    gap: 15px;
}

.top-nav-left,
.top-nav-right {
    flex: 1;
}

.top-nav-center {
    display: flex;
    justify-content: center;
    gap: 10px;
}

.top-nav-right {
    display: flex;
    justify-content: flex-end;
}

.australia-btn,
.enquiry-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none !important;
    transition: all 0.2s ease;
}

/* === New UI tweaks: toggles, premium select, toolbar, ribbon, actions === */
.toggle-switches {
    gap: 24px;
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
}

.toggle-item {
    gap: 12px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    flex-direction: row;
}

.switch-input {
    display: none;
}

.switch-slider {
    width: 52px;
    height: 28px;
    background: #e9ecef;
    border-radius: 24px !important;
    position: relative;
    display: inline-block;
    transition: all 0.25s ease;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
}

.switch-slider::after {
    content: '';
    position: absolute;
    left: 4px;
    top: 4px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #ffffff;
    box-shadow: 0 2px 6px rgba(16, 24, 40, 0.2);
    transition: all 0.25s ease;
}

.switch-input:checked+.switch-slider {
    background: #007D79;
    border-radius: 20px !important;
}

.switch-input:checked+.switch-slider::after {
    transform: translateX(24px);
}

.interim-theme-lab-grown .switch-input:checked+.switch-slider {
    background: #D0AA62;
    border-radius: 20px !important;
}

.toggle-label {
    font-weight: 600;
    color: #161616;
    font-size: 14px;
}

.premium-select {
    width: 220px;
    margin-right: 10px;
    height: 40px;
    padding: 8px 12px;
    border-radius: 6px;
    border: 1px solid #e1e1e6;
    background: #ffffff;
    font-size: 14px;
}

.toggle_view_icons {
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    border: 1px solid #e6e6e9;
    background: #ffffff;
    transition: all .18s ease;
}

.toggle_view_icons svg {
    width: 18px;
    height: 18px;
}

.toggle_view_icons.selected {
    border-color: #007D79;
    background: #ecfdf5;
}

.intl_btn {
    height: 40px;
    padding: 10px 16px;
    border-radius: 6px !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-weight: 600;
}

/* Disable the generic .btn hover sweep/color-swap for this pill button */
.intl_btn::before,
.intl_btn:hover::before {
    display: none !important;
    content: none !important;
}

.intl_btn:hover {
    background: #007D79 !important;
    color: #fff !important;
}

#diamond_actions .intl_btn {
    background-color: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    color: #007D79 !important;
    border-radius: 6px !important;
    font-weight: 600 !important;
    padding: 8px 12px !important;
    height: auto !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
    transition: all 0.2s ease !important;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05) !important;
}

#diamond_actions .intl_btn:hover {
    background-color: #f8fafc !important;
    border-color: #cbd5e1 !important;
}

#diamond_actions .intl_btn i {
    color: #475569 !important;
    font-size: 14px !important;
}

/* Lab grown theme for diamond actions */
.interim-theme-lab-grown #diamond_actions .intl_btn {
    color: #D0AA62 !important;
    border-color: #D0AA62 !important;
}

.interim-theme-lab-grown #diamond_actions .intl_btn:hover {
    background-color: #F4EBDA !important;
    border-color: #D0AA62 !important;
}

.top-toolbar {
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
    align-items: center;
    width: 100%;
    padding: 8px 10px;
    background: #ffffff;
}

.top-toolbar .toolbar-left,
.top-toolbar .toolbar-center,
.top-toolbar .toolbar-right {
    width: 100%;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
}

.toolbar-left {
    justify-content: flex-start;
    gap: 12px;
}

.toolbar-center {
    justify-content: center;
}

.toolbar-right {
    justify-content: flex-end;
    gap: 10px;
}

.toolbar-right .premium-select {
    margin-right: 0;
}

.mobile-only {
    display: none;
}

.tablet-only {
    display: none;
}

.desktop-only {
    display: inline-flex;
}

.mobile-sort-sheet {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.45);
    z-index: 2000;
}

.mobile-sort-sheet .mobile-sort-content {
    position: absolute;
    inset: auto 0 0;
    background: #fff;
    border-top-left-radius: 18px;
    border-top-right-radius: 18px;
    padding: 18px;
    max-height: 72vh;
    overflow-y: auto;
    box-shadow: 0 -12px 40px rgba(15, 23, 42, 0.15);
}

.mobile-sort-sheet .mobile-sort-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
}

.mobile-sort-sheet .mobile-sort-header h5 {
    margin: 0;
    font-size: 1rem;
    font-weight: 700;
}

.mobile-sort-close {
    color: #0f172a;
    font-size: 1.25rem;
    min-width: 40px;
}

.mobile-sort-body {
    display: grid;
    gap: 14px;
}

.mobile-sort-label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
}

.mobile-sort-section {
    display: grid;
    gap: 10px;
}

.mobile-sort-title {
    font-weight: 700;
    font-size: 0.95rem;
}

.mobile-sort-actions {
    display: flex;
    gap: 12px;
}

.mobile-toggle-switches {
    justify-content: flex-start;
}

.card-actions {
    justify-content: flex-start;
    gap: 6px;
}

.card-actions .grid_svg {
    padding: 6px;
    border-radius: 8px;
}

/* Center cert/img/video buttons */
.grid_flex.margin-top-10>div:first-child {
    display: flex;
    justify-content: center;
    gap: 8px;
}

.card-meta {
    margin-top: 8px;
}

.measurement-text {
    color: #475569;
    font-size: 0.95rem;
    letter-spacing: 0.3px;
    margin: 0;
}

@media (max-width: 991px) {
    .premium-select {
        width: 180px;
    }

    .toolbar-right {
        justify-content: flex-start;
    }

    .toolbar-center {
        justify-content: flex-start;
    }

    .desktop-only {
        display: none;
    }
}

@media (max-width: 767px) {
    .premium-select {
        width: 100%;
    }

    .toggle-switches {
        gap: 12px;
    }

    .toolbar-right {
        justify-content: space-between;
    }

    .toolbar-left {
        width: 100%;
    }

    .toolbar-center {
        width: 100%;
    }

    .toolbar-right {
        width: 100%;
    }

    .mobile-only {
        display: inline-flex;
    }
}

@media (max-width: 575px) {
    .toggle-switches {
        gap: 10px;
    }

    .premium-select {
        margin-right: 0;
    }

    .toggle_view_icons {
        width: 36px;
        height: 36px;
    }
}

/* Override: modern responsive grid and card visuals (placed last to ensure precedence) */
.flex_grid {
    display: grid !important;
    grid-template-columns: repeat(1, minmax(0, 1fr)) !important;
    gap: 18px !important;
    align-items: start;
    width: 100%;
}

.flex_grid .grid_item {
    max-width: 100% !important;
    width: 100% !important;
}

.flex_grid .grid_item .dia_card {
    border-radius: 16px !important;
    padding: 18px !important;
    box-shadow: 0 18px 48px rgba(16, 24, 40, 0.07) !important;
    background: #ffffff !important;
    height: auto !important;
    transition: transform .18s ease, box-shadow .18s ease;
}

.flex_grid .grid_item .dia_card:hover {
    transform: translateY(-4px) !important;
    box-shadow: 0 24px 64px rgba(16, 24, 40, 0.09) !important;
}

.grid_img {
    padding: 8px 8px 0 8px;
}

.grid_img img {
    height: 220px;
    object-fit: cover;
    border-radius: 12px;
}

.grid_img .media_dots {
    bottom: 10px;
}

.grid_img .media_nav {
    width: 36px;
    height: 36px;
}

.card-wishlist {
    right: 12px;
    top: 12px;
}

@media (max-width: 480px) {
    .grid_img img {
        height: 160px;
    }

    .grid_img .media_nav {
        width: 30px;
        height: 30px;
    }
}

@media (min-width: 576px) and (max-width: 767px) {
    .flex_grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 768px) and (max-width: 991px) {
    .top-toolbar {
        grid-template-columns: 1fr;
        padding: 8px 18px;
    }

    .flex_grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .grid_img img {
        height: 240px;
    }

    .tablet-only {
        display: inline-flex;
    }
}

@media (min-width: 992px) and (max-width: 1199px) {
    .top-toolbar {
        grid-template-columns: 1fr;
        padding: 8px 24px;
    }

    .toolbar-left {
        justify-self: start;
    }

    .toolbar-center {
        justify-self: center;
    }

    .toolbar-right {
        justify-self: start;
    }

    .flex_grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .grid_img img {
        height: 260px;
    }

    .tablet-only {
        display: inline-flex;
    }
}

@media (min-width: 1200px) and (max-width: 1399px) {
    .top-toolbar {
        grid-template-columns: 1fr auto 1fr;
        padding: 10px 28px;
    }

    .toolbar-left {
        justify-self: start;
    }

    .toolbar-center {
        justify-self: center;
    }

    .toolbar-right {
        justify-self: end;
    }

    .flex_grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .grid_img img {
        height: 280px;
    }

    .desktop-only {
        display: inline-flex;
    }

    .tablet-only {
        display: none;
    }
}

@media (min-width: 1400px) {
    .top-toolbar {
        grid-template-columns: 1fr auto 1fr;
        padding: 10px 32px;
        align-items: center;
    }

    .toolbar-left {
        justify-self: start;
    }

    .toolbar-center {
        justify-self: center;
    }

    .toolbar-right {
        justify-self: end;
    }

    .flex_grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        max-width: 1600px;
        margin: 0 auto;
    }

    .grid_img img {
        height: 300px;
    }

    .desktop-only {
        display: inline-flex;
    }
}

/* extra spacing and premium feel */
#interim_app {
    padding: 18px 10px 40px;
}

.dia_card h4,
.dia_card h5 {
    font-weight: 700;
}

.dia_card .theme_color {
    color: #007D79;
    font-size: 1.05rem;
}

.grid_item {
    padding: 6px;
}

.australia-btn {
    border: 1px solid #10b981;
    color: #10b981 !important;
    background-color: #f0fdf4;
}

.australia-btn:hover {
    background-color: #dcfce7;
}

.enquiry-btn {
    border: 1px solid #007D79;
    color: #007D79 !important;
    background-color: #f0fdfd;
}

.search-top-nav-bar .search_pill.types {
    margin: 0;
    font-size: 15px;
    padding: 12px 24px;
    border-radius: 8px !important;
    background-color: #ffffff;
    border: 1px solid #cbd5e1;
    font-weight: 600;
    color: #475569 !important;
    cursor: pointer;
    transition: all 0.2s ease;
}

.search-top-nav-bar .search_pill.types.selected {
    background-color: #007D79;
    border-color: #007D79;
    color: #ffffff !important;
}

#intl_tagline {
    font-size: 14px;
    color: #64748b;
    margin-top: 10px;
    margin-bottom: 25px;
    text-align: center;
    font-weight: 500;
}

/* Filter Row Headers */
#intl_search h4.section-title {
    font-size: 13px;
    color: #334155;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    margin-top: 0;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}

#intl_search h4.section-title i {
    color: #007D79;
    font-size: 15px;
}

/* Filter Section Layout */
.filter-section {
    border-bottom: 1px solid #f1f5f9;
    padding-bottom: 16px;
    margin-bottom: 16px;
}

.filter-section:last-child {
    border-bottom: none;
    padding-bottom: 0;
    margin-bottom: 0;
}

/* Search Card Container */
.search-filter-card {
    background-color: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.05), 0 1px 2px 0 rgba(0, 0, 0, 0.03);
    margin: 40px;
}

/* Shape Grid styling */
#intl_search .search_shapes {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 10px;
}

#intl_search .search_shapes .shape_card {
    position: relative;
    border: 1px solid #cbd5e1;
    border-radius: 8px !important;
    background-color: #ffffff;
    padding: 10px 6px;
    width: 100%;
    height: auto;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

#intl_search .search_shapes .shape_card:hover {
    border-color: #007D79;
    box-shadow: 0 4px 6px -1px rgba(0, 125, 121, 0.1), 0 2px 4px -2px rgba(0, 125, 121, 0.1);
}

#intl_search .search_shapes .shape_card.selected {
    border-color: #007D79 !important;
    background-color: #f0fdfd;
}

#intl_search .search_shapes .shape_card img {
    /* max-height: 36px; */
    margin-bottom: 6px;
}

#intl_search .search_shapes .shape_card h5 {
    font-size: 11px;
    font-weight: 600;
    color: #475569;
    margin: 0;
    text-transform: uppercase;
}

#intl_search .search_shapes .shape_card.selected h5 {
    color: #007D79;
}

.shape_card_badge {
    position: absolute;
    top: 4px;
    right: 4px;
    width: 16px;
    height: 16px;
    background-color: #007D79;
    color: white;
    border-radius: 50%;
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 8px;
}

.shape_card.selected .shape_card_badge {
    display: flex;
}

/* Carat & Certificate side-by-side */
.filter-row-carat-cert {
    display: flex;
    gap: 20px;
    margin-bottom: 0px;
}

.filter-col-carat,
.filter-col-cert {
    flex: 1;
}

.carat-inputs-container {
    display: flex;
    align-items: center;
    gap: 12px;
}

.range-separator {
    color: #94a3b8;
    font-weight: 600;
}

.carat_fields,
.cert-search-container input {
    height: 38px !important;
    border: 1px solid #cbd5e1 !important;
    border-radius: 6px !important;
    font-size: 13px !important;
    font-weight: 500 !important;
    padding: 6px 12px !important;
    color: #1e293b !important;
    background-color: transparent !important;
}

.carat_fields:focus,
.cert-search-container input:focus {
    border-color: #007D79 !important;
    box-shadow: 0 0 0 2px rgba(0, 125, 121, 0.2) !important;
}

.cert-search-container {
    position: relative;
}

.cert-search-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    font-size: 14px;
}

.cert-search-container input {
    padding-left: 36px !important;
    width: 100% !important;
}

/* Preset pills grids */
.carat-presets-grid,
.price-presets-grid,
.color-presets-grid,
.clarity-presets-grid,
.prod-method-presets-grid,
.overtone-presets-grid,
.intensity-presets-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

#intl_search .search_pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #cbd5e1;
    /* background-color: #ffffff; */
    border-radius: 6px !important;
    padding: 6px 12px;
    font-size: 12px;
    font-weight: 600;
    /* color: #475569 !important; */
    cursor: pointer;
    transition: all 0.15s ease;
}

#intl_search .search_pill:hover {
    border-color: #007D79;
    /* color: #007D79 !important; */
}

#intl_search .search_pill.selected:not(.types) {
    background-color: #f0fdfd;
    border-color: #007D79 !important;
    color: #007D79 !important;
    box-shadow: none !important;
}

/* Price presets & custom row */
.price-section-row {
    display: flex;
    gap: 20px;
}

.price-left-presets {
    flex: 1.5;
}

.price-right-custom {
    flex: 1;
    min-width: 300px;
}

.custom-price-card {
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 12px;
    background-color: #f8fafc;
}

.custom-price-card-title {
    font-size: 10px;
    font-weight: 700;
    color: #64748b;
    letter-spacing: 0.05em;
    margin-top: 0;
    margin-bottom: 8px;
}

.custom-price-inputs-row {
    display: flex;
    align-items: center;
    gap: 8px;
}

.custom-price-inputs-row input {
    height: 34px !important;
    border: 1px solid #cbd5e1 !important;
    border-radius: 6px !important;
    font-size: 12px !important;
    padding: 4px 10px !important;
    flex: 1;
    background-color: transparent !important;
}

.custom-price-separator {
    color: #94a3b8;
}

.btn-apply-price {
    height: 34px;
    background-color: #007D79;
    color: #ffffff !important;
    border: none;
    border-radius: 6px;
    font-weight: 600;
    padding: 0 12px;
    transition: background-color 0.2s ease;
}

.btn-apply-price:hover {
    background-color: #006663;
}

/* Color & Clarity grid spacing */
.clr-letter-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(40px, 1fr));
    gap: 4px;
}

.clarity-presets-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(60px, 1fr));
    gap: 4px;
}

/* Advanced Filters Accordion styles */
.advanced-filters-toggle-row {
    margin-top: 20px;
    margin-bottom: 10px;
}

.btn-advanced-toggle {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background-color: #ffffff;
    border: 1px solid #cbd5e1;
    color: #475569 !important;
    border-radius: 6px;
    padding: 8px 20px;
    font-weight: 600;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.btn-advanced-toggle:hover {
    border-color: #007D79;
    color: #007D79 !important;
}

.advanced-filters-container {
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 16px;
    margin-top: 10px;
    margin-bottom: 20px;
    background-color: #f8fafc;
}

.advanced-filters-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 16px;
}

.adv-col {
    grid-column: span 12;
}

@media (min-width: 768px) {
    .col-half {
        grid-column: span 6;
    }

    .col-third {
        grid-column: span 4;
    }
}

.range-inputs-pair {
    display: flex;
    align-items: center;
    gap: 8px;
}

.range-inputs-pair input {
    height: 34px !important;
    border: 1px solid #cbd5e1 !important;
    border-radius: 6px !important;
    font-size: 12px !important;
    padding: 4px 10px !important;
    width: 100% !important;
    background-color: transparent !important;
}

.range-dash {
    color: #94a3b8;
}

/* Bottom Fixed Bar buttons override */
.search_btns {
    padding: 15px;
    background-color: #ffffff;
    border-top: 1px solid #e2e8f0;
    display: flex;
    justify-content: center;
    gap: 10px;
}

.search_btns .intl_btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 24px;
    border-radius: 6px !important;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.2s ease;
    cursor: pointer;
}

.search_btns button.intl_btn {
    background-color: #007D79 !important;
    color: #ffffff !important;
    border: none !important;
}

.search_btns button.intl_btn:hover {
    background-color: #006663 !important;
}

.search_btns a.intl_btn {
    background-color: #ffffff !important;
    color: #475569 !important;
    border: 1px solid #cbd5e1 !important;
    text-decoration: none !important;
}

.search_btns a.intl_btn:hover {
    border-color: #007D79 !important;
    color: #007D79 !important;
    background-color: #f0fdfd !important;
}

.lab_pill img {
    max-height: 18px;
    vertical-align: middle;
}

/* =====================================================================
   Theme Specific Color Overrides (Natural vs Lab Grown)
   ===================================================================== */

/* 1. Natural Theme (Teal Color Scheme) */
.interim-theme-natural #intl_search .search_pill.selected:not(.types),
.interim-theme-natural #intl_search .search_shapes .shape_card.selected {
    background-color: #f0fdfd !important;
    border-color: #007D79 !important;
    color: #007D79 !important;
}

.interim-theme-natural #intl_search .search_shapes .shape_card.selected h5 {
    color: #007D79 !important;
}

.interim-theme-natural .shape_card_badge {
    background-color: #007D79 !important;
}

.interim-theme-natural #intl_search h4.section-title i {
    color: #007D79 !important;
}

.interim-theme-natural .carat_fields:focus,
.interim-theme-natural .cert-search-container input:focus,
.interim-theme-natural .custom-price-inputs-row input:focus,
.interim-theme-natural .range-inputs-pair input:focus {
    border-color: #007D79 !important;
    box-shadow: 0 0 0 2px rgba(0, 125, 121, 0.2) !important;
}

.interim-theme-natural .btn-apply-price,
.interim-theme-natural .search_btns button.intl_btn {
    background-color: #007D79 !important;
}

.interim-theme-natural .btn-apply-price:hover,
.interim-theme-natural .search_btns button.intl_btn:hover {
    background-color: #006663 !important;
}

.interim-theme-natural .btn-advanced-toggle:hover {
    border-color: #007D79 !important;
    color: #007D79 !important;
}

.interim-theme-natural .search-top-nav-bar .search_pill.types.selected {
    background-color: #007D79 !important;
    border-color: #007D79 !important;
    color: white !important;
}

.interim-theme-natural .australia-btn {
    border-color: #007D79 !important;
    color: #007D79 !important;
    background-color: #f0fdfd !important;
}

.interim-theme-natural .australia-btn:hover {
    background-color: #e3f5f5 !important;
}

.interim-theme-natural .enquiry-btn {
    border-color: #007D79 !important;
    color: #007D79 !important;
    background-color: #f0fdfd !important;
}

.interim-theme-natural #intl_search .search_shapes .shape_card:hover,
.interim-theme-natural #intl_search .search_pill:hover {
    border-color: #007D79 !important;
    color: #007D79 !important;
}

.interim-theme-natural .search_btns a.intl_btn:hover {
    border-color: #007D79 !important;
    color: #007D79 !important;
    background-color: #f0fdfd !important;
}


/* 2. Lab Grown Theme (Gold/Bronze Color Scheme) */
.interim-theme-lab-grown #intl_search .search_pill.selected:not(.types),
.interim-theme-lab-grown #intl_search .search_shapes .shape_card.selected {
    background-color: #F4EBDA !important;
    border-color: #D0AA62 !important;
    color: #D0AA62 !important;
}

.interim-theme-lab-grown #intl_search .search_shapes .shape_card.selected h5 {
    color: #D0AA62 !important;
}

.interim-theme-lab-grown .shape_card_badge {
    background-color: #D0AA62 !important;
}

.interim-theme-lab-grown #intl_search h4.section-title i {
    color: #D0AA62 !important;
}

.interim-theme-lab-grown .carat_fields:focus,
.interim-theme-lab-grown .cert-search-container input:focus,
.interim-theme-lab-grown .custom-price-inputs-row input:focus,
.interim-theme-lab-grown .range-inputs-pair input:focus {
    border-color: #D0AA62 !important;
    box-shadow: 0 0 0 2px rgba(208, 170, 98, 0.2) !important;
}

.interim-theme-lab-grown .btn-apply-price,
.interim-theme-lab-grown .search_btns button.intl_btn {
    background-color: #D0AA62 !important;
}

.interim-theme-lab-grown .btn-apply-price:hover,
.interim-theme-lab-grown .search_btns button.intl_btn:hover {
    background-color: #b58d4a !important;
}

.interim-theme-lab-grown .btn-advanced-toggle:hover {
    border-color: #D0AA62 !important;
    color: #D0AA62 !important;
}

.interim-theme-lab-grown .search-top-nav-bar .search_pill.types.selected {
    background-color: #D0AA62 !important;
    border-color: #D0AA62 !important;
    color: white !important;
}

.interim-theme-lab-grown .australia-btn {
    border-color: #D0AA62 !important;
    color: #D0AA62 !important;
    background-color: #fcf8f2 !important;
}

.interim-theme-lab-grown .australia-btn:hover {
    background-color: #f4ebda !important;
}

.interim-theme-lab-grown .enquiry-btn {
    border-color: #D0AA62 !important;
    color: #D0AA62 !important;
    background-color: #F4EBDA !important;
}

.interim-theme-lab-grown #intl_search .search_shapes .shape_card:hover,
.interim-theme-lab-grown #intl_search .search_pill:hover {
    border-color: #D0AA62 !important;
    color: #D0AA62 !important;
}

.interim-theme-lab-grown .search_btns a.intl_btn:hover {
    border-color: #D0AA62 !important;
    color: #D0AA62 !important;
    background-color: #F4EBDA !important;
}

/* =====================================================================
   Universal Responsiveness Overrides
   ===================================================================== */

/* Menu Hamburger Buttons styling */
.mobile-menu-btn,
.tablet-menu-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 8px;
    border: 1px solid #cbd5e1;
    color: #475569 !important;
    background-color: #ffffff;
    font-size: 16px;
    text-decoration: none !important;
}

.mobile-menu-btn {
    margin-right: 10px;
}

.tablet-menu-btn {
    margin-left: 10px;
}

/* Card responsive spacing override */
@media (max-width: 991px) {
    .search-filter-card {
        margin: 20px 10px !important;
        padding: 20px !important;
    }
}

@media (max-width: 767px) {
    .search-filter-card {
        margin: 10px 0 !important;
        padding: 15px !important;
    }
}

/* Form structure stacking rules */
@media (max-width: 767px) {
    .search-top-nav-bar {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }

    .top-nav-left,
    .top-nav-right {
        text-align: center;
        justify-content: center;
    }

    .top-nav-right {
        order: 3;
    }

    .top-nav-center {
        order: 2;
    }

    #intl_search .search_shapes {
        grid-template-columns: repeat(3, 1fr);
        gap: 8px;
    }

    .filter-row-carat-cert {
        flex-direction: column-reverse;
        /* Certificate first, Carat second */
        gap: 15px;
    }

    .price-section-row {
        flex-direction: column;
        gap: 15px;
    }

    .price-right-custom {
        min-width: 100%;
        order: 1;
        /* Custom Price first */
    }

    .price-left-presets {
        order: 2;
        /* Presets below */
    }

    /* Collapsible filters styling */
    .collapsible-filter-mobile .collapsible-content {
        display: none;
        margin-top: 10px;
    }

    .collapsible-filter-mobile.active .collapsible-content {
        display: block;
    }

    .collapsible-header {
        cursor: pointer;
        display: flex;
        justify-content: space-between;
        align-items: center;
        width: 100%;
        margin-bottom: 0 !important;
    }

    .collapsible-header .toggle-icon {
        font-size: 14px;
        color: #64748b;
        transition: transform 0.2s ease;
    }
}

@media (max-width: 480px) {
    #intl_search .search_shapes {
        grid-template-columns: repeat(2, 1fr);
    }

    .search_btns {
        flex-direction: column;
        gap: 8px;
    }

    .search_btns .intl_btn {
        width: 100%;
    }
}

/* =====================================================================
   Redesigned UI Elements Styles
   ===================================================================== */

/* Reset/base variables & fonts for search form */
#intl_search {
    font-family: 'Outfit', 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
    color: #1e293b;
}

/* Tagline */
#intl_tagline {
    text-align: center;
    font-size: 14px;
    font-weight: 500;
    color: #64748b;
    margin: 5px 0 20px 0;
}

/* Custom layout container */
.search-filter-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.025);
    margin-bottom: 30px;
}

/* Sections */
.filter-section {
    padding-bottom: 25px;
    margin-bottom: 25px;
    border-bottom: 1px solid #f1f5f9;
}

.filter-section:last-of-type {
    border-bottom: none;
    padding-bottom: 0;
    margin-bottom: 0;
}

/* Headers */
.section-title {
    font-size: 13px !important;
    font-weight: 700 !important;
    color: #475569 !important;
    letter-spacing: 1.5px !important;
    margin-bottom: 18px !important;
    display: flex;
    align-items: center;
    gap: 8px;
    text-transform: uppercase;
}

.section-title i {
    font-size: 14px;
}

/* Custom Price Title Dot & Certificate Title Dot */
.title-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.interim-theme-natural .title-dot,
.interim-theme-natural .dot-icon {
    background-color: #007D79;
}

.interim-theme-lab-grown .title-dot,
.interim-theme-lab-grown .dot-icon {
    background-color: #D0AA62;
}

/* Navigation Tabs Bar styling */
.search-top-nav-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #e2e8f0;
    padding-bottom: 15px;
    margin-bottom: 20px;
}

.top-nav-left {
    display: flex;
    align-items: center;
}

.top-nav-center {
    display: flex;
    align-items: center;
    gap: 12px;
}

.top-nav-right {
    display: flex;
    align-items: center;
}

/* Button styles in navigation tabs */
.australia-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    font-size: 14px;
    font-weight: 600;
    border-radius: 30px;
    text-decoration: none !important;
    transition: all 0.2s ease;
}

.interim-theme-natural .australia-btn {
    border: 1px solid #007D79;
    color: #007D79 !important;
}

.interim-theme-lab-grown .australia-btn {
    border: 1px solid #D0AA62;
    color: #D0AA62 !important;
}

.australia-btn .dot-icon {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    display: inline-block;
}

.enquiry-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 600;
    border-radius: 8px;
    text-decoration: none !important;
    transition: all 0.2s ease;
}

.interim-theme-natural .enquiry-btn {
    border: 1px solid #007D79;
    color: #007D79 !important;
}

.interim-theme-lab-grown .enquiry-btn {
    border: 1px solid #D0AA62;
    color: #D0AA62 !important;
}

/* Tabs: Natural vs Lab Grown */
.search-top-nav-bar .search_pill.types {
    padding: 10px 24px;
    font-size: 14px;
    font-weight: 600;
    border-radius: 30px !important;
    border: 1px solid #e2e8f0;
    background-color: #ffffff;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

/* Shapes list layout */
#intl_search .search_shapes {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(105px, 1fr));
    gap: 12px;
}

#intl_search .search_shapes .shape_card {
    border: 1px solid #cbd5e1;
    border-radius: 8px !important;
    background: #ffffff;
    height: auto;
    padding: 16px 8px;
    transition: all 0.2s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
}

#intl_search .search_shapes .shape_card img {
    height: 38px;
    width: auto;
    margin-bottom: 12px;
    transition: transform 0.2s ease;
}

#intl_search .search_shapes .shape_card:hover img {
    transform: scale(1.08);
}

#intl_search .search_shapes .shape_card h5 {
    font-size: 10px !important;
    font-weight: 700 !important;
    color: #475569 !important;
    letter-spacing: 0.5px;
    margin: 0 !important;
    text-transform: uppercase;
    text-align: center;
}

/* Shape card selection checkmark badge */
.shape_card_badge {
    position: absolute;
    top: 5px;
    right: 5px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 8px;
    color: #ffffff;
    opacity: 0;
    transform: scale(0.8);
    transition: all 0.2s ease;
}

.interim-theme-natural .shape_card.selected .shape_card_badge {
    background: #007D79;
    opacity: 1;
    transform: scale(1);
}

.interim-theme-lab-grown .shape_card.selected .shape_card_badge {
    background: #D0AA62;
    opacity: 1;
    transform: scale(1);
}

/* Certificate & Carat Row styling */
.cert-carat-section .filter-row {
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: flex-start !important;
    gap: 35px !important;
}

.cert-carat-section .carat-col,
.cert-carat-section .cert-col {
    flex: 0 0 auto !important;
    width: auto !important;
    max-width: none !important;
}

.cert-search-container {
    position: relative !important;
    width: 220px !important;
    max-width: 220px !important;
}

.cert-search-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    font-size: 13px;
}

.cert-search-container input {
    height: 38px !important;
    border-radius: 8px !important;
    border: 1px solid #cbd5e1 !important;
    padding-left: 34px !important;
    padding-right: 10px !important;
    font-size: 13px !important;
    color: #334155;
    background: #ffffff;
    width: 220px !important;
    max-width: 220px !important;
    transition: all 0.2s ease;
}

.cert-search-container input:focus {
    outline: none;
    border-color: #cbd5e1;
}

/* Carat Inputs styling */
.carat-inputs-container {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    width: auto !important;
}

.carat-inputs-container input {
    height: 38px !important;
    border-radius: 8px !important;
    border: 1px solid #cbd5e1 !important;
    padding: 6px 10px !important;
    font-size: 13px !important;
    color: #334155;
    background: #ffffff;
    width: 135px !important;
    max-width: 135px !important;
    transition: all 0.2s ease;
}

.carat-inputs-container input:focus {
    outline: none;
    border-color: #cbd5e1;
}

.range-separator {
    color: #94a3b8;
    font-weight: 500;
}

/* Presets styling (Chips) */
#intl_search .search_pill:not(.types) {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #e2e8f0;
    border-radius: 30px !important;
    background: #ffffff;
    color: #334155;
    font-size: 12px;
    font-weight: 500;
    padding: 8px 16px;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

#intl_search .search_pill:not(.types):hover {
    border-color: #cbd5e1;
    background-color: #f8fafc;
}

.carat-presets-grid,
.price-presets-grid,
.prod-method-presets-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

/* Custom Price inputs row styling */
.custom-price-inputs-row {
    display: flex;
    align-items: center;
    gap: 12px;
    max-width: 480px;
}

.custom-price-inputs-row input {
    height: 42px;
    border-radius: 8px !important;
    border: 1px solid #cbd5e1;
    padding: 8px 16px !important;
    font-size: 14px;
    color: #334155;
    background: #ffffff;
    width: 100%;
    transition: all 0.2s ease;
}

.custom-price-inputs-row input:focus {
    outline: none;
    border-color: #cbd5e1;
}

.btn-apply-price {
    height: 42px;
    padding: 0 24px;
    font-size: 14px;
    font-weight: 600;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
}

/* Advanced Filters Toggle Row */
.advanced-filters-toggle-row {
    text-align: center;
    margin: 20px 0 10px 0;
}

.btn-advanced-toggle {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 1.5px;
    color: #475569;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-transform: uppercase;
    transition: all 0.2s ease;
}

.btn-advanced-toggle:hover {
    color: #1e293b;
}

/* Advanced Filters Accordion Panel Grid */
.advanced-filters-container {
    background: #f8fafc;
    border: 1px solid #f1f5f9;
    border-radius: 8px;
    padding: 30px;
    margin-top: 15px;
}

.advanced-filters-grid-wrapper {
    display: flex;
    flex-direction: row;
    gap: 35px;
}

.advanced-left-col,
.advanced-right-col {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 30px;
}

@media (max-width: 991px) {
    .advanced-filters-grid-wrapper {
        flex-direction: column;
        gap: 20px;
        max-width: 100% !important;
        width: 100% !important;
    }

    .advanced-left-col,
    .advanced-right-col,
    .adv-row,
    .adv-col,
    .flex_pills {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }
}

.adv-row {
    display: grid;
    gap: 30px;
}

.row-two-cols {
    grid-template-columns: 1fr 1fr;
}

.row-three-cols {
    grid-template-columns: repeat(3, 1fr);
}

.row-one-col {
    grid-template-columns: 1fr;
}

.adv-col {
    display: flex;
    flex-direction: column;
}

.adv-section-title {
    font-size: 11px !important;
    font-weight: 700 !important;
    color: #64748b !important;
    letter-spacing: 1px;
    margin-bottom: 12px !important;
    display: flex;
    align-items: center;
    gap: 6px;
    text-transform: uppercase;
}

.adv-section-subtitle {
    font-size: 10px !important;
    font-weight: 700 !important;
    color: #64748b !important;
    letter-spacing: 0.5px;
    margin-top: 15px !important;
    margin-bottom: 8px !important;
    display: flex;
    align-items: center;
    gap: 6px;
    text-transform: uppercase;
}

/* Sub-preset groupings */
.flex_pills {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.color-presets-grid,
.clarity-presets-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

/* Specific grids for letter-heavy pills (Colour, Clarity) */
.clr-letter-grid {
    display: grid;
    grid-template-columns: repeat(8, 1fr);
    gap: 6px;
}

@media (max-width: 767px) {
    .clr-letter-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 480px) {
    .clr-letter-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.clr-letter-grid .search_pill {
    padding: 8px 0 !important;
    text-align: center;
    justify-content: center;
}

/* Clarity Preset Grid */
.clarity-presets-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(70px, 1fr));
    gap: 8px;
}

.clarity-presets-grid .search_pill {
    padding: 8px 12px !important;
    text-align: center;
    justify-content: center;
    min-width: 60px;
}

/* Sub-section titles */
.sub-section-title {
    font-size: 11px !important;
    font-weight: 700 !important;
    color: #64748b !important;
    letter-spacing: 1px !important;
    margin-bottom: 12px !important;
    display: flex;
    align-items: center;
    gap: 6px;
    text-transform: uppercase;
}

/* Lab images styling */
.filter_search .lab_pill {
    padding: 6px 12px !important;
}

.filter_search .lab_pill img {
    height: 18px;
    width: auto;
    filter: grayscale(100%);
    opacity: 0.8;
    transition: all 0.2s ease;
}

.filter_search .lab_pill.selected img {
    filter: none;
    opacity: 1;
}

/* Range Input Pairs inside Advanced Filters */
.range-inputs-pair {
    display: flex;
    align-items: center;
    gap: 8px;
}

.range-inputs-pair input {
    height: 38px;
    border-radius: 6px !important;
    border: 1px solid #cbd5e1;
    padding: 6px 12px !important;
    font-size: 13px;
    color: #334155;
    background: #ffffff;
    width: 100%;
    transition: all 0.2s ease;
}

/* Bottom Action Buttons */
.search_btns {
    padding: 24px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
}

.search_btns .intl_btn {
    font-size: 15px !important;
    font-weight: 600 !important;
    padding: 12px 35px !important;
    border-radius: 6px !important;
    cursor: pointer;
    box-shadow: none !important;
}

.btn-reset-filters,
.btn-save-search {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 15px;
    font-weight: 600;
    color: #334155;
    background: #ffffff;
    border: 1px solid #cbd5e1;
    padding: 12px 28px;
    border-radius: 6px;
    text-decoration: none !important;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-reset-filters:hover,
.btn-save-search:hover {
    background-color: #f8fafc;
    border-color: #94a3b8;
    color: #1e293b;
}

/* Responsive Media Queries override */
@media (max-width: 1024px) {
    .search-filter-card {
        padding: 20px;
    }

    .cert-carat-section .filter-row {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .row-two-cols,
    .row-three-cols {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    /* Mobile Collapsible sections */
    .collapsible-filter-mobile .collapsible-content {
        display: none;
        margin-top: 15px;
    }

    .collapsible-filter-mobile.active .collapsible-content {
        display: block;
    }

    .collapsible-header {
        cursor: pointer;
        display: flex;
        justify-content: space-between;
        align-items: center;
        width: 100%;
        margin-bottom: 0 !important;
    }

    .collapsible-header .toggle-icon {
        font-size: 14px;
        color: #64748b;
        transition: transform 0.2s ease;
    }
}

@media (max-width: 480px) {
    .search-top-nav-bar {
        flex-direction: column;
        gap: 15px;
        align-items: stretch;
    }

    .top-nav-center {
        flex-direction: column;
        width: 100%;
    }

    .local_type {
        flex-direction: column !important;
        gap: 8px !important;
    }

    .top-nav-center .search_pill.types {
        width: 100%;
        justify-content: center;
        padding: 10px 16px !important;
        font-size: 14px !important;
        box-sizing: border-box;
    }

    .top-nav-left,
    .top-nav-right {
        justify-content: center;
    }

    .search_btns .intl_btn,
    .btn-reset-filters,
    .btn-save-search {
        width: 100%;
        justify-content: center;
    }
}

/* Hide collapsible toggle arrow on Desktop/Tablet landscape & portrait (>= 768px) */
#intl_search .toggle-icon {
    display: none !important;
}

@media (max-width: 1024px) {
    #intl_search .toggle-icon {
        display: inline-block !important;
    }
}

/* ============================================================================
   PIXEL-PERFECT CARD LAYOUT & RESPONSIVE GRID (TASK 1)
   ----------------------------------------------------------------------------
   Follows approved design mockup — Desktop 1440px / Laptop 1200-1439px /
   Tablet Landscape 992-1199px / Tablet Portrait 768-991px / Mobile <768px
   Uses Bootstrap responsive grid classes: col-lg-3 col-md-4 col-sm-6 col-xs-12
   ============================================================================ */

/* ---- Grid Container (Bootstrap Row Override for Equal Heights) ---- */
.flex_grid {
    display: flex !important;
    flex-wrap: wrap !important;
    overflow: visible !important;
    gap: 0 !important;
}

.flex_grid::before,
.flex_grid::after {
    display: none !important;
    /* Disable bootstrap float clear fix which breaks flex containers */
}

/* Base grid item setup (forces column widths under flex layout) */
.flex_grid .grid_item {
    margin: 0 0 20px 0 !important;
    position: relative !important;
    display: flex !important;
    flex-direction: column !important;
}

/* Laptop & Desktop (min-width: 1200px) -> 4 columns */
@media (min-width: 1200px) {
    .flex_grid .grid_item {
        width: 25% !important;
        max-width: 25% !important;
        flex: 0 0 25% !important;
    }
}

/* Tablet Landscape (992px to 1199px) -> 3 columns */
@media (min-width: 992px) and (max-width: 1199px) {
    .flex_grid .grid_item {
        width: 33.333333% !important;
        max-width: 33.333333% !important;
        flex: 0 0 33.333333% !important;
    }
}

/* Tablet Portrait (768px to 991px) -> 2 columns */
@media (min-width: 768px) and (max-width: 991px) {
    .flex_grid .grid_item {
        width: 50% !important;
        max-width: 50% !important;
        flex: 0 0 50% !important;
    }
}

/* Mobile (<768px) -> 1 column */
@media (max-width: 767px) {
    .flex_grid .grid_item {
        width: 100% !important;
        max-width: 100% !important;
        flex: 0 0 100% !important;
    }
}

/* ---- Card layout & equal height mechanism ---- */
.flex_grid .grid_item .dia_card {
    display: flex !important;
    flex-direction: column !important;
    justify-content: space-between !important;
    flex-grow: 1 !important;
    width: 100% !important;
    height: 100% !important;
    min-height: unset !important;
    background: #ffffff !important;
    border: 1px solid #cbd5e1 !important;
    border-radius: 8px !important;
    padding: 12px !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05) !important;
    transition: box-shadow 0.2s ease, transform 0.2s ease !important;
    white-space: normal !important;
    position: relative !important;
    overflow: hidden !important;
    /* Clips the corner ribbon nicely */
}

.flex_grid .grid_item .dia_card:hover {
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.08) !important;
    transform: translateY(-2px) !important;
}

.grid_item_sec {
    display: flex !important;
    flex-direction: column !important;
    flex-grow: 1 !important;
    height: 100% !important;
    justify-content: space-between !important;
}

/* First child containing name, image, price, measurement, props */
.grid_item_sec>div:first-child {
    display: flex !important;
    flex-direction: column !important;
    flex-grow: 1 !important;
}

/* Second child containing bottom icons */
.grid_item_sec>div:last-child {
    margin-top: auto !important;
    padding-top: 10px !important;
}

/* ---- Card Image Containment & Centering ---- */
.grid_img {
    height: 180px !important;
    width: 100% !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    position: relative !important;
    overflow: auto !important;
    margin-bottom: 8px !important;
}

.grid_img img {
    max-height: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    width: auto !important;
    object-fit: contain !important;
    display: block !important;
    margin: auto !important;
}

/* Media Carousel fit */
.media_carousel {
    position: relative !important;
    width: 100% !important;
    height: 100% !important;
}

.media_track {
    display: flex !important;
    width: 100% !important;
    height: 100% !important;
    overflow: hidden !important;
}

.media_slide {
    flex: 0 0 100% !important;
    width: 100% !important;
    height: 100% !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
}

.media_single_video {
    width: 100% !important;
    height: 100% !important;
}

.media_slide iframe,
.media_single_video iframe {
    min-height: 280px !important;
    width: 100% !important;
    border: 0 !important;
}

/* Center Carousel Nav Arrows vertically */
.grid_img .media_nav {
    position: absolute !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    margin: 0 !important;
    z-index: 5 !important;
}

/* ---- Title, Measurement, Price, Properties spacing ---- */
.dia_card h4,
.dia_card h5 {
    font-size: 15px !important;
    font-weight: 700 !important;
    color: #1e293b !important;
    margin: 0 0 4px 0 !important;
    line-height: 1.3 !important;
    white-space: normal !important;
    overflow-wrap: anywhere !important;
}

.measurement-text {
    font-size: 12px !important;
    color: #64748b !important;
    margin: 0 0 6px 0 !important;
    font-weight: 500 !important;
    letter-spacing: 0.2px !important;
}

.dia_card .theme_color {
    font-size: 16px !important;
    font-weight: 700 !important;
    color: #007D79 !important;
    /* Teal for Natural */
    margin: 0 0 6px 0 !important;
    display: block !important;
}

.interim-theme-lab-grown .dia_card .theme_color {
    color: #D0AA62 !important;
    /* Gold for Lab Grown */
}

.incl_gst {
    font-size: 12px !important;
    color: #64748b !important;
    font-weight: 500 !important;
}

.flex_props p {
    font-size: 13px !important;
    color: #475569 !important;
    font-weight: 600 !important;
    margin: 0 0 10px 0 !important;
    letter-spacing: 0.5px !important;
    white-space: normal !important;
    overflow-wrap: anywhere !important;
}

/* Ribbons z-index fix - prevents overlay by iframe / carousel videos */
.ribbon {
    position: absolute !important;
    z-index: 10 !important;
}

.ribbon span {
    background-color: #007D79;
}

.interim-theme-lab-grown .ribbon span {
    background-color: #D0AA62;
}

/* Checkbox z-index fix */
.grid-checkbox {
    position: absolute !important;
    right: 12px !important;
    top: 12px !important;
    z-index: 10 !important;
}

/* Action buttons base styling */
.card-actions-inline-container .grid_svg {
    transition: all 0.2s;
}

/* Theme-based action button colors */
.interim-theme-natural .grid_svg svg {
    color: #007D79 !important;
}

.interim-theme-natural .grid_svg:hover {
    background: rgba(0, 125, 121, 0.1) !important;
}

.interim-theme-lab-grown .grid_svg svg {
    color: #D0AA62 !important;
}

.interim-theme-lab-grown .grid_svg:hover {
    background: rgba(208, 170, 98, 0.1) !important;
}

/* Bottom icon action styling */
.card-actions-row {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 8px !important;
    margin-top: 8px !important;
    flex-wrap: wrap !important;
}

.dia_card .grid_svg {
    width: 32px !important;
    height: 32px !important;
    padding: 0 !important;
    border-radius: 6px !important;
    border: 1px solid #cbd5e1 !important;
    background: #ffffff !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    transition: all 0.2s ease-in-out !important;
    cursor: pointer !important;
    flex-shrink: 0 !important;
}

.dia_card .grid_svg:hover {
    background-color: #f1f5f9 !important;
    border-color: #007D79 !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05) !important;
}

.interim-theme-lab-grown .dia_card .grid_svg:hover {
    border-color: #D0AA62 !important;
}

.dia_card .grid_svg svg {
    width: 16px !important;
    height: 16px !important;
    color: #475569 !important;
    display: block !important;
    transition: color 0.2s ease !important;
}

.dia_card .grid_svg:hover svg {
    color: #0f172a !important;
}

.action-divider {
    width: 1px !important;
    height: 20px !important;
    background-color: #cbd5e1 !important;
    margin: 0 4px !important;
    flex-shrink: 0 !important;
}

/* ---- Inline 2-Column Specs Table ---- */
.card-specs {
    display: flex !important;
    gap: 0 !important;
    margin-top: 8px !important;
    padding-top: 8px !important;
    border-top: 1px solid #e2e8f0 !important;
}

.specs-col {
    flex: 1 1 50% !important;
    min-width: 0 !important;
}

.specs-col:first-child {
    border-right: 1px solid #e2e8f0 !important;
    padding-right: 12px !important;
}

.specs-col:last-child {
    padding-left: 12px !important;
}

/* Extra specs table (below main specs) */
.card-extra-specs {
    margin-top: 6px !important;
    padding-top: 6px !important;
    padding-bottom: 6px !important;
    border-top: 1px solid #e2e8f0 !important;
    border-bottom: 1px solid #e2e8f0 !important;
    display: flex !important;
    flex-direction: column !important;
}

.spec-row {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    /* Align labels and values perfectly */
    padding: 4px 0 !important;
    /* Increased vertical spacing */
    border-bottom: 1px solid #f1f5f9 !important;
    gap: 8px !important;
}

.spec-row:last-child {
    border-bottom: none !important;
}

.spec-label {
    font-size: 11px !important;
    color: #1e293b !important;
    white-space: nowrap !important;
    font-weight: 700 !important;
    flex-shrink: 0 !important;
}

.spec-value {
    font-size: 11px !important;
    color: #1e293b !important;
    font-weight: 600 !important;
    text-align: right !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
}

.spec-cert-link {
    color: #007D79 !important;
    text-decoration: none !important;
    font-weight: 600 !important;
}

.spec-cert-link:hover,
.spec-cert-link:focus {
    color: #007D79 !important;
    text-decoration: underline !important;
}

.interim-theme-lab-grown .spec-cert-link {
    color: #D0AA62 !important;
}

.interim-theme-lab-grown .spec-cert-link:hover,
.interim-theme-lab-grown .spec-cert-link:focus {
    color: #D0AA62 !important;
    text-decoration: underline !important;
}

.spec-status {
    color: #007D79 !important;
    font-weight: 700 !important;
}

.interim-theme-lab-grown .spec-status {
    color: #D0AA62 !important;
}

.spec-measurement {
    /* font-size: 10px !important; */
    word-break: break-all !important;
    white-space: normal !important;
}

/* Mobile: Stack spec columns vertically on very small screens */
@media (max-width: 400px) {
    .card-specs {
        flex-direction: column !important;
        gap: 0 !important;
    }
}

/* ---- Responsive Desktop/Mobile Specs Layout toggles ---- */
@media (min-width: 768px) {
    .desktop-specs-container {
        display: block !important;
    }

    .mobile-specs-container {
        display: none !important;
    }

    .btn-text-desktop {
        display: inline !important;
    }

    .btn-text-mobile {
        display: none !important;
    }
}

@media (max-width: 767px) {
    .desktop-specs-container {
        display: none !important;
    }

    .mobile-specs-container {
        display: block !important;
        margin-top: 12px;
        padding-top: 12px;
        border-top: 1px solid #e2e8f0;
    }

    .mobile-spec-row {
        display: flex !important;
        justify-content: space-between !important;
        align-items: center !important;
        padding: 6px 0 !important;
        border-bottom: 1px solid #f1f5f9 !important;
        gap: 8px !important;
    }

    .mobile-spec-row:last-child {
        border-bottom: none !important;
    }

    .more-details-toggle {
        display: flex;
        justify-content: space-between !important;
        align-items: center !important;
        padding: 10px 0 !important;
        cursor: pointer !important;
        color: #007D79 !important;
        font-weight: 700 !important;
        font-size: 13px !important;
        border-bottom: 1px solid #e2e8f0 !important;
        margin-top: 4px !important;
        margin-bottom: 4px !important;
        transition: color 0.2s ease !important;
    }

    .interim-theme-lab-grown .more-details-toggle {
        color: #D0AA62 !important;
    }

    .more-details-toggle .toggle-icon {
        font-size: 12px !important;
        transition: transform 0.2s ease !important;
    }

    .more-details-toggle.active .toggle-icon {
        transform: rotate(180deg) !important;
    }

    .mobile-extra-specs {
        margin-top: 4px !important;
    }

    .btn-text-desktop {
        display: none !important;
    }

    .btn-text-mobile {
        display: inline !important;
    }

    /* Refactor Bulk Actions Bar for Mobile (horizontal aligned, box shadow, premium theme color highlights) */
    #diamond_actions.diamond-actions-container {
        display: flex !important;
        width: 100% !important;
        background: #ffffff !important;
        border: 1px solid #e2e8f0 !important;
        border-radius: 12px !important;
        box-shadow: 0 4px 12px rgba(16, 24, 40, 0.05) !important;
        padding: 12px 8px !important;
        margin-top: 15px !important;
        margin-bottom: 20px !important;
        justify-content: space-around !important;
        align-items: center !important;
        text-align: center !important;
    }

    #diamond_actions.diamond-actions-container .intl_btn {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
        flex: 1 !important;
        background: transparent !important;
        border: none !important;
        box-shadow: none !important;
        padding: 6px 4px !important;
        margin: 0 !important;
        color: #475569 !important;
        gap: 6px !important;
        height: auto !important;
        transition: all 0.2s ease !important;
    }

    #diamond_actions.diamond-actions-container .intl_btn:hover {
        background: transparent !important;
        color: #007D79 !important;
    }

    .interim-theme-lab-grown #diamond_actions.diamond-actions-container .intl_btn:hover {
        color: #D0AA62 !important;
    }

    #diamond_actions.diamond-actions-container .intl_btn i {
        font-size: 18px !important;
        color: #475569 !important;
        margin: 0 !important;
        transition: color 0.2s ease !important;
    }

    #diamond_actions.diamond-actions-container .intl_btn:hover i {
        color: #007D79 !important;
    }

    .interim-theme-lab-grown #diamond_actions.diamond-actions-container .intl_btn:hover i {
        color: #D0AA62 !important;
    }

    #diamond_actions.diamond-actions-container .intl_btn .btn-text-mobile {
        font-size: 11px !important;
        font-weight: 600 !important;
        color: #475569 !important;
        letter-spacing: 0.2px !important;
        transition: color 0.2s ease !important;
    }

    #diamond_actions.diamond-actions-container .intl_btn:hover .btn-text-mobile {
        color: #007D79 !important;
    }

    .interim-theme-lab-grown #diamond_actions.diamond-actions-container .intl_btn:hover .btn-text-mobile {
        color: #D0AA62 !important;
    }

    #interim-theme #sticky_bar {
        display: contents !important;
    }

    #interim-theme #sticky_bar>.col-md-12 {
        display: contents !important;
    }

    #interim-theme #action_bar {
        position: sticky !important;
        top: 75px !important;
        z-index: 98 !important;
        background: #ffffff !important;
        padding: 8px 15px !important;
        box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03) !important;
        border-bottom: 1px solid #e2e8f0 !important;
        margin-left: -15px !important;
        margin-right: -15px !important;
        display: flex !important;
        flex-direction: column-reverse !important;
        gap: 10px !important;
    }

    #action_bar #diamond_actions.diamond-actions-container {
        margin-top: 0 !important;
        margin-bottom: 0 !important;
    }
}

/* Slider Carousel Prev / Next Arrows - White background, themed icon colors */
.grid_img .media_nav {
    background: #ffffff !important;
    color: #007D79 !important;
    border: 1px solid #cbd5e1 !important;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15) !important;
    opacity: 1 !important;
    z-index: 15 !important;
}

.grid_img .media_nav:hover {
    background: #f8fafc !important;
    color: #005D5A !important;
    transform: translateY(-50%) scale(1.1) !important;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2) !important;
}

.interim-theme-lab-grown .grid_img .media_nav {
    background: #ffffff !important;
    color: #D0AA62 !important;
    border: 1px solid #cbd5e1 !important;
}

.interim-theme-lab-grown .grid_img .media_nav:hover {
    background: #f8fafc !important;
    color: #B8934F !important;
    transform: translateY(-50%) scale(1.1) !important;
}

/* Less Details toggle matching More Details style */
.less-details-toggle {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    padding: 10px 0 !important;
    cursor: pointer !important;
    color: #007D79 !important;
    font-weight: 700 !important;
    font-size: 13px !important;
    border-top: 1px solid #e2e8f0 !important;
    margin-top: 10px !important;
    margin-bottom: 4px !important;
    transition: color 0.2s ease !important;
}

.interim-theme-lab-grown .less-details-toggle {
    color: #D0AA62 !important;
}

.less-details-toggle .toggle-icon {
    font-size: 12px !important;
}

/* iPad Responsive Layout Fixes (768px to 1024px) */
@media (min-width: 768px) and (max-width: 1024px) {

    /* Prevent bulk action buttons wrapping */
    .btn-text-desktop {
        display: none !important;
    }

    .btn-text-mobile {
        display: inline !important;
    }

    #diamond_actions {
        display: flex !important;
        flex-wrap: nowrap !important;
        gap: 6px !important;
        justify-content: center !important;
        margin-top: 10px !important;
        margin-bottom: 10px !important;
    }

    #diamond_actions .intl_btn {
        padding: 6px 8px !important;
        font-size: 12px !important;
    }

    /* Reduce vertical height of card components */
    .grid_img img {
        height: 180px !important;
    }

    .flex_grid .grid_item .dia_card {
        padding: 8px !important;
    }

    .spec-row {
        padding: 2px 0 !important;
    }

    .card-specs {
        gap: 8px !important;
    }
}

/* Mobile Screen Layout Enhancements (max-width: 767px) */
@media (max-width: 767px) {

    /* Style and pad top toolbar card wrapper */
    .top-toolbar {
        padding: 15px 12px !important;
        gap: 12px !important;
        border: 1px solid #e2e8f0 !important;
        border-radius: 12px !important;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05) !important;
        margin-top: 10px !important;
        margin-bottom: 15px !important;
        display: grid !important;
        grid-template-columns: 1fr !important;
    }

    /* Center justify components vertically stacked */
    .top-toolbar .toolbar-left,
    .top-toolbar .toolbar-center,
    .top-toolbar .toolbar-right {
        justify-content: center !important;
        text-align: center !important;
        width: 100% !important;
        display: flex !important;
    }

    /* Sort dropdown + view icons row above the stock pill, pill left-aligned */
    .top-toolbar .toolbar-right {
        order: 1 !important;
    }

    .top-toolbar .toolbar-center {
        order: 2 !important;
        justify-content: flex-start !important;
        text-align: left !important;
    }

    /* Centered toggle switches */
    .top-toolbar .toggle-switches {
        justify-content: center !important;
        width: 100% !important;
        gap: 20px !important;
    }

    /* Center-aligned location/distributor pill button */
    .top-toolbar .location_btn {
        width: 100% !important;
        max-width: 280px !important;
        justify-content: center !important;
        height: 38px !important;
        line-height: 38px !important;
        display: inline-flex !important;
        align-items: center !important;
    }

    /* Hide "Sort By" text label on mobile to save space */
    .top-toolbar .sort-label {
        display: none !important;
    }

    /* Inline mobile select dropdown */
    .top-toolbar #sort_by_select {
        flex: 1 !important;
        max-width: 180px !important;
        height: 38px !important;
        border-radius: 8px !important;
        font-size: 13px !important;
        border: 1px solid #cbd5e1 !important;
        background-color: #ffffff !important;
        padding: 0 10px !important;
        display: inline-block !important;
    }

    /* Align right items inline next to select */
    .top-toolbar .toolbar-right {
        flex-direction: row !important;
        justify-content: center !important;
        align-items: center !important;
        gap: 8px !important;
        flex-wrap: nowrap !important;
    }

    .top-toolbar .toggle_view_icons {
        width: 38px !important;
        height: 38px !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        border-radius: 8px !important;
        margin: 0 !important;
    }
}

/* iPad Responsive Layout Fixes (768px to 1024px) */
@media (min-width: 768px) and (max-width: 1024px) {
    .top-toolbar {
        display: grid !important;
        grid-template-columns: auto 1fr !important;
        grid-template-areas:
            "left right"
            "center center" !important;
        gap: 12px 10px !important;
        width: 100% !important;
        padding: 12px 16px !important;
    }

    .top-toolbar .toolbar-left {
        grid-area: left !important;
        justify-content: flex-start !important;
        display: flex !important;
        align-items: center !important;
        gap: 12px !important;
    }

    .top-toolbar .toolbar-right {
        grid-area: right !important;
        justify-content: flex-end !important;
        display: flex !important;
        align-items: center !important;
        gap: 6px !important;
        flex-wrap: nowrap !important;
    }

    .top-toolbar .toolbar-center {
        grid-area: center !important;
        justify-content: center !important;
        width: 100% !important;
        display: flex !important;
        margin-top: 4px !important;
    }

    /* Hide Sort By label and custom 3 options on iPad to ensure layout fits on iPad Mini/Pro */
    .top-toolbar .sort-label,
    .custom-sort-wrapper {
        display: none !important;
    }

    /* Ensure premium-select width is clean and compact on iPad */
    #sort_by_select,
    .top-toolbar #sort_by_select {

        width: 160px !important;
        display: inline-block !important;
        height: 38px !important;
        border-radius: 8px !important;
        padding: 0 8px !important;
    }

    .top-toolbar .toggle_view_icons {
        width: 38px !important;
        height: 38px !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        border-radius: 8px !important;
    }
}

/* ===== DESKTOP: show table, hide mobile cards ===== */
.intl-list-desktop-table {
    display: block;
    overflow-x: auto;
    overflow-y: auto !important;
    max-height: calc(100vh - 325px) !important;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

.intl-list-mobile-cards {
    display: none;
}

/* ===== MOBILE / IPAD: hide table, show mobile cards ===== */
@media (max-width: 1024px) {
    .intl-list-desktop-table {
        display: none !important;
    }

    .intl-list-mobile-cards {
        display: flex !important;
        flex-direction: column;
        gap: 12px;
        padding: 8px 4px;
    }
}

@media (min-width: 576px) and (max-width: 1024px) {
    .intl-list-mobile-cards {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 12px !important;
    }

    .intl-list-mobile-cards .intl-mobile-card {
        width: 100% !important;
    }
}

/* ===== Mobile Card Styles (Australian-diamond style) ===== */
.intl-mobile-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 14px 16px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    transition: box-shadow 0.2s ease;
}

.intl-mobile-card:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

/* Card Header */
.intl-mobile-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    padding-bottom: 8px;
    border-bottom: 1px solid #f0f0f0;
}

.intl-mobile-card-header-left {
    display: flex;
    align-items: center;
    gap: 8px;
}

.intl-mobile-card-header-left input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: #007D79;
}

.intl-mobile-card-lot {
    font-size: 14px;
    font-weight: 600;
    color: #007D79;
}

.intl-mobile-card-header-right {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.intl-mobile-card-lab {
    font-size: 12px;
    font-weight: 600;
    color: #555;
}

.intl-mobile-card-cert {
    font-size: 12px;
    font-weight: 600;
    color: #1a73e8;
    text-decoration: underline;
}

.intl-mobile-card-status {
    font-size: 11px;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 4px;
    color: #fff;
}

.intl-status-hold {
    background-color: #e74c3c;
}

.intl-status-available,
.intl-status-avail {
    background-color: #27ae60;
}

.intl-status-memo {
    background-color: #f39c12;
}

/* Shape & Carat row */
.intl-mobile-card-shape-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.intl-mobile-card-shape {
    font-size: 14px;
    font-weight: 700;
    color: #007D79;
    text-transform: uppercase;
}

.intl-mobile-card-carat {
    font-size: 14px;
    font-weight: 600;
    color: #333;
}

/* Specs Grid (CLR/CLA/FLR/FCut/POL/SYM) */
.intl-mobile-card-specs-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 0;
    margin-bottom: 10px;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    overflow: hidden;
}

.intl-spec-header {
    background: #f5f5f5;
    font-size: 11px;
    font-weight: 700;
    text-align: center;
    padding: 5px 2px;
    color: #555;
    border-bottom: 1px solid #e5e7eb;
}

.intl-spec-header:not(:last-child),
.intl-spec-value:not(:last-child) {
    border-right: 1px solid #e5e7eb;
}

.intl-spec-value {
    font-size: 12px;
    font-weight: 600;
    text-align: center;
    padding: 5px 2px;
    color: #222;
}

/* Detail rows */
.intl-mobile-card-details {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-bottom: 10px;
}

.intl-detail-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    padding: 2px 0;
}

.intl-detail-row span {
    color: #777;
}

.intl-detail-row strong {
    color: #222;
}

.intl-detail-price strong {
    font-size: 14px;
    color: #1a73e8;
}

/* Card Footer (media buttons) */
.intl-mobile-card-footer {
    display: flex;
    gap: 10px;
    padding-top: 8px;
    border-top: 1px solid #f0f0f0;
}

.intl-media-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 5px 12px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    color: #555;
    background: #f5f5f5;
    border: 1px solid #e0e0e0;
    text-decoration: none;
    transition: all 0.2s ease;
}

.intl-media-btn:hover {
    background: #eaeaea;
    color: #333;
    text-decoration: none;
}

.intl-media-btn i {
    font-size: 13px;
}

/* iPad grid: 2 columns */
@media (min-width: 768px) and (max-width: 1024px) {
    .intl-list-mobile-cards {
        display: flex !important;
        flex-wrap: wrap;
        flex-direction: row;
        gap: 12px;
    }

    .intl-mobile-card {
        width: calc(50% - 6px);
        flex-shrink: 0;
    }
}

/* ===== Lab-Grown Theme Overrides for Mobile Cards ===== */
.interim-theme-lab-grown .intl-mobile-card-lot {
    color: #D0AA62;
}

.interim-theme-lab-grown .intl-mobile-card-header-left input[type="checkbox"] {
    accent-color: #D0AA62;
}

.interim-theme-lab-grown .intl-mobile-card-shape {
    color: #D0AA62;
}

.interim-theme-lab-grown .intl-mobile-card-cert {
    color: #D0AA62;
}

.interim-theme-lab-grown .intl-mobile-card-status.intl-status-available,
.interim-theme-lab-grown .intl-mobile-card-status.intl-status-avail {
    background-color: #D0AA62;
}

.interim-theme-lab-grown .intl-spec-header {
    background: #FAF5EB;
    color: #9A7B3C;
}

.interim-theme-lab-grown .intl-mobile-card-specs-grid {
    border-color: #E8D9B8;
}

.interim-theme-lab-grown .intl-spec-header:not(:last-child),
.interim-theme-lab-grown .intl-spec-value:not(:last-child) {
    border-right-color: #E8D9B8;
}

.interim-theme-lab-grown .intl-spec-header {
    border-bottom-color: #E8D9B8;
}

.interim-theme-lab-grown .intl-detail-price strong {
    color: #D0AA62;
}

.interim-theme-lab-grown .intl-media-btn {
    color: #D0AA62;
    border-color: #D0AA62;
}

.interim-theme-lab-grown .intl-media-btn:hover {
    background: #F4EBDA;
    color: #9A7B3C;
}

/* ===== Redesigned Card Horizontal Ribbon, Download Button & Jewellery Card Hover Effect ===== */

/* Flat horizontal ribbon status badge */
.flex_grid .grid_item .dia_card .ribbon.ribbon-top-left {
    position: absolute !important;
    top: 12px !important;
    left: 12px !important;
    width: auto !important;
    height: auto !important;
    z-index: 10 !important;
    transform: none !important;
}

.flex_grid .grid_item .dia_card .ribbon.ribbon-top-left span {
    display: inline-block !important;
    background-color: #007D79 !important;
    /* Premium teal green block background */
    color: #ffffff !important;
    font-size: 10px !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    padding: 4px 8px !important;
    border-radius: 4px !important;
    box-shadow: none !important;
    transform: none !important;
    position: static !important;
    width: auto !important;
}

.interim-theme-lab-grown .flex_grid .grid_item .dia_card .ribbon.ribbon-top-left span {
    background-color: #D0AA62 !important;
    /* Premium lab grown gold block background */
}

/* Floating download button overlay inside card images */
.flex_grid .grid_item .dia_card .grid_img {
    position: relative !important;
}

.flex_grid .grid_item .dia_card .grid_img .dia-download-btn {
    position: absolute !important;
    bottom: 8px !important;
    left: 8px !important;
    width: 30px !important;
    height: 30px !important;
    background-color: #ffffff !important;
    color: #475569 !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15) !important;
    z-index: 15 !important;
    transition: all 0.2s ease !important;
    text-decoration: none !important;
    cursor: pointer !important;
}

.flex_grid .grid_item .dia_card .grid_img .dia-download-btn i {
    font-size: 13px !important;
}

.flex_grid .grid_item .dia_card .grid_img .dia-download-btn:hover {
    background-color: #007D79 !important;
    color: #ffffff !important;
    transform: scale(1.1) !important;
}

.interim-theme-lab-grown .flex_grid .grid_item .dia_card .grid_img .dia-download-btn:hover {
    background-color: #D0AA62 !important;
}

/* Premium jewellery-like card hover elevation */
.flex_grid .grid_item .dia_card {
    transition: box-shadow 0.3s ease, transform 0.3s ease !important;
    padding: 10px !important;
    /* Reduced card padding */
}

.flex_grid .grid_item .dia_card:hover {
    box-shadow: 0 12px 30px rgba(164, 126, 67, 0.15) !important;
    transform: translateY(-5px) !important;
}

/* Make card more compact and premium looking */
.flex_grid .grid_item .dia_card .grid_img {
    height: 180px !important;
    margin-bottom: 8px !important;
    background-color: #f8fafc !important;
    /* Soft, clean, premium background */
    border: 1px solid #e2e8f0 !important;
    border-radius: 12px !important;
    overflow: hidden !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    position: relative !important;
    padding: 8px !important;
    transition: all 0.3s ease !important;
}

.flex_grid .grid_item .dia_card:hover .grid_img {
    background-color: #f1f5f9 !important;
    border-color: #cbd5e1 !important;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.02) !important;
}

/* Image style inside the container */
.flex_grid .grid_item .dia_card .grid_img img {
    height: 100% !important;
    width: auto !important;
    max-width: 100% !important;
    object-fit: contain !important;
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1) !important;
    border-radius: 8px !important;
}

.flex_grid .grid_item .dia_card:hover .grid_img img {
    transform: scale(1.04) !important;
}

/* Carousel style */
.flex_grid .grid_item .dia_card .grid_img .media_carousel {
    width: 100% !important;
    height: 100% !important;
    position: relative !important;
}

.flex_grid .grid_item .dia_card .grid_img .media_track {
    width: 100% !important;
    height: 100% !important;
    display: flex !important;
    overflow-x: auto !important;
    scroll-snap-type: x mandatory !important;
    scrollbar-width: none !important;
}

.flex_grid .grid_item .dia_card .grid_img .media_slide {
    flex: 0 0 100% !important;
    width: 100% !important;
    height: 100% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    scroll-snap-align: center !important;
    padding: 0 !important;
}

/* Video inside slide and single video */
.flex_grid .grid_item .dia_card .grid_img .media_single_video {
    width: 100% !important;
    height: 100% !important;
    border: none !important;
    border-radius: 8px !important;
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
}

.flex_grid .grid_item .dia_card .grid_img .media_video_slide iframe,
.flex_grid .grid_item .dia_card .grid_img .media_single_video iframe {
    height: 100% !important;
    width: 180px !important;
    max-width: 100% !important;
    border: none !important;
    border-radius: 8px !important;
    position: absolute !important;
    top: 0 !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
}

.flex_grid .grid_item .dia_card .grid_img .media_single_video {
    position: relative !important;
}

/* Video poster */
.flex_grid .grid_item .dia_card .grid_img .media_video_poster {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: rgba(0, 0, 0, 0.03) !important;
    cursor: pointer !important;
    z-index: 2 !important;
    border-radius: 8px !important;
}

.flex_grid .grid_item .dia_card .grid_img .media_video_poster img {
    width: 40px !important;
    height: 40px !important;
    max-width: 40px !important;
    transition: transform 0.3s ease !important;
}

.flex_grid .grid_item .dia_card .grid_img .media_video_poster:hover img {
    transform: scale(1.1) !important;
}

/* Nav controls */
.flex_grid .grid_item .dia_card .grid_img .media_nav {
    position: absolute !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    width: 24px !important;
    height: 24px !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    z-index: 10 !important;
    font-size: 14px !important;
    opacity: 0 !important;
    visibility: hidden !important;
    transition: all 0.2s ease !important;
    border: 1px solid #007D79 !important;
    background: #ffffff !important;
    color: #007D79 !important;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1) !important;
}

.interim-theme-lab-grown .flex_grid .grid_item .dia_card .grid_img .media_nav {
    border-color: #D0AA62 !important;
    color: #D0AA62 !important;
}

.flex_grid .grid_item .dia_card:hover .grid_img .media_nav {
    opacity: 0.9 !important;
    visibility: visible !important;
}

.flex_grid .grid_item .dia_card .grid_img .media_dots {
    position: absolute !important;
    bottom: 6px !important;
    left: 0 !important;
    right: 0 !important;
    display: flex !important;
    justify-content: center !important;
    gap: 6px !important;
    z-index: 10 !important;
}

.flex_grid .grid_item .dia_card .grid_img .media_dot {
    width: 6px !important;
    height: 6px !important;
    border-radius: 50% !important;
    background: rgba(0, 0, 0, 0.2) !important;
    border: none !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
}

.flex_grid .grid_item .dia_card .grid_img .media_dot.active {
    background: #007D79 !important;
    width: 12px !important;
    border-radius: 3px !important;
}

.interim-theme-lab-grown .flex_grid .grid_item .dia_card .grid_img .media_dot.active {
    background: #D0AA62 !important;
}

/* ── 360°/Video popup styling ── */
#dia_video_dlg .modal-content {
    border-radius: 12px !important;
    overflow: hidden !important;
    border: none !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15) !important;
}

#dia_video_dlg .modal-header {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 10px !important;
    padding: 16px 20px !important;
    border-bottom: 1px solid #efefef !important;
}

#dia_video_dlg .modal-title {
    order: 1 !important;
    font-size: 16px !important;
    font-weight: 700 !important;
    line-height: 1.4 !important;
    margin: 0 !important;
}

#dia_video_dlg .modal-header .btn-link {
    order: 2 !important;
    flex-shrink: 0 !important;
    padding: 4px !important;
    margin: 0 !important;
    font-size: 18px !important;
    color: #64748b !important;
}

#dia_video_dlg .modal-header .btn-link:hover {
    color: #000000 !important;
    text-decoration: none !important;
}

#dia_video_dlg .modal-body {
    padding: 0 !important;
    background: #f8fafc !important;
}

#dia_video_frame {
    width: 550px !important;
    max-width: 100% !important;
    height: 550px !important;
    max-height: 70vh !important;
    margin: 0 auto !important;
    border: none !important;
}

#dia_video_dlg .modal-footer {
    padding: 16px 20px !important;
    border-top: 1px solid #efefef !important;
}

#dia_video_dlg .modal-footer .btn-default {
    border-radius: 20px !important;
    padding: 8px 24px !important;
    border: 1px solid #cbd5e1 !important;
    font-weight: 500 !important;
    letter-spacing: 0.5px !important;
    transition: all 0.2s ease !important;
    background-color: #ffffff !important;
    color: #475569 !important;
}

#dia_video_dlg .modal-footer .btn-default:hover {
    border-color: #007D79 !important;
    color: #007D79 !important;
    background-color: #f8fafc !important;
}

.interim-theme-lab-grown #dia_video_dlg .modal-footer .btn-default:hover {
    border-color: #D0AA62 !important;
    color: #D0AA62 !important;
}

#dia_video_dlg .modal-footer .btn-primary {
    background-color: #007D79 !important;
    border-color: #007D79 !important;
    color: #ffffff !important;
    border-radius: 20px !important;
    padding: 8px 24px !important;
    font-weight: 500 !important;
    letter-spacing: 0.5px !important;
    transition: all 0.2s ease !important;
    box-shadow: 0 2px 6px rgba(0, 125, 121, 0.2) !important;
}

#dia_video_dlg .modal-footer .btn-primary:hover {
    background-color: #005f5c !important;
    border-color: #005f5c !important;
    box-shadow: 0 4px 12px rgba(0, 125, 121, 0.3) !important;
}

.interim-theme-lab-grown #dia_video_dlg .modal-footer .btn-primary {
    background-color: #D0AA62 !important;
    border-color: #D0AA62 !important;
    box-shadow: 0 2px 6px rgba(208, 170, 98, 0.2) !important;
}

.interim-theme-lab-grown #dia_video_dlg .modal-footer .btn-primary:hover {
    background-color: #b08d4b !important;
    border-color: #b08d4b !important;
    box-shadow: 0 4px 12px rgba(208, 170, 98, 0.3) !important;
}

@media (max-width: 768px) {
    #dia_video_dlg .modal-dialog {
        margin: 12px !important;
    }

    #dia_video_dlg .modal-title {
        font-size: 14px !important;
    }

    #dia_video_frame {
        height: 60vh !important;
        max-height: 420px !important;
    }

    #dia_video_dlg .modal-footer {
        display: flex !important;
        flex-direction: column !important;
        gap: 8px !important;
    }

    #dia_video_dlg .modal-footer .btn-default,
    #dia_video_dlg .modal-footer .btn-primary {
        width: 100% !important;
        margin: 0 !important;
    }
}

.flex_grid .grid_item .dia_card .grid_flex {
    height: 30px !important;
    /* Reduced height from 38px */
    margin-top: 4px !important;
    margin-bottom: 4px !important;
}

.flex_grid .grid_item .dia_card h4,
.flex_grid .grid_item .dia_card h5 {
    font-size: 14px !important;
    /* Slightly smaller typography */
    margin-bottom: 2px !important;
}

.flex_grid .grid_item .dia_card .theme_color {
    font-size: 15px !important;
    /* Slightly smaller price font */
    margin-bottom: 4px !important;
}

.flex_grid .grid_item .dia_card .card-specs {
    margin-top: 4px !important;
    padding-top: 4px !important;
}

.flex_grid .grid_item .dia_card .spec-row {
    padding: 2.5px 0 !important;
    /* Reduced row padding from 4px */
}

.flex_grid .grid_item .dia_card .card-extra-specs {
    margin-top: 4px !important;
    padding-top: 4px !important;
    padding-bottom: 4px !important;
}

.flex_grid .grid_item {
    margin-bottom: 15px !important;
    /* Reduced card gap */
}

/* Laptop/Desktop overrides for Colour Grid and Advanced Filters */
@media (min-width: 992px) {

    #intl_search {
        margin: 15px auto 25px auto !important;
    }

    #intl_tagline {
        margin: 5px 0 15px 0 !important;
    }

    .search-filter-card {
        padding: 20px 25px !important;
        margin-bottom: 20px !important;
    }

    .filter-section {
        padding-bottom: 12px !important;
        margin-bottom: 12px !important;
    }

    .section-title {
        margin-bottom: 10px !important;
    }

    #intl_search .search_shapes {
        gap: 8px !important;
    }

    #intl_search .search_shapes .shape_card {
        padding: 10px 6px !important;
    }

    #intl_search .search_shapes .shape_card img {
        height: 30px !important;
        margin-bottom: 6px !important;
    }

    .cert-carat-section .filter-row {
        gap: 20px !important;
    }

    #intl_search .search_pill:not(.types) {
        padding: 5px 12px !important;
        font-size: 11px !important;
    }

    .search-top-nav-bar {
        padding-bottom: 10px !important;
        margin-bottom: 10px !important;
    }

    .clr-letter-grid {
        grid-template-columns: repeat(23, 1fr) !important;
    }

    .advanced-filters-toggle-row {
        display: none !important;
    }

    .advanced-filters-container {
        display: block !important;
        padding: 20px !important;
        margin-top: 10px !important;
        margin-bottom: 15px !important;
    }

    .advanced-left-col,
    .advanced-right-col {
        gap: 15px !important;
    }

    .adv-row {
        gap: 15px !important;
    }

    .row-two-cols,
    .row-three-cols {
        grid-template-columns: 1fr !important;
    }

    .adv-col {
        display: flex !important;
        flex-direction: row !important;
        align-items: center !important;
        gap: 15px !important;
    }

    .adv-section-title {
        width: 140px !important;
        margin-bottom: 0 !important;
        flex-shrink: 0 !important;
        display: flex !important;
        align-items: center !important;
        gap: 6px !important;
    }

    .adv-col .flex_pills,
    .adv-col .range-inputs-pair {
        flex: 1 !important;
    }

    .advanced-filters-grid-wrapper {
        gap: 30px !important;
    }

    /* Hide sort-label on desktop/laptop */
    .top-toolbar .sort-label {
        display: none !important;
    }

    /* Custom Sort Dropdown Styles */
    .custom-sort-wrapper {
        display: inline-flex;
        align-items: center;
        gap: 10px;
        margin-right: 15px;
    }

    .custom-sort-label {
        font-size: 13px;
        font-weight: 600;
        color: #475569;
    }

    .custom-sort-container {
        display: inline-flex;
        gap: 8px;
    }

    .custom-sort-btn-group {
        position: relative;
        display: inline-block;
    }

    .custom-sort-trigger {
        background-color: #ffffff;
        border: 1px solid #cbd5e1;
        border-radius: 20px;
        color: #475569;
        font-size: 13px;
        font-weight: 500;
        padding: 6px 16px;
        cursor: pointer;
        display: inline-flex;
        align-items: center;
        gap: 6px;
        transition: all 0.2s ease;
        box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
    }

    .custom-sort-trigger:hover {
        border-color: #007D79;
        color: #007D79;
    }

    .custom-sort-btn-group.active .custom-sort-trigger {
        background-color: #f0fdfd;
        border-color: #007D79;
        color: #007D79;
        font-weight: 600;
    }

    .custom-sort-btn-group.active .custom-sort-trigger .active-dir {
        font-weight: 700;
        color: #007D79;
    }

    .custom-sort-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        z-index: 1000;
        min-width: 140px;
        background-color: #ffffff;
        border: 1px solid #e2e8f0;
        border-radius: 12px;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
        margin-top: 0;
        overflow: hidden;
    }

    .custom-sort-menu a {
        display: block !important;
        padding: 8px 16px !important;
        font-size: 12px !important;
        color: #475569 !important;
        text-decoration: none !important;
        transition: background-color 0.15s ease;
        text-align: left !important;
    }

    .custom-sort-menu a:hover {
        background-color: #f1f5f9 !important;
        color: #1e293b !important;
    }

    .custom-sort-menu a.active {
        background-color: #f0fdfd !important;
        color: #007D79 !important;
        font-weight: 600 !important;
    }

    .custom-sort-btn-group:hover .custom-sort-menu {
        display: block;
    }
}

/* Respect inline display:none on elements where display is forced to flex/block with !important in media queries */
#diamond_actions[style*="display: none"],
#diamond_actions[style*="display:none"],
.diamond-actions-container[style*="display: none"],
.diamond-actions-container[style*="display:none"] {
    display: none !important;
}

/* Custom filters mobile wrap & button styling overrides */
.flex_pills {
    display: flex;
    flex-wrap: wrap !important;
}

#intl_search .search_pill {
    flex: initial !important;
    min-width: auto !important;
}

/* Ensure the Reset and Save/Search buttons look exactly like Search button */
.btn-reset-filters,
.btn-save-search {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    font-size: 15px !important;
    font-weight: 600 !important;
    color: #334155 !important;
    background: #ffffff !important;
    border: 1px solid #cbd5e1 !important;
    padding: 12px 35px !important;
    border-radius: 6px !important;
    text-decoration: none !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
}

/* Minimize extra space below the buttons container */
#search_bar {
    margin-top: 15px !important;
    margin-bottom: 0 !important;
}

.search_btns {
    margin-bottom: 0 !important;
}

.portlet.light.bg-auto,
.page-content,
.page-content-wrapper {
    padding-bottom: 10px !important;
    min-height: auto !important;
}

#interim-theme,
#intl_search,
#interim_app {
    padding-bottom: 0 !important;
    margin-bottom: 0 !important;
    min-height: auto !important;
}

@media (max-width: 991px) {
    .advanced-filters-container {
        padding: 12px !important;
    }
}

@media (max-width: 767px) {

    /* Reduce outer card wrapper and panel paddings to gain horizontal space */
    .search-filter-card {
        padding: 12px !important;
    }

    .advanced-filters-container {
        padding: 10px !important;
    }

    .advanced-filters-grid-wrapper {
        gap: 15px !important;
    }

    .adv-row {
        gap: 15px !important;
    }

    /* Shortcuts 2 columns layout */
    .shortcuts-col .flex_pills {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 8px !important;
        width: 100% !important;
    }

    .shortcuts-col .flex_pills .search_pill {
        display: inline-flex !important;
        justify-content: center !important;
        align-items: center !important;
        width: 100% !important;
        min-width: 0 !important;
        padding: 6px 4px !important;
        margin: 0 !important;
        font-size: 11px !important;
        box-sizing: border-box !important;
        white-space: nowrap !important;
        text-overflow: ellipsis !important;
        overflow: hidden !important;
    }
}

.flex_grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
}

/* Tablet */
@media (max-width: 992px) {
    .flex_grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Mobile */
@media (max-width: 768px) {
    .flex_grid {
        grid-template-columns: repeat(1, 1fr);
    }
}

.range_field {
    width: 100%;
}

.form-group.d-flex {
    display: flex;
    gap: 10px;
}

.form-group.d-flex .range_field {
    flex: 1;
}

.diamond-header {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 15px;
}

@media (max-width:768px) {

    .diamond-header {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .diamond-header h3 {
        margin: 0 0 10px;
        font-size: 28px;
    }

    .diamond-header .text-right {
        text-align: center !important;
    }

    .diamond-header .intl_btn {
        width: 100%;
        max-width: 260px;
    }

    @media(max-width:768px) {

        #list_bar {
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 10px;
        }

        #list_bar>div {
            width: 100%;
            text-align: center;
        }

        .flex_icons,
        .flex-toggle-views {
            justify-content: center;
        }

    }

    @media(max-width:768px) {

        #action_bar {
            display: flex;
            flex-direction: column;
            gap: 10px;
        }

        #diamond_actions {
            width: 100%;
            text-align: center;
        }

        #diamond_actions .intl_btn {
            display: block;
            width: 100%;
            margin: 5px 0;
        }
    }
}

/* ── Bar filter pills ─────────────────────────────── */
.bar-filter-row {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.bar-media-pill {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    border: 1px solid #66666660;
    border-radius: 20px;
    padding: 5px 12px;
    cursor: pointer;
    font-size: 13px;
    color: #161616;
    letter-spacing: 0.5px;
    font-weight: 500;
    transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease;
    user-select: none;
    margin: 0;
}

.bar-media-pill input[type="checkbox"] {
    display: none;
}

.bar-media-pill:not(.bar-media-pill--on):hover {
    border-color: #007D79;
    background-color: rgba(0, 125, 121, 0.06);
}

.bar-media-pill--on {
    background-color: #007D79;
    border-color: #007D79;
    color: #fff;
}

.bar-media-pill--on svg {
    stroke: #fff;
}

.bar-divider {
    display: inline-block;
    width: 1px;
    height: 20px;
    background: #66666660;
    margin: 0 2px;
    flex-shrink: 0;
}

.bar-sort-wrap {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border: 1px solid #66666660;
    border-radius: 20px;
    padding: 5px 12px;
    color: #161616;
    font-size: 13px;
    letter-spacing: 0.5px;
    transition: border-color 0.2s ease, color 0.2s ease;
    cursor: pointer;
}

.bar-sort-wrap:not(.bar-sort-wrap--on):hover {
    border-color: #007D79;
    background-color: rgba(0, 125, 121, 0.06);
}

.bar-sort-wrap--on {
    border-color: #007D79;
    color: #007D79;
}

.bar-sort-wrap--on svg {
    stroke: #007D79;
}

.bar-sort-select {
    border: none;
    outline: none;
    background: transparent;
    font-size: 13px;
    color: inherit;
    cursor: pointer;
    padding: 0;
    letter-spacing: 0.5px;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

@media (max-width: 768px) {
    .bar-filter-row {
        justify-content: center;
    }
}

/* ==========================================================================
   Mobile-Only Shape Slider & Preset Collapsing Enhancements
   ========================================================================== */

/* MOBILE ONLY STYLES (max-width: 1024px) */
@media (max-width: 1024px) {
    .shape-section .section-title {
        display: flex;
        align-items: center;
        justify-content: space-between;
        width: 100%;
    }

    .view-all-shapes-btn {
        font-size: 12px;
        font-weight: 500;
        color: #8C7355;
        text-decoration: underline;
        cursor: pointer;
        margin-left: auto;
        margin-right: 10px;
        text-transform: none;
    }

    .view-all-shapes-btn:hover,
    .view-all-shapes-btn:focus {
        color: #5b4a36;
        text-decoration: underline;
    }

    .search_shapes_slider_wrapper {
        position: relative;
        width: 100%;
    }

    .search_shapes_slides {
        display: flex;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        scroll-behavior: smooth;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }

    .search_shapes_slides::-webkit-scrollbar {
        display: none;
    }

    .shape_slide_page {
        min-width: 100%;
        flex: 0 0 100%;
        scroll-snap-align: start;
        box-sizing: border-box;
    }

    .search_shapes_grid {
        display: grid !important;
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 8px !important;
    }

    .shapes_slider_dots {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 5px;
        margin-top: 12px;
        margin-bottom: 4px;
    }

    .shape_dot {
        width: 6px;
        height: 6px;
        background-color: #d1d1d1;
        border-radius: 50%;
        cursor: pointer;
        transition: all 0.3s ease;
    }

    .shape_dot.active {
        width: 18px;
        height: 6px;
        border-radius: 3px;
        background-color: #8C7355;
    }

    /* Mobile View All Mode for Shapes */
    .search_shapes_slider_wrapper.view-all-mode .search_shapes_slides {
        display: flex;
        flex-wrap: wrap;
        overflow-x: visible;
    }

    .search_shapes_slider_wrapper.view-all-mode .shape_slide_page {
        min-width: 100%;
        flex: none;
    }

    .search_shapes_slider_wrapper.view-all-mode .shapes_slider_dots {
        display: none !important;
    }

    /* Sub-collapsible titles for Carat / Price presets on Mobile */
    #intl_search h5.sub-section-title.sub-collapsible-header {
        cursor: pointer;
        user-select: none;
    }

    #intl_search h5.sub-section-title.sub-collapsible-header:hover {
        color: #007D79;
    }

    .toggle-sub-icon {
        display: inline-block;
        font-size: 11px;
        color: #64748b;
        margin-left: 8px;
    }
}

/* DESKTOP STYLES (min-width: 1025px) */
@media (min-width: 1025px) {
    .view-all-shapes-btn {
        display: none !important;
    }

    .shapes_slider_dots {
        display: none !important;
    }

    .search_shapes_slider_wrapper {
        width: 100%;
    }

    .search_shapes_slides {
        display: grid !important;
        grid-template-columns: repeat(auto-fill, minmax(100px, 1fr)) !important;
        gap: 10px !important;
        overflow: visible !important;
    }

    .shape_slide_page {
        display: contents !important;
    }

    .search_shapes_grid {
        display: contents !important;
    }

    /* Keep Carat & Price Presets always open/visible on Desktop */
    .carat-presets-grid,
    .price-presets-grid {
        display: flex !important;
    }

    .toggle-sub-icon {
        display: none !important;
    }

    #intl_search h5.sub-section-title.sub-collapsible-header {
        cursor: default !important;
        pointer-events: none !important;
    }
}

/* ==========================================================================
   Sticky Bottom Search Actions Bar (All Screens)
   ========================================================================== */
.search-filter-card {
    position: relative !important;
    padding-bottom: 0 !important;
}

#search_bar {
    position: sticky !important;
    position: -webkit-sticky !important;
    bottom: 0 !important;
    z-index: 1000 !important;
    background: #ffffff !important;
    padding: 10px 20px !important;
    border-top: 1px solid #e2e8f0 !important;
    box-shadow: 0 -4px 15px rgba(0, 0, 0, 0.08) !important;
    margin-top: 15px !important;
    margin-bottom: 0 !important;
    margin-left: -20px !important;
    margin-right: -20px !important;
    border-bottom-left-radius: 12px !important;
    border-bottom-right-radius: 12px !important;
}

.search_btns {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 10px !important;
    flex-wrap: wrap !important;
    margin-bottom: 0 !important;
    width: 100% !important;
}

@media (max-width: 1024px) {
    .search-filter-card {
        padding-bottom: 0 !important;
    }

    #search_bar {
        padding: 6px 8px !important;
        margin-left: -12px !important;
        margin-right: -12px !important;
        margin-bottom: 0 !important;
        border-bottom-left-radius: 12px !important;
        border-bottom-right-radius: 12px !important;
    }

    .search_btns {
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        gap: 5px !important;
        width: 100% !important;
    }

    .search_btns .intl_btn,
    .search_btns .btn-reset-filters,
    .search_btns .btn-save-search {
        flex: 1 1 0% !important;
        min-width: 0 !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        padding: 6px 4px !important;
        height: 36px !important;
        font-size: 11px !important;
        font-weight: 600 !important;
        gap: 4px !important;
        white-space: nowrap !important;
        border-radius: 6px !important;
        box-sizing: border-box !important;
    }

    .search_btns .intl_btn {
        flex: 1.2 1 0% !important;
    }

    .search_btns .intl_btn i,
    .search_btns .btn-reset-filters i,
    .search_btns .btn-save-search i {
        font-size: 11px !important;
    }
}

/* Prevent any scrollable space or empty margins below the 3 buttons box when search filters are active */
#intl_search[style*="display: block"],
#intl_search:not([style*="display: none"]) {
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
}

#intl_search[style*="display: block"]~#interim_app,
#intl_search:not([style*="display: none"])~#interim_app,
#intl_search[style*="display: block"]~#interim_app #sticky_bar,
#intl_search:not([style*="display: none"])~#interim_app #sticky_bar {
    margin: 0 !important;
    padding: 0 !important;
    min-height: 0 !important;
}

.page-container,
.page-content-wrapper,
.page-content,
.portlet.light.bg-auto {
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
    min-height: 0 !important;
}

/* Sticky table header for desktop screen listing view */
@media (min-width: 1025px) {
    #table_view thead th {
        position: sticky !important;
        top: 0 !important;
        z-index: 10 !important;
        background-color: rgb(249 250 251) !important;
        box-shadow: inset 0 -1px 0 #66666630;
    }

    #table_view thead th:first-child {
        position: sticky !important;
        left: 0 !important;
        top: 0 !important;
        z-index: 11 !important;
        background-color: rgb(249 250 251) !important;
    }

    html.table-view-active,
    body.table-view-active {
        overflow: hidden !important;
        height: 100% !important;
    }

    .page-head {
        display: none !important;
    }

    .page-content {
        padding-top: 0 !important;
    }

    .page-container {
        padding-top: 0 !important;
    }

    #interim-theme #interim_app {
        padding-top: 0 !important;
    }

    #interim-theme #sticky_bar .margin-top-10 {
        margin-top: 0 !important;
    }
}

/* =====================================================================
   Share Diamonds Modal (#dlg_share) Natural & Labgrown Theme Styling
   ===================================================================== */
#dlg_share.modal .modal-content,
#dlg_share .modal-content {
    background-color: #ffffff !important;
    color: #0f172a !important;
    border-radius: 16px !important;
    border: none !important;
    overflow: hidden !important;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25) !important;
}

#dlg_share .modal-header {
    background: #007D79 !important;
    border-bottom: none !important;
    padding: 16px 24px !important;
    position: relative !important;
}

#dlg_share .modal-header .modal-title,
#dlg_share.modal .modal-title {
    color: #ffffff !important;
    font-size: 18px !important;
    font-weight: 700 !important;
    letter-spacing: 1px !important;
    text-transform: uppercase !important;
    margin: 0 !important;
}

#dlg_share .modal-header button.close,
#dlg_share .modal-header .btn-close,
#dlg_share .modal-header .close {
    color: #ffffff !important;
    opacity: 0.85 !important;
    font-size: 24px !important;
    text-shadow: none !important;
}

#dlg_share .modal-header button.close:hover,
#dlg_share .modal-header .btn-close:hover {
    opacity: 1 !important;
}

#dlg_share .modal-body {
    background-color: #ffffff !important;
    color: #0f172a !important;
    padding: 24px 28px !important;
}

/* Share Link View Fixes (#share_link_div / #share_links / .link_item) */
#dlg_share #share_link_div {
    border: none !important;
    background: transparent !important;
    padding: 0 !important;
    margin-bottom: 16px !important;
    box-shadow: none !important;
}

#dlg_share #share_links {
    border: none !important;
    background: transparent !important;
    padding: 0 !important;
    margin: 0 !important;
    box-shadow: none !important;
}

#dlg_share ul.share_links {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 0 10px 0 !important;
    border: none !important;
    background: transparent !important;
    box-shadow: none !important;
}

#dlg_share li.link_item {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    gap: 12px !important;
    background: #f8fafc !important;
    border: 1.5px solid #007D79 !important;
    border-radius: 10px !important;
    padding: 10px 14px !important;
    margin-bottom: 8px !important;
    box-shadow: none !important;
}

#dlg_share p.main_link,
#dlg_share .main_link,
#dlg_share #share_links p,
#dlg_share #share_links span.main_link {
    color: #007D79 !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    margin: 0 !important;
    padding: 0 !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
}

#dlg_share .copy_btn,
#dlg_share button.copy_btn,
#dlg_share span.copy_btn {
    background-color: #007D79 !important;
    color: #ffffff !important;
    border: none !important;
    border-radius: 6px !important;
    font-size: 12px !important;
    font-weight: 700 !important;
    padding: 6px 16px !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
    display: inline-block !important;
    flex-shrink: 0 !important;
    text-align: center !important;
}

#dlg_share .copy_btn:hover {
    background-color: #005c59 !important;
    color: #ffffff !important;
}

#dlg_share .copy_section {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    background-color: #007D79 !important;
    color: #ffffff !important;
    border: none !important;
    border-radius: 8px !important;
    padding: 10px !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    cursor: pointer !important;
    width: 100% !important;
    margin-top: 8px !important;
    box-shadow: none !important;
}

#dlg_share .copy_section span,
#dlg_share .copy_section span:not(.common_copy) {
    color: #ffffff !important;
    font-weight: 700 !important;
    font-size: 13px !important;
}

#dlg_share .copy_span_indi,
#dlg_share .common_copy {
    color: #22c55e !important;
    font-weight: 700 !important;
    font-size: 12px !important;
    margin-left: 6px !important;
}

/* Labels & Headings */
#dlg_share label,
#dlg_share .modal-body label {
    font-size: 11px !important;
    font-weight: 700 !important;
    letter-spacing: 1px !important;
    text-transform: uppercase !important;
    color: #475569 !important;
    margin-bottom: 8px !important;
    display: block !important;
}

#dlg_share h3,
#dlg_share .modal-body h3 {
    font-size: 14px !important;
    font-weight: 700 !important;
    letter-spacing: 1px !important;
    text-transform: uppercase !important;
    color: #0f172a !important;
    margin-top: 18px !important;
    margin-bottom: 12px !important;
    text-align: center !important;
}

#dlg_share .form-control,
#dlg_share input[type="text"],
#dlg_share textarea {
    border: 1.5px solid #cbd5e1 !important;
    border-radius: 10px !important;
    padding: 8px 14px !important;
    font-size: 13px !important;
    background: #ffffff !important;
    color: #0f172a !important;
}

#dlg_share .form-control:focus,
#dlg_share input[type="text"]:focus,
#dlg_share textarea:focus {
    border-color: #007D79 !important;
    background: #ffffff !important;
    outline: none !important;
}

/* Feature & Action Pills */
#dlg_share .share_pill {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 7px !important;
    min-width: 80px !important;
    padding: 14px 12px 12px !important;
    border-radius: 14px !important;
    border: 1.5px solid #cbd5e1 !important;
    background: #ffffff !important;
    cursor: pointer !important;
    transition: all 0.22s cubic-bezier(0.4, 0, 0.2, 1) !important;
    text-align: center !important;
    user-select: none !important;
    color: #0f172a !important;
}

#dlg_share .share_pill svg {
    width: 28px !important;
    height: 28px !important;
    flex-shrink: 0 !important;
    transition: transform 0.2s ease, color 0.2s ease !important;
    color: #0f172a !important;
}

#dlg_share .share_pill svg[stroke] {
    stroke: #0f172a !important;
    fill: none !important;
}

#dlg_share .share_pill svg:not([stroke]),
#dlg_share [onclick*="whatsapp"] svg {
    fill: #0f172a !important;
    stroke: none !important;
}

#dlg_share .share_pill svg path {
    stroke: inherit;
}

#dlg_share .share_pill .uppercase,
#dlg_share .modal-body .share_pill .uppercase,
#dlg_share .modal-content .share_pill .uppercase {
    font-size: 10px !important;
    font-weight: 800 !important;
    letter-spacing: 1px !important;
    text-transform: uppercase !important;
    color: #0f172a !important;
    line-height: 1 !important;
    margin-top: 4px !important;
    display: block !important;
}

/* Hover State */
#dlg_share .share_pill:hover {
    border-color: #007D79 !important;
    background: rgba(0, 125, 121, 0.12) !important;
    transform: translateY(-2px) !important;
}

#dlg_share .share_pill:hover svg {
    transform: scale(1.12) !important;
    color: #007D79 !important;
}

#dlg_share .share_pill:hover svg[stroke] {
    stroke: #007D79 !important;
}

#dlg_share .share_pill:hover svg:not([stroke]) {
    fill: #007D79 !important;
}

#dlg_share .share_pill:hover .uppercase,
#dlg_share .modal-body .share_pill:hover .uppercase {
    color: #007D79 !important;
}

/* Active / Border-2 State */
#dlg_share .share_pill.active,
#dlg_share .share_pill.border-2 {
    border-color: #007D79 !important;
    background: rgba(0, 125, 121, 0.15) !important;
    border-width: 2px !important;
}

#dlg_share .share_pill.active .uppercase,
#dlg_share .share_pill.border-2 .uppercase,
#dlg_share .modal-body .share_pill.active .uppercase,
#dlg_share .modal-body .share_pill.border-2 .uppercase {
    color: #007D79 !important;
    font-weight: 800 !important;
}

#dlg_share .share_pill.active svg[stroke],
#dlg_share .share_pill.border-2 svg[stroke] {
    stroke: #007D79 !important;
}

#dlg_share .share_pill.active svg:not([stroke]),
#dlg_share .share_pill.border-2 svg:not([stroke]) {
    fill: #007D79 !important;
}

/* WhatsApp Icon */
#dlg_share [onclick*="whatsapp"]:hover svg,
#dlg_share [onclick*="whatsapp"].active svg {
    fill: #25D366 !important;
    stroke: none !important;
}

#dlg_share .price_fields,
#dlg_share .price_fields label,
#dlg_share .price_fields table,
#dlg_share .price_fields tr,
#dlg_share .price_fields td,
#dlg_share .price_fields th,
#dlg_share .modal-body .price_fields td,
#dlg_share .modal-body .price_fields th,
#dlg_share .modal-body .price_fields tr,
#dlg_share .modal-content .price_fields td,
#dlg_share .modal-content .price_fields th,
#dlg_share .modal-content .price_fields tr {
    color: #0f172a !important;
    background-color: #ffffff !important;
}

#dlg_share .price_fields table thead tr,
#dlg_share .price_fields table thead td,
#dlg_share .modal-body .price_fields table thead td,
#dlg_share .modal-body .price_fields table thead tr {
    background-color: #f1f5f9 !important;
    color: #0f172a !important;
    font-weight: 700 !important;
}

#dlg_share .price_fields input {
    color: #0f172a !important;
    background-color: #ffffff !important;
    border: 1px solid #cbd5e1 !important;
}

/* Modal Footer */
#dlg_share .modal-footer {
    background: #f8fafc !important;
    border-top: 1px solid #e2e8f0 !important;
    padding: 16px 28px !important;
}

#dlg_share .modal-footer .btn-default,
#dlg_share .modal-footer .btn-secondary,
#dlg_share .modal-footer button[data-dismiss="modal"] {
    background: transparent !important;
    border: 1.5px solid #cbd5e1 !important;
    color: #475569 !important;
    border-radius: 10px !important;
    font-weight: 600 !important;
    font-size: 13px !important;
    padding: 8px 22px !important;
}

#dlg_share .modal-footer .btn-default:hover,
#dlg_share .modal-footer .btn-secondary:hover {
    background: #e2e8f0 !important;
    border-color: #94a3b8 !important;
    color: #0f172a !important;
}

#dlg_share .modal-footer #share_btn,
#dlg_share .modal-footer .btn-primary {
    background: #007D79 !important;
    border: none !important;
    color: #ffffff !important;
    border-radius: 10px !important;
    font-weight: 700 !important;
    font-size: 13px !important;
    letter-spacing: 0.6px !important;
    padding: 8px 28px !important;
}

#dlg_share .modal-footer #share_btn:hover,
#dlg_share .modal-footer .btn-primary:hover {
    background: #005c59 !important;
    color: #ffffff !important;
}

/* Custom Responsive UI Fixes */

/* 1. Mobile Bottom Action Buttons wrapping and stack layout */
@media (max-width: 1024px) {
    .search_btns {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        flex-direction: row !important;
        flex-wrap: wrap !important;
        gap: 8px !important;
        width: 100% !important;
        margin: 0 auto !important;
    }

    .search_btns .intl_btn,
    .search_btns .btn-reset-filters,
    .search_btns .btn-save-search {
        flex: 1 1 auto !important;
        min-width: 110px !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        padding: 8px 12px !important;
        min-height: 40px !important;
        height: auto !important;
        font-size: 12px !important;
        font-weight: 600 !important;
        gap: 6px !important;
        white-space: nowrap !important;
        border-radius: 6px !important;
        box-sizing: border-box !important;
        margin: 4px 0 !important;
    }
}

@media (max-width: 500px) {
    .search_btns {
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: wrap !important;
        gap: 8px !important;
        justify-content: space-between !important;
    }

    .search_btns .intl_btn {
        width: 100% !important;
        flex: 1 1 100% !important;
    }

    .search_btns .btn-reset-filters,
    .search_btns .btn-save-search {
        width: calc(50% - 4px) !important;
        flex: 1 1 calc(50% - 4px) !important;
        white-space: nowrap !important;
        font-size: 11px !important;
        padding: 8px 6px !important;
        text-align: center !important;
    }
}

/* 2. Tablet "Diamonds - Australia" card layout on a single row */
@media (min-width: 768px) and (max-width: 1024px) {
    .search-top-nav-bar {
        flex-wrap: nowrap !important;
        justify-content: space-between !important;
        gap: 10px !important;
        padding-bottom: 15px !important;
    }

    .top-nav-left,
    .top-nav-right {
        flex: 1 !important;
    }

    .top-nav-center {
        display: flex !important;
        justify-content: center !important;
        gap: 8px !important;
    }

    .search-top-nav-bar .search_pill.types {
        font-size: 13px !important;
        padding: 8px 16px !important;
    }

    .australia-btn {
        padding: 6px 12px !important;
        font-size: 12px !important;
        max-width: 160px !important;
        display: inline-flex !important;
        align-items: center !important;
        gap: 6px !important;
    }

    .australia-btn span {
        display: inline-block !important;
        white-space: normal !important;
        line-height: 1.2 !important;
        text-align: left !important;
    }

    .enquiry-btn {
        padding: 6px 12px !important;
        font-size: 12px !important;
        gap: 6px !important;
    }
}

/* 3. Spacing Fix: Remove extra top spacing when search results are loaded */
@media (max-width: 1024px) {
    #intl_search[style*="display: none"]~#interim_app {
        padding-top: 0 !important;
        margin-top: 0 !important;
    }

    #intl_search[style*="display: none"]~#interim_app #sticky_bar {
        margin-top: 0 !important;
        padding-top: 0 !important;
    }

    #intl_search[style*="display: none"]~#interim_app #action_bar {
        margin-top: 0 !important;
        top: 50px !important;
        /* sticks directly below mobile header */
    }
}

/* 4. Sticky Bottom Search Actions static class when scrolled past filter section */
#sticky_bar {
    position: sticky;
    top: 71px;
    z-index: 99;
    padding-top: 10px;
}

#search_bar.static-bottom {
    position: sticky !important;
    box-shadow: none !important;
    border-top: 1px solid #e2e8f0 !important;
    margin-top: 25px !important;
    padding: 15px 0 !important;
}