/* Text Link CTA Module Styles */

.text-link-cta {
  /* Positioning */
  display: ;
  margin-top: px;
  margin-right: px;
  margin-bottom: px;
  margin-left: px;
}

/* Alignment classes for block display */
.text-link-cta--align-left {
  text-align: left;
}

.text-link-cta--align-center {
  text-align: center;
}

.text-link-cta--align-right {
  text-align: right;
}

/* Link styles */
.text-link-cta__link {
  /* Font sizing */
  {% if module.styling.font_size == "small" %}
    font-size: 14px;
  {% elif module.styling.font_size == "medium" %}
    font-size: 16px;
  {% elif module.styling.font_size == "large" %}
    font-size: 18px;
  {% elif module.styling.font_size == "xlarge" %}
    font-size: 20px;
  {% elif module.styling.font_size == "custom" %}
    font-size: px;
  {% endif %}
  
  /* Font weight */
  {% if module.styling.font_weight == "normal" %}
    font-weight: 400;
  {% elif module.styling.font_weight == "medium" %}
    font-weight: 500;
  {% elif module.styling.font_weight == "semibold" %}
    font-weight: 600;
  {% elif module.styling.font_weight == "bold" %}
    font-weight: 700;
  {% endif %}
  
  /* Text color */
  color: ;
  {% if module.styling.text_color.opacity < 100 %}
    opacity: ;
  {% endif %}
  
  /* Text decoration - Current value:  */
  {% if module.styling.text_decoration == "none" %}
    text-decoration: none !important;
  {% elif module.styling.text_decoration == "underline" %}
    text-decoration: underline !important;
  {% elif module.styling.text_decoration == "underline-dotted" %}
    text-decoration: underline dotted !important;
  {% elif module.styling.text_decoration == "underline-dashed" %}
    text-decoration: underline dashed !important;
  {% else %}
    /* Fallback - field value not matching any condition */
    text-decoration: underline !important;
  {% endif %}
  
  /* Padding */
  padding-top: px;
  padding-right: px;
  padding-bottom: px;
  padding-left: px;
  
  /* Display and alignment */
  display: inline-flex;
  align-items: center;
  gap: 6px;
  
  /* Transition for hover effects */
  transition: color 0.3s ease, text-decoration 0.3s ease, opacity 0.3s ease;
}

/* Link hover state */
.text-link-cta__link:hover {
  /* Hover text color */
  color: ;
  {% if module.styling.text_hover_color.opacity < 100 %}
    opacity: ;
  {% endif %}
  
  /* Hover text decoration - Current value:  */
  {% if module.styling.text_decoration_hover == "none" %}
    text-decoration: none !important;
  {% elif module.styling.text_decoration_hover == "underline" %}
    text-decoration: underline !important;
  {% elif module.styling.text_decoration_hover == "underline-dotted" %}
    text-decoration: underline dotted !important;
  {% elif module.styling.text_decoration_hover == "underline-dashed" %}
    text-decoration: underline dashed !important;
  {% else %}
    /* Fallback - hover field value not matching any condition */
    text-decoration: underline !important;
  {% endif %}
}

/* Focus state for accessibility */
.text-link-cta__link:focus {
  outline: 2px solid ;
  outline-offset: 2px;
}

/* Icon styles */
.text-link-cta__icon {
  display: inline-flex;
  align-items: center;
  line-height: 1;
  flex-shrink: 0;
}

/* Icon sizing relative to text */
.text-link-cta__icon svg {
  width: 1em;
  height: 1em;
  fill: currentColor;
}

/* Icon positioning */
.text-link-cta__icon--before {
  margin-right: 2px;
}

.text-link-cta__icon--after {
  margin-left: 2px;
}

/* Text wrapper */
.text-link-cta__text {
  display: inline;
}

/* Responsive adjustments */
@media (max-width: 767px) {
  .text-link-cta__link {
    /* Slightly reduce font sizes on mobile */
    {% if module.styling.font_size == "small" %}
      font-size: 13px;
    {% elif module.styling.font_size == "medium" %}
      font-size: 15px;
    {% elif module.styling.font_size == "large" %}
      font-size: 17px;
    {% elif module.styling.font_size == "xlarge" %}
      font-size: 18px;
    {% elif module.styling.font_size == "custom" %}
      font-size: px;
    {% endif %}
  }
}

/* Print styles */
@media print {
  .text-link-cta__link {
    text-decoration: underline;
    color: #000;
  }
  
  .text-link-cta__link:after {
    content: " (" attr(href) ")";
    font-size: 0.8em;
  }
}