/**
 * Check24 Widget Styles
 * Fallback CSS falls die externe CSS nicht lädt
 */

/* Ensure widgets have proper height and visibility */
[id^="c24pp-power-widget"],
[id^="c24pp-gas-widget"] {
  min-height: 280px !important;
  width: 100% !important;
}

/* Make sure all widget content is visible */
[id^="c24pp-"] * {
  visibility: visible !important;
  opacity: 1 !important;
}

/* Widget Container */
div.c24pp1.c24pp2.c24pp3 {
  color: #005ea8;
  border: 1px solid #dcdcdc;
  background: #fafafa;
  width: 100%;
  min-height: 280px;
  box-sizing: border-box;
  font-family: sans-serif;
  font-size: 12px;
  position: relative;
}

/* Power Widget Specific */
.c24pp1.c24pp2.c24pp3.c24power {
  background: linear-gradient(135deg, #1980d0 0%, #005ea8 100%);
  color: #fff;
  padding: 12px;
}

.c24pp1.c24pp2.c24pp3.c24power.c24greenpower {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
}

/* Form Elements */
.c24pp1.c24pp2.c24pp3.c24power select,
.c24pp1.c24pp2.c24pp3.c24power input {
  border: 1px solid #bbbbbb;
  height: 35px;
  width: 100%;
  display: block;
  padding: 0 10px;
  margin: 8px 0;
  border-radius: 4px;
  font-size: 14px;
  box-sizing: border-box;
}

/* Labels */
.c24pp1.c24pp2.c24pp3.c24power span.c24power-title {
  display: block;
  font-size: 20px;
  text-align: center;
  margin: 0 0 15px 0;
  font-weight: bold;
  color: #fff;
}

.c24pp1.c24pp2.c24pp3.c24power span.c24power-zipcode,
.c24pp1.c24pp2.c24pp3.c24power span.c24power-totalconsumption {
  display: block;
  margin: 10px 0 5px 0;
  font-weight: bold;
  color: #fff;
  font-size: 13px;
}

/* Submit Button */
.c24pp1.c24pp2.c24pp3.c24power button.c24power-submit {
  border-radius: 4px;
  border: 0;
  margin: 15px 0 0 0;
  padding: 12px;
  color: #fff;
  background-color: #fbbf24;
  font-weight: bold;
  width: 100%;
  cursor: pointer;
  font-size: 16px;
  transition: all 0.3s ease;
}

.c24pp1.c24pp2.c24pp3.c24power button.c24power-submit:hover {
  background-color: #f59e0b;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(251, 191, 36, 0.4);
}

/* Layout */
.c24pp1.c24pp2.c24pp3.c24power div.c24power-full {
  width: 100%;
  display: block;
}

.c24pp1.c24pp2.c24pp3.c24power div.c24power-left,
.c24pp1.c24pp2.c24pp3.c24power div.c24power-right {
  width: 48%;
  display: inline-block;
  vertical-align: top;
}

.c24pp1.c24pp2.c24pp3.c24power div.c24power-left {
  margin-right: 4%;
}

/* Error States */
.c24pp1.c24pp2.c24pp3 select.c24pp-error,
.c24pp1.c24pp2.c24pp3 input.c24pp-error {
  border: 2px solid #ef4444 !important;
}

/* Loading State */
.widget-loader {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  z-index: 10;
}

/* Responsive */
@media (max-width: 480px) {
  .c24pp1.c24pp2.c24pp3.c24power div.c24power-left,
  .c24pp1.c24pp2.c24pp3.c24power div.c24power-right {
    width: 100%;
    display: block;
    margin: 0;
  }
  
  .c24pp1.c24pp2.c24pp3.c24power span.c24power-title {
    font-size: 18px;
  }
  
  .c24pp1.c24pp2.c24pp3.c24power button.c24power-submit {
    font-size: 14px;
    padding: 10px;
  }
}
