/* EU legal guarantee notice – independent popup package */

.eug-root {
  position: fixed;
  inset: 0;
  z-index: 100000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 12px;
  box-sizing: border-box;
  font-family: Arial, Helvetica, sans-serif;
}

.eug-root.is-open {
  display: flex;
}

.eug-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
}

.eug-dialog {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  width: min(720px, 100%);
  max-height: min(90dvh, 90vh);
  background: #fff;
  border: 1px solid #333;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.35);
  box-sizing: border-box;
}

.eug-header {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  border-bottom: 1px solid #ddd;
  background: #f7f7f7;
}

.eug-title {
  margin: 0;
  flex: 1 1 auto;
  min-width: 0;
  font-size: 15px;
  font-weight: bold;
  color: #111;
  line-height: 1.3;
}

.eug-header-actions {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 8px;
}

.eug-close {
  flex: 0 0 auto;
  min-width: 40px;
  min-height: 40px;
  margin: 0;
  padding: 0 10px;
  border: 1px solid #999;
  background: #fff;
  color: #111;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}

.eug-close:hover,
.eug-close:focus {
  background: #eee;
}

.eug-body {
  flex: 1 1 auto;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  padding: 12px;
  box-sizing: border-box;
}

.eug-lang {
  flex: 0 1 auto;
  max-width: min(220px, 46vw);
  min-height: 36px;
  padding: 4px 8px;
  font-size: 14px;
  border: 1px solid #888;
  background: #fff;
}

.eug-notice-wrap {
  margin: 0;
  text-align: center;
}

.eug-notice {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  border: 1px solid #ccc;
  background: #fafafa;
}

.eug-footer {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 20px;
  border-top: 1px solid #e5e5e5;
  background: #f5f5f5;
  box-sizing: border-box;
}

.eug-more {
  flex: 1 1 auto;
  min-width: 0;
  margin: 0;
  font-size: 14px;
  color: #0b4f9e;
  text-decoration: underline;
  word-break: break-word;
  line-height: 1.35;
}

.eug-more:hover,
.eug-more:focus {
  color: #083a75;
}

.eug-footer-close {
  flex: 0 0 auto;
  min-height: 40px;
  margin: 0;
  padding: 8px 18px;
  border: 0;
  border-radius: 8px;
  background: #4a5568;
  color: #fff;
  font-size: 14px;
  font-weight: bold;
  line-height: 1.2;
  cursor: pointer;
}

.eug-footer-close:hover,
.eug-footer-close:focus {
  background: #2d3748;
}

body.eug-locked {
  overflow: hidden;
}

@media (max-width: 480px) {
  .eug-root {
    padding: 0;
    align-items: stretch;
  }

  .eug-dialog {
    width: 100%;
    max-height: 100dvh;
    max-height: 100vh;
    border: 0;
    border-radius: 0;
  }

  .eug-title {
    font-size: 14px;
  }

  .eug-footer {
    flex-wrap: wrap;
    padding: 12px;
  }

  .eug-footer-close {
    margin-left: auto;
  }
}

/* Inline triggers / checkout hint */
a.eug-trigger,
.eug-trigger {
  color: #8b0000;
  font-weight: bold;
  text-decoration: underline;
}

a.eug-trigger:hover,
a.eug-trigger:focus,
.eug-trigger:hover,
.eug-trigger:focus {
  color: #c00;
  text-decoration: underline;
}

.leftmenu-text.eug-trigger {
  color: #8b0000;
  font-weight: bold;
}

.eug-checkout-hint {
  display: inline-block;
  max-width: 100%;
  margin: 0 auto;
  padding: 10px 14px;
  border: 2px solid #8b0000;
  background: #fff5f5;
  color: #222;
  font-size: 14px;
  font-weight: bold;
  line-height: 1.4;
  text-align: center;
  box-sizing: border-box;
}

.eug-checkout-hint .eug-trigger {
  white-space: nowrap;
}
