@charset "UTF-8";
.nmgr-table-template {
  container-type: inline-size; /* needed for the @container declaration on the table element */
}

.nmgr-table-template table.nmgr-table {
  width: 100%;
  word-break: break-word;
  border-spacing: 0;
}
.nmgr-table-template table.nmgr-table,
.nmgr-table-template table.nmgr-table th,
.nmgr-table-template table.nmgr-table td {
  border: 0;
}
.nmgr-table-template table.nmgr-table,
.nmgr-table-template table.nmgr-table tr:nth-child(n),
.nmgr-table-template table.nmgr-table tr:nth-child(n) td {
  background-color: transparent;
}
.nmgr-table-template table.nmgr-table thead {
  display: none;
}
.nmgr-table-template table.nmgr-table thead tr {
  margin-bottom: 0;
  display: table-row;
  border: none;
}
.nmgr-table-template table.nmgr-table thead th {
  line-height: 1;
  padding: 12px;
  background-color: #f8f8f8;
  text-align: left;
}
.nmgr-table-template table.nmgr-table thead .nmgr-arrow {
  float: right;
  position: relative;
  margin-right: -1em;
  padding-right: 0.4375em;
}
.nmgr-table-template table.nmgr-table:not(:has(tbody tr)) thead {
  display: table-header-group;
}
.nmgr-table-template table.nmgr-table tbody th,
.nmgr-table-template table.nmgr-table td {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  vertical-align: middle;
}
.nmgr-table-template table.nmgr-table tbody th[data-title],
.nmgr-table-template table.nmgr-table td[data-title] {
  justify-content: space-between;
}
.nmgr-table-template table.nmgr-table tbody th[data-title]:before,
.nmgr-table-template table.nmgr-table td[data-title]:before {
  content: attr(data-title);
  font-weight: 600;
  text-align: left;
  flex-shrink: 0;
}
.nmgr-table-template table.nmgr-table tbody td {
  border-bottom: 1px solid rgba(0, 0, 0, 0.04);
}
.nmgr-table-template table.nmgr-table tbody td:first-child {
  border-top-left-radius: 12px;
  border-top-right-radius: 12px;
}
.nmgr-table-template table.nmgr-table tbody td:last-child {
  border-bottom-left-radius: 12px;
  border-bottom-right-radius: 12px;
}
.nmgr-table-template table.nmgr-table tr {
  display: block;
  border: 1px solid #dcdcdc;
  border-radius: 12px;
}
.nmgr-table-template table.nmgr-table tr:not(:last-child) {
  margin-bottom: 25px;
}

.nmgr-table-template .meta-item {
  font-size: 0.8125em;
}

.nmgr-table-footer .item {
  display: flex;
  background-color: #f8f8f8;
}
.nmgr-table-footer .nmgr_label {
  flex: 4;
  text-align: right;
}
.nmgr-table-footer .nmgr_content {
  flex: 1;
  font-weight: 600;
}

.nmgr-table td,
.nmgr-table-footer .nmgr-item-part {
  font-size: 0.8125em;
  padding: 4px 12px;
}

@container (min-width: 800px) {
  .nmgr-table-footer .nmgr-item-part {
    font-size: 0.95em;
    padding: 7px;
  }
  .nmgr-table-template table.nmgr-table thead {
    display: table-header-group;
  }
  .nmgr-table-template table.nmgr-table tbody th,
  .nmgr-table-template table.nmgr-table td {
    font-size: inherit;
    padding: 11px 10px;
    display: table-cell;
  }
  .nmgr-table-template table.nmgr-table tbody th[data-title]:before,
  .nmgr-table-template table.nmgr-table td[data-title]:before {
    content: "";
  }
  .nmgr-table-template table.nmgr-table tbody td:first-child, .nmgr-table-template table.nmgr-table tbody td:last-child {
    border-radius: 0;
  }
  .nmgr-table-template table.nmgr-table tbody tr {
    margin-bottom: 0;
    display: table-row;
    border: none;
  }
  .nmgr-table-template table.nmgr-table .nmgr-fit {
    width: 1%;
    white-space: nowrap;
  }
}
/*--------------------------------------------
ordering
----------------------------------------------*/
.nmgr-table thead [data-orderby] {
  position: relative;
  cursor: pointer;
}
.nmgr-table thead [data-orderby]:not([data-order=desc]):not([data-order=asc]):not(:hover):after {
  opacity: 0.5;
}
.nmgr-table thead [data-orderby]:after {
  position: absolute;
  padding-right: 1px;
  right: 0;
  content: "↕"; /* up down arrow */
}
.nmgr-table thead [data-orderby][data-order=desc]:after, .nmgr-table thead [data-orderby][data-order=asc]:hover:after {
  content: "↓"; /* down arrow */
}
.nmgr-table thead [data-orderby][data-order=asc]:after, .nmgr-table thead [data-orderby][data-order=desc]:hover:after, .nmgr-table thead [data-orderby]:not([data-order=desc]):not([data-order=asc]):hover:after {
  content: "↑"; /* up arrow (this is also the default sorting when clicked) */
}

.nmgr-navs {
  text-align: right;
  padding: 1em 0;
}
.nmgr-navs > * {
  padding: 0.175em 0.625em;
}
.nmgr-navs > *:not(:last-child) {
  margin-right: 7px;
}
.nmgr-navs > .nmgr-nav {
  background: #f5f5f5;
  border-radius: 5px;
  color: #aaa;
  text-decoration: none !important;
  display: inline-flex;
}
.nmgr-navs > .nmgr-nav:hover {
  color: #888;
}
body.wp-admin .nmgr-navs {
  padding-right: 4px;
}

/*--------------------------------------------
Checkbox toggle input
----------------------------------------------*/
.nmgr-toggle-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  cursor: pointer;
  position: relative;
}

.nmgr-toggle-label {
  font-size: var(--nmgr-input-font-size);
}

.nmgr-toggle-desc {
  display: block;
  font-size: var(--nmgr-input-desc-font-size);
  color: #787c82;
  margin-top: 2px;
}

.nmgr-toggle {
  position: relative;
  display: inline-block;
  width: 40px;
  height: 22px;
  flex-shrink: 0;
  cursor: pointer;
}

input[type=checkbox].nmgr-toggle-input {
  opacity: 0;
  width: 0;
  height: 0;
}

.nmgr-toggle-track {
  position: absolute;
  inset: 0;
  background: #c3c4c7;
  border-radius: 999px;
  transition: background 0.15s;
}

.nmgr-toggle-thumb {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 18px;
  height: 18px;
  background: #fff;
  border-radius: 50%;
  transition: transform 0.15s;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.25);
}

.nmgr-toggle-input:checked ~ .nmgr-toggle-track {
  background: #2271b1;
}

.nmgr-toggle-input:checked ~ .nmgr-toggle-thumb {
  transform: translateX(18px);
}

.nmgr-toggle input:disabled + .nmgr-toggle-track {
  opacity: 0.55;
  cursor: not-allowed;
}

/*--------------------------------------------
Pure CSS Conditional Radio Group
----------------------------------------------*/
.nmgr-radio-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 10px;
}

label.nmgr-radio-row {
  display: flex !important;
  flex-direction: column;
  position: relative;
  border: 1px solid #dcdcde;
  border-radius: 8px;
  padding: 12px 14px;
  cursor: pointer;
  transition: border-color 0.15s;
}
label.nmgr-radio-row:has(.nmgr-radio-input:checked) {
  border-color: #2271b1;
}

.nmgr-radio-row-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.nmgr-radio-main {
  display: flex !important;
  align-items: center !important;
  gap: 10px;
  flex: 1;
  min-width: 0;
}

.nmgr-radio-icon {
  font-size: 18px;
  width: 18px;
  height: 18px;
  margin-top: 1px;
  color: #50575e;
  flex-shrink: 0;
}

.nmgr-radio-text {
  display: block;
}

.nmgr-radio-label {
  display: block;
  font-size: 14px;
  font-weight: 600;
}

.nmgr-radio-desc {
  display: block;
  font-size: 12px;
  color: #787c82;
  margin-top: 2px;
}

.nmgr-radio-input {
  position: absolute;
  opacity: 0;
  width: 18px;
  height: 18px;
  right: 14px;
  top: 14px;
  margin: 0;
  cursor: pointer;
}
.nmgr-radio-input:checked ~ .nmgr-radio-dot {
  border-color: #2271b1;
}
.nmgr-radio-input:checked ~ .nmgr-radio-dot::after {
  content: "";
  position: absolute;
  inset: 3px;
  border-radius: 50%;
  background: #2271b1;
}

.nmgr-radio-dot {
  display: inline-block;
  box-sizing: border-box;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 1.5px solid #c3c4c7;
  background: #fff;
  flex-shrink: 0;
  position: relative;
}

/* Conditional Field Container */
.nmgr-conditional-wrapper {
  display: none;
  width: 100%;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid #f0f0f1;
  box-sizing: border-box;
}

/* CSS Pure Toggle */
label.nmgr-radio-row:has(.nmgr-radio-input:checked) .nmgr-conditional-wrapper {
  display: block;
}

/* Form Field Resets */
.nmgr-conditional-input {
  display: block !important;
  width: 100% !important;
  box-sizing: border-box !important;
  padding: 8px 10px;
  border: 1px solid #dcdcde;
  border-radius: 4px;
  background-color: #f6f7f7;
  font-size: 13px;
  margin: 0 !important;
  vertical-align: top;
  resize: vertical;
}
.nmgr-conditional-input:focus {
  border-color: #2271b1;
  background-color: #fff;
  outline: none;
}

/*--------------------------------------------
Badge
----------------------------------------------*/
.hang-badge {
  position: relative;
}
.hang-badge .nmgr-badge {
  position: absolute;
  top: 0;
  transform: translate(-50%, -50%);
  left: 100%;
  border-radius: 50rem;
  height: inherit;
  width: inherit;
}

.nmgr-badge {
  display: inline-block;
  padding: 0.35em 0.65em;
  font-size: 0.75em;
  font-weight: 700;
  line-height: 1;
  color: #fff;
  background-color: #aaa;
  text-align: center;
  white-space: nowrap;
  vertical-align: baseline;
  border-radius: 0.25rem;
}

/*--------------------------------------------
Progressbar
----------------------------------------------*/
.nmgr-progressbar {
  display: flex;
  align-items: center;
}
.nmgr-progressbar .progress-wrapper {
  flex-grow: 1;
  background-color: #f2f2f2;
  border-radius: 10px;
}
.nmgr-progressbar .progress-wrapper .progress {
  background-color: #666;
  height: 10px;
  border-radius: 10px;
}
.nmgr-progressbar .percent {
  margin-left: 11px;
  font-size: 13px;
}

/*--------------------------------------------
Items table
----------------------------------------------*/
.nmgr-on-hold-text {
  color: #b8860b;
}

.nmgr-items-menu {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
}
.nmgr-items-menu > * {
  padding: 0.7em 0;
}
.nmgr-items-menu > *:not(:first-child) {
  margin-left: 30px;
}

.nmgr-items-bulk-actions {
  margin-right: auto;
  display: flex;
  align-items: center;
  gap: 9px;
}
.nmgr-items-bulk-actions > * {
  display: flex;
  align-items: center;
  outline: none;
}
.nmgr-items-bulk-actions > *:not(.item_select) {
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.15s;
}
.nmgr-items-bulk-actions :disabled {
  cursor: not-allowed;
}
.nmgr-items-bulk-actions.show > * {
  opacity: 1;
  visibility: visible;
}
.nmgr-items-bulk-actions .item_select label {
  margin: 0;
  line-height: 0;
  padding: 10px;
  background-color: var(--nmgr-btn-bg-color);
  box-shadow: 0 0 0 1px var(--nmgr-btn-box-shadow-color);
  border-radius: 50%;
}
.nmgr-items-bulk-actions .item_select label:hover {
  cursor: pointer;
  background-color: var(--nmgr-btn-bg-hover-color);
  box-shadow: 0 0 0 1px var(--nmgr-btn-box-shadow-hover-color);
}

#nmgr-items .nmgr-row-amount_needed {
  font-weight: bolder;
  background-color: #f2f2f2;
}
#nmgr-items ul.variations {
  display: block;
  margin: auto;
  padding: 0;
  list-style: none;
}
#nmgr-items .thumbnail img {
  height: auto;
  margin: 0;
  padding: 0;
  display: block;
  object-fit: cover;
}
#nmgr-items .is-fav svg {
  fill: #f59e0b;
  stroke: #f59e0b;
}
#nmgr-items .not-fav svg {
  stroke: rgba(156, 163, 175, 0.62);
}
#nmgr-items :invalid {
  border-color: red;
}
#nmgr-items .item.nmgr-blur > *:not(.nmgr_action_buttons) {
  opacity: 0.7;
}

@container (min-width: 800px) {
  .nmgr-items-view.list tr > .nmgr_quantity,
  .nmgr-items-view.list tr > .nmgr_purchased_quantity,
  .nmgr-items-view.list tr > .nmgr_favourite,
  .nmgr-items-view.list tr > th.nmgr_action_buttons {
    text-align: center;
  }
  .nmgr-items-view.list .nmgr-on-hold-text {
    font-size: 12px;
    display: block;
  }
}
/*--------------------------------------------
Messages table
----------------------------------------------*/
/* Transparent Icon Button with Circular Hover Boundary */
.nmgr-delete-message-btn {
  background: transparent;
  border: none;
  width: 36px;
  height: 36px;
  padding: 0;
  margin: 0;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #9ca3af; /* Muted gray resting icon color */
  transition: color 0.15s ease, background-color 0.15s ease;
  /* Circular Hover & Focus States */
}
.nmgr-delete-message-btn:hover {
  color: #ef4444; /* Alert red icon on hover */
  background-color: #f2f2f2;
}

.nmgr-template {
  max-width: 1150px;
  margin: 0 auto 80px;
  container-type: inline-size;
  container-name: nmgr-page; /* optional, but recommended once you have multiple queries */
}

.nmgr-copy-shipping-address-wrapper {
  margin-bottom: 15px;
}

.nmgr-account-template.settings, .nmgr-account-template.profile, .nmgr-account-template.shipping {
  max-width: 480px;
  margin: 0 auto;
}

.nmgr-form button.save-action {
  margin-top: 35px;
}

.nmgr-template-title {
  font-size: 1.5em !important;
  font-weight: 400;
  margin: 4px 0 34px !important;
}

.nmgr-wishlist-title {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.nmgr-days-notice {
  color: #999;
}

.nmgr-text-center {
  text-align: center !important;
}

/*--------------------------------------------
Navigation bar
----------------------------------------------*/
.nmgr-main-nav {
  display: flex;
  align-items: center;
  flex-flow: wrap;
  margin: 0 auto 20px;
  gap: 12px;
}
.nmgr-main-nav .nmgr-add-items-link {
  font-size: 14px;
}

/*--------------------------------------------
dropdown menu
----------------------------------------------*/
.nmgr-dropdown-wrapper {
  display: inline-flex;
  position: relative;
  flex: 0 0 auto;
}
.nmgr-dropdown-wrapper > summary { /* dropdown btn */
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  list-style: none;
  cursor: pointer;
  border-radius: 50%;
  user-select: none;
  color: #888;
  margin: 0;
  line-height: 0;
}
.nmgr-dropdown-wrapper > summary::-webkit-details-marker { /* Remove the browser's default marker */
  display: none;
}
.nmgr-dropdown-wrapper > summary::marker { /* Remove the browser's default marker */
  display: none;
  content: "";
}
.nmgr-dropdown-wrapper > summary:hover {
  background-color: var(--nmgr-btn-bg-hover-color);
}
.nmgr-dropdown-wrapper[open] > summary {
  background-color: var(--nmgr-btn-bg-color);
  box-shadow: 0 0 0 1px var(--nmgr-btn-box-shadow-hover-color);
}

.nmgr-dropdown-menu { /* dropdown menu */
  position: absolute;
  top: calc(100% + 6px); /* Anchor the menu to the three-dot button. */
  right: 0;
  width: 200px;
  padding: 6px;
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 9px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1), 0 2px 6px rgba(0, 0, 0, 0.06);
  z-index: 100;
}

.nmgr-dropdown-right {
  right: auto;
  left: 0;
}

.nmgr-dropdown-item { /* menu items */
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 8px 10px;
  border-radius: 6px;
  color: #333;
  text-decoration: none !important;
  white-space: normal; /* Allow text to wrap to multiple lines */
  line-height: 1.3; /* Keep line height compact for wrapped links */
  word-break: break-word; /* Prevent long uninterrupted words from clipping */
}
.nmgr-dropdown-item:not(.nmgr-disabled):hover {
  background: #f3f4f6;
}

.nmgr-dropdown-header {
  font-size: 0.875rem;
  color: #666;
}

.nmgr-dropdown-text {
  color: #999;
}

.nmgr-dropdown-divider {
  height: 1px;
  margin: 6px 0;
  background: #e5e5e5;
}

/*--------------------------------------------
Dropdown
----------------------------------------------*/
.nmgr-main-nav summary {
  width: 42px;
  height: 42px;
  background-color: var(--nmgr-btn-bg-color);
  box-shadow: 0 0 0 1px var(--nmgr-btn-box-shadow-color);
  color: var(--nmgr-btn-secondary-color);
  transition: background 0.15s ease, box-shadow 0.15s ease;
}

.nmgr-dropdown-section-label {
  color: #666 !important;
  border-bottom: 1px solid #eee;
  margin-bottom: 4px !important;
}

.nmgr-dropdown-section-label svg {
  width: 16px;
  height: 16px;
}

/* Sub-items under Manage account, indented */
.nmgr-main-nav .nmgr-sub-item {
  padding-left: 26px !important;
  font-size: 14px;
  justify-content: space-between;
  color: #888 !important;
}

/*--------------------------------------------
Share icons
----------------------------------------------*/
.nmgr-sharing-options {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 13px;
  margin-top: 25px;
}
.nmgr-sharing-options .share-item {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: var(--nmgr-btn-bg-color);
  box-shadow: 0 0 0 1px var(--nmgr-btn-box-shadow-color);
}
.nmgr-sharing-options .share-item:hover {
  background-color: var(--nmgr-btn-bg-hover-color);
}
.nmgr-sharing-options .share-item svg {
  width: 1.375em;
  height: 1.375em;
  color: var(--nmgr-btn-secondary-color);
}

/*--------------------------------------------
Messages section
----------------------------------------------*/
/* Notifier in menu */
.nmgr-badge-dot {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #e0362f;
  border: 2px solid #fff;
}

/* Small dot next to "Messages" menu item when there's an unread message */
.nmgr-item-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #e0362f;
  flex: none;
}

.nmgr-message-label {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 260px;
  vertical-align: middle;
}

.nmgr-message-form textarea {
  margin-bottom: 25px;
  padding: 12px;
  min-height: 120px;
  border: 1px solid #ccc;
  background-color: var(--nmgr-btn-bg-color);
  border-radius: 10px;
  display: block; /* Breaks line & removes default inline-block baseline gap */
  width: 100%; /* Fills the parent wrapper completely */
}

.nmgr-mark-all-read {
  margin-bottom: 20px;
}
.nmgr-mark-all-read button {
  font-size: smaller;
}

/*--------------------------------------------
Settings page: delete wishlist section
----------------------------------------------*/
.nmgr-delete-wishlist-section {
  margin-top: 70px;
  border: 1px solid #d63638;
  border-radius: 12px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 18px;
}

.nmgr-delete-disabled-notice {
  border: 1px solid #f0b4b4;
  background: #fcf0f1;
  border-radius: 6px;
  padding: 16px 20px;
}

.nmgr-delete-wishlist-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #fff;
  border: 1px solid #d63638;
  color: #d63638;
  font-weight: 600;
  border-radius: 6px;
  padding: 8px 16px;
  transition: background-color 0.15s, color 0.15s;
}
.nmgr-delete-wishlist-btn:hover {
  background: #d63638;
  color: #fff;
}
.nmgr-delete-wishlist-btn:disabled {
  opacity: 0.5;
}

/*--------------------------------------------
Call to action
----------------------------------------------*/
.nmgr-call-to-action-no-wishlist {
  text-align: center;
}

.nmgr-no-wishlist-placeholder-svg svg {
  width: 210px;
  height: 210px;
  fill: #f8f8f8;
}

.nmgr-call-to-action-title {
  font-size: 23px;
  font-weight: 300;
  margin: 0 0 13px;
}

/*--------------------------------------------
Images section
----------------------------------------------*/
#nmgr-bg {
  position: relative;
  background-position: center;
  background-color: #f8f8f8;
  background-repeat: no-repeat;
  background-size: cover;
  border-radius: 16px;
  aspect-ratio: 3/1;
  text-align: center;
  overflow: hidden;
}

#nmgr-thumbnail {
  width: var(--thumb-size);
  height: var(--thumb-size);
  margin: auto;
  border: 2px solid #fff;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
  background: #fff;
  z-index: 2;
  position: relative;
  text-align: center;
}
#nmgr-thumbnail,
#nmgr-thumbnail .nmgr-image-link {
  border-radius: 16px;
}
#nmgr-thumbnail .preview {
  display: flex;
  width: 100%;
  height: 100%;
}
#nmgr-thumbnail img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.nmgr-image-link {
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
}

.nmgr-image-input {
  width: 0.1px;
  height: 0.1px;
  opacity: 0;
  position: absolute;
}

#nmgr-images {
  --thumb-size: clamp(90px, 24cqi, 190px);
  margin-bottom: 30px;
  border: none;
  padding: 0;
}
#nmgr-images > fieldset {
  position: relative;
}
#nmgr-images.show-bg .featured-image-wrapper {
  height: calc(var(--thumb-size) * 0.6);
}
#nmgr-images.show-bg .featured-image-wrapper #nmgr-thumbnail {
  bottom: 0;
  position: absolute;
}
#nmgr-images.show-bg.feat-center #nmgr-thumbnail {
  left: 50%;
  transform: translateX(-50%);
}
#nmgr-images.show-bg.feat-right #nmgr-thumbnail {
  right: 5%;
}
#nmgr-images.show-bg.feat-left #nmgr-thumbnail {
  left: 5%;
}
#nmgr-images .featured-image-wrapper {
  position: relative;
}
#nmgr-images.feat-circle #nmgr-thumbnail,
#nmgr-images.feat-circle #nmgr-thumbnail .nmgr-image-link {
  border-radius: 50%;
}

.nmgr-image-actions {
  position: absolute;
  display: inline-flex;
  top: 7px;
  right: 7px;
}
.nmgr-image-actions .nmgr-action {
  width: 25px;
  height: 25px;
  background-color: rgba(255, 255, 255, 0.92);
  color: #666;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 1px solid #eee;
  cursor: pointer;
  margin-left: 8px;
  padding: 0;
  transition: color 0.15s ease;
}
.nmgr-image-actions .nmgr-action:hover {
  color: #999;
}
.nmgr-image-actions .nmgr-action:focus {
  outline: none;
}
.nmgr-image-actions .nmgr-action:focus-visible {
  outline: revert;
}

/* This code is removed from #nmgr-images because .nmgr-post-thumbnail occurs on the archive page without
		the #nmgr-images container */
.nmgr-post-thumbnail {
  border-radius: 16px;
}
.nmgr-post-thumbnail.nmgr-circle {
  border-radius: 50%;
}

@container nmgr-page (min-width: 768px) {
  #nmgr-images .nmgr-image-actions {
    top: 10px;
    right: 10px;
  }
  #nmgr-images .nmgr-image-actions .nmgr-action {
    width: 40px;
    height: 40px;
  }
}
/*--------------------------------------------
Archive page
----------------------------------------------*/
.nmgr-archive-content {
  position: relative;
  display: flex;
  flex-flow: column;
  align-items: center;
  gap: 28px;
  padding: 15px;
  background-color: transparent;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  overflow: hidden;
  transition: background-color 0.2s ease, transform 0.2s ease;
}
.nmgr-archive-content:hover {
  background-color: rgba(232, 233, 235, 0.15);
}
.nmgr-archive-content:not(:last-child) {
  margin-bottom: 32px;
}
.nmgr-archive-content .nmgr-card-link {
  position: absolute;
  inset: 0;
  z-index: 1;
}
.nmgr-archive-content .nmgr-archive-desc {
  flex-grow: 1;
}
.nmgr-archive-content .nmgr-post-thumbnail {
  width: 120px;
  height: auto;
  margin: 0;
}
.nmgr-archive-content .nmgr-full-name,
.nmgr-archive-content .nmgr-event-date {
  display: block;
}
.nmgr-archive-content .nmgr-title {
  margin-top: 0;
  margin-bottom: 8px;
  padding: 0;
  line-height: 1.3;
}
.nmgr-archive-content .nmgr-title a {
  color: inherit;
  text-decoration: none !important;
}
.nmgr-archive-content .nmgr-details {
  margin: 0;
  padding: 0;
  line-height: 1.4;
  opacity: 0.85;
}
.nmgr-archive-content .entry-action {
  border: 1px solid #e5e7eb;
  flex-shrink: 0;
  display: inline-block;
  padding: 10px 18px;
  color: color-mix(in srgb, currentColor 90%, transparent);
  font-weight: 500;
  line-height: 1.2;
  border-radius: 8px;
  text-align: center;
  pointer-events: none;
}
@media (min-width: 767px) {
  .nmgr-archive-content {
    flex-flow: row;
    justify-content: space-between;
    align-items: flex-start;
    padding: 40px;
  }
}
.nmgr-archive-content ~ nav.pagination {
  padding: 42px 0;
  display: flex;
  justify-content: center;
}
.nmgr-archive-content ~ nav.pagination .page-numbers {
  display: inline-block;
  list-style: none;
  margin: 0;
  padding: 6px 14px;
  background-color: rgba(0, 0, 0, 0.025);
  border-radius: 4px;
  transition: background-color 0.2s ease;
}
.nmgr-archive-content ~ nav.pagination .page-numbers:hover {
  background-color: rgba(0, 0, 0, 0.05);
}
.nmgr-archive-content ~ nav.pagination .page-numbers.current {
  background-color: #e6e6e6;
}

/*--------------------------------------------
Wishlist items table
----------------------------------------------*/
.nmgr-display-modes .mode {
  display: inline-block;
  line-height: 0;
  background-color: var(--nmgr-btn-bg-color);
  box-shadow: 0 0 0 1px var(--nmgr-btn-box-shadow-color);
  padding: 10px;
  border-radius: 50%;
}
.nmgr-display-modes .mode:hover {
  background-color: var(--nmgr-btn-bg-hover-color);
  box-shadow: 0 0 0 1px var(--nmgr-btn-box-shadow-hover-color);
}
.nmgr-display-modes .mode:hover svg {
  fill: var(--nmgr-btn-secondary-color);
}
.nmgr-display-modes .mode.active svg {
  fill: var(--nmgr-btn-secondary-color);
}
.nmgr-display-modes .mode:last-child {
  margin-left: 20px;
}

.nmgr-statuses-wrapper {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
}

.nmgr-item-status {
  padding: 5px 9px;
  border-radius: 7px;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.2;
}
.nmgr-item-status.item-fulfilled {
  color: #287a4b;
  background: #eaf7ef;
}
.nmgr-item-status.item-archived {
  color: #6b7280;
  background: #f3f4f6;
}
.nmgr-item-status.out-of-stock {
  color: #8a6418;
  background: #faf4e5;
}
.nmgr-item-status.not-purchasable {
  color: #6b7280;
  background: #f3f4f6;
}

.nmgr-items-count-progress {
  display: flex;
  align-items: center;
}
.nmgr-items-count-progress .nmgr-progressbar-wrapper {
  flex-grow: 1;
  margin-right: 10px;
}
.nmgr-items-count-progress .nmgr-item-count {
  margin-left: auto;
}

.nmgr-items-view.grid .tbody {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 18px;
}

#nmgr-items .thumbnail img {
  border-radius: 10px;
  width: 44px;
  height: 44px;
}
#nmgr-items input[type=checkbox] {
  appearance: none;
  -webkit-appearance: none;
  width: 16px; /* Change to any size (e.g., 24px, 32px) without breaking alignment */
  height: 16px;
  border: 1.5px solid #d1d5db;
  border-radius: 4px;
  background: #fff;
  cursor: pointer;
  position: relative;
  transition: background 0.15s ease, border-color 0.15s ease;
  margin: 0;
  flex: 0 0 auto;
}
#nmgr-items input[type=checkbox]:checked {
  background: #111827;
  border-color: #111827;
}
#nmgr-items input[type=checkbox]:checked::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 45%;
  width: 30%;
  height: 55%;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: translate(-50%, -50%) rotate(45deg);
}
#nmgr-items .nmgr-grid-card {
  position: relative;
  background: #ffffff;
  border: 1px solid #f0f0f0;
  border-radius: 14px;
  padding: 14px;
  box-shadow: 0 1px 2px rgba(16, 24, 40, 0.04), 0 8px 24px rgba(16, 24, 40, 0.06);
  transition: box-shadow 0.2s ease, transform 0.2s ease;
  display: flex;
  flex-direction: column;
  gap: 10px;
  box-sizing: border-box;
}
#nmgr-items .nmgr-grid-card:hover {
  box-shadow: 0 2px 4px rgba(16, 24, 40, 0.06), 0 16px 40px rgba(16, 24, 40, 0.1);
  transform: translateY(-1px);
}
#nmgr-items .nmgr-grid-card .nmgr-grid-topbar,
#nmgr-items .nmgr-grid-card .nmgr-grid-topbar input[type=checkbox],
#nmgr-items .nmgr-grid-card .nmgr-grid-topbar svg,
#nmgr-items .nmgr-grid-card .nmgr-grid-topbar-right {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
#nmgr-items .nmgr-grid-card .nmgr-grid-topbar {
  gap: 6px;
}
#nmgr-items .nmgr-grid-card .nmgr-grid-topbar svg {
  height: 18px;
  width: 18px;
}
#nmgr-items .nmgr-grid-card .nmgr-grid-topbar-right {
  gap: 7px;
}
#nmgr-items .nmgr-grid-card .nmgr_thumbnail {
  width: 100%;
  aspect-ratio: 1/1;
  border-radius: 10px;
  overflow: hidden;
  background: #f7f7f8;
  position: relative;
}
#nmgr-items .nmgr-grid-card .nmgr_thumbnail img {
  width: 100%;
  height: 100%;
  position: absolute;
  inset: 0;
}
#nmgr-items .nmgr-grid-card .nmgr-product-name {
  text-decoration: none;
  font-weight: 600;
  color: inherit;
}
#nmgr-items .nmgr-grid-card .nmgr_cost {
  color: #6b7280;
}
#nmgr-items .nmgr-grid-card .nmgr-grid-total {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
}
#nmgr-items .nmgr-grid-card .nmgr_total_cost {
  color: #111827;
  font-weight: 600;
}
#nmgr-items .nmgr-grid-card .nmgr_add_to_cart_button.nmgr-item-part {
  margin-top: auto;
}
#nmgr-items .nmgr-grid-card .nmgr_add_to_cart_button.nmgr-item-part button {
  flex: 1;
}
#nmgr-items .nmgr-grid-card .nmgr-qty-progressbar .progress {
  height: 5px;
}
#nmgr-items .nmgr-grid-card .nmgr-grid-total {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 10px;
  border-top: 1px solid #eee;
  margin-bottom: 12px;
}
#nmgr-items .nmgr-grid-card .nmgr-grid-total-label {
  font-size: 12px;
  color: #666;
}
#nmgr-items .nmgr-grid-card .nmgr_total_cost {
  font-size: 15px;
  font-weight: 600;
  color: #333;
}
#nmgr-items .nmgr-grid-card .nmgr-qty-pill {
  display: flex;
  align-items: flex-start;
}
#nmgr-items .nmgr-grid-card .nmgr-qty-desired-group,
#nmgr-items .nmgr-grid-card .nmgr-qty-purchased-group {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
}
#nmgr-items .nmgr-grid-card .nmgr-qty-desired,
#nmgr-items .nmgr-grid-card .nmgr-qty-purchased {
  width: 100%;
  height: 44px;
  box-sizing: border-box;
  border: 1px solid #ccc;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 8px;
}
#nmgr-items .nmgr-grid-card .nmgr-qty-desired input,
#nmgr-items .nmgr-grid-card .nmgr-qty-purchased input {
  height: 30px;
}
#nmgr-items .nmgr-grid-card .nmgr-qty-desired {
  border-radius: 10px 0 0 10px;
  border-right: none;
}
#nmgr-items .nmgr-grid-card .nmgr-qty-desired.nmgr-qty-desired--full {
  border-radius: 10px;
  border-right: 1px solid #ccc;
}
#nmgr-items .nmgr-grid-card .nmgr-qty-purchased {
  border-radius: 0 10px 10px 0;
  background: #f2f3f5;
  color: #999;
}
#nmgr-items .nmgr-grid-card .nmgr-qty-label {
  font-size: 12px;
  color: #999;
  text-align: center;
  margin-top: 4px;
}
#nmgr-items .nmgr-grid-card .nmgr-statuses-wrapper {
  align-items: flex-start;
}

.nmgr-table + .nmgr-table-footer {
  margin-top: 6px;
}
.nmgr-items-view.grid + .nmgr-table-footer {
  margin-top: 36px;
}
.nmgr-table-footer .item {
  border-radius: 10px;
  border: 1px solid #e5e7eb;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}
.nmgr-table-footer .item:not(:last-child) {
  margin-bottom: 10px;
}

/*--------------------------------------------
Desktop responsive
----------------------------------------------*/
@container (min-width: 800px) {
  #nmgr-items .nmgr-items-view.list .thumbnail img {
    width: 90px;
    height: 90px;
    min-width: 90px;
  }
  /* Use all these selectors to increase specificity so that our table rules can prevail. */
  .nmgr-template .nmgr-table-template table.nmgr-table {
    border-collapse: separate;
    border-spacing: 0 11px;
    margin: 0;
    /* These styles are repeated here even though they are already set for the mobile version because they
    	 are overriden in teh mobile version due to the low specificity and they are especially needed here
    	 on desktop because of the advanced styling. So we reapply them here in high speciifity. */
  }
  .nmgr-template .nmgr-table-template table.nmgr-table,
  .nmgr-template .nmgr-table-template table.nmgr-table th,
  .nmgr-template .nmgr-table-template table.nmgr-table td {
    border: 0;
  }
  .nmgr-template .nmgr-table-template table.nmgr-table th,
  .nmgr-template .nmgr-table-template table.nmgr-table td {
    /* Round only the outer edges of each row */
  }
  .nmgr-template .nmgr-table-template table.nmgr-table th:first-child,
  .nmgr-template .nmgr-table-template table.nmgr-table td:first-child {
    border-top-left-radius: 12px;
    border-bottom-left-radius: 12px;
  }
  .nmgr-template .nmgr-table-template table.nmgr-table th:last-child,
  .nmgr-template .nmgr-table-template table.nmgr-table td:last-child {
    border-top-right-radius: 12px;
    border-bottom-right-radius: 12px;
  }
  .nmgr-template .nmgr-table-template table.nmgr-table td {
    border-top: 1px solid #e5e7eb;
    border-bottom: 1px solid #e5e7eb;
    /* Round only the outer edges of each row */
  }
  .nmgr-template .nmgr-table-template table.nmgr-table td:first-child {
    border-left: 1px solid #e5e7eb;
  }
  .nmgr-template .nmgr-table-template table.nmgr-table td:last-child {
    border-right: 1px solid #e5e7eb;
  }
  .nmgr-template .nmgr-table-template table.nmgr-table thead,
  .nmgr-template .nmgr-table-template table.nmgr-table tbody {
    /* Shift upward to match border-spacing alignment */
    transform: translateY(-11px);
  }
  .nmgr-template .nmgr-table-template table.nmgr-table tbody tr {
    /* Ultra-subtle shadow optimized for long table rows */
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.025), 0 1px 2px rgba(0, 0, 0, 0.015);
    /* Hover effect targeted directly at the cells */
  }
  .nmgr-template .nmgr-table-template table.nmgr-table tbody tr td {
    background-color: transparent;
    transition: background-color 0.2s ease;
  }
  .nmgr-template .nmgr-table-template table.nmgr-table tbody tr:hover td {
    background-color: rgba(232, 233, 235, 0.15);
  }
}