.dde-contact-wrap {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  overflow: visible;
  container-type: inline-size;
  container-name: dde-contact;
  font-family: Arial, Helvetica, sans-serif;
  color: #111;
}

/* Διατηρεί ακριβώς τα κεφαλαία και τα πεζά όλων των καταχωρίσεων,
   ακόμη κι αν το ενεργό θέμα WordPress εφαρμόζει text-transform σε th/a. */
.dde-contact-wrap,
.dde-contact-wrap * {
  text-transform: none !important;
  font-variant: normal !important;
}

.dde-contact-wrap .screen-reader-text {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.dde-contact-actions {
  display: flex;
  justify-content: flex-end;
  margin: 0 0 14px;
}

.dde-print-pdf-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 0;
  border-radius: 4px;
  padding: 10px 16px;
  background: #2f6ca8;
  color: #fff !important;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.2;
  cursor: pointer;
  box-shadow: 0 1px 2px rgba(0,0,0,.18);
  text-decoration: none !important;
}

.dde-print-pdf-button:hover,
.dde-print-pdf-button:focus {
  background: #245786;
  color: #fff !important;
  text-decoration: none !important;
}

.dde-print-pdf-button:focus-visible {
  outline: 3px solid #f2b705;
  outline-offset: 2px;
}

.dde-contact-pdf-source,
.dde-contact-table {
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

.dde-contact-table {
  table-layout: fixed;
  border-collapse: collapse;
  border-spacing: 0;
  margin: 0;
  background: #fff;
}

.dde-contact-table th,
.dde-contact-table td {
  box-sizing: border-box;
  border: 1px solid #222;
  padding: 7px 5px;
  vertical-align: middle;
  text-align: center;
  font-size: clamp(8px, .72vw, 11px);
  line-height: 1.28;
  font-weight: 400;
  overflow-wrap: anywhere;
  word-break: normal;
  hyphens: auto;
}

.dde-contact-table .dde-person-cell {
  text-align: left;
  font-weight: 500;
}

.dde-contact-table .dde-manager {
  font-weight: 700;
}

.dde-contact-table a {
  color: #163b63;
  text-decoration: none;
}

.dde-contact-table a:hover,
.dde-contact-table a:focus {
  text-decoration: underline;
}

.dde-contact-table .dde-phone-cell,
.dde-contact-table .dde-email-cell,
.dde-contact-table .dde-phone-cell .dde-phone-value,
.dde-contact-table .dde-email-cell a {
  font-size: inherit;
}

/* Η στήλη e-mail έχει αυξημένο πλάτος και κάθε διεύθυνση μένει σε μία γραμμή. */
.dde-contact-table .dde-email-cell,
.dde-contact-table .dde-email-cell a {
  white-space: nowrap;
  overflow-wrap: normal;
  word-break: keep-all;
  hyphens: none;
}

.dde-contact-table .dde-hero-row th {
  padding: 14px 10px;
  background: #4f81bd;
  color: #fff;
  font-size: clamp(13px, 1.35vw, 20px);
  line-height: 1.35;
  font-weight: 700;
  text-align: center;
}

.dde-contact-table .dde-section-row th {
  padding: 8px 7px;
  font-size: clamp(14px, 1.3vw, 20px);
  line-height: 1.2;
  font-weight: 700;
  text-align: center;
}

.dde-contact-table .dde-column-headings th {
  font-weight: 700;
  font-size: clamp(8px, .75vw, 10px);
}

.dde-contact-table tr.green > * { background: #92d050; }
.dde-contact-table tr.mint > * { background: #a9d18e; }
.dde-contact-table tr.lime > * { background: #c6e0b4; }
.dde-contact-table tr.olive > * { background: #c4bd97; }
.dde-contact-table tr.yellow > * { background: #ffd966; }
.dde-contact-table tr.lightyellow > * { background: #fff2cc; }
.dde-contact-table tr.gold > * { background: #f4b183; }
.dde-contact-table tr.orange > * { background: #e36c09; }
.dde-contact-table tr.peach > * { background: #fabf8f; }
.dde-contact-table tr.coral > * { background: #f4b084; }
.dde-contact-table tr.red > * { background: #c0504d; }
.dde-contact-table tr.rose > * { background: #f4b6c2; }
.dde-contact-table tr.lightrose > * { background: #fce4d6; }
.dde-contact-table tr.purple > * { background: #b2a1c7; }
.dde-contact-table tr.lavender > * { background: #d9c2e9; }
.dde-contact-table tr.blue > * { background: #8db4e2; }
.dde-contact-table tr.sky > * { background: #bdd7ee; }
.dde-contact-table tr.cyan > * { background: #9dc3e6; }
.dde-contact-table tr.teal > * { background: #76c7c0; }
.dde-contact-table tr.beige > * { background: #ead1b2; }
.dde-contact-table tr.grey > * { background: #d9e1f2; }
.dde-contact-table tr.silver > * { background: #e7e6e6; }
.dde-contact-table tr.darkgrey > * { background: #bfbfbf; }

.dde-contact-table tr {
  break-inside: avoid;
  page-break-inside: avoid;
}

@container dde-contact (max-width: 980px) {
  .dde-contact-table colgroup,
  .dde-contact-table .dde-column-headings {
    display: none;
  }

  .dde-contact-table,
  .dde-contact-table tbody,
  .dde-contact-table tr,
  .dde-contact-table th,
  .dde-contact-table td {
    display: block;
    width: 100%;
  }

  .dde-contact-table {
    border: 0;
  }

  .dde-contact-table .dde-hero-row,
  .dde-contact-table .dde-section-row {
    margin: 0 0 12px;
  }

  .dde-contact-table .dde-hero-row th {
    font-size: 16px;
  }

  .dde-contact-table .dde-section-row th {
    font-size: 17px;
  }

  .dde-contact-table .dde-data-row {
    margin: 0 0 14px;
    border: 1px solid #222;
    border-radius: 4px;
    overflow: hidden;
  }

  .dde-contact-table .dde-data-row > th,
  .dde-contact-table .dde-data-row > td {
    position: relative;
    min-height: 42px;
    padding: 10px 10px 10px 42%;
    border: 0;
    border-bottom: 1px solid rgba(0,0,0,.35);
    text-align: left;
    font-size: 13px;
    line-height: 1.35;
  }

  .dde-contact-table .dde-data-row > *:last-child {
    border-bottom: 0;
  }

  .dde-contact-table .dde-data-row > *::before {
    content: attr(data-label);
    position: absolute;
    top: 10px;
    left: 10px;
    width: 36%;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.25;
  }

  .dde-contact-table .dde-data-row > .dde-empty {
    display: none;
  }
}

@media print {
  @page { size: A4 portrait; margin: 7mm 6mm 8mm; }

  body * {
    visibility: hidden !important;
  }

  .dde-contact-wrap,
  .dde-contact-wrap * {
    visibility: visible !important;
    print-color-adjust: exact;
    -webkit-print-color-adjust: exact;
  }

  .dde-contact-wrap {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    max-width: none;
  }

  .dde-contact-actions {
    display: none !important;
  }

  .dde-contact-table th,
  .dde-contact-table td {
    font-size: 6.2pt;
  }
}
