.dodai-calc-wrapper * {
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.dodai-calc-wrapper {
  width: 100%;
  background-color: transparent;
  font-family: 'Poppins', 'Noto Sans Ethiopic', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color: #1e293b;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  cursor: pointer;
}

.dodai-calc-wrapper .calculator-card {
  background: #ffffff;
  padding: 16px 18px max(40px, env(safe-area-inset-bottom, 40px)) 18px;
  width: 100%;
  max-width: 420px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.35);
  border-radius: 28px;
  display: flex;
  flex-direction: column;
  position: relative;
  cursor: default;
  overflow: visible !important;
}

.dodai-calc-wrapper .calc-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  padding-top: env(safe-area-inset-top, 0px);
}

.dodai-calc-wrapper .header-controls {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  justify-content: space-between;
}

.dodai-calc-wrapper .calc-badge {
  background: #fff3e6;
  font-size: 10px;
  font-weight: 800;
  padding: 5px 10px;
  border-radius: 6px;
  letter-spacing: 0.5px;
  color: #f18315;
  text-transform: uppercase;
  -webkit-user-select: none;
  user-select: none;
}

.dodai-calc-wrapper .lang-toggle-btn {
  -webkit-appearance: none;
  appearance: none;
  background: #f18315;
  color: #ffffff;
  border: none;
  font-family: 'Noto Sans Ethiopic', 'Poppins', sans-serif;
  font-size: 11px;
  font-weight: 700;
  padding: 6px 11px;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.1s ease;
  outline: none;
  display: inline-flex;
  flex-direction: row;
  align-items: center;
  white-space: nowrap;
  gap: 4px;
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  user-select: none;
}

.dodai-calc-wrapper .lang-toggle-btn:active {
  transform: scale(0.96);
  background: #d9700c;
}

.dodai-calc-wrapper .lcd-screen {
  position: -webkit-sticky;
  position: sticky;
  top: 75px;
  z-index: 99;
  background-color: #121417;
  border-radius: 18px;
  padding: 16px 18px;
  color: #ffffff;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.35);
  margin-bottom: 20px;
}

.dodai-calc-wrapper .lcd-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
  font-size: 13px;
  color: #e2e8f0;
}

.dodai-calc-wrapper .lcd-value-small {
  font-family: 'Roboto Mono', 'Noto Sans Ethiopic', monospace;
  font-weight: 500;
  color: #ffffff;
}

.dodai-calc-wrapper .lcd-divider {
  height: 1px;
  background: #2a2e35;
  margin: 10px 0 12px 0;
}

.dodai-calc-wrapper .lcd-main-output {
  text-align: right;
}

.dodai-calc-wrapper .lcd-label-main {
  font-family: 'Roboto Mono', 'Noto Sans Ethiopic', monospace;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #00b4d8;
  display: block;
  margin-bottom: 4px;
  font-weight: 700;
}

.dodai-calc-wrapper .lcd-number-large {
  font-family: 'Roboto Mono', 'Noto Sans Ethiopic', monospace;
  font-size: 24px;
  font-weight: 700;
  color: #22c55e;
  letter-spacing: 0.5px;
  line-height: 1.2;
}

.dodai-calc-wrapper .lcd-number-sub {
  font-family: 'Roboto Mono', 'Noto Sans Ethiopic', monospace;
  font-size: 13px;
  color: #22c55e;
  margin-top: 3px;
}

.dodai-calc-wrapper .form-group {
  margin-bottom: 16px;
  position: relative;
  scroll-margin-top: 280px;
}

.dodai-calc-wrapper label {
  display: block;
  margin-bottom: 6px;
  font-weight: 700;
  font-size: 11px;
  color: #f18315;
  text-transform: uppercase;
  letter-spacing: 0.6px;
}

.dodai-calc-wrapper input[type="text"], 
.dodai-calc-wrapper input[type="number"] {
  -webkit-appearance: none;
  appearance: none;
  font-family: 'Poppins', 'Noto Sans Ethiopic', sans-serif;
  width: 100%;
  padding: 14px 16px;
  border: 2px solid transparent;
  border-radius: 14px;
  font-size: 16px;
  font-weight: 600;
  color: #1e293b;
  background-color: #f2f3f5;
  transition: all 0.2s ease;
}

.dodai-calc-wrapper input[type="text"]::placeholder, 
.dodai-calc-wrapper input[type="number"]::placeholder {
  color: #94a3b8;
  font-weight: 400;
}

.dodai-calc-wrapper input[type="text"]:focus, 
.dodai-calc-wrapper input[type="number"]:focus {
  outline: none;
  background-color: #ffffff;
  border-color: #f18315;
  box-shadow: 0 0 0 3px rgba(241, 131, 21, 0.15);
}

.dodai-calc-wrapper .custom-dropdown {
  background-color: #f2f3f5;
  border-radius: 14px;
  overflow: hidden;
  transition: all 0.25s ease;
  border: 2px solid transparent;
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  user-select: none;
}

.dodai-calc-wrapper .custom-dropdown.open {
  border-color: #f18315;
  background-color: #f2f3f5;
}

.dodai-calc-wrapper .dropdown-trigger {
  padding: 14px 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 700;
  font-size: 15px;
  color: #1e293b;
  cursor: pointer;
}

.dodai-calc-wrapper .dropdown-chevron {
  width: 20px;
  height: 20px;
  transition: transform 0.25s ease;
  flex-shrink: 0;
}

.dodai-calc-wrapper .custom-dropdown.open .dropdown-chevron {
  transform: rotate(180deg);
}

.dodai-calc-wrapper .dropdown-menu {
  display: none;
  border-top: 1px solid #e2e8f0;
}

.dodai-calc-wrapper .custom-dropdown.open .dropdown-menu {
  display: block;
}

.dodai-calc-wrapper .dropdown-option {
  padding: 14px 16px;
  font-weight: 700;
  font-size: 14px;
  color: #1e293b;
  cursor: pointer;
  border-bottom: 1px solid #e2e8f0;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.dodai-calc-wrapper .dropdown-option:last-child {
  border-bottom: none;
}

.dodai-calc-wrapper .dropdown-option:hover, 
.dodai-calc-wrapper .dropdown-option.selected {
  background-color: #ffffff;
  color: #f18315;
}

.dodai-calc-wrapper .clear-action-row {
  display: flex;
  justify-content: flex-end;
  margin-top: 4px;
  margin-bottom: 12px;
}

.dodai-calc-wrapper .clear-btn {
  -webkit-appearance: none;
  appearance: none;
  background-color: #f2f3f5;
  color: #64748b;
  border: 1px solid #e2e8f0;
  font-family: 'Poppins', 'Noto Sans Ethiopic', sans-serif;
  font-size: 11px;
  font-weight: 700;
  padding: 6px 12px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  outline: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  user-select: none;
}

.dodai-calc-wrapper .clear-btn:hover {
  background-color: #fee2e2;
  color: #ef4444;
  border-color: #fca5a5;
}

.dodai-calc-wrapper .clear-btn:active {
  transform: scale(0.95);
}

.dodai-calc-wrapper .math-container {
  background-color: #f2f3f5;
  border-radius: 16px;
  padding: 14px;
  margin-top: 8px;
  margin-bottom: env(safe-area-inset-bottom, 10px);
}

.dodai-calc-wrapper .math-title {
  font-weight: 800;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: #f18315;
  margin-bottom: 10px;
}

.dodai-calc-wrapper .math-card-inner {
  background-color: #ffffff;
  border-radius: 12px;
  padding: 14px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
}

.dodai-calc-wrapper .math-step {
  font-family: 'Poppins', 'Noto Sans Ethiopic', sans-serif;
  font-size: 13px;
  font-weight: 600;
  color: #1e293b;
  margin-bottom: 8px;
  line-height: 1.5;
}

.dodai-calc-wrapper .math-step:last-child {
  margin-bottom: 0;
}

.dodai-calc-wrapper .math-highlight {
  font-weight: 700;
  color: #f18315;
}

.dodai-calc-wrapper .hidden { display: none !important; }

/* Force Elementor & Theme parent containers to allow sticky calculations on Android */
.elementor-widget-shortcode, 
.elementor-column, 
.elementor-widget-container {
  overflow: visible !important;
}