/* ==========================================================================
   RIBOLOVNO.HR — ACCOUNT
   Moj račun, korisnički oglasi, uređivanje oglasa, profil i vendor profil
   ========================================================================== */


/* ==========================================================================
   1. OPSEG I OSNOVNA POZADINA
   ========================================================================== */

body:has(.hp-menu--user-account),
body:has(.hp-account),
body:has(.hp-form--user-update),
body:has(.hp-form--listing-update),
body.hp-template--vendor-view-page,
body:has(.hp-vendor--view-page) {
  background: var(--ribo-bg);
  color: var(--ribo-text);
}

body:has(.hp-menu--user-account) .site,
body:has(.hp-menu--user-account) .site-content,
body:has(.hp-menu--user-account) .content-area,
body:has(.hp-menu--user-account) .hp-page,
body:has(.hp-account) .site,
body:has(.hp-account) .site-content,
body:has(.hp-account) .content-area,
body:has(.hp-account) .hp-page,
body:has(.hp-form--user-update) .site,
body:has(.hp-form--user-update) .site-content,
body:has(.hp-form--user-update) .content-area,
body:has(.hp-form--user-update) .hp-page,
body:has(.hp-form--listing-update) .site,
body:has(.hp-form--listing-update) .site-content,
body:has(.hp-form--listing-update) .content-area,
body:has(.hp-form--listing-update) .hp-page,
body.hp-template--vendor-view-page .site,
body.hp-template--vendor-view-page .site-content,
body.hp-template--vendor-view-page .content-area,
body.hp-template--vendor-view-page .hp-page,
body:has(.hp-vendor--view-page) .site,
body:has(.hp-vendor--view-page) .site-content,
body:has(.hp-vendor--view-page) .content-area,
body:has(.hp-vendor--view-page) .hp-page {
  background: var(--ribo-bg);
}

body:has(.hp-menu--user-account) .site-content,
body:has(.hp-account) .site-content,
body:has(.hp-form--user-update) .site-content,
body:has(.hp-form--listing-update) .site-content,
body.hp-template--vendor-view-page .site-content,
body:has(.hp-vendor--view-page) .site-content {
  min-height: calc(100vh - 220px);
}


/* ==========================================================================
   2. ZAJEDNIČKA TIPOGRAFIJA I POVEZNICE
   ========================================================================== */

body:has(.hp-menu--user-account) .hp-page,
body:has(.hp-account) .hp-page,
body:has(.hp-form--user-update) .hp-page,
body:has(.hp-form--listing-update) .hp-page,
body.hp-template--vendor-view-page .hp-page,
body:has(.hp-vendor--view-page) .hp-page {
  color: var(--ribo-text);
}

body:has(.hp-menu--user-account) .hp-page :is(h1, h2, h3, h4, h5, h6),
body:has(.hp-account) .hp-page :is(h1, h2, h3, h4, h5, h6),
body:has(.hp-form--user-update) .hp-page :is(h1, h2, h3, h4, h5, h6),
body:has(.hp-form--listing-update) .hp-page :is(h1, h2, h3, h4, h5, h6),
body.hp-template--vendor-view-page .hp-page :is(h1, h2, h3, h4, h5, h6),
body:has(.hp-vendor--view-page) .hp-page :is(h1, h2, h3, h4, h5, h6) {
  color: var(--ribo-text);
}

body:has(.hp-menu--user-account) .hp-page :is(p, label, legend, small, time),
body:has(.hp-account) .hp-page :is(p, label, legend, small, time),
body:has(.hp-form--user-update) .hp-page :is(p, label, legend, small, time),
body:has(.hp-form--listing-update) .hp-page :is(p, label, legend, small, time),
body.hp-template--vendor-view-page .hp-page :is(p, label, legend, small, time),
body:has(.hp-vendor--view-page) .hp-page :is(p, label, legend, small, time) {
  color: var(--ribo-text);
}

body:has(.hp-menu--user-account) .hp-page a,
body:has(.hp-account) .hp-page a,
body:has(.hp-form--user-update) .hp-page a,
body:has(.hp-form--listing-update) .hp-page a,
body.hp-template--vendor-view-page .hp-page a,
body:has(.hp-vendor--view-page) .hp-page a {
  color: var(--ribo-green);
  text-decoration: none;
  transition: color .2s ease, opacity .2s ease;
}

body:has(.hp-menu--user-account) .hp-page a:hover,
body:has(.hp-account) .hp-page a:hover,
body:has(.hp-form--user-update) .hp-page a:hover,
body:has(.hp-form--listing-update) .hp-page a:hover,
body.hp-template--vendor-view-page .hp-page a:hover,
body:has(.hp-vendor--view-page) .hp-page a:hover {
  color: #4ade80;
}

body:has(.hp-menu--user-account) .hp-page__title,
body:has(.hp-account) .hp-page__title,
body:has(.hp-form--user-update) .hp-page__title,
body:has(.hp-form--listing-update) .hp-page__title,
body.hp-template--vendor-view-page .hp-page__title,
body:has(.hp-vendor--view-page) .hp-page__title {
  margin: 0 0 30px;
  color: var(--ribo-text);
  line-height: 1.2;
}


/* ==========================================================================
   3. RASPORED STRANICE MOJ RAČUN
   ========================================================================== */

body:has(.hp-menu--user-account) .hp-page__sidebar {
  padding-right: 24px;
}

body:has(.hp-menu--user-account) .hp-page__content {
  min-width: 0;
  padding-left: 24px;
  color: var(--ribo-text);
}

body:has(.hp-menu--user-account) .hp-page__content > :first-child {
  margin-top: 0;
}


/* ==========================================================================
   4. LIJEVI IZBORNIK KORISNIČKOG RAČUNA
   ========================================================================== */

body:has(.hp-menu--user-account) .hp-page__sidebar .hp-menu--user-account {
  overflow: hidden;
  margin: 0;
  padding: 16px;
  background: var(--ribo-card);
  border: 1px solid var(--ribo-border);
  border-radius: var(--ribo-radius-lg);
  box-shadow: var(--ribo-shadow);
}

body:has(.hp-menu--user-account) .hp-page__sidebar .hp-menu--user-account ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

body:has(.hp-menu--user-account) .hp-page__sidebar .hp-menu--user-account li {
  position: relative;
  margin: 0 0 6px;
  padding: 0;
}

body:has(.hp-menu--user-account) .hp-page__sidebar .hp-menu--user-account li:last-child {
  margin-bottom: 0;
}

body:has(.hp-menu--user-account) .hp-page__sidebar .hp-menu--user-account li::before,
body:has(.hp-menu--user-account) .hp-page__sidebar .hp-menu--user-account li::after,
body:has(.hp-menu--user-account) .hp-page__sidebar .hp-menu--user-account a::before {
  display: none;
  content: none;
}

body:has(.hp-menu--user-account) .hp-page__sidebar .hp-menu--user-account a {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 46px;
  padding: 11px 40px 11px 16px;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 11px;
  color: var(--ribo-text);
  font-weight: 700;
  line-height: 1.35;
  text-decoration: none;
  transition:
    color .2s ease,
    background-color .2s ease,
    border-color .2s ease,
    transform .2s ease;
}

body:has(.hp-menu--user-account) .hp-page__sidebar .hp-menu--user-account a::after {
  content: "›";
  position: absolute;
  top: 50%;
  right: 15px;
  color: var(--ribo-green);
  font-family: Arial, sans-serif;
  font-size: 23px;
  font-weight: 700;
  line-height: 1;
  transform: translateY(-52%);
}

body:has(.hp-menu--user-account) .hp-page__sidebar .hp-menu--user-account a:hover {
  background: rgba(34, 197, 94, .09);
  border-color: rgba(34, 197, 94, .24);
  color: var(--ribo-green);
  transform: translateX(2px);
}

body:has(.hp-menu--user-account) .hp-page__sidebar .hp-menu--user-account :is(
  .current-menu-item,
  .hp-menu__item--current
) > a {
  background: rgba(34, 197, 94, .14);
  border-color: rgba(34, 197, 94, .42);
  color: var(--ribo-green);
}


/* ==========================================================================
   5. ZAJEDNIČKE KARTICE I BLOKOVI RAČUNA
   ========================================================================== */

body:has(.hp-menu--user-account) .hp-page__content :is(
  .hp-account,
  .hp-user,
  .hp-listing,
  .hp-vendor,
  .hp-form,
  .hp-widget,
  .hp-block
) {
  color: var(--ribo-text);
}

body:has(.hp-menu--user-account) .hp-page__content :is(
  .hp-account__details,
  .hp-user__details,
  .hp-listing__details,
  .hp-vendor__details
) {
  color: var(--ribo-muted);
}

body:has(.hp-menu--user-account) .hp-page__content :is(
  .hp-account__actions,
  .hp-user__actions,
  .hp-listing__actions,
  .hp-vendor__actions
) {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

body:has(.hp-menu--user-account) .hp-page__content :is(
  .hp-account__actions,
  .hp-user__actions,
  .hp-listing__actions,
  .hp-vendor__actions
) a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--ribo-green);
  font-weight: 700;
}

body:has(.hp-menu--user-account) .hp-page__content :is(
  .hp-account__actions,
  .hp-user__actions,
  .hp-listing__actions,
  .hp-vendor__actions
) a:hover {
  color: #4ade80;
}


/* ==========================================================================
   6. TABLICA KORISNIČKIH OGLASA
   ========================================================================== */

body:has(.hp-menu--user-account) .hp-page__content .hp-listings {
  width: 100%;
}

body:has(.hp-menu--user-account) .hp-page__content table.hp-listings {
  overflow: hidden;
  margin: 0;
  background: var(--ribo-card);
  border: 1px solid var(--ribo-border);
  border-collapse: separate;
  border-spacing: 0;
  border-radius: var(--ribo-radius-lg);
  box-shadow: var(--ribo-shadow);
}

body:has(.hp-menu--user-account) .hp-page__content table.hp-listings thead {
  background: rgba(255, 255, 255, .035);
}

body:has(.hp-menu--user-account) .hp-page__content table.hp-listings th {
  padding: 15px 18px;
  color: var(--ribo-muted);
  border-bottom: 1px solid var(--ribo-border);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .035em;
  text-align: left;
  text-transform: uppercase;
  vertical-align: middle;
}

body:has(.hp-menu--user-account) .hp-page__content table.hp-listings th:first-child {
  padding-left: 26px;
}

body:has(.hp-menu--user-account) .hp-page__content table.hp-listings th:last-child {
  padding-right: 26px;
}

body:has(.hp-menu--user-account) .hp-page__content table.hp-listings tr {
  background: transparent;
  transition: background-color .2s ease;
}

body:has(.hp-menu--user-account) .hp-page__content table.hp-listings tbody tr:hover {
  background: rgba(34, 197, 94, .06);
}

body:has(.hp-menu--user-account) .hp-page__content table.hp-listings td {
  padding: 18px;
  color: var(--ribo-text);
  border-bottom: 1px solid var(--ribo-border-soft);
  vertical-align: middle;
}

body:has(.hp-menu--user-account) .hp-page__content table.hp-listings td:first-child {
  padding-left: 26px;
}

body:has(.hp-menu--user-account) .hp-page__content table.hp-listings td:last-child {
  padding-right: 26px;
}

body:has(.hp-menu--user-account) .hp-page__content table.hp-listings tbody tr:last-child td {
  border-bottom: 0;
}

body:has(.hp-menu--user-account) .hp-page__content table.hp-listings :is(
  a,
  span,
  strong,
  time
) {
  color: var(--ribo-text);
}

body:has(.hp-menu--user-account) .hp-page__content table.hp-listings a:hover {
  color: var(--ribo-green);
}

body:has(.hp-menu--user-account) .hp-page__content table.hp-listings img {
  display: block;
  width: 72px;
  height: 54px;
  object-fit: cover;
  border: 1px solid var(--ribo-border);
  border-radius: 9px;
}

body:has(.hp-menu--user-account) .hp-page__content table.hp-listings :is(
  .hp-listing__title,
  .hp-listing__title a
) {
  color: var(--ribo-text);
  font-weight: 800;
}

body:has(.hp-menu--user-account) .hp-page__content table.hp-listings :is(
  .hp-listing__status,
  .hp-listing__created-date,
  .hp-listing__expiration-date
) {
  color: var(--ribo-muted);
  font-size: 14px;
}

body:has(.hp-menu--user-account) .hp-page__content table.hp-listings :is(
  .hp-listing__actions,
  .hp-listing__action
) {
  white-space: nowrap;
}

body:has(.hp-menu--user-account) .hp-page__content table.hp-listings :is(
  .hp-icon,
  i
) {
  color: var(--ribo-green);
  opacity: 1;
}


/* ==========================================================================
   7. TABOVI DETALJI / UREDI
   ========================================================================== */

body:has(.hp-menu--listing-manage) :is(
  .hp-menu--listing-manage,
  .hp-page__content > .hp-menu,
  .hp-page__content > nav
),
body:has(.hp-tabs__menu) .hp-tabs__menu {
  display: block !important;
  width: auto !important;
  margin: 0 0 28px !important;
  padding: 0 !important;
  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}

body:has(.hp-menu--listing-manage) .hp-menu--listing-manage ul,
body:has(.hp-tabs__menu) .hp-tabs__menu ul {
  display: flex !important;
  flex-wrap: wrap;
  gap: 8px;
  width: auto !important;
  margin: 0 !important;
  padding: 0 !important;
  background: transparent !important;
  border: 0 !important;
  list-style: none !important;
  box-shadow: none !important;
}

body:has(.hp-menu--listing-manage) .hp-menu--listing-manage li,
body:has(.hp-tabs__menu) .hp-tabs__menu li {
  position: relative;
  display: block;
  margin: 0 !important;
  padding: 0 !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}

body:has(.hp-menu--listing-manage) .hp-menu--listing-manage :is(li, a, span)::before,
body:has(.hp-menu--listing-manage) .hp-menu--listing-manage :is(li, a, span)::after,
body:has(.hp-tabs__menu) .hp-tabs__menu :is(li, a, span)::before,
body:has(.hp-tabs__menu) .hp-tabs__menu :is(li, a, span)::after {
  display: none !important;
  width: 0 !important;
  height: 0 !important;
  content: none !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}

body:has(.hp-menu--listing-manage) .hp-menu--listing-manage a,
body:has(.hp-tabs__menu) .hp-tabs__menu a {
  position: relative;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 10px 17px !important;
  background: rgba(255, 255, 255, .035) !important;
  border: 1px solid var(--ribo-border) !important;
  border-radius: 10px !important;
  color: var(--ribo-text) !important;
  font-weight: 800;
  line-height: 1.2;
  text-decoration: none !important;
  box-shadow: none !important;
}

body:has(.hp-menu--listing-manage) .hp-menu--listing-manage a:hover,
body:has(.hp-tabs__menu) .hp-tabs__menu a:hover {
  background: rgba(34, 197, 94, .09) !important;
  border-color: rgba(34, 197, 94, .28) !important;
  color: var(--ribo-green) !important;
}

body:has(.hp-menu--listing-manage) .hp-menu--listing-manage :is(
  .current-menu-item,
  .hp-menu__item--current,
  .hp-menu__item--active
) > a,
body:has(.hp-tabs__menu) .hp-tabs__menu :is(
  .hp-tabs__item--active,
  .current-menu-item
) > a {
  background: rgba(34, 197, 94, .15) !important;
  border-color: rgba(34, 197, 94, .42) !important;
  color: var(--ribo-green) !important;
  box-shadow: none !important;
}




/* ==========================================================================
   7A. NASLOV DODAVANJA / UREĐIVANJA OGLASA — ZELENA FADE CRTA
   ========================================================================== */

body.hp-template--listing-submit-details-page .hp-page__title,
body:has(.hp-form--listing-update) .hp-page__title {
  position: relative;
  padding-top: 24px;
}

body.hp-template--listing-submit-details-page .hp-page__title::before,
body:has(.hp-form--listing-update) .hp-page__title::before {
  position: absolute;
  top: 0;
  left: 0;

  display: block;

  width: clamp(48px, 7vw, 78px);
  height: 4px;

  content: "";

  background: linear-gradient(
    90deg,
    #22c55e 0%,
    rgba(34, 197, 94, .72) 52%,
    rgba(34, 197, 94, 0) 100%
  );

  border: 0;
  border-radius: 999px;

  box-shadow:
    0 0 14px rgba(34, 197, 94, .22);
}

@media (max-width: 767px) {

  body.hp-template--listing-submit-details-page .hp-page__title,
  body:has(.hp-form--listing-update) .hp-page__title {
    padding-top: 20px;
  }

  body.hp-template--listing-submit-details-page .hp-page__title::before,
  body:has(.hp-form--listing-update) .hp-page__title::before {
    width: 56px;
    height: 3px;
  }
}




/* ==========================================================================
   7B. LOGIN STRANICA — NASLOV I ZELENA FADE CRTA
   Puna stranica prijave; popup prijavu ne mijenja.
   ========================================================================== */

body:has(.hp-page__content > .hp-form--user-login) .hp-page__title,
body:has(.hp-page__content .hp-form--user-login) .hp-page__title {
  position: relative;
  padding-top: 24px;
  color: #f8fafc !important;
  -webkit-text-fill-color: #f8fafc !important;
  font-weight: 800;
  line-height: 1.2;
}

body:has(.hp-page__content > .hp-form--user-login) .hp-page__title::before,
body:has(.hp-page__content .hp-form--user-login) .hp-page__title::before {
  position: absolute;
  top: 0;
  left: 0;

  display: block;

  width: clamp(48px, 7vw, 78px);
  height: 4px;

  content: "";

  background: linear-gradient(
    90deg,
    #22c55e 0%,
    rgba(34, 197, 94, .72) 52%,
    rgba(34, 197, 94, 0) 100%
  ) !important;

  border: 0 !important;
  border-radius: 999px !important;

  box-shadow:
    0 0 14px rgba(34, 197, 94, .22) !important;
}

@media (max-width: 767px) {
  body:has(.hp-page__content > .hp-form--user-login) .hp-page__title,
  body:has(.hp-page__content .hp-form--user-login) .hp-page__title {
    padding-top: 20px;
    color: #f8fafc !important;
    -webkit-text-fill-color: #f8fafc !important;
  }

  body:has(.hp-page__content > .hp-form--user-login) .hp-page__title::before,
  body:has(.hp-page__content .hp-form--user-login) .hp-page__title::before {
    width: 56px;
    height: 3px;
  }
}


/* ==========================================================================
   8. FORME — RAČUN, PROFIL I UREĐIVANJE OGLASA
   ========================================================================== */

body:has(.hp-menu--user-account) .hp-form,
body:has(.hp-form--user-update) .hp-form,
body:has(.hp-form--listing-update) .hp-form {
  color: var(--ribo-text);
}

body:has(.hp-menu--user-account) .hp-form__fields,
body:has(.hp-form--user-update) .hp-form__fields,
body:has(.hp-form--listing-update) .hp-form__fields {
  display: grid;
  gap: 20px;
}

body:has(.hp-menu--user-account) .hp-form__field,
body:has(.hp-form--user-update) .hp-form__field,
body:has(.hp-form--listing-update) .hp-form__field {
  min-width: 0;
  margin: 0;
}

body:has(.hp-menu--user-account) .hp-form__label,
body:has(.hp-form--user-update) .hp-form__label,
body:has(.hp-form--listing-update) .hp-form__label {
  display: block;
  margin: 0 0 8px;
  color: var(--ribo-text);
  font-weight: 800;
  line-height: 1.35;
}

body:has(.hp-menu--user-account) .hp-form__description,
body:has(.hp-form--user-update) .hp-form__description,
body:has(.hp-form--listing-update) .hp-form__description {
  margin-top: 7px;
  color: var(--ribo-muted);
  font-size: 14px;
  line-height: 1.5;
}

body:has(.hp-menu--user-account) .hp-form :is(
  input:not([type="checkbox"]):not([type="radio"]):not([type="submit"]):not([type="button"]):not([type="file"]),
  textarea,
  select
),
body:has(.hp-form--user-update) .hp-form :is(
  input:not([type="checkbox"]):not([type="radio"]):not([type="submit"]):not([type="button"]):not([type="file"]),
  textarea,
  select
),
body:has(.hp-form--listing-update) .hp-form :is(
  input:not([type="checkbox"]):not([type="radio"]):not([type="submit"]):not([type="button"]):not([type="file"]),
  textarea,
  select
) {
  width: 100%;
  min-height: 46px;
  padding: 11px 14px;
  background: rgba(255, 255, 255, .08);
  border: 1px solid rgba(34, 197, 94, .24);
  border-radius: 10px;
  color: #fff;
  -webkit-text-fill-color: #fff;
  caret-color: #fff;
  box-shadow: none;
  outline: 0;
  transition:
    background-color .2s ease,
    border-color .2s ease,
    box-shadow .2s ease;
}

body:has(.hp-menu--user-account) .hp-form textarea,
body:has(.hp-form--user-update) .hp-form textarea,
body:has(.hp-form--listing-update) .hp-form textarea {
  min-height: 150px;
  resize: vertical;
}

body:has(.hp-menu--user-account) .hp-form :is(
  input:not([type="checkbox"]):not([type="radio"]):not([type="submit"]):not([type="button"]):not([type="file"]),
  textarea,
  select
):hover,
body:has(.hp-form--user-update) .hp-form :is(
  input:not([type="checkbox"]):not([type="radio"]):not([type="submit"]):not([type="button"]):not([type="file"]),
  textarea,
  select
):hover,
body:has(.hp-form--listing-update) .hp-form :is(
  input:not([type="checkbox"]):not([type="radio"]):not([type="submit"]):not([type="button"]):not([type="file"]),
  textarea,
  select
):hover {
  border-color: rgba(34, 197, 94, .42);
}

body:has(.hp-menu--user-account) .hp-form :is(
  input:not([type="checkbox"]):not([type="radio"]):not([type="submit"]):not([type="button"]):not([type="file"]),
  textarea,
  select
):focus,
body:has(.hp-form--user-update) .hp-form :is(
  input:not([type="checkbox"]):not([type="radio"]):not([type="submit"]):not([type="button"]):not([type="file"]),
  textarea,
  select
):focus,
body:has(.hp-form--listing-update) .hp-form :is(
  input:not([type="checkbox"]):not([type="radio"]):not([type="submit"]):not([type="button"]):not([type="file"]),
  textarea,
  select
):focus {
  background: rgba(255, 255, 255, .1);
  border-color: var(--ribo-green);
  box-shadow: 0 0 0 3px rgba(34, 197, 94, .13);
}

body:has(.hp-menu--user-account) .hp-form :is(input, textarea)::placeholder,
body:has(.hp-form--user-update) .hp-form :is(input, textarea)::placeholder,
body:has(.hp-form--listing-update) .hp-form :is(input, textarea)::placeholder {
  color: rgba(255, 255, 255, .46);
  -webkit-text-fill-color: rgba(255, 255, 255, .46);
  opacity: 1;
}

body:has(.hp-menu--user-account) .hp-form select option,
body:has(.hp-form--user-update) .hp-form select option,
body:has(.hp-form--listing-update) .hp-form select option {
  background: var(--ribo-card);
  color: var(--ribo-text);
}


/* ==========================================================================
   11. DATOTEKE I GALERIJA OGLASA
   ========================================================================== */

body:has(.hp-form--listing-update) :is(
  .hp-form__field--attachment-upload,
  .hp-form__field--image-upload,
  .hp-field--attachment-upload,
  .hp-field--image-upload,
  .hp-field__attachments,
  .hp-field__images,
  .hp-listing__images
),
body:has(.hp-form--listing-update) :is(
  .hp-form__field,
  .hp-field
):has(
  .hp-field__attachments,
  .hp-field__images,
  input[type="file"]
) {
  color: var(--ribo-text);
  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}

body:has(.hp-form--listing-update) :is(
  .hp-form__field--attachment-upload,
  .hp-form__field--image-upload,
  .hp-field--attachment-upload,
  .hp-field--image-upload,
  .hp-field__attachments,
  .hp-field__images,
  .hp-listing__images
),
body:has(.hp-form--listing-update) :is(
  .hp-form__field,
  .hp-field
):has(
  .hp-field__attachments,
  .hp-field__images,
  input[type="file"]
) > :is(div, ul) {
  min-height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}

body:has(.hp-form--listing-update) :is(
  .hp-field__attachments,
  .hp-field__images,
  .hp-listing__images
) {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

body:has(.hp-form--listing-update) input[type="file"] {
  max-width: 100%;
  color: var(--ribo-text);
}

body:has(.hp-form--listing-update) input[type="file"]::file-selector-button {
  margin-right: 12px;
  padding: 9px 14px;
  background: var(--ribo-green);
  border: 1px solid var(--ribo-green);
  border-radius: 8px;
  color: #07130b;
  font-weight: 800;
  cursor: pointer;
}

body:has(.hp-form--listing-update) :is(
  .hp-listing__images,
  .hp-field__attachments,
  .hp-field__images
) img {
  width: 110px;
  height: 82px;
  object-fit: cover;
  border: 1px solid var(--ribo-border);
  border-radius: 10px;
}


/* ==========================================================================
   12. GUMBI I AKCIJE FORMI
   ========================================================================== */

body:has(.hp-menu--user-account) .hp-form__footer,
body:has(.hp-form--user-update) .hp-form__footer,
body:has(.hp-form--listing-update) .hp-form__footer {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  margin-top: 24px;
}

body:has(.hp-menu--user-account) .hp-form :is(
  button,
  input[type="submit"],
  input[type="button"],
  .button
),
body:has(.hp-form--user-update) .hp-form :is(
  button,
  input[type="submit"],
  input[type="button"],
  .button
),
body:has(.hp-form--listing-update) .hp-form :is(
  button,
  input[type="submit"],
  input[type="button"],
  .button
) {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 11px 20px;
  background: var(--ribo-green);
  border: 1px solid var(--ribo-green);
  border-radius: 10px;
  color: #07130b;
  -webkit-text-fill-color: #07130b;
  font-weight: 900;
  line-height: 1.2;
  cursor: pointer;
  box-shadow: none;
  transition:
    background-color .2s ease,
    border-color .2s ease,
    color .2s ease,
    transform .2s ease,
    box-shadow .2s ease;
}

body:has(.hp-menu--user-account) .hp-form :is(
  button,
  input[type="submit"],
  input[type="button"],
  .button
):hover,
body:has(.hp-form--user-update) .hp-form :is(
  button,
  input[type="submit"],
  input[type="button"],
  .button
):hover,
body:has(.hp-form--listing-update) .hp-form :is(
  button,
  input[type="submit"],
  input[type="button"],
  .button
):hover {
  background: #4ade80;
  border-color: #4ade80;
  color: #07130b;
  -webkit-text-fill-color: #07130b;
  transform: translateY(-1px);
  box-shadow: 0 8px 22px rgba(34, 197, 94, .18);
}

body:has(.hp-menu--user-account) .hp-form :is(
  button,
  input[type="submit"],
  input[type="button"],
  .button
):focus-visible,
body:has(.hp-form--user-update) .hp-form :is(
  button,
  input[type="submit"],
  input[type="button"],
  .button
):focus-visible,
body:has(.hp-form--listing-update) .hp-form :is(
  button,
  input[type="submit"],
  input[type="button"],
  .button
):focus-visible {
  outline: 3px solid rgba(34, 197, 94, .28);
  outline-offset: 3px;
}


/* ==========================================================================
   13. PORUKE, GREŠKE I OBAVIJESTI
   ========================================================================== */

body:has(.hp-menu--user-account) :is(
  .hp-message,
  .woocommerce-message,
  .woocommerce-info,
  .woocommerce-error
),
body:has(.hp-form--user-update) :is(
  .hp-message,
  .woocommerce-message,
  .woocommerce-info,
  .woocommerce-error
),
body:has(.hp-form--listing-update) :is(
  .hp-message,
  .woocommerce-message,
  .woocommerce-info,
  .woocommerce-error
) {
  margin: 0 0 22px;
  padding: 14px 16px;
  background: var(--ribo-card);
  border: 1px solid var(--ribo-border);
  border-left: 4px solid var(--ribo-green);
  border-radius: 10px;
  color: var(--ribo-text);
}

body:has(.hp-menu--user-account) :is(
  .hp-form__error,
  .hp-field__error,
  .hp-message--error
),
body:has(.hp-form--user-update) :is(
  .hp-form__error,
  .hp-field__error,
  .hp-message--error
),
body:has(.hp-form--listing-update) :is(
  .hp-form__error,
  .hp-field__error,
  .hp-message--error
) {
  color: #fca5a5;
}

body:has(.hp-menu--user-account) :is(
  .hp-form__field--error input,
  .hp-form__field--error textarea,
  .hp-form__field--error select
),
body:has(.hp-form--user-update) :is(
  .hp-form__field--error input,
  .hp-form__field--error textarea,
  .hp-form__field--error select
),
body:has(.hp-form--listing-update) :is(
  .hp-form__field--error input,
  .hp-form__field--error textarea,
  .hp-form__field--error select
) {
  border-color: #ef4444;
}


/* ==========================================================================
   14. PROFIL KORISNIKA
   ========================================================================== */

body:has(.hp-menu--user-account) :is(
  .hp-user--view-page,
  .hp-user--view-block,
  .hp-user__summary,
  .hp-profile
) {
  color: var(--ribo-text);
}

body:has(.hp-menu--user-account) :is(
  .hp-user--view-block,
  .hp-user__summary,
  .hp-profile
) {
  padding: 22px;
  background: var(--ribo-card);
  border: 1px solid var(--ribo-border);
  border-radius: var(--ribo-radius-lg);
  box-shadow: var(--ribo-shadow);
}

body:has(.hp-menu--user-account) :is(
  .hp-user__name,
  .hp-user__name a
) {
  color: var(--ribo-text);
}

body:has(.hp-menu--user-account) :is(
  .hp-user__registered-date,
  .hp-user__details,
  .hp-user__description
) {
  color: var(--ribo-muted);
}

body:has(.hp-menu--user-account) :is(
  .hp-user__image,
  .hp-user__avatar
) img {
  display: block;
  border: 2px solid rgba(34, 197, 94, .4);
  border-radius: 50%;
}


/* ==========================================================================
   15. VENDOR PROFIL
   ========================================================================== */

body.hp-template--vendor-view-page .hp-vendor--view-page,
body:has(.hp-vendor--view-page) .hp-vendor--view-page {
  color: var(--ribo-text);
}

body.hp-template--vendor-view-page :is(
  .hp-vendor--view-block,
  .hp-vendor__summary,
  .hp-widget--vendor
),
body:has(.hp-vendor--view-page) :is(
  .hp-vendor--view-block,
  .hp-vendor__summary,
  .hp-widget--vendor
) {
  padding: 22px;
  background: var(--ribo-card);
  border: 1px solid var(--ribo-border);
  border-radius: var(--ribo-radius-lg);
  box-shadow: var(--ribo-shadow);
  color: var(--ribo-text);
}

body.hp-template--vendor-view-page :is(
  .hp-vendor__name,
  .hp-vendor__name a
),
body:has(.hp-vendor--view-page) :is(
  .hp-vendor__name,
  .hp-vendor__name a
) {
  color: var(--ribo-text);
}

body.hp-template--vendor-view-page :is(
  .hp-vendor__registered-date,
  .hp-vendor__details,
  .hp-vendor__description
),
body:has(.hp-vendor--view-page) :is(
  .hp-vendor__registered-date,
  .hp-vendor__details,
  .hp-vendor__description
) {
  color: var(--ribo-muted);
}

body.hp-template--vendor-view-page :is(
  .hp-vendor__image,
  .hp-vendor__avatar
) img,
body:has(.hp-vendor--view-page) :is(
  .hp-vendor__image,
  .hp-vendor__avatar
) img {
  display: block;
  border: 2px solid rgba(34, 197, 94, .4);
  border-radius: 50%;
}

body.hp-template--vendor-view-page .hp-vendor__actions,
body:has(.hp-vendor--view-page) .hp-vendor__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}


/* ==========================================================================
   16. IKONE
   ========================================================================== */

body:has(.hp-menu--user-account) .hp-page__content :is(
  i,
  .hp-icon,
  [class^="fa-"],
  [class*=" fa-"]
),
body:has(.hp-form--user-update) .hp-page :is(
  i,
  .hp-icon,
  [class^="fa-"],
  [class*=" fa-"]
),
body:has(.hp-form--listing-update) .hp-page :is(
  i,
  .hp-icon,
  [class^="fa-"],
  [class*=" fa-"]
),
body.hp-template--vendor-view-page .hp-page :is(
  i,
  .hp-icon,
  [class^="fa-"],
  [class*=" fa-"]
),
body:has(.hp-vendor--view-page) .hp-page :is(
  i,
  .hp-icon,
  [class^="fa-"],
  [class*=" fa-"]
) {
  color: var(--ribo-green);
  opacity: 1;
  transition: color .2s ease, opacity .2s ease;
}

body:has(.hp-menu--user-account) .hp-page a:hover :is(
  i,
  .hp-icon,
  [class^="fa-"],
  [class*=" fa-"]
),
body:has(.hp-form--user-update) .hp-page a:hover :is(
  i,
  .hp-icon,
  [class^="fa-"],
  [class*=" fa-"]
),
body:has(.hp-form--listing-update) .hp-page a:hover :is(
  i,
  .hp-icon,
  [class^="fa-"],
  [class*=" fa-"]
),
body.hp-template--vendor-view-page .hp-page a:hover :is(
  i,
  .hp-icon,
  [class^="fa-"],
  [class*=" fa-"]
),
body:has(.hp-vendor--view-page) .hp-page a:hover :is(
  i,
  .hp-icon,
  [class^="fa-"],
  [class*=" fa-"]
) {
  color: #4ade80;
}


/* ==========================================================================
   17. PRAZNO STANJE I PAGINACIJA
   ========================================================================== */

body:has(.hp-menu--user-account) :is(
  .hp-no-results,
  .hp-listings__empty,
  .hp-page__empty
) {
  padding: 28px;
  background: var(--ribo-card);
  border: 1px solid var(--ribo-border);
  border-radius: var(--ribo-radius-lg);
  color: var(--ribo-text);
  text-align: center;
  box-shadow: var(--ribo-shadow);
}

body:has(.hp-menu--user-account) .pagination {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 24px;
}

body:has(.hp-menu--user-account) .pagination :is(
  a,
  span
) {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  min-height: 40px;
  padding: 8px 11px;
  background: var(--ribo-card);
  border: 1px solid var(--ribo-border);
  border-radius: 9px;
  color: var(--ribo-text);
}

body:has(.hp-menu--user-account) .pagination :is(
  a:hover,
  .current
) {
  background: rgba(34, 197, 94, .14);
  border-color: rgba(34, 197, 94, .42);
  color: var(--ribo-green);
}


/* ==========================================================================
   18. TABLET
   ========================================================================== */

@media (max-width: 1024px) {
  body:has(.hp-menu--user-account) .hp-page__sidebar {
    padding-right: 16px;
  }

  body:has(.hp-menu--user-account) .hp-page__content {
    padding-left: 16px;
  }

  body:has(.hp-menu--user-account) .hp-page__content table.hp-listings th,
  body:has(.hp-menu--user-account) .hp-page__content table.hp-listings td {
    padding: 15px 13px;
  }

  body:has(.hp-menu--user-account) .hp-page__content table.hp-listings th:first-child,
  body:has(.hp-menu--user-account) .hp-page__content table.hp-listings td:first-child {
    padding-left: 18px;
  }

  body:has(.hp-menu--user-account) .hp-page__content table.hp-listings th:last-child,
  body:has(.hp-menu--user-account) .hp-page__content table.hp-listings td:last-child {
    padding-right: 18px;
  }

  body:has(.hp-menu--user-account) .hp-page__content table.hp-listings img {
    width: 64px;
    height: 48px;
  }
}


/* ==========================================================================
   19. MOBILE
   ========================================================================== */

@media (max-width: 767px) {
  body:has(.hp-menu--user-account) .site-content,
  body:has(.hp-account) .site-content,
  body:has(.hp-form--user-update) .site-content,
  body:has(.hp-form--listing-update) .site-content,
  body.hp-template--vendor-view-page .site-content,
  body:has(.hp-vendor--view-page) .site-content {
    min-height: calc(100vh - 170px);
  }

  body:has(.hp-menu--user-account) .hp-page__sidebar,
  body:has(.hp-menu--user-account) .hp-page__content {
    width: 100%;
    padding-right: 0;
    padding-left: 0;
  }

  body:has(.hp-menu--user-account) .hp-page__sidebar {
    margin-bottom: 24px;
  }

  body:has(.hp-menu--user-account) .hp-page__title,
  body:has(.hp-account) .hp-page__title,
  body:has(.hp-form--user-update) .hp-page__title,
  body:has(.hp-form--listing-update) .hp-page__title,
  body.hp-template--vendor-view-page .hp-page__title,
  body:has(.hp-vendor--view-page) .hp-page__title {
    margin-bottom: 22px;
    font-size: clamp(26px, 8vw, 34px);
  }

  body:has(.hp-menu--user-account) .hp-page__sidebar .hp-menu--user-account {
    padding: 12px;
  }

  body:has(.hp-menu--user-account) .hp-page__sidebar .hp-menu--user-account a {
    min-height: 44px;
    padding: 10px 38px 10px 14px;
  }

  body:has(.hp-menu--user-account) .hp-page__content :is(
    .hp-menu--listing-manage,
    .hp-menu--user-profile,
    .hp-tabs__menu,
    .hp-menu--tabs
  ) {
    gap: 6px;
    padding: 7px;
  }

  body:has(.hp-menu--user-account) .hp-page__content :is(
    .hp-menu--listing-manage,
    .hp-menu--user-profile,
    .hp-tabs__menu,
    .hp-menu--tabs
  ) ul {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
    gap: 6px;
  }

  body:has(.hp-menu--user-account) .hp-page__content :is(
    .hp-menu--listing-manage,
    .hp-menu--user-profile,
    .hp-tabs__menu,
    .hp-menu--tabs
  ) a {
    width: 100%;
    min-height: 40px;
    padding: 9px 12px;
  }

  body:has(.hp-menu--user-account) .hp-page__content table.hp-listings {
    display: block;
    overflow: visible;
    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
  }

  body:has(.hp-menu--user-account) .hp-page__content table.hp-listings thead {
    display: none;
  }

  body:has(.hp-menu--user-account) .hp-page__content table.hp-listings tbody {
    display: grid;
    gap: 14px;
  }

  body:has(.hp-menu--user-account) .hp-page__content table.hp-listings tr {
    display: grid;
    grid-template-columns: 82px minmax(0, 1fr);
    gap: 10px 14px;
    padding: 16px;
    background: var(--ribo-card);
    border: 1px solid var(--ribo-border);
    border-radius: var(--ribo-radius-lg);
    box-shadow: var(--ribo-shadow);
  }

  body:has(.hp-menu--user-account) .hp-page__content table.hp-listings tbody tr:hover {
    background: var(--ribo-card);
  }

  body:has(.hp-menu--user-account) .hp-page__content table.hp-listings td,
  body:has(.hp-menu--user-account) .hp-page__content table.hp-listings td:first-child,
  body:has(.hp-menu--user-account) .hp-page__content table.hp-listings td:last-child {
    display: block;
    min-width: 0;
    padding: 0;
    border: 0;
  }

  body:has(.hp-menu--user-account) .hp-page__content table.hp-listings td:first-child {
    grid-row: 1 / span 3;
  }

  body:has(.hp-menu--user-account) .hp-page__content table.hp-listings td:not(:first-child) {
    grid-column: 2;
  }

  body:has(.hp-menu--user-account) .hp-page__content table.hp-listings img {
    width: 82px;
    height: 64px;
    border-radius: 9px;
  }

  body:has(.hp-menu--user-account) .hp-page__content table.hp-listings :is(
    .hp-listing__actions,
    .hp-listing__action
  ) {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    white-space: normal;
  }

  body:has(.hp-menu--user-account) .hp-form__fields,
  body:has(.hp-form--user-update) .hp-form__fields,
  body:has(.hp-form--listing-update) .hp-form__fields {
    gap: 17px;
  }

  body:has(.hp-menu--user-account) .hp-form :is(
    input:not([type="checkbox"]):not([type="radio"]):not([type="submit"]):not([type="button"]):not([type="file"]),
    textarea,
    select
  ),
  body:has(.hp-form--user-update) .hp-form :is(
    input:not([type="checkbox"]):not([type="radio"]):not([type="submit"]):not([type="button"]):not([type="file"]),
    textarea,
    select
  ),
  body:has(.hp-form--listing-update) .hp-form :is(
    input:not([type="checkbox"]):not([type="radio"]):not([type="submit"]):not([type="button"]):not([type="file"]),
    textarea,
    select
  ) {
    min-height: 48px;
    font-size: 16px;
  }

  body:has(.hp-menu--user-account) .hp-form__footer,
  body:has(.hp-form--user-update) .hp-form__footer,
  body:has(.hp-form--listing-update) .hp-form__footer {
    align-items: stretch;
  }

  body:has(.hp-menu--user-account) .hp-form__footer :is(
    button,
    input[type="submit"],
    input[type="button"],
    .button
  ),
  body:has(.hp-form--user-update) .hp-form__footer :is(
    button,
    input[type="submit"],
    input[type="button"],
    .button
  ),
  body:has(.hp-form--listing-update) .hp-form__footer :is(
    button,
    input[type="submit"],
    input[type="button"],
    .button
  ) {
    width: 100%;
  }

  body:has(.hp-menu--user-account) :is(
    .hp-user--view-block,
    .hp-user__summary,
    .hp-profile
  ),
  body.hp-template--vendor-view-page :is(
    .hp-vendor--view-block,
    .hp-vendor__summary,
    .hp-widget--vendor
  ),
  body:has(.hp-vendor--view-page) :is(
    .hp-vendor--view-block,
    .hp-vendor__summary,
    .hp-widget--vendor
  ) {
    padding: 18px;
  }
}


/* ==========================================================================
   20. MALI MOBITELI
   ========================================================================== */

@media (max-width: 479px) {
  body:has(.hp-menu--user-account) .hp-page__content :is(
    .hp-menu--listing-manage,
    .hp-menu--user-profile,
    .hp-tabs__menu,
    .hp-menu--tabs
  ) ul {
    grid-template-columns: 1fr;
  }

  body:has(.hp-menu--user-account) .hp-page__content table.hp-listings tr {
    grid-template-columns: 70px minmax(0, 1fr);
    gap: 9px 12px;
    padding: 14px;
  }

  body:has(.hp-menu--user-account) .hp-page__content table.hp-listings img {
    width: 70px;
    height: 56px;
  }

  body:has(.hp-menu--user-account) .hp-page__content :is(
    .hp-account__actions,
    .hp-user__actions,
    .hp-listing__actions,
    .hp-vendor__actions
  ) {
    align-items: flex-start;
    flex-direction: column;
  }
}


/* ==========================================================================
   20A. AKCIJE OGLASA — SAKRIJ I OBRIŠI
   ========================================================================== */

body:has(.hp-form--listing-update) .hp-listing__actions--secondary {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  width: min(100%, 430px);
  margin: 18px 0 34px;
}

body:has(.hp-form--listing-update) .hp-listing__actions--secondary > .hp-listing__action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  width: 100%;
  min-width: 0;
  min-height: 48px;
  margin: 0;
  padding: 11px 16px;
  background: rgba(255, 255, 255, .035);
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 11px;
  color: var(--ribo-text);
  -webkit-text-fill-color: var(--ribo-text);
  font-size: 14px;
  font-weight: 800;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  box-shadow: none;
  transition: background-color .2s ease, border-color .2s ease, color .2s ease, transform .2s ease, box-shadow .2s ease;
}

body:has(.hp-form--listing-update) .hp-listing__actions--secondary > .hp-listing__action :is(i, .hp-icon) {
  flex: 0 0 auto;
  margin: 0;
  color: inherit;
  font-size: 17px;
  line-height: 1;
}

body:has(.hp-form--listing-update) .hp-listing__action--hide {
  background: rgba(34, 197, 94, .055);
  border-color: rgba(34, 197, 94, .28);
  color: var(--ribo-green);
  -webkit-text-fill-color: var(--ribo-green);
}

body:has(.hp-form--listing-update) .hp-listing__action--hide:hover,
body:has(.hp-form--listing-update) .hp-listing__action--hide:focus-visible {
  background: rgba(34, 197, 94, .13);
  border-color: rgba(34, 197, 94, .58);
  color: #4ade80;
  -webkit-text-fill-color: #4ade80;
  transform: translateY(-1px);
  box-shadow: 0 9px 24px rgba(34, 197, 94, .11);
}

body:has(.hp-form--listing-update) .hp-listing__action--hide > span {
  font-size: 0;
}

body:has(.hp-form--listing-update) .hp-listing__action--hide > span::after {
  content: "Sakrij oglas";
  font-size: 14px;
  font-weight: 800;
}

body:has(.hp-form--listing-update) .hp-listing__action--hide[data-caption="Hide"] > span::after {
  content: "Prikaži oglas";
}

body:has(.hp-form--listing-update) .hp-listing__action--delete {
  background: rgba(239, 68, 68, .045);
  border-color: rgba(239, 68, 68, .25);
  color: #fca5a5;
  -webkit-text-fill-color: #fca5a5;
}

body:has(.hp-form--listing-update) .hp-listing__action--delete:hover,
body:has(.hp-form--listing-update) .hp-listing__action--delete:focus-visible {
  background: rgba(239, 68, 68, .12);
  border-color: rgba(239, 68, 68, .55);
  color: #fecaca;
  -webkit-text-fill-color: #fecaca;
  transform: translateY(-1px);
  box-shadow: 0 9px 24px rgba(239, 68, 68, .1);
}

body:has(.hp-form--listing-update) .hp-listing__actions--secondary > .hp-listing__action:focus-visible {
  outline: 3px solid rgba(34, 197, 94, .22);
  outline-offset: 3px;
}

/* ==========================================================================
   20B. MODAL ZA BRISANJE OGLASA
   ========================================================================== */

body:has(.hp-form--listing-update) #listing_delete_modal {
  color: var(--ribo-text);
}

body:has(.hp-form--listing-update) .fancybox-content:has(.hp-form--listing-delete),
body:has(.hp-form--listing-update) .fancybox-content:has(#listing_delete_modal) {
  width: min(92vw, 460px) !important;
  max-width: 460px !important;
  padding: 30px !important;
  background: linear-gradient(180deg, rgba(255, 255, 255, .025), transparent 42%), #0d1712 !important;
  border: 1px solid rgba(239, 68, 68, .3) !important;
  border-radius: 18px !important;
  color: var(--ribo-text) !important;
  box-shadow: 0 28px 70px rgba(0, 0, 0, .5), inset 0 1px 0 rgba(255, 255, 255, .025) !important;
}

body:has(.hp-form--listing-update) #listing_delete_modal .hp-modal__title {
  position: relative;
  margin: 0 0 18px;
  padding-top: 18px;
  color: #ffffff;
  font-size: 25px;
  font-weight: 800;
  line-height: 1.2;
}

body:has(.hp-form--listing-update) #listing_delete_modal .hp-modal__title::before {
  position: absolute;
  top: 0;
  left: 0;
  width: 58px;
  height: 3px;
  content: "";
  background: linear-gradient(90deg, #ef4444, rgba(239, 68, 68, .65), transparent);
  border-radius: 999px;
  box-shadow: 0 0 12px rgba(239, 68, 68, .18);
}

body:has(.hp-form--listing-update) .hp-form--listing-delete .hp-form__description {
  margin: 0;
  color: rgba(255, 255, 255, .7);
  font-size: 0;
  line-height: 1.65;
}

body:has(.hp-form--listing-update) .hp-form--listing-delete .hp-form__description::after {
  content: "Jeste li sigurni da želite trajno izbrisati ovaj oglas? Ovu radnju nije moguće poništiti.";
  font-size: 15px;
  line-height: 1.65;
}

body:has(.hp-form--listing-update) .hp-form--listing-delete .hp-form__footer {
  margin-top: 22px;
}

body:has(.hp-form--listing-update) .hp-form--listing-delete .hp-form__button,
body:has(.hp-form--listing-update) .hp-form--listing-delete button[type="submit"] {
  width: 100%;
  min-height: 50px;
  background: linear-gradient(135deg, #dc2626, #ef4444) !important;
  border-color: #ef4444 !important;
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
  box-shadow: 0 12px 26px rgba(239, 68, 68, .16);
}

body:has(.hp-form--listing-update) .hp-form--listing-delete .hp-form__button:hover,
body:has(.hp-form--listing-update) .hp-form--listing-delete button[type="submit"]:hover {
  background: #f05252 !important;
  border-color: #f05252 !important;
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
  box-shadow: 0 12px 28px rgba(239, 68, 68, .22);
}

@media (max-width: 767px) {
  body:has(.hp-form--listing-update) .hp-listing__actions--secondary {
    width: 100%;
    max-width: 100%;
    margin: 12px 0 28px;
  }

  body:has(.hp-form--listing-update) .hp-listing__actions--secondary > .hp-listing__action {
    min-height: 50px;
    padding: 11px 10px;
    font-size: 14px;
  }

  body:has(.hp-form--listing-update) .fancybox-content:has(.hp-form--listing-delete),
  body:has(.hp-form--listing-update) .fancybox-content:has(#listing_delete_modal) {
    width: calc(100vw - 20px) !important;
    padding: 22px 17px !important;
    border-radius: 16px !important;
  }

  body:has(.hp-form--listing-update) #listing_delete_modal .hp-modal__title {
    font-size: 23px;
  }
}

@media (max-width: 359px) {
  body:has(.hp-form--listing-update) .hp-listing__actions--secondary {
    grid-template-columns: 1fr;
  }
}


/* ==========================================================================
   21. PRISTUPAČNOST I SMANJENE ANIMACIJE
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {
  body:has(.hp-menu--user-account) *,
  body:has(.hp-account) *,
  body:has(.hp-form--user-update) *,
  body:has(.hp-form--listing-update) *,
  body.hp-template--vendor-view-page *,
  body:has(.hp-vendor--view-page) * {
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
  }
}


/* ==========================================================================
   22. PROFILNI DROPDOWN U HEADERU
   ========================================================================== */
.site-header .hp-menu--user-account,
.site-header .hp-menu--user-account ul,
.site-header .hp-menu__items--user-account,
.site-header .hp-menu__item--user-account > ul {
  background: #0d1712 !important;
  border: 1px solid rgba(34, 197, 94, .24) !important;
  border-radius: 12px !important;
  box-shadow: 0 18px 42px rgba(0, 0, 0, .38) !important;
}

.site-header .hp-menu--user-account a,
.site-header .hp-menu__items--user-account a,
.site-header .hp-menu__item--user-account > ul a {
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
  background: transparent !important;
}

.site-header .hp-menu--user-account a:hover,
.site-header .hp-menu__items--user-account a:hover,
.site-header .hp-menu__item--user-account > ul a:hover {
  background: rgba(34, 197, 94, .11) !important;
  color: var(--ribo-green) !important;
  -webkit-text-fill-color: var(--ribo-green) !important;
}

/* ========================================
   MOJ RAČUN > OGLASI
   Jednake linije između svih oglasa
======================================== */

body .hp-listings.hp-table {
    border-collapse: collapse !important;
    border-spacing: 0 !important;
}

/* Makni pojedinačne crte iz ćelija */
body .hp-listings.hp-table .hp-listing--edit-block > td {
    border-bottom: 0 !important;
}

/* Jedna kontinuirana crta preko cijelog reda */
body .hp-listings.hp-table .hp-listing--edit-block {
    border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
}

/* Zadnjem retku ne treba donja crta */
body .hp-listings.hp-table .hp-listing--edit-block:last-child {
    border-bottom: 0 !important;
}
/* ========================================================================== 
   21. JAVNI PROFIL PRODAVATELJA — RIBOLOVNO.HR PREMIUM POLISH
   ========================================================================== */
body.hp-template--vendor-view-page .site-content,
body:has(.hp-vendor--view-page) .site-content {
  background:
    radial-gradient(circle at 15% 0%, rgba(25,211,18,.055), transparent 30%),
    var(--ribo-bg);
}

body.hp-template--vendor-view-page .hp-page,
body:has(.hp-vendor--view-page) .hp-page {
  max-width: 1240px;
  margin: 0 auto;
}

body.hp-template--vendor-view-page .hp-page__title,
body:has(.hp-vendor--view-page) .hp-page__title {
  margin-bottom: 28px;
  color: #fff !important;
  font-weight: 800;
  letter-spacing: -.025em;
}

body.hp-template--vendor-view-page :is(.hp-vendor--view-block,.hp-vendor__summary,.hp-widget--vendor),
body:has(.hp-vendor--view-page) :is(.hp-vendor--view-block,.hp-vendor__summary,.hp-widget--vendor) {
  position: relative;
  overflow: hidden;
  padding: 28px;
  border: 1px solid rgba(255,255,255,.09);
  border-radius: 20px;
  background: linear-gradient(145deg, rgba(20,30,25,.98), rgba(9,17,13,.98));
  box-shadow: 0 18px 50px rgba(0,0,0,.24);
}

body.hp-template--vendor-view-page :is(.hp-vendor--view-block,.hp-vendor__summary)::before,
body:has(.hp-vendor--view-page) :is(.hp-vendor--view-block,.hp-vendor__summary)::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(25,211,18,.8), transparent);
  pointer-events: none;
}

body.hp-template--vendor-view-page .hp-vendor__image img,
body.hp-template--vendor-view-page .hp-vendor__avatar img,
body:has(.hp-vendor--view-page) .hp-vendor__image img,
body:has(.hp-vendor--view-page) .hp-vendor__avatar img {
  width: 104px;
  height: 104px;
  object-fit: cover;
  border: 3px solid rgba(25,211,18,.62);
  box-shadow: 0 0 0 6px rgba(25,211,18,.07), 0 12px 30px rgba(0,0,0,.28);
}

body.hp-template--vendor-view-page .hp-vendor__name,
body.hp-template--vendor-view-page .hp-vendor__name a,
body:has(.hp-vendor--view-page) .hp-vendor__name,
body:has(.hp-vendor--view-page) .hp-vendor__name a {
  color: #fff !important;
  font-size: clamp(22px, 2.5vw, 30px);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -.02em;
}

body.hp-template--vendor-view-page .hp-vendor__content,
body:has(.hp-vendor--view-page) .hp-vendor__content {
  min-width: 0;
}

body.hp-template--vendor-view-page .ribo-user-type-badge,
body:has(.hp-vendor--view-page) .ribo-user-type-badge {
  display: table;
  margin: 8px auto 12px;
  padding: 5px 11px;
  border: 1px solid rgba(148,163,184,.25);
  border-radius: 999px;
  background: rgba(148,163,184,.08);
  color: #cbd5e1 !important;
  font-size: 10px;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: .06em;
  text-transform: uppercase;
}

body.hp-template--vendor-view-page :is(.ribo-user-type-badge--trgovina,.ribo-user-type-badge--proizvodac),
body:has(.hp-vendor--view-page) :is(.ribo-user-type-badge--trgovina,.ribo-user-type-badge--proizvodac) {
  border-color: rgba(25,211,18,.32);
  background: rgba(25,211,18,.08);
  color: #19D312 !important;
}

body.hp-template--vendor-view-page .hp-vendor__registered-date,
body:has(.hp-vendor--view-page) .hp-vendor__registered-date {
  margin-top: 8px;
  color: #94a3b8 !important;
  font-size: 13px;
}

body.hp-template--vendor-view-page .hp-vendor__description,
body:has(.hp-vendor--view-page) .hp-vendor__description {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid rgba(255,255,255,.07);
  color: #cbd5e1 !important;
  line-height: 1.7;
}

body.hp-template--vendor-view-page .hp-page__content > :is(h2,h3),
body:has(.hp-vendor--view-page) .hp-page__content > :is(h2,h3) {
  margin: 34px 0 18px;
  color: #fff !important;
  font-weight: 800;
  letter-spacing: -.02em;
}

body.hp-template--vendor-view-page .hp-listings,
body:has(.hp-vendor--view-page) .hp-listings {
  margin-top: 8px;
}

@media (max-width: 767px) {
  body.hp-template--vendor-view-page :is(.hp-vendor--view-block,.hp-vendor__summary,.hp-widget--vendor),
  body:has(.hp-vendor--view-page) :is(.hp-vendor--view-block,.hp-vendor__summary,.hp-widget--vendor) {
    padding: 22px 18px;
    border-radius: 17px;
  }

  body.hp-template--vendor-view-page .hp-vendor__image img,
  body.hp-template--vendor-view-page .hp-vendor__avatar img,
  body:has(.hp-vendor--view-page) .hp-vendor__image img,
  body:has(.hp-vendor--view-page) .hp-vendor__avatar img {
    width: 88px;
    height: 88px;
  }

  body.hp-template--vendor-view-page .hp-vendor__actions,
  body:has(.hp-vendor--view-page) .hp-vendor__actions {
    gap: 9px;
  }
}

/* ========================================================================== 
   22. JAVNI PROFIL PRODAVATELJA — ZAVRŠNI POLISH
   ========================================================================== */
body.hp-template--vendor-view-page .hp-page__title,
body:has(.hp-vendor--view-page) .hp-page__title {
  font-size: clamp(30px, 3.2vw, 42px) !important;
  line-height: 1.08;
}

body.hp-template--vendor-view-page .hp-page__title::before,
body:has(.hp-vendor--view-page) .hp-page__title::before {
  background: #19D312 !important;
  border-color: #19D312 !important;
}

body.hp-template--vendor-view-page :is(.hp-vendor--view-block,.hp-vendor__summary,.hp-widget--vendor),
body:has(.hp-vendor--view-page) :is(.hp-vendor--view-block,.hp-vendor__summary,.hp-widget--vendor) {
  padding: 24px 26px;
}

body.hp-template--vendor-view-page .ribo-user-type-badge,
body:has(.hp-vendor--view-page) .ribo-user-type-badge {
  margin-top: 7px;
  margin-bottom: 10px;
}

body.hp-template--vendor-view-page .hp-vendor__registered-date,
body:has(.hp-vendor--view-page) .hp-vendor__registered-date {
  margin-top: 6px;
  text-transform: none !important;
  letter-spacing: .02em;
}

@media (max-width: 767px) {
  body.hp-template--vendor-view-page .hp-page__title,
  body:has(.hp-vendor--view-page) .hp-page__title {
    font-size: 30px !important;
  }
}

/* ========================================================================== 
   24. ACCOUNT — UKLONI LISTINGHIVE "NADZORNA PLOČA" HERO
   Na korisničkim account stranicama koristimo vlastiti Ribolovno.hr header.
   Selektor je ograničen na account izbornik unutar .site-content kako se
   profilni dropdown u glavnom headeru ne bi zamijenio za account stranicu.
   ========================================================================== */
body:has(.site-content .hp-menu--user-account) .header-hero {
  display: none !important;
}


/* ==========================================================================
   25. LOGIN POPUP — ČITLJIVA GREŠKA
   ========================================================================== */

.hp-form--user-login .hp-form__messages,
.hp-form--user-login .hp-form__message,
.hp-form--user-login .hp-message,
.hp-form--user-login .hp-message--error {
  margin: 0 0 22px !important;
  padding: 14px 16px !important;
  background: #351216 !important;
  border: 1px solid rgba(239, 68, 68, .48) !important;
  border-left: 4px solid #ef4444 !important;
  border-radius: 10px !important;
  color: #fecaca !important;
  -webkit-text-fill-color: #fecaca !important;
  box-shadow: none !important;
}

.hp-form--user-login .hp-form__messages *,
.hp-form--user-login .hp-form__message *,
.hp-form--user-login .hp-message *,
.hp-form--user-login .hp-message--error * {
  color: #fecaca !important;
  -webkit-text-fill-color: #fecaca !important;
  background: transparent !important;
}

/* ==========================================================================
   26. RESET LOZINKE — TOČAN HIVEPRESS MODAL
   HTML: #user_password_request_modal.hp-modal.fancybox-content
   ========================================================================== */

#user_password_request_modal.hp-modal.fancybox-content {
  width: min(92vw, 470px) !important;
  max-width: 470px !important;
  padding: 30px !important;
  background:
    linear-gradient(180deg, rgba(255,255,255,.025), transparent 42%),
    #0d1712 !important;
  border: 1px solid rgba(34, 197, 94, .28) !important;
  border-radius: 18px !important;
  color: #f8fafc !important;
  box-shadow:
    0 28px 70px rgba(0,0,0,.48),
    0 0 0 1px rgba(255,255,255,.015) inset !important;
}

#user_password_request_modal .hp-modal__title {
  position: relative;
  margin: 0 0 18px !important;
  padding-top: 18px;
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
  font-size: 26px;
  font-weight: 800;
  line-height: 1.2;
}

#user_password_request_modal .hp-modal__title::before {
  position: absolute;
  top: 0;
  left: 0;
  width: 58px;
  height: 3px;
  content: "";
  background: linear-gradient(90deg, #22c55e, rgba(34,197,94,.68), transparent);
  border-radius: 999px;
  box-shadow: 0 0 12px rgba(34,197,94,.2);
}

#user_password_request_modal .hp-form__header {
  margin-bottom: 18px !important;
}

#user_password_request_modal .hp-form__description {
  margin: 0 !important;
  color: rgba(255,255,255,.72) !important;
  -webkit-text-fill-color: rgba(255,255,255,.72) !important;
  font-size: 14px;
  line-height: 1.6;
}

#user_password_request_modal .hp-form__fields {
  display: block !important;
}

#user_password_request_modal .hp-form__field {
  margin: 0 !important;
}

#user_password_request_modal .hp-form__label,
#user_password_request_modal .hp-field__label {
  display: block !important;
  margin: 0 0 8px !important;
  color: #f8fafc !important;
  -webkit-text-fill-color: #f8fafc !important;
  font-weight: 800;
  line-height: 1.35;
}

#user_password_request_modal input[name="username_or_email"] {
  width: 100% !important;
  min-height: 48px !important;
  padding: 11px 14px !important;
  background: rgba(255,255,255,.08) !important;
  border: 1px solid rgba(34,197,94,.28) !important;
  border-radius: 10px !important;
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
  caret-color: #ffffff !important;
  font-size: 16px !important;
  box-shadow: none !important;
  outline: 0 !important;
}

#user_password_request_modal input[name="username_or_email"]:hover {
  border-color: rgba(34,197,94,.44) !important;
}

#user_password_request_modal input[name="username_or_email"]:focus {
  background: rgba(255,255,255,.10) !important;
  border-color: #22c55e !important;
  box-shadow: 0 0 0 3px rgba(34,197,94,.13) !important;
}

#user_password_request_modal input[name="username_or_email"]::placeholder {
  color: rgba(255,255,255,.46) !important;
  -webkit-text-fill-color: rgba(255,255,255,.46) !important;
  opacity: 1 !important;
}

#user_password_request_modal .hp-form__footer {
  margin-top: 20px !important;
}

#user_password_request_modal .hp-form__button,
#user_password_request_modal button[type="submit"] {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 100% !important;
  min-height: 50px !important;
  padding: 12px 20px !important;
  background: linear-gradient(135deg, #16a34a, #22c55e) !important;
  border: 1px solid #22c55e !important;
  border-radius: 10px !important;
  color: #07130b !important;
  -webkit-text-fill-color: #07130b !important;
  font-weight: 900 !important;
  line-height: 1.2 !important;
  box-shadow: 0 12px 26px rgba(34,197,94,.16) !important;
  cursor: pointer !important;
}

#user_password_request_modal .hp-form__button:hover,
#user_password_request_modal button[type="submit"]:hover {
  background: #4ade80 !important;
  border-color: #4ade80 !important;
}

#user_password_request_modal .fancybox-close-small {
  color: #ffffff !important;
  opacity: .9 !important;
}

#user_password_request_modal .fancybox-close-small svg,
#user_password_request_modal .fancybox-close-small path {
  fill: #ffffff !important;
  color: #ffffff !important;
}

#user_password_request_modal .hp-form__messages:not(:empty) {
  margin: 0 0 16px !important;
  padding: 12px 14px !important;
  background: rgba(34,197,94,.10) !important;
  border: 1px solid rgba(34,197,94,.28) !important;
  border-radius: 10px !important;
  color: #d1fae5 !important;
  -webkit-text-fill-color: #d1fae5 !important;
}

#user_password_request_modal .hp-form__messages:not(:empty) * {
  color: #d1fae5 !important;
  -webkit-text-fill-color: #d1fae5 !important;
}

@media (max-width: 767px) {
  #user_password_request_modal.hp-modal.fancybox-content {
    width: calc(100vw - 20px) !important;
    max-width: none !important;
    padding: 22px 17px !important;
    border-radius: 16px !important;
  }

  #user_password_request_modal .hp-modal__title {
    font-size: 23px !important;
  }
}


/* ==========================================================================
   JAVNI PROFIL PRODAVATELJA — BEZ STICKY PONAŠANJA
   27.09.2026.
   Profilna kartica ostaje u normalnom toku stranice kako se ne bi
   trzala/preklapala s oglasima pri scrollanju ili kasnom učitavanju.
   ========================================================================== */
body.hp-template--vendor-view-page .hp-page__sidebar,
body:has(.hp-vendor--view-page) .hp-page__sidebar,
body.hp-template--vendor-view-page .hp-page__sidebar .inner-wrapper-sticky,
body:has(.hp-vendor--view-page) .hp-page__sidebar .inner-wrapper-sticky,
body.hp-template--vendor-view-page .hp-page__sidebar .theiaStickySidebar,
body:has(.hp-vendor--view-page) .hp-page__sidebar .theiaStickySidebar,
body.hp-template--vendor-view-page .hp-page__sidebar [class*="sticky"],
body:has(.hp-vendor--view-page) .hp-page__sidebar [class*="sticky"],
body.hp-template--vendor-view-page :is(.hp-vendor--view-block,.hp-vendor__summary,.hp-widget--vendor),
body:has(.hp-vendor--view-page) :is(.hp-vendor--view-block,.hp-vendor__summary,.hp-widget--vendor) {
  position: static !important;
  top: auto !important;
  right: auto !important;
  bottom: auto !important;
  left: auto !important;
  transform: none !important;
  translate: none !important;
  will-change: auto !important;
}

body.hp-template--vendor-view-page .hp-page__sidebar .inner-wrapper-sticky,
body:has(.hp-vendor--view-page) .hp-page__sidebar .inner-wrapper-sticky,
body.hp-template--vendor-view-page .hp-page__sidebar .theiaStickySidebar,
body:has(.hp-vendor--view-page) .hp-page__sidebar .theiaStickySidebar {
  width: 100% !important;
  max-width: 100% !important;
  height: auto !important;
  min-height: 0 !important;
  margin: 0 !important;
}

body.hp-template--vendor-view-page .hp-page__sidebar > [class*="sticky-spacer"],
body:has(.hp-vendor--view-page) .hp-page__sidebar > [class*="sticky-spacer"],
body.hp-template--vendor-view-page .hp-page__sidebar > [class*="sticky-placeholder"],
body:has(.hp-vendor--view-page) .hp-page__sidebar > [class*="sticky-placeholder"] {
  display: none !important;
}


/* ==========================================================================
   VENDOR PROFIL — MEKŠI POZADINSKI GRADIENT
   27.09.2026.
   Zadržava zeleni premium glow, ali ga gasi postepeno umjesto
   naglog prijelaza u osnovnu tamnu pozadinu.
   ========================================================================== */
body.hp-template--vendor-view-page .site-content,
body:has(.hp-vendor--view-page) .site-content {
  background:
    radial-gradient(
      ellipse 72% 62% at 13% 2%,
      rgba(25,211,18,.060) 0%,
      rgba(25,211,18,.045) 22%,
      rgba(25,211,18,.027) 40%,
      rgba(25,211,18,.014) 56%,
      rgba(25,211,18,.006) 68%,
      rgba(25,211,18,0) 82%
    ),
    var(--ribo-bg) !important;
}


/* ==========================================================================
   VENDOR PROFIL — KONTINUIRANI GRADIENT BEZ RAVNIH REZOVA
   27.09.2026. v2
   .hp-page / .content-area su ranije imali punu tamnu pozadinu i preko
   gradienta stvarali ravne granice. Na vendor stranici ih činimo prozirnima.
   ========================================================================== */
body.hp-template--vendor-view-page .content-area,
body.hp-template--vendor-view-page .hp-page,
body:has(.hp-vendor--view-page) .content-area,
body:has(.hp-vendor--view-page) .hp-page {
  background: transparent !important;
}

body.hp-template--vendor-view-page .site-content,
body:has(.hp-vendor--view-page) .site-content {
  background:
    radial-gradient(
      ellipse 92% 78% at 4% 0%,
      rgba(25,211,18,.055) 0%,
      rgba(25,211,18,.042) 18%,
      rgba(25,211,18,.028) 34%,
      rgba(25,211,18,.016) 48%,
      rgba(25,211,18,.008) 60%,
      rgba(25,211,18,.003) 70%,
      rgba(25,211,18,0) 82%
    ),
    var(--ribo-bg) !important;
  background-repeat: no-repeat !important;
  background-size: 100% 100% !important;
}

