/* === Save Icon Widget === */
.savecollection_icon i{
  transition:transform 0.15s ease;
}
.savecollection_icon_saved i:before{
  font-weight:700 !important;
}
.savecollection_item_icon .savecollection_icon{
  border-color:var(--theme-secondary-button-border-color);
  background-color:var(--theme-secondary-button-background-color);
  color:var(--theme-secondary-button-font-color);
  display:flex;
  align-items:center;
  justify-content:center;
  vertical-align:middle;
  width:32px;
  height:32px;
  border-radius:50%;
  cursor:pointer;
  transition:background-color 0.2s ease, color 0.2s ease;
  text-decoration:none;
  color:inherit;
  line-height:1;
}
.savecollection_icon_widget:hover{
  background-color:rgba(0, 0, 0, 0.05);
  text-decoration:none;
}
.savecollection_icon_widget i{
  font-size:16px;
  line-height:1;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  transition:transform 0.15s ease;
}
.savecollection_button a{
  display: flex;
  gap: 6px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--theme-color);
  border-radius: 10px;
  padding: 10px;
  color: var(--theme-color);
}
.savecollection_button a.savecollection_icon_saved{
  background-color: var(--theme-color);
  color: #fff;
}
/* === Toast Notification === */
.savecollection_toast_notification{
  border-width:1px;
  position:fixed;
  bottom:24px;
  left:50%;
  transform:translateX(-50%) translateY(20px);
  background-color:#323232;
  color:#fff;
  padding:12px 24px;
  border-radius:8px;
  font-size:14px;
  z-index:99999999;
  opacity:0;
  transition:opacity 0.3s ease, transform 0.3s ease;
  pointer-events:none;
  box-shadow:0 4px 12px rgba(0, 0, 0, 0.15);
}
.savecollection_toast_notification.visible{
  opacity:1;
  transform:translateX(-50%) translateY(0);
}

/* === Content Type Filter Pills === */
.savecollection_sort_select{
  max-width:inherit !important;
}

/* === Grid Layout === */
.savecollection_grid{
  grid-template-columns:repeat(auto-fill, minmax(200px, 1fr));
}
.savecollection_grid_wide{
  grid-template-columns:repeat(auto-fill, minmax(220px, 1fr));
}
/* === Grid Card === */
.savecollection_card_thumb{
  background:var(--theme-list-background-color-alt);
  aspect-ratio:1 / 1;
}
.savecollection_card_thumb > a{
  display:flex;
  align-items:center;
  justify-content:center;
  overflow:hidden;
  height:100%;
}
.savecollection_card_thumb img{
  width:100%;
  height:100%;
  object-fit:cover;
}
.savecollection_card_thumb_icon{
  font-size:32px;
  color:var(--theme-font-color-light);
}
.grid_listing_item .grid_listing_item_title{
  -webkit-line-clamp:2;
}
.savecollection_card_thumb .options_menu{
  position:absolute;
  right:10px;
  top:10px;
}
[dir="rtl"] .savecollection_card_thumb .options_menu{
  left:10px;
  right:auto;
}
.savecollection_card_thumb .options_menu > .btn{
  border-radius:50%;
}

/* === Collection Listing === */
.savecollection_listing_header{
  display:flex;
  gap:1rem;
  align-items:center;
  margin-bottom:1.25rem;
}
.savecollection_listing_header_search{
  flex:1;
  min-width:1px;
}
.savecollection_listing_header_search input[type=text]{
  border-radius:0.625rem;
  width:100%;
  min-width:100%;
  max-width:100%;
  padding-inline-start:40px;
}
.savecollection_listing_header_search i{
  color:var(--theme-font-color-light);
  position:absolute;
  top:50%;
  transform:translateY(-50%);
  left:15px;
}
[dir="rtl"] .savecollection_listing_header_search i{
  left:auto;
  right:15px;
}
.savecollection_create_btn{
  border-radius:0.625rem;
  display:flex;
  align-items:center;
  gap:5px;
}
@media (max-width:540px) {
  .savecollection_listing_header{
    flex-direction:column;
    gap:10px;
  }
  .savecollection_listing_header > *{
    width:100%;
  }
}

/* === Collection View === */
.savecollection_view_detail_header{
  border-bottom-width:1px;
  display:flex;
  gap:10px;
  align-items:center;
  padding-bottom:10px;
  margin-bottom:15px;
}
.savecollection_view_detail_header .btn i:before{
  margin:0;
}
.savecollection_view_detail_header h2{
  position:0;
  margin:0;
}
.savecollection_view_detail_header .savecollection_headline_count{
  font-size:14px;
  font-weight:400;
  color:var(--theme-font-color-light);
}

/* === Card Save Icon Overlay === */
.savecollection_card_icon_overlay{
  background-color:var(--theme-list-background-color);
  position:absolute;
  top:8px;
  right:8px;
  cursor:pointer;
  border-radius:50%;
  width:30px;
  height:30px;
  display:flex;
  align-items:center;
  justify-content:center;
}
[dir="rtl"] .savecollection_card_icon_overlay{
  right:auto;
  left:8px;
}
.savecollection_card_icon_overlay.savecollection_icon_saved{
  background-color:var(--theme-color);
  color:#fff;
}
.savecollection_card_icon_overlay i{
  font-size:1rem;
}

/* === Modal Overlay === */
.savecollection_modal_overlay{
  display:none;
  position:fixed;
  inset:0;
  z-index:9999;
  background:rgba(0, 0, 0, 0.5);
  align-items:center;
  justify-content:center;
}
.savecollection_modal_overlay_high{
  z-index:99990;
}
.savecollection_modal_overlay_higher{
  z-index:99995;
}

/* === Modal Container === */
.savecollection_modal{
  background:var(--theme-list-background-color);
  border-radius:12px;
  width:90%;
  max-width:400px;
}
.savecollection_modal_sm{
  max-width:380px;
}
.savecollection_modal_sheet{
  padding:0;
  max-height:80vh;
  display:flex;
  flex-direction:column;
}

/* === Modal Header === */
.savecollection_modal_header{
  border-bottom-width:1px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:15px;
}
.savecollection_modal_header h3{
  padding:0 !important;
  margin:0 !important;
  font-size:18px;
  font-weight:600;
  color:var(--theme-font-color);
}
.savecollection_modal_close{
  border-radius:50%;
  background:none;
  border:0;
  cursor:pointer;
  color:var(--theme-font-color-light);
  padding:0 4px;
  height:24px;
  width:24px;
  padding:0;
}
.savecollection_modal_close:hover{
  background-color:var(--theme-list-background-color-hover);
  color:var(--theme-font-color);
}

/* === Modal Body === */
.savecollection_modal_body{
  padding:15px;
  overflow-y:auto;
  flex:1;
}

/* === Modal Footer === */
.savecollection_modal_footer,
.savecollection_modal_actions{
  border-top-width:1px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:10px 15px;
  gap:15px;
}
.savecollection_modal_footer{
  justify-content:space-between;
  padding:15px;
}
.savecollection_modal_actions{
  justify-content:flex-end;
}

/* === Modal Form === */
.savecollection_modal_label{
  display:block;
  margin-bottom:6px;
  font-weight:500;
}
.savecollection_modal_input{
  width:100%;
  padding:10px 12px;
  border:1px solid var(--theme-border-color);
  border-radius:6px;
  font-size:14px;
  box-sizing:border-box;
  background:var(--theme-content-background-color, #fff);
  color:var(--theme-font-color);
}
.savecollection_modal_input:focus{
  outline:none;
  border-color:var(--theme-primary-color, #2196F3);
}
.savecollection_modal_error{
  display:none;
  color:var(--theme-error-color, #dc3545);
  font-size:12px;
  margin-top:5px;
}
.savecollection_modal_title{
  margin:0 0 16px;
  font-size:18px;
  font-weight:600;
  color:var(--theme-font-color);
}
.savecollection_modal_text{
  font-size:14px;
  color:var(--theme-font-color-light);
}

/* === Checkbox List (Sheet) === */
.savecollection_checkbox_list{

}
.savecollection_checkbox_list label{
  border-bottom:1px solid var(--theme-border-color);
  display:flex;
  align-items:center;
  gap:10px;
  cursor:pointer;
  padding-bottom:10px;
  margin-bottom:10px;
}
.savecollection_checkbox_list label:last-child{
  border-bottom:none;
  padding-bottom:0;
  margin-bottom:0;
}
.savecollection_checkbox_list input[type="checkbox"]{
  width:18px;
  height:18px;
  cursor:pointer;
  accent-color:var(--theme-primary-color, #2196F3);
}
.savecollection_checkbox_list span{
  font-size:14px;
  color:var(--theme-font-color);
}

/* === Sheet Empty/Loading Text === */
.savecollection_sheet_msg{
  color:var(--theme-font-color-light);
  font-size:14px;
  padding:12px 0;
  text-align:center;
}