/**
 * Virtual Keyboard Custom Styles for CW Enquiry Builder
 * Matches plugin design and Nokia branding
 */

/* Virtual Keyboard Styles */
#cw-virtual-keyboard {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: white;
  border-top: 1px solid #ddd;
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
  z-index: 10001;
  display: none;
  padding: 0 12%; /* 1/6 padding on each side = 2/3 content width */
}

#cw-virtual-keyboard.is-active {
  display: block;
}

/* Hide virtual keyboard on landscape orientation */
@media screen and (orientation: landscape) {
  body.cw-landscape #cw-virtual-keyboard {
    display: none !important;
  }
}

/* Hide virtual keyboard on mobile devices */
@media screen and (max-width: 767px) {
  body.cw-mobile #cw-virtual-keyboard {
    display: none !important;
  }
}

/* Show only when specifically enabled for desktop portrait */
body.cw-virtual-keyboard-disabled #cw-virtual-keyboard {
  display: none !important;
}

/* Responsive keyboard sizing */
@media screen and (min-width: 768px) and (orientation: portrait) {
  #cw-virtual-keyboard {
    padding: 0 8%; /* Less padding on tablets */
  }
}

@media screen and (min-width: 1024px) and (orientation: portrait) {
  #cw-virtual-keyboard {
    padding: 0 15%; /* More padding on large portrait screens */
  }
}

.simple-keyboard {
  font-family: Arial, sans-serif;
}

.simple-keyboard .hg-button {
  background: #f8f9fa;
  border: 1px solid #dee2e6;
  border-radius: 4px;
  color: #495057;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  height: 40px;
  margin: 2px;
  min-width: 40px;
  padding: 8px;
  text-align: center;
  transition: all 0.2s ease;
}

.simple-keyboard .hg-button:hover {
  background: #e9ecef;
  border-color: #adb5bd;
}

.simple-keyboard .hg-button:active {
  background: #dee2e6;
  transform: translateY(1px);
}

.simple-keyboard .hg-button.hg-functionBtn {
  background: #6c757d;
  color: white;
}

.simple-keyboard .hg-button.hg-functionBtn:hover {
  background: #5a6268;
}

.simple-keyboard .hg-button.hg-button-space {
  width: 200px;
}

.simple-keyboard .hg-button.hg-button-enter {
  background: #007bff;
  color: white;
}

.simple-keyboard .hg-button.hg-button-enter:hover {
  background: #0056b3;
}
