/*
Theme Name: SOKOM Portal Theme
Theme URI: https://example.com/
Author: Moj izziv d.o.o.
Author URI: https://www.moj-izziv.si/
Description: Presentation-ready portal theme for the SOKOM demo portal.
Version: 1.0.7
Requires at least: 6.0
Tested up to: 6.8
Requires PHP: 7.4
Text Domain: sokom-portal-theme
*/

:root {
  --sokom-primary: #007594;
  --sokom-primary-dark: #004052;
  --sokom-accent: #DF7D00;
  --sokom-soft: #CFC9CE;
  --sokom-bg: #F5F7F8;
  --sokom-surface: #FFFFFF;
  --sokom-surface-alt: #F8FBFC;
  --sokom-text: #18323A;
  --sokom-text-soft: #5D6970;
  --sokom-border: #D9E2E6;
  --sokom-shadow: 0 14px 40px rgba(0, 64, 82, 0.08);
  --sokom-shadow-soft: 0 8px 24px rgba(0, 64, 82, 0.06);
  --sokom-radius: 18px;
  --sokom-radius-sm: 12px;
  --sokom-max: 1280px;
  --sokom-gap: clamp(18px, 2vw, 28px);
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--sokom-bg);
  color: var(--sokom-text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.6;
}

body.admin-bar .sokom-site-header {
  top: 32px;
}

@media (max-width: 782px) {
  body.admin-bar .sokom-site-header {
    top: 46px;
  }
}

a {
  color: var(--sokom-primary);
  text-decoration: none;
}

a:hover {
  color: var(--sokom-primary-dark);
}

img {
  max-width: 100%;
  height: auto;
}

.site,
.sokom-site-main,
.sokom-site-footer-inner,
.sokom-site-header-inner {
  width: min(calc(100% - 32px), var(--sokom-max));
  margin-inline: auto;
}

.sokom-site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255,255,255,0.9);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(0,64,82,0.08);
}

.sokom-site-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 16px 0;
}

.sokom-brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  color: var(--sokom-primary-dark);
  font-weight: 800;
  letter-spacing: -0.02em;
}

.sokom-brand img {
  width: 148px;
  height: auto;
  display: block;
}

.sokom-brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.sokom-brand-kicker {
  color: var(--sokom-text-soft);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.sokom-brand-title {
  font-size: 1.05rem;
}

.sokom-main-nav ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 0;
}

.sokom-main-nav a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 16px;
  border-radius: 999px;
  color: var(--sokom-primary-dark);
  font-weight: 700;
}

.sokom-main-nav a:hover,
.sokom-main-nav .current-menu-item > a,
.sokom-main-nav .current_page_item > a {
  background: rgba(0,117,148,0.10);
  color: var(--sokom-primary);
}

.sokom-header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.sokom-button,
button,
input[type="submit"],
.wp-element-button,
.wp-block-button__link,
.entry-content .button,
.entry-content button,
.entry-content input[type="submit"] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border: 0;
  border-radius: 999px;
  background: var(--sokom-primary);
  color: #fff;
  font-size: 0.98rem;
  font-weight: 700;
  line-height: 1;
  box-shadow: var(--sokom-shadow-soft);
  cursor: pointer;
}

.sokom-button:hover,
button:hover,
input[type="submit"]:hover,
.wp-element-button:hover,
.wp-block-button__link:hover,
.entry-content .button:hover,
.entry-content button:hover,
.entry-content input[type="submit"]:hover {
  background: var(--sokom-primary-dark);
  color: #fff;
}

.sokom-button.is-secondary {
  background: transparent;
  color: var(--sokom-primary-dark);
  border: 1px solid rgba(0,64,82,0.12);
  box-shadow: none;
}

.sokom-button.is-accent {
  background: var(--sokom-accent);
}

.sokom-page-wrap {
  padding: 28px 0 72px;
}

.sokom-card,
.entry-content > .wp-block-group,
.entry-content > .wp-block-cover,
.entry-content > form,
.entry-content > table,
.entry-content > .sokom-card,
.sokom-home-card,
.sokom-info-card,
.sokom-page-content,
.sokom-panel {
  background: var(--sokom-surface);
  border: 1px solid var(--sokom-border);
  border-radius: var(--sokom-radius);
  box-shadow: var(--sokom-shadow-soft);
}

.sokom-hero {
  position: relative;
  overflow: hidden;
  padding: clamp(28px, 5vw, 56px);
  margin: 0 0 26px;
  background: linear-gradient(135deg, rgba(0,117,148,0.08), rgba(223,125,0,0.05) 55%, rgba(0,64,82,0.04));
}

.sokom-hero::after {
  content: "";
  position: absolute;
  right: -80px;
  top: -80px;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0,117,148,0.15) 0, rgba(0,117,148,0) 70%);
}

.sokom-hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: var(--sokom-gap);
  align-items: center;
}

.sokom-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  margin-bottom: 14px;
  border-radius: 999px;
  background: rgba(0,117,148,0.12);
  color: var(--sokom-primary-dark);
  font-size: 0.84rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.sokom-hero h1,
.entry-title {
  margin: 0 0 14px;
  font-size: clamp(2rem, 4vw, 3.55rem);
  line-height: 1.05;
  letter-spacing: -0.04em;
  color: var(--sokom-primary-dark);
}

.sokom-hero p,
.sokom-page-intro,
.entry-content > p:first-child {
  color: var(--sokom-text-soft);
  font-size: clamp(1rem, 1.2vw, 1.12rem);
  margin: 0 0 20px;
}

.sokom-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 18px;
}

.sokom-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.sokom-stat {
  padding: 18px;
  border-radius: var(--sokom-radius-sm);
  background: rgba(255,255,255,0.72);
  border: 1px solid rgba(0,64,82,0.10);
}

.sokom-stat strong {
  display: block;
  font-size: 1.65rem;
  color: var(--sokom-primary-dark);
  line-height: 1;
}

.sokom-stat span {
  display: block;
  margin-top: 8px;
  color: var(--sokom-text-soft);
  font-size: 0.95rem;
}

.sokom-home-grid,
.sokom-home-links,
.sokom-portal-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--sokom-gap);
}

.sokom-home-card,
.sokom-link-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 24px;
}

.sokom-home-card h3,
.sokom-link-card h3,
.sokom-section-title {
  margin: 0;
  font-size: 1.32rem;
  line-height: 1.15;
  color: var(--sokom-primary-dark);
}

.sokom-home-card p,
.sokom-link-card p {
  margin: 0;
  color: var(--sokom-text-soft);
}

.sokom-card-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 16px;
  background: rgba(0,117,148,0.12);
  color: var(--sokom-primary);
  font-weight: 800;
  font-size: 1.2rem;
}

.sokom-section {
  margin-top: 28px;
}

.sokom-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.sokom-section-head p {
  margin: 0;
  color: var(--sokom-text-soft);
}

.sokom-alert {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 16px;
  align-items: center;
  padding: 18px 22px;
}

.sokom-alert-marker {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--sokom-accent);
  box-shadow: 0 0 0 8px rgba(223,125,0,0.12);
}

.sokom-alert strong {
  color: var(--sokom-primary-dark);
}

.sokom-feature-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 18px;
}

.sokom-feature {
  padding: 18px;
  border-radius: 16px;
  background: var(--sokom-surface);
  border: 1px solid var(--sokom-border);
}

.sokom-feature h4 {
  margin: 0 0 8px;
  color: var(--sokom-primary-dark);
}

.sokom-feature p {
  margin: 0;
  color: var(--sokom-text-soft);
}

.sokom-page-content {
  padding: clamp(22px, 3vw, 34px);
}

.sokom-page-title-wrap {
  margin-bottom: 22px;
}

.sokom-page-title-wrap h1 {
  font-size: clamp(1.8rem, 3.2vw, 2.6rem);
  margin-bottom: 10px;
}

.entry-content h2,
.entry-content h3,
.entry-content h4 {
  color: var(--sokom-primary-dark);
  letter-spacing: -0.02em;
}

.entry-content table,
.wp-block-table table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  overflow: hidden;
  border-radius: var(--sokom-radius-sm);
  background: var(--sokom-surface);
  border: 1px solid var(--sokom-border);
  box-shadow: var(--sokom-shadow-soft);
}

.entry-content thead th,
.wp-block-table thead th {
  background: rgba(0,64,82,0.05);
  color: var(--sokom-primary-dark);
  font-size: 0.95rem;
  font-weight: 800;
  text-align: left;
}

.entry-content th,
.entry-content td,
.wp-block-table th,
.wp-block-table td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--sokom-border);
  vertical-align: top;
}

.entry-content tbody tr:last-child td,
.wp-block-table tbody tr:last-child td {
  border-bottom: 0;
}

.entry-content tbody tr:hover td,
.wp-block-table tbody tr:hover td {
  background: rgba(0,117,148,0.03);
}

.entry-content select,
.entry-content input[type="text"],
.entry-content input[type="email"],
.entry-content input[type="search"],
.entry-content input[type="date"],
.entry-content input[type="password"],
.entry-content textarea {
  width: 100%;
  min-height: 46px;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid var(--sokom-border);
  background: #fff;
  color: var(--sokom-text);
  box-sizing: border-box;
}

.entry-content textarea {
  min-height: 120px;
}

.entry-content form,
.entry-content .wp-block-search {
  display: grid;
  gap: 14px;
}

.entry-content hr {
  border: 0;
  border-top: 1px solid var(--sokom-border);
  margin: 28px 0;
}

.entry-content .button,
.entry-content button,
.entry-content input[type="submit"] {
  width: auto;
}

.sokom-badge,
.entry-content .status,
.entry-content .badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 11px;
  border-radius: 999px;
  background: rgba(0,117,148,0.10);
  color: var(--sokom-primary-dark);
  font-size: 0.84rem;
  font-weight: 800;
}

.sokom-site-footer {
  margin-top: 56px;
  background: var(--sokom-primary-dark);
  color: rgba(255,255,255,0.86);
}

.sokom-site-footer-inner {
  display: grid;
  grid-template-columns: 1.3fr 0.8fr 0.9fr;
  gap: var(--sokom-gap);
  padding: 32px 0;
}

.sokom-site-footer h3,
.sokom-site-footer h4 {
  margin: 0 0 10px;
  color: #fff;
}

.sokom-site-footer p,
.sokom-site-footer li,
.sokom-site-footer a {
  color: rgba(255,255,255,0.82);
}

.sokom-site-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}

.sokom-footer-links ul {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 24px;
}

.sokom-footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.12);
  padding: 14px 0 22px;
  color: rgba(255,255,255,0.64);
  font-size: 0.92rem;
}

.screen-reader-text {
  position: absolute;
  left: -9999px;
}

/* WordPress login screen */
body.login {
  background: linear-gradient(135deg, rgba(0,117,148,0.10), rgba(223,125,0,0.08), rgba(0,64,82,0.10));
}

.login h1 a {
  width: 180px;
  height: 120px;
  background-size: contain;
}

.login form {
  border-radius: var(--sokom-radius);
  border: 1px solid var(--sokom-border);
  box-shadow: var(--sokom-shadow);
}

.login #backtoblog a,
.login #nav a {
  color: var(--sokom-primary-dark);
}

@media (max-width: 1100px) {
  .sokom-hero-grid,
  .sokom-site-footer-inner {
    grid-template-columns: 1fr;
  }

  .sokom-home-grid,
  .sokom-home-links,
  .sokom-portal-grid,
  .sokom-feature-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 840px) {
  .sokom-site-header-inner {
    align-items: flex-start;
    flex-direction: column;
  }

  .sokom-main-nav ul {
    justify-content: flex-start;
  }
}

@media (max-width: 700px) {
  .sokom-home-grid,
  .sokom-home-links,
  .sokom-portal-grid,
  .sokom-feature-list,
  .sokom-stats {
    grid-template-columns: 1fr;
  }

  .sokom-site,
  .sokom-site-main,
  .sokom-site-footer-inner,
  .sokom-site-header-inner {
    width: min(calc(100% - 20px), var(--sokom-max));
  }

  .sokom-hero {
    padding: 24px;
  }

  .sokom-hero h1,
  .entry-title {
    font-size: 2.1rem;
  }
}


.sokom-support-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: var(--sokom-gap);
  margin-bottom: 24px;
}

.sokom-support-panel,
.sokom-support-card {
  padding: 24px;
}

.sokom-support-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.sokom-support-head h2 {
  margin: 10px 0 0;
  font-size: 1.6rem;
}

.sokom-support-status {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 14px;
  border-radius: 999px;
  background: rgba(0,117,148,0.10);
  color: var(--sokom-primary);
  font-weight: 700;
}

.sokom-chat-thread {
  display: grid;
  gap: 14px;
}

.sokom-bubble {
  max-width: 88%;
  padding: 16px 18px;
  border-radius: 18px;
  border: 1px solid var(--sokom-border);
  background: #fff;
  box-shadow: var(--sokom-shadow-soft);
}

.sokom-bubble strong {
  display: block;
  margin-bottom: 6px;
  color: var(--sokom-primary-dark);
}

.sokom-bubble p {
  margin: 0;
  color: var(--sokom-text);
}

.sokom-bubble.is-user {
  margin-left: auto;
  background: rgba(0,117,148,0.08);
}

.sokom-bubble.is-ai {
  border-color: rgba(0,117,148,0.18);
}

.sokom-bubble.is-operator {
  border-color: rgba(223,125,0,0.18);
  background: rgba(223,125,0,0.06);
}

.sokom-support-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 18px;
}

.sokom-support-sidebar {
  display: grid;
  gap: var(--sokom-gap);
}

.sokom-support-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

.sokom-support-links a {
  display: block;
  padding: 12px 14px;
  border-radius: 12px;
  background: rgba(0,117,148,0.06);
  color: var(--sokom-primary-dark);
  font-weight: 600;
}

.sokom-support-card h3 {
  margin-top: 0;
  margin-bottom: 14px;
}

@media (max-width: 980px) {
  .sokom-support-grid,
  .sokom-hero-grid,
  .sokom-feature-list,
  .sokom-home-grid,
  .sokom-home-links,
  .sokom-portal-grid,
  .sokom-site-footer-inner {
    grid-template-columns: 1fr;
  }

  .sokom-site-header-inner {
    flex-direction: column;
    align-items: stretch;
  }

  .sokom-main-nav ul {
    justify-content: flex-start;
  }
}


/* v1.0.2 refinements */
.sokom-site-header-inner {
  gap: 28px;
}

.sokom-brand {
  flex: 0 0 auto;
  min-width: 220px;
}

.sokom-brand img {
  width: 230px;
}

.sokom-brand-text {
  display: none;
}

.sokom-main-nav {
  flex: 1 1 auto;
  min-width: 0;
}

.sokom-main-nav ul {
  flex-wrap: nowrap;
  justify-content: center;
  gap: 4px;
}

.sokom-main-nav li {
  position: relative;
}

.sokom-main-nav a {
  min-height: 40px;
  padding: 0 12px;
  font-size: 0.98rem;
  white-space: nowrap;
}

.sokom-main-nav .menu-item-has-children > a::after,
.sokom-main-nav .sokom-account-menu > a::after {
  content: "▾";
  font-size: 0.72rem;
  margin-left: 8px;
  opacity: .75;
}

.sokom-main-nav .sub-menu {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  min-width: 220px;
  display: none;
  flex-direction: column;
  gap: 6px;
  padding: 10px;
  margin: 0;
  list-style: none;
  background: #fff;
  border: 1px solid var(--sokom-border);
  border-radius: 16px;
  box-shadow: var(--sokom-shadow);
  z-index: 60;
}

.sokom-main-nav .sub-menu a {
  justify-content: flex-start;
  width: 100%;
  padding: 10px 12px;
  min-height: 0;
  border-radius: 12px;
}

.sokom-main-nav li:hover > .sub-menu,
.sokom-main-nav li:focus-within > .sub-menu {
  display: flex;
}

.sokom-header-actions {
  flex: 0 0 auto;
  position: relative;
}

.sokom-account-dropdown {
  position: relative;
}

.sokom-account-dropdown summary {
  list-style: none;
}

.sokom-account-dropdown summary::-webkit-details-marker {
  display: none;
}

.sokom-account-dropdown > summary::after {
  content: "▾";
  font-size: 0.72rem;
  margin-left: 8px;
  opacity: .75;
}

.sokom-account-dropdown[open] > summary {
  background: rgba(0,117,148,0.10);
  color: var(--sokom-primary);
}

.sokom-account-dropdown-panel {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  min-width: 220px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 10px;
  background: #fff;
  border: 1px solid var(--sokom-border);
  border-radius: 16px;
  box-shadow: var(--sokom-shadow);
  z-index: 70;
}

.sokom-account-dropdown-panel a {
  display: flex;
  align-items: center;
  min-height: 42px;
  padding: 10px 12px;
  border-radius: 12px;
  color: var(--sokom-primary-dark);
  font-weight: 700;
}

.sokom-account-dropdown-panel a:hover {
  background: rgba(0,117,148,0.10);
  color: var(--sokom-primary);
}

.sokom-site-footer h4 + ul,
.sokom-site-footer h3 + p,
.sokom-site-footer p {
  max-width: 34ch;
}

.sokom-page-content {
  padding: 28px;
}

.sokom-page-title-wrap {
  padding-bottom: 6px;
}

.sokom-page-content .entry-content > *:first-child { margin-top: 0; }

body.sokom-page-profile .entry-content > p,
body.sokom-page-profile .entry-content > br,
body.sokom-page-profile .entry-content > div:not(.sokom-profile-grid):not(.sokom-card),
body.sokom-page-subscriptions .entry-content > p,
body.sokom-page-subscriptions .entry-content > br {
  max-width: none;
}

body.sokom-page-profile .entry-content,
body.sokom-page-subscriptions .entry-content {
  display: grid;
  gap: 22px;
}

body.sokom-page-profile .entry-content > h2,
body.sokom-page-subscriptions .entry-content > h2,
body.sokom-page-profile .entry-content > h3,
body.sokom-page-subscriptions .entry-content > h3 {
  margin: 0 0 10px;
  color: var(--sokom-primary-dark);
}

body.sokom-page-profile .entry-content > * ,
body.sokom-page-subscriptions .entry-content > * {
  position: relative;
}

body.sokom-page-profile .entry-content > :not(h2):not(h3):not(form):not(table):not(.wp-block-table),
body.sokom-page-subscriptions .entry-content > :not(h2):not(h3):not(form):not(table):not(.wp-block-table) {
  background: var(--sokom-surface);
  border: 1px solid var(--sokom-border);
  border-radius: var(--sokom-radius);
  padding: 22px 24px;
  box-shadow: var(--sokom-shadow-soft);
}

body.sokom-page-profile .entry-content form,
body.sokom-page-subscriptions .entry-content form {
  background: var(--sokom-surface);
  border: 1px solid var(--sokom-border);
  border-radius: var(--sokom-radius);
  padding: 24px;
  box-shadow: var(--sokom-shadow-soft);
}

body.sokom-page-profile .entry-content table,
body.sokom-page-subscriptions .entry-content table,
body.sokom-page-profile .entry-content .wp-block-table,
body.sokom-page-subscriptions .entry-content .wp-block-table {
  background: var(--sokom-surface);
  border: 1px solid var(--sokom-border);
  border-radius: var(--sokom-radius);
  overflow: hidden;
  box-shadow: var(--sokom-shadow-soft);
}

body.sokom-page-profile .entry-content table th,
body.sokom-page-subscriptions .entry-content table th {
  background: #edf4f6;
}

body.sokom-page-profile .entry-content input[type="checkbox"],
body.sokom-page-subscriptions .entry-content input[type="checkbox"] {
  width: 18px;
  height: 18px;
}

@media (max-width: 1220px) {
  .sokom-site-header-inner {
    flex-wrap: wrap;
  }
  .sokom-main-nav {
    order: 3;
    width: 100%;
  }
  .sokom-main-nav ul {
    justify-content: flex-start;
    flex-wrap: wrap;
  }
}


/* Portal shortcode layout fixes */
.entry-content .wp-block-shortcode,
.entry-content .wp-block-shortcode .sokom-portal,
.entry-content > .sokom-portal {
  width: 100% !important;
  max-width: none !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
}

.entry-content .wp-block-shortcode .sokom-portal,
.entry-content > .sokom-portal {
  padding: 0 !important;
}

.entry-content .wp-block-shortcode .sokom-portal > h2:first-child,
.entry-content > .sokom-portal > h2:first-child {
  display: none;
}

.entry-content .wp-block-shortcode .sokom-filter,
.entry-content .wp-block-shortcode .sokom-filters,
.entry-content > .sokom-portal .sokom-filter,
.entry-content > .sokom-portal .sokom-filters {
  width: 100%;
  justify-content: stretch;
  align-items: end;
}

.entry-content .wp-block-shortcode .sokom-filter > *,
.entry-content .wp-block-shortcode .sokom-filters > *,
.entry-content > .sokom-portal .sokom-filter > *,
.entry-content > .sokom-portal .sokom-filters > * {
  flex: 1 1 220px;
  min-width: 0;
}

.entry-content .wp-block-shortcode .sokom-filter button,
.entry-content .wp-block-shortcode .sokom-filter input[type="submit"],
.entry-content .wp-block-shortcode .sokom-filters button,
.entry-content .wp-block-shortcode .sokom-filters input[type="submit"],
.entry-content > .sokom-portal .sokom-filter button,
.entry-content > .sokom-portal .sokom-filter input[type="submit"],
.entry-content > .sokom-portal .sokom-filters button,
.entry-content > .sokom-portal .sokom-filters input[type="submit"] {
  width: 100%;
}

.entry-content .wp-block-shortcode .sokom-table,
.entry-content > .sokom-portal .sokom-table {
  width: 100% !important;
}

.entry-content .wp-block-shortcode .sokom-portal .sokom-table-wrap,
.entry-content > .sokom-portal .sokom-table-wrap {
  width: 100%;
}

.sokom-page-content .entry-content {
  overflow: visible;
}


/* v1.0.6 specific layout tweaks */
body.page-template-default.page .entry-content table th,
body.page-template-default.page .entry-content table td {
  vertical-align: middle;
}

body.page-template-default.page .entry-content table th:nth-child(3),
body.page-template-default.page .entry-content table td:nth-child(3) {
  text-align: left;
}


/* Subscriptions page polish */
body.sokom-page-subscriptions .entry-content form > div[style*="border-radius:10px"] {
  background: linear-gradient(135deg, rgba(0,117,148,0.06), rgba(255,255,255,0.96)) !important;
  border: 1px solid rgba(0,117,148,0.12) !important;
  border-radius: 16px !important;
  padding: 16px 18px !important;
  box-shadow: none !important;
}

body.sokom-page-subscriptions .entry-content form > p {
  margin: 0 0 16px !important;
  color: var(--sokom-primary-dark);
  font-weight: 600;
}

body.sokom-page-subscriptions .entry-content table th:first-child,
body.sokom-page-subscriptions .entry-content table td:first-child {
  width: 30%;
}

body.sokom-page-subscriptions .entry-content table th:not(:first-child),
body.sokom-page-subscriptions .entry-content table td:not(:first-child) {
  text-align: center !important;
  width: 35%;
}

body.sokom-page-subscriptions .entry-content table td {
  vertical-align: middle;
}

body.sokom-page-subscriptions .entry-content tbody tr:hover {
  background: #f8fbfc;
}

body.sokom-page-subscriptions .entry-content input[type="checkbox"] {
  width: 20px;
  height: 20px;
  accent-color: var(--sokom-primary);
}

body.sokom-page-subscriptions .entry-content form input[type="submit"],
body.sokom-page-subscriptions .entry-content form .button,
body.sokom-page-subscriptions .entry-content form button {
  margin-top: 16px;
  min-width: 120px;
}
