/* ================================================================
   ORDER BUILDER APPLICATION STYLES
   ================================================================ */

/* ================================================================
   CSS CUSTOM PROPERTIES (ROOT VARIABLES)
   ================================================================ */
:root {
  /* Shoelace Primary Theme Colors - Blue */
  --sl-color-primary-50: var(--sl-color-blue-50);
  --sl-color-primary-100: var(--sl-color-blue-100);
  --sl-color-primary-200: var(--sl-color-blue-200);
  --sl-color-primary-300: var(--sl-color-blue-300);
  --sl-color-primary-400: var(--sl-color-blue-400);
  --sl-color-primary-500: var(--sl-color-blue-500);
  --sl-color-primary-600: var(--sl-color-blue-600);
  --sl-color-primary-700: var(--sl-color-blue-700);
  --sl-color-primary-800: var(--sl-color-blue-800);
  --sl-color-primary-900: var(--sl-color-blue-900);
  --sl-color-primary-950: var(--sl-color-blue-950);
}

/* ================================================================
   BASE STYLES
   ================================================================ */

body {
  font-family: 'Poppins', sans-serif;
  background-color: #f5f5f5;
  margin: 0;
  padding: 20px;
}

h1, h2, h3 {
  color: #1D65A6;
  margin-bottom: 15px;
  padding-left: 12px;
}

/* ================================================================
   MAIN CONTAINER
   ================================================================ */

.order-container {
  max-width: 1200px;
  margin: auto;
  background: white;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

/* ================================================================
   HEADER SECTION
   ================================================================ */

.order-header {
  display: grid;
  grid-template-columns: 300px 1fr auto;
  align-items: center;
  margin-bottom: 20px;
  gap: 20px;
}

.header-logo {
  display: flex;
  align-items: center;
  justify-content: flex-start;
}

.company-logo {
  max-height: 50px;
  width: auto;
}

.header-title {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.header-title h1 {
  margin: 0;
  padding: 0;
  text-align: center;
}

.order-controls {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 15px;
  justify-self: end;
  width: auto;
}

.order-mode-section {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.order-mode-select {
  min-width: 180px;
  align-self: center;
}

.client-field {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.client-field label {
  font-weight: 600;
  color: #1D65A6;
  white-space: nowrap;
}

.client-name-input {
  min-width: 200px;
}

.user-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 4px;
}

.print-controls {
  display: flex;
  align-items: center;
}

.print-controls .print-btn {
  margin: 0;
  padding: 0;
  align-self: center;
}

.print-controls .print-btn::part(base) {
  margin: 0;
  padding: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ================================================================
   AUTHENTICATION SECTION
   ================================================================ */

.auth-status {
  position: fixed;
  top: 80px;
  right: 20px;
  background: white;
  border: 1px solid #f5c6cb;
  border-radius: 8px;
  padding: 12px 16px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  z-index: 1000;
  max-width: 300px;
}

.auth-message {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #dc3545;
  font-size: 0.9rem;
}

.auth-message sl-icon {
  flex-shrink: 0;
  color: #dc3545;
}

.user-info {
  border: none !important;
  background: transparent !important;
  box-shadow: none !important;
  outline: none !important;
  white-space: nowrap;
}

.user-info::part(base) {
  border: none !important;
  background: transparent !important;
  box-shadow: none !important;
}

.user-details {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  border: none !important;
  background: transparent !important;
  box-shadow: none !important;
  outline: none !important;
}

.user-details * {
  border: none !important;
  outline: none !important;
}

.user-details sl-icon {
  font-size: 1.2rem;
  color: #1D65A6;
}

.user-details span {
  font-weight: 600;
  color: #333;
}

#user-name {
  cursor: pointer;
  transition: color 0.2s ease;
}

#user-name:hover {
  color: #1D65A6;
}

#user-name.authenticated {
  cursor: default;
}

#user-name.authenticated:hover {
  color: #333;
}

/* ================================================================
   NBN SECTION
   ================================================================ */

.nbn-section {
  margin-bottom: 30px;
  border: solid 2px #192E5B;
  border-radius: 12px;
  padding: 5px;
  background-color: #fff;
  position: relative;
  padding-bottom: 15px;
}

.nbn-header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
  margin-bottom: 5px;
}

.nbn-header h3 {
  margin: 0;
  padding: 0;
  line-height: 1;
}

.nbn-logo {
  max-width: 80px;
  height: auto;
}

/* Sites Configuration */
.sites-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 15px;
  margin: 0;
  padding: 20px;
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  border-radius: 12px;
  border: 1px solid #dee2e6;
}

.sites-label {
  font-size: 1.1rem;
  font-weight: 600;
  color: #1D65A6;
  margin: 0 0 5px 0;
  text-align: center;
}

.sites-input-group {
  display: flex;
  align-items: stretch;
  gap: 0;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  height: 40px;
  flex-shrink: 0;
}

.sites-input {
  --sl-input-border-radius-medium: 0;
  --sl-input-border-width: 1px;
  --sl-input-height-medium: 40px;
  --sl-input-font-size-medium: 1.1rem;
  --sl-input-font-weight: 600;
  --sl-input-number-button-width: 0;
  width: 45px;
  flex-shrink: 0;
}

.sites-input::part(base) {
  border-left: none;
  border-right: none;
  background: white;
  height: 40px;
  display: flex;
  align-items: center;
}

.sites-input:focus-within::part(base) {
  border-left: none;
  border-right: none;
  box-shadow: none;
  outline: none;
}

.sites-input::part(input):focus {
  outline: none;
  box-shadow: none;
}

.sites-input::part(input) {
  text-align: center;
  font-weight: 600;
  color: #1D65A6;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
  min-width: 0;
  width: 100%;
  -moz-appearance: textfield;
}

.sites-input::part(input)::-webkit-outer-spin-button,
.sites-input::part(input)::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
  display: none;
}

.sites-btn {
  --sl-border-radius-medium: 0;
  height: 40px;
  width: 40px;
  min-height: 40px;
  max-height: 40px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.sites-btn::part(base) {
  height: 40px;
  min-height: 40px;
  max-height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--sl-color-neutral-300);
}

.sites-btn:first-child::part(base) {
  border-top-left-radius: 8px;
  border-bottom-left-radius: 8px;
  border-right: none;
}

.sites-btn:last-child::part(base) {
  border-top-right-radius: 8px;
  border-bottom-right-radius: 8px;
  border-left: none;
}

.sites-btn:hover::part(base) {
  background-color: var(--sl-color-primary-50);
  border-color: var(--sl-color-primary-300);
}

.sites-btn:active::part(base) {
  background-color: var(--sl-color-primary-100);
}

#start-config-btn {
  height: 40px;
}

/* NBN Service Groups */
.nbn-service-group {
  background: #f8f9fa;
  border: 1px solid #dee2e6;
  border-radius: 8px;
  padding: 10px 20px;
  margin-bottom: 5px;
}

.nbn-service-config {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
}

.nbn-service-config h5 {
  margin-top: 0px;
  margin-bottom: 5px;
}

.nbn-service-config p {
  margin: 5px 0;
}

.cancel-nbn-service-btn {
  position: absolute;
  top: -8px;
  right: -17px;
  background: #dc3545;
  color: white;
  border: none;
  border-radius: 50%;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  font-size: 16px;
  transition: background-color 0.2s;
}

.cancel-nbn-service-btn:hover {
  background: #c82333;
}

.nbn-site-name-section {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.nbn-site-name-input {
  width: 100%;
  min-width: 300px;
}

.nbn-site-name-input::part(form-control-label)::after {
  content: " *";
  color: #dc3545 !important;
}

/* NBN Summary */
.nbn-summary-section {
  display: none;
}

#nbn-summary-section h4 {
  text-align: center;
}

#nbn-sites-list {
  max-width: 600px;
  margin: 0 auto;
}

.site-summary-item {
  padding: 15px;
  margin-bottom: 10px;
  background: #f8f9fa;
  border-radius: 8px;
  border: 1px solid #dee2e6;
}

.site-summary-item.editing-highlight {
  background-color: #fff3cd;
  border: 2px solid #ffc107;
  border-radius: 4px;
  padding: 8px;
  margin: 4px 0;
}

.site-summary-item.editing-highlight .site-summary-price {
  color: #856404;
  font-weight: bold;
}

.site-summary-grid {
  display: grid;
  grid-template-columns: 1fr 200px;
  gap: 15px;
  align-items: start;
}

.site-summary-left {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.site-summary-left h5 {
  margin: 0;
  padding: 0;
  color: #1D65A6;
  font-weight: 600;
  line-height: 1.3;
}

.site-plan-name {
  color: #6c757d;
  font-size: 0.9rem;
  line-height: 1.3;
}

.site-summary-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 5px;
  width: 200px;
}

.site-summary-top-right {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 32px;
  justify-content: flex-end;
}

.site-summary-price {
  font-weight: 600;
  color: #28a745;
  font-size: 1.1rem;
  white-space: nowrap;
  line-height: 32px;
  height: 32px;
  display: flex;
  align-items: center;
}

.site-summary-speeds {
  font-weight: 500;
  color: #6c757d;
  font-size: 0.9rem;
  line-height: 1.3;
  text-align: right;
  width: 100%;
  margin-right: 40px;
}

.edit-site-btn {
  width: 32px;
  height: 32px;
  padding: 0;
  border: none;
  background: transparent;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  transition: background-color 0.2s;
  color: #6c757d;
  margin-top: -2px;
}

.edit-site-btn svg {
  width: 18px;
  height: 18px;
}

.edit-site-btn:hover {
  background-color: rgba(0, 0, 0, 0.1);
}

/* NBN Hardware Summary */
.nbn-hardware-summary {
  padding: 15px;
  margin-bottom: 10px;
  background: #e8f4fd;
  border-radius: 8px;
  border: 1px solid #b3d7f0;
}

.hardware-summary-grid {
  display: block;
}

.hardware-summary-left {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.hardware-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}

.hardware-title-section {
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.hardware-header h5 {
  margin: 0;
  padding: 0;
  color: #1D65A6;
  font-weight: 600;
  line-height: 1.3;
}

.hardware-total-price {
  font-weight: 600;
  color: #ff8c00;
  font-size: 1.1rem;
  white-space: nowrap;
}

.hardware-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-left: 0;
}

.hardware-item-name {
  color: #6c757d;
  font-size: 0.9rem;
  line-height: 1.3;
  font-weight: 500;
}

.hardware-calculation {
  font-size: 0.9rem;
  color: #6c757d;
  font-weight: 500;
}

.hardware-note {
  color: #6c757d;
  font-size: 0.8rem;
  line-height: 1.3;
  font-style: italic;
}

/* NBN Buttons */
.nbn-buttons-container {
  display: flex;
  justify-content: space-around;
  align-items: center;
  margin-top: 10px;
  gap: 10px;
}

.add-nbn-service-btn {
  margin: 0;
  padding-left: 20px;
  align-self: flex-start;
  float: center;
  --sl-color-primary-600: var(--sl-color-blue-600);
  --sl-color-primary-500: var(--sl-color-blue-500);
  --sl-color-primary-700: var(--sl-color-blue-700);
}

.add-nbn-service-btn::part(base) {
  font-size: 0.9rem;
}

.nbn-ok-btn {
  margin: 0;
  padding-right: 20px;
  align-self: flex-end;
  --sl-color-primary-600: #28a745;
  --sl-color-primary-500: #28a745;
  --sl-color-primary-700: #218838;
}

.nbn-ok-btn::part(base) {
  font-size: 0.9rem;
}

.nbn-cancel-btn {
  margin: 0;
  --sl-color-danger-600: #dc3545;
  --sl-color-danger-500: #dc3545;
  --sl-color-danger-700: #c82333;
}

.nbn-cancel-btn::part(base) {
  font-size: 0.9rem;
}

/* NBN Totals */
.nbn-totals-section {
  margin-top: 15px;
  font-size: 0.8rem;
  text-transform: uppercase;
  color: #6c757d;
  display: none;
}

.nbn-totals-header {
  margin-top: 15px;
  text-align: center;
  font-size: 0.8rem;
  text-transform: uppercase;
  color: #6c757d;
  margin-bottom: 5px;
}

.nbn-totals-summary {
  color: black;
  text-align: center;
}

.nbn-summary-totals {
  color: black;
  text-align: center;
  font-size: 12.8px;
  text-transform: uppercase;
}

.nbn-service-group.summary-view .nbn-service-config {
  display: none !important;
}

/* ================================================================
   PBX SECTION
   ================================================================ */

.pbx-section {
  margin-top: 20px;
  margin-bottom: 30px;
  border: solid 2px #192E5B;
  border-radius: 12px;
  padding: 5px;
  background-color: #fff;
  position: relative;
  z-index: 2;
  clear: both;
  padding-bottom: 15px;
  overflow: hidden;
}

.pbx-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  pointer-events: none;
  z-index: 1;
}

.pbx-section > * {
  position: relative;
  z-index: 2;
}

.pbx-header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
  margin-bottom: 5px;
  position: relative;
}

.pbx-header h3 {
  margin: 0;
  padding: 0;
  line-height: 1;
}

.pbx-header .help-icon-button {
  position: absolute;
  right: 15px;
  top: 50%;
  transform: translateY(-50%);
}

.pbx-logo-container {
  width: 120px;
  height: 60px;
  display: flex;
  margin-bottom: 11px;
  margin-top: 1px;
  align-items: center;
  justify-content: center;
  background: transparent;
  padding: 4px;
}

.pbx-logo {
  max-width: 100%;
  max-height: 100%;
  height: auto;
  object-fit: contain;
}

/* PBX Configuration */
.pbx-config-section {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin: 0;
}

.pbx-card {
  flex: 1;
  border: 3px solid #F5F5F5;
  border-radius: 12px;
  transition: all 0.2s ease-in-out;
}

.pbx-card::part(base) {
  border-width: 3px;
  border-radius: 12px;
  border: none;
}

.pbx-card::part(body) {
  padding: 20px;
  box-sizing: border-box;
}

.pbx-card::part(header) {
  padding: 15px 20px 10px 20px;
  border-bottom: 1px solid #dee2e6;
}

.pbx-card h4 {
  color: #1D65A6;
  margin: 0 0 5px 0;
  font-size: 1.15rem;
}

.pbx-card p {
  font-size: 0.9rem;
  line-height: 1.5;
  margin: 0;
  color: #6c757d;
}

.pbx-card:hover {
  border: 3px solid #F5F5F5;
}

.pbx-card::part(base):hover {
  background-color: #F5F5F5;
}

.pbx-group {
  background: #f8f9fa;
  border: 1px solid #dee2e6;
  border-radius: 8px;
  padding: 10px 20px;
  margin-bottom: 15px;
}

.pbx-group h5 {
  margin: 0 0 5px 0;
  padding: 0;
  color: #1D65A6;
  font-weight: 600;
  font-size: 1.15rem;
}

.pbx-description {
  font-size: 0.9rem;
  line-height: 1.5;
  margin: 0 0 10px 0;
  color: #6c757d;
}

.pbx-section h5 {
  margin-top: 20px;
  margin-bottom: 5px;
}

/* PBX Phone Numbers */
.phone-number-group {
  background: #f8f9fa;
  border: 1px solid #dee2e6;
  border-radius: 8px;
  padding: 10px 20px;
  margin-bottom: 5px;
}

.phone-number-config {
  display: flex;
  flex-direction: column;
  gap: 15px;
  min-width: 0;
}

.phone-input-section {
  display: flex;
  align-items: flex-end;
  gap: 10px;
}

.phone-number-input {
  flex: 1;
  max-width: none !important;
  min-width: 150px;
  width: 100%;
}

.phone-number-input::part(form-control-label) {
  white-space: nowrap;
  overflow: hidden;
}

.phone-number-input.invalid {
  --sl-color-danger-600: #dc3545;
  --sl-input-border-color: var(--sl-color-danger-600);
  --sl-input-border-color-focus: var(--sl-color-danger-600);
}

.phone-number-input.invalid::part(base) {
  border-color: var(--sl-color-danger-600);
  animation: flash-red 0.5s ease-in-out;
}

.phone-number-input.invalid::part(form-control-label) {
  color: var(--sl-color-danger-600) !important;
}

.port-existing-checkbox {
  margin: 0;
  font-size: 0.9rem;
  white-space: nowrap;
  margin-bottom: 8px;
}

.port-existing-checkbox::part(control) {
  font-size: 0.9rem;
}

.port-existing-checkbox::part(label) {
  font-size: 0.9rem;
}

.voip-plan-section {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
  flex: 1;
}

.voip-select {
  width: 100%;
  min-width: 150px;
  max-width: none;
  flex: 1;
}

/* Phone Summary */
.phone-summary-section {
  margin-top: 15px;
  text-align: center;
  font-size: 0.8rem;
  text-transform: uppercase;
  color: #6c757d;
}

.phone-summary-header {
  margin-bottom: 5px;
}

.phone-summary-totals {
  color: black;
  text-align: center;
  font-size: 12.8px;
  text-transform: uppercase;
}

.phone-summary-container {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 5px 0;
}

.phone-summary {
  flex: 1;
  color: #333;
  font-size: 0.95rem;
  display: flex;
  flex-direction: column;
}

.phone-summary-line1 {
  margin-bottom: 2px;
  line-height: 1.2;
}

.phone-summary-line2 {
  color: #6c757d;
  font-size: 0.9rem;
  line-height: 1.2;
}

.phone-summary-actions {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  flex-wrap: nowrap;
}

.edit-phone-btn {
  width: 32px;
  height: 32px;
  padding: 0;
  border: none;
  background: transparent;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  transition: background-color 0.2s;
  color: #6c757d;
}

.edit-phone-btn svg {
  width: 18px;
  height: 18px;
}

.edit-phone-btn:hover {
  background-color: rgba(0, 0, 0, 0.1);
}

.phone-summary-actions .edit-phone-btn,
.phone-summary-actions .remove-phone-btn {
  width: 32px;
  height: 32px;
  margin: 0;
  flex-shrink: 0;
  display: inline-flex;
}

/* Phone Buttons */
.phone-buttons-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 10px;
  gap: 10px;
}

.add-phone-btn {
  margin: 0;
  padding-left: 20px;
  align-self: flex-start;
  --sl-color-primary-600: var(--sl-color-blue-600);
  --sl-color-primary-500: var(--sl-color-blue-500);
  --sl-color-primary-700: var(--sl-color-blue-700);
}

.add-phone-btn::part(base) {
  font-size: 0.9rem;
}

.phone-summary-btn {
  margin: 0;
  padding-right: 20px;
  align-self: flex-end;
  --sl-color-primary-600: #28a745;
  --sl-color-primary-500: #28a745;
  --sl-color-primary-700: #218838;
}

.phone-summary-btn::part(base) {
  font-size: 0.9rem;
}

/* PBX Additional Options */
.pbx-additional-options {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid #dee2e6;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* User License Controls */
.user-license-group {
  background: #f8f9fa;
  border: 1px solid #dee2e6;
  border-radius: 8px;
  padding: 10px 20px;
  margin-bottom: 5px;
}

.license-input-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.license-label {
  font-weight: normal !important;
  color: black !important;
  font-size: 1rem;
}

.license-control {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  height: 40px;
  width: fit-content;
  margin: 0 auto;
}

.license-input {
  --sl-input-border-radius-medium: 0;
  --sl-input-border-width: 1px;
  --sl-input-height-medium: 40px;
  --sl-input-font-size-medium: 1rem;
  --sl-input-font-weight: 600;
  width: 60px;
  flex-shrink: 0;
  text-align: center;
}

.license-input::part(base) {
  border-left: none;
  border-right: none;
  background: white;
  height: 40px;
  display: flex;
  align-items: center;
}

.license-input::part(input) {
  text-align: center;
  font-weight: 600;
  color: #1D65A6;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
  min-width: 0;
  width: 100%;
}

.license-btn {
  --sl-border-radius-medium: 0;
  height: 40px;
  width: 40px;
  min-height: 40px;
  max-height: 40px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.license-btn::part(base) {
  height: 40px;
  min-height: 40px;
  max-height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--sl-color-neutral-300);
}

.license-btn:first-child::part(base) {
  border-top-left-radius: 8px;
  border-bottom-left-radius: 8px;
  border-right: none;
}

.license-btn:last-child::part(base) {
  border-top-right-radius: 8px;
  border-bottom-right-radius: 8px;
  border-left: none;
}

.license-btn:hover::part(base) {
  background-color: var(--sl-color-primary-50);
  border-color: var(--sl-color-primary-300);
}

.license-btn:active::part(base) {
  background-color: var(--sl-color-primary-100);
}

.license-summary {
  font-size: 0.9rem;
  color: #6c757d;
  font-style: italic;
}

.user-license-buttons-container {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 15px;
  padding-top: 10px;
  border-top: 1px solid #dee2e6;
}

.user-license-summary-btn {
  --sl-color-primary-600: var(--sl-color-success-600);
  --sl-color-primary-500: var(--sl-color-success-500);
  --sl-color-primary-400: var(--sl-color-success-400);
}

.user-license-summary-section {
  margin-top: 15px;
}

.user-license-summary-totals {
  color: black;
  text-align: center;
  font-size: 12.8px;
  text-transform: uppercase;
}

/* Device License Controls */
.device-license-group {
  background: #f8f9fa;
  border: 1px solid #dee2e6;
  border-radius: 8px;
  padding: 10px 20px;
  margin-bottom: 5px;
}

.device-license-input-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.device-license-label {
  font-weight: normal !important;
  color: black !important;
  font-size: 1rem;
}

.device-license-control {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  height: 40px;
  width: fit-content;
  margin: 0 auto;
}

.device-license-input {
  --sl-input-border-radius-medium: 0;
  --sl-input-border-width: 1px;
  --sl-input-height-medium: 40px;
  --sl-input-font-size-medium: 1rem;
  --sl-input-font-weight: 600;
  width: 60px;
  flex-shrink: 0;
}

.device-license-input::part(base) {
  border-left: none;
  border-right: none;
  background: white;
  height: 40px;
  display: flex;
  align-items: center;
}

.device-license-input::part(input) {
  text-align: center;
  font-weight: 600;
  color: #1D65A6;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
  min-width: 0;
  width: 100%;
}

.device-license-btn {
  --sl-border-radius-medium: 0;
  height: 40px;
  width: 40px;
  min-height: 40px;
  max-height: 40px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.device-license-btn::part(base) {
  height: 40px;
  min-height: 40px;
  max-height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--sl-color-neutral-300);
}

.device-license-btn:first-child::part(base) {
  border-top-left-radius: 8px;
  border-bottom-left-radius: 8px;
  border-right: none;
}

.device-license-btn:last-child::part(base) {
  border-top-right-radius: 8px;
  border-bottom-right-radius: 8px;
  border-left: none;
}

.device-license-btn:hover::part(base) {
  background-color: var(--sl-color-primary-50);
  border-color: var(--sl-color-primary-300);
}

.device-license-btn:active::part(base) {
  background-color: var(--sl-color-primary-100);
}

.device-license-summary-section {
  margin-top: 15px;
}

.device-license-summary-totals {
  color: black;
  text-align: center;
  font-size: 12.8px;
  text-transform: uppercase;
}

/* PBX Hardware */
.pbx-hardware-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin-bottom: 20px;
}

.pbx-hardware-item {
  /* No borders or backgrounds - just grid items */
}

.pbx-hardware-item p {
  margin-top: 5px;
  margin-bottom: 10px;
}

.hardware-control {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  height: 40px;
  width: fit-content;
  margin: 0 auto;
}

.hardware-input {
  --sl-input-border-radius-medium: 0;
  --sl-input-border-width: 1px;
  --sl-input-height-medium: 40px;
  --sl-input-font-size-medium: 1rem;
  --sl-input-font-weight: 600;
  width: 60px;
  flex-shrink: 0;
}

.hardware-input::part(base) {
  border-left: none;
  border-right: none;
  background: white;
  height: 40px;
  display: flex;
  align-items: center;
}

.hardware-input::part(input) {
  text-align: center;
  font-weight: 600;
  color: #1D65A6;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
  min-width: 0;
  width: 100%;
}

.hardware-btn {
  --sl-border-radius-medium: 0;
  height: 40px;
  width: 40px;
  min-height: 40px;
  max-height: 40px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hardware-btn::part(base) {
  height: 40px;
  min-height: 40px;
  max-height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--sl-color-neutral-300);
}

.hardware-btn:first-child::part(base) {
  border-top-left-radius: 8px;
  border-bottom-left-radius: 8px;
  border-right: none;
}

.hardware-btn:last-child::part(base) {
  border-top-right-radius: 8px;
  border-bottom-right-radius: 8px;
  border-left: none;
}

.hardware-btn:hover::part(base) {
  background-color: var(--sl-color-primary-50);
  border-color: var(--sl-color-primary-300);
}

.hardware-btn:active::part(base) {
  background-color: var(--sl-color-primary-100);
}

/* PBX Summary Sections */
.pbx-monthly-subtotal {
  color: black;
  text-align: center;
  font-size: 12.8px;
  text-transform: uppercase;
  margin-top: 15px;
}

.pbx-hardware-total {
  color: black;
  text-align: center;
  font-size: 12.8px;
  text-transform: uppercase;
  margin-top: 15px;
}

.pbx-hardware-summary-section {
  margin-top: 15px;
}

.pbx-hardware-summary-totals {
  color: black;
  text-align: center;
  font-size: 12.8px;
  text-transform: uppercase;
}

/* ================================================================
   SITE CONFIGURATION
   ================================================================ */

#site-header {
  text-align: center;
  margin-bottom: 20px;
  margin-top: 0;
}

#site-title {
  margin-top: 0;
  margin-bottom: 10px;
}

#site-config-section {
  margin-bottom: 50px;
  clear: both;
  position: relative;
  z-index: 1;
}

#site-name-section {
  margin-bottom: 20px;
}

.progress-bar {
  width: 100%;
  height: 8px;
  background-color: #e9ecef;
  border-radius: 4px;
  overflow: hidden;
  margin-top: 10px;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--sl-color-primary-500), var(--sl-color-primary-600));
  transition: width 0.3s ease;
}

.site-navigation {
  position: absolute;
  bottom: 25px;
  right: 65px;
  margin: 0;
  padding: 0;
}

.floating-add-btn {
  width: 100px !important;
  height: 100px !important;
  border-radius: 50% !important;
  padding: 0 !important;
  background: rgba(0, 100, 0, 0.85) !important;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.25), 0 4px 10px rgba(0, 0, 0, 0.15) !important;
  font-weight: 600 !important;
  font-size: 12px !important;
  line-height: 1.1 !important;
  text-align: center !important;
  text-transform: uppercase !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  transition: transform 0.2s ease, box-shadow 0.2s ease !important;
  z-index: 10 !important;
  position: absolute !important;
  cursor: pointer !important;
  user-select: none !important;
}

.vertical-text {
  line-height: 1.3 !important;
  text-align: center !important;
  font-size: 14px !important;
  text-transform: uppercase !important;
  color: white !important;
  margin: 0 !important;
  padding: 0 !important;
}

.floating-add-btn:hover {
  transform: translateY(-2px) !important;
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.3), 0 6px 15px rgba(0, 0, 0, 0.2) !important;
}

.floating-add-btn:hover::part(base) {
  background: rgba(0, 120, 0, 0.4) !important;
}

.floating-add-btn.dragging {
  cursor: grabbing !important;
}

.floating-add-btn::part(base) {
  width: 100px !important;
  height: 100px !important;
  border-radius: 50% !important;
  padding: 0 !important;
  background: rgba(0, 100, 0, 0.3) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  line-height: 1.3 !important;
  outline: none !important;
  border: none !important;
}

.floating-add-btn:focus::part(base) {
  outline: none !important;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.25), 0 4px 10px rgba(0, 0, 0, 0.15) !important;
}

.floating-add-btn:active::part(base) {
  outline: none !important;
}

.floating-add-btn::part(label) {
  line-height: 1.3 !important;
  padding: 0 !important;
  margin: 0 !important;
}

/* ================================================================
   SHOELACE COMPONENTS
   ================================================================ */

/* Shoelace Tab Groups */
sl-tab-group {
  margin-bottom: 6px;
}

sl-tab::part(base) {
  font-size: 1.15rem;
  padding: 10px 8px;
  background-color: rgb(250, 252, 254);
}

/* Shoelace Cards */
.card-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  width: 100%;
}

sl-card {
  flex: 0 0 calc(25% - 15px);
  border: 3px solid #F5F5F5;
  border-radius: 12px;
  transition: all 0.2s ease-in-out;
  min-width: 220px;
  cursor: pointer;
}

sl-card::part(base) {
  border-width: 3px;
  border-radius: 12px;
  border: none;
}

sl-card::part(body) {
  padding: 10px;
  box-sizing: border-box;
}

sl-card:hover {
  border: 3px solid #F5F5F5;
}

sl-card::part(base):hover {
  background-color: #F5F5F5;
}

sl-card.selected {
  --sl-color-primary-600: #007BFF;
  --sl-color-primary-50: #e6f7ff;
  border: 3px solid #16a34a;
}

sl-card h4 {
  color: #1D65A6;
  margin-top: 0;
  margin-bottom: 10px;
  font-size: 1.15rem;
}

sl-card p {
  font-size: 0.95rem;
  line-height: 1.5;
  margin-bottom: 8px;
  color: #333;
}

sl-card strong {
  color: #192E5B;
}

/* Shoelace Buttons */
sl-button {
  float: right;
}

/* Shoelace Input Controls */
sl-input[type="number"]::part(increase-button),
sl-input[type="number"]::part(decrease-button) {
  display: none;
}

/* Remove Firefox spinboxes for all number inputs */
input[type="number"] {
  -moz-appearance: textfield;
}

input[type="number"]::-webkit-outer-spin-button,
input[type="number"]::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
  display: none;
}

/* Specific Firefox spinbox removal for Shoelace inputs */
sl-input[type="number"]::part(input) {
  -moz-appearance: textfield;
}

sl-input[type="number"]::part(input)::-webkit-outer-spin-button,
sl-input[type="number"]::part(input)::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
  display: none;
}

/* Shoelace Drawers */
sl-drawer[contained]::part(header) {
  background-color: #192E5B;
  color: white;
  padding: 15px;
  font-size: 1.2rem;
  font-weight: bold;
  border-top-left-radius: 8px;
  border-top-right-radius: 8px;
}

sl-drawer[contained]::part(body) {
  padding: 20px;
  line-height: 1.6;
  color: #333;
  padding-bottom: 8px !important;
}

sl-drawer[contained]::part(footer) {
  padding: 15px;
  border-top: 1px solid #eee;
  text-align: right;
  position: relative;
  z-index: 10000;
  padding: 8px 16px !important;
  margin: 0 !important;
}

sl-drawer[contained]::part(overlay) {
  background-color: rgba(0, 0, 0, 0.3);
}

sl-drawer[contained] {
  --size: 75%;
  z-index: 9999 !important;
}

sl-drawer[contained]::part(panel) {
  height: 65%;
}

#drawer-voip-plans-help::part(footer) {
  padding: 8px 16px !important;
  margin: 0 !important;
}

#drawer-voip-plans-help sl-button {
  margin-bottom: 0 !important;
}

/* ================================================================
   CARD CONTENT
   ================================================================ */

.tab-image {
  width: 30px;
  max-height: 30px;
  padding-right: 5px;
}

.speed-details-grid {
  display: flex;
  justify-content: space-around;
  align-items: center;
  margin-bottom: 15px;
  flex-wrap: wrap;
  gap: 10px;
}

.speed-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  flex: 1;
  min-width: 80px;
}

.speed-img img {
  max-width: 60px;
  height: auto;
  margin-bottom: 5px;
}

.speed-value {
  display: flex;
  align-items: center;
  gap: 5px;
}

.arrow-icon {
  width: 20px;
  height: 20px;
}

.speed {
  color: #007bff;
  font-weight: bold;
  font-size: 1rem;
}

.nbn-footer {
  padding-top: 0px;
  text-align: right;
}

.nbn-footer p {
  font-size: 1.25rem;
  margin-top: 8px;
}

.nbn-footer sl-tag::part(base) {
  border: 2px solid #007bff;
  font-size: 1em;
  font-weight: bold;
}

.price {
  font-size: 1.10em;
  font-weight: bold;
  color: #007bff;
  margin-bottom: 5px;
}

.monthly {
  font-size: .50em;
}

.router-img {
  max-width: 300px;
  align-items: left;
  display: block;
}

.pbx-img {
  max-height: 200px;
  display: block;
  margin: 0 auto;
}

.header-image {
  max-width: 182px;
  padding-bottom: 12px;
  padding-left: 59px;
}

.sml-header-image {
  max-width: 80px;
  padding-bottom: 2px;
  padding-left: 109px;
}

/* ================================================================
   VOIP PLANS SECTION
   ================================================================ */

.voip-plans {
  padding: 12px;
}

.voip-header {
  font-size: larger;
  font-weight: bold;
  display: block;
  margin-bottom: 15px;
}

.voip-radio-plans {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  margin-bottom: 2px;
  padding: 2px 0;
  transition: background-color 0.2s ease-in-out;
}

.voip-radio-plans:hover {
  background-color: #f9f9f9;
}

.help-icon-button {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-left: 10px;
}

.help-icon {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  transition: transform 0.2s ease-in-out;
}

.help-icon:hover {
  transform: scale(1.1);
}

.pbx-options {
  padding: 12px;
}

.label-on-left {
  --label-width: 12.00rem;
  --gap-width: .5rem;
}

.label-on-left + .label-on-left {
  margin-top: var(--sl-spacing-medium);
}

.label-on-left::part(form-control) {
  display: grid;
  grid: auto / var(--label-width) 1fr;
  gap: var(--sl-spacing-3x-small) var(--gap-width);
  align-items: center;
}

.label-on-left::part(form-control-label) {
  text-align: right;
}

.label-on-left::part(form-control-help-text) {
  grid-column-start: 2;
}

/* ================================================================
   TOTALS SECTION
   ================================================================ */

.final-totals {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 40px;
  margin-top: 25px;
  padding: 18px 30px;
  background: #f8f9fa;
  border: 2px solid #dee2e6;
  border-radius: 8px;
  font-size: 1.1rem;
  font-weight: 600;
  color: #495057;
}

.total-item {
  font-weight: 600;
}

.total-amount {
  font-weight: 700;
  font-size: 1.3rem;
  color: #495057;
}

.total-separator {
  font-size: 1rem;
  color: #6c757d;
}

.order-total, .total-summary {
  font-weight: bold;
  font-size: 1.25rem;
  margin-top: 16px;
  padding-top: 15px;
  border-top: none;
  color: #192E5B;
}

.total-summary {
  font-size: 2.2rem;
  color: #0056b3;
  text-align: center;
  margin-top: 40px;
  padding: 20px;
  background-color: #f0f8ff;
  border-radius: 10px;
  border: 1px solid #d0e8ff;
}

.action-buttons {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin-top: 20px;
  padding: 15px;
}

.action-buttons sl-button {
  min-width: 150px;
}

/* ================================================================
   BUTTON STYLES
   ================================================================ */

.icon-only-btn {
  --sl-input-border-width: 0;
  --sl-button-border-width: 0;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
}

.icon-only-btn::part(base) {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
}

.icon-only-btn::part(label) {
  padding: 0 !important;
}

.print-btn {
  display: flex;
  align-items: center;
  justify-content: center;
}

.print-btn sl-icon {
  font-size: 1.5rem;
  color: #666;
}

.print-btn:hover sl-icon {
  color: #333;
}

.auth-btn {
  display: flex;
  align-items: center;
  justify-content: center;
}

.auth-icon {
  width: 35px;
  height: 35px;
  padding: 0 0;
}

.auth-btn:hover .auth-icon {
  opacity: 0.6;
}

.save-btn {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  align-self: center !important;
  margin: 0 !important;
  padding: 8px !important;
  height: auto !important;
}

.save-btn::part(base) {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  height: auto !important;
}

.save-btn sl-icon {
  font-size: 1.6rem;
  color: var(--sl-color-primary-600);
}

.save-btn:hover sl-icon {
  color: var(--sl-color-primary-700);
}

/* ================================================================
   ANIMATIONS AND EFFECTS
   ================================================================ */

@keyframes pulse-red {
  0%, 50%, 100% { 
    border-color: #dee2e6; 
    box-shadow: none;
  }
  25%, 75% { 
    border-color: #dc3545; 
    box-shadow: 0 0 0 2px rgba(220, 53, 69, 0.3);
  }
}

@keyframes pulse-red-border {
  0%, 20%, 40%, 60%, 80%, 100% { border-color: #dee2e6; }
  10%, 30%, 50%, 70%, 90% { border-color: #dc3545; }
}

@keyframes flash-red {
  0%, 100% { border-color: var(--sl-color-danger-600); }
  50% { border-color: #ff6b6b; }
}

/* ================================================================
   DESKTOP RESPONSIVE STYLES
   ================================================================ */

@media (min-width: 768px) {
  .sites-section {
    flex-direction: row;
    gap: 15px;
    align-items: flex-end;
  }

  .pbx-config-section {
    flex-direction: row;
    gap: 20px;
    width: 100%;
  }
  
  .pbx-card {
    flex: 1;
    min-width: 0;
  }
  
  .pbx-group {
    flex: 1;
    min-width: 0;
  }
}

@media (min-width: 577px) {
  .pbx-group:has(.user-license-group),
  .pbx-group:has(.device-license-group) {
    display: flex;
    flex-direction: column;
  }
  
  .user-license-summary-section,
  .device-license-summary-section {
    margin-top: auto;
  }
}

@media (max-width: 996px) and (min-width: 768px) {
  .phone-input-section {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
  }
  
  .phone-number-input {
    max-width: none;
  }
  
  .voip-plan-section {
    margin-top: 5px;
  }
}

/* ================================================================
   TABLET RESPONSIVE STYLES
   ================================================================ */

@media (max-width: 992px) {
  sl-card {
    flex: 1 1 calc(33.333% - 13.333px);
  }

  sl-drawer[contained]::part(panel) {
    height: 55%;
  }
}

@media (max-width: 768px) {
  sl-card {
    flex: 1 1 calc(50% - 10px);
  }

  sl-drawer[contained]::part(panel) {
    height: 37%;
  }

  .action-buttons {
    flex-direction: column;
    gap: 15px;
  }
  
  .action-buttons sl-button {
    width: 100%;
    min-width: auto;
  }

  .pbx-hardware-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  
  .pbx-hardware-item {
    padding: 12px;
  }
  
  .hardware-info {
    gap: 10px;
  }
  
  .hardware-image {
    width: 50px;
    height: 50px;
  }
  
  .hardware-details h6 {
    font-size: 0.9rem;
  }

  .phone-input-section {
    flex-direction: row;
    align-items: flex-end;
    gap: 8px;
    flex-wrap: wrap;
  }
  
  .phone-number-input {
    flex: 1;
    min-width: 150px;
  }
  
  .port-existing-checkbox {
    margin-bottom: 8px;
    flex-shrink: 0;
  }
}

/* ================================================================
   MOBILE RESPONSIVE STYLES
   ================================================================ */

@media (max-width: 767px) {
  .sites-section {
    padding: 15px;
    gap: 12px;
  }
  
  .sites-label {
    font-size: 1rem;
    margin: 0;
  }
  
  .sites-input-group {
    margin: 0 auto;
  }
  
  .final-totals {
    flex-direction: column;
    gap: 15px;
    padding: 15px;
  }
  
  .total-separator {
    display: none;
  }
  
  .order-header {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto auto;
    justify-items: center;
    gap: 15px;
    text-align: center;
  }
  
  .header-logo {
    justify-content: center;
  }
  
  .header-title {
    justify-content: center;
  }
  
  .order-controls {
    width: 100%;
    align-items: center;
  }
  
  .order-mode-section {
    width: 100%;
    justify-content: center;
  }
  
  .order-mode-select {
    width: 100%;
    max-width: 300px;
  }
  
  .client-field {
    width: 100%;
  }
  
  .client-name-input {
    min-width: 0;
    flex: 1;
  }
}

@media (max-width: 576px) {
  body {
    padding: 5px !important;
  }

  .order-container {
    padding: 10px !important;
  }
  
  .order-header {
    grid-template-columns: 1fr !important;
    grid-template-rows: auto auto auto !important;
    justify-items: center !important;
    gap: 10px !important;
    text-align: center !important;
  }
  
  .header-logo {
    order: 1;
    justify-content: center !important;
  }
  
  .header-title {
    order: 2;
    text-align: center !important;
    justify-self: center !important;
  }
  
  .header-title h1 {
    font-size: 1.5rem !important;
    margin: 0 !important;
  }
  
  .order-controls {
    order: 3;
    width: 100% !important;
    justify-content: center !important;
    gap: 10px !important;
    flex-wrap: wrap !important;
    justify-self: center !important;
  }
  
  .order-mode-select {
    width: 100% !important;
    max-width: 200px !important;
  }

  sl-icon-button {
    display: none;
  }

  sl-tab-group {
    padding: 0;
    width: 100% !important;
  }
  
  sl-tab-group::part(nav) {
    padding: 0 !important;
    margin: 0 !important;
  }
  
  sl-tab {
    flex: 1 !important;
    min-width: 0 !important;
    font-size: 0.8rem !important;
    background-color: aliceblue;
  }
  
  sl-tab::part(base) {
    padding: 8px 2px !important;
    justify-content: center !important;
    text-align: center !important;
    display: flex !important;
    align-items: center !important;
  }
  
  .tab-image {
    width: 20px !important;
    height: 20px !important;
    margin-right: 3px !important;
    padding-right: 0px !important;
  }
  
  .card-grid {
    gap: 8px !important;
  }
  
  sl-card {
    flex: 1 1 calc(50% - 4px) !important;
    min-height: auto !important;
    min-width: auto !important;
  }
  
  sl-card::part(body) {
    padding: 8px !important;
  }
  
  sl-card h4 {
    font-size: 1rem !important;
    margin-bottom: 3px !important;
    margin-top: 0 !important;
  }
  
  sl-card p {
    font-size: 0.8rem !important;
    line-height: 1.2 !important;
    margin-bottom: 3px !important;
  }
  
  .speed-details-grid {
    gap: 8px !important;
    flex-direction: column !important;
    display: flex !important;
  }
  
  .speed-item {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    flex-direction: row-reverse !important;
    min-height: 35px !important;
  }
  
  .speed-value {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    height: 35px !important;
  }
  
  .speed-img {
    width: 35px !important;
    height: 35px !important;
    margin-left: 8px !important;
    margin-top: 3px !important;
    flex-shrink: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
  }
  
  .speed-img img {
    width: 35px !important;
    height: 35px !important;
    object-fit: contain !important;
    flex-shrink: 0 !important;
  }
  
  .arrow-icon {
    width: 24px !important;
    height: 24px !important;
    margin-right: 6px !important;
    flex-shrink: 0 !important;
    object-fit: contain !important;
  }
  
  .speed {
    font-size: 0.8rem !important;
  }
  
  .nbn-footer {
    margin-top: 5px !important;
  }
  
  .price {
    font-size: 1.1rem !important;
  }
  
  .monthly {
    font-size: 0.8rem !important;
  }
  
  .voip-section {
    width: auto;
  }

  .header-image {
    padding: 12px;
  }
  
  .site-navigation {
    bottom: 115px !important;
  }

  sl-drawer[contained]::part(panel) {
    height: 37%;
  }
}

/* ================================================================
   PRINT STYLES
   ================================================================ */

@media print {
  sl-button {
    display: none;
  }

  body {
    background: white;
    padding: 0;
  }

  .order-container {
    box-shadow: none;
    border: none;
    padding: 0;
    max-width: none;
  }

  sl-tab-group {
    display: none;
  }

  sl-tab-panel {
    display: block !important;
    page-break-inside: avoid;
  }

  .card-grid {
    display: flex !important;
    flex-wrap: wrap;
    gap: 20px;
  }

  sl-card {
    border: 1px solid #ddd;
    box-shadow: none;
    flex: 0 0 calc(25% - 15px);
    min-width: auto;
  }

  .order-total, .total-summary {
    border-top: none;
    background-color: transparent;
    border-radius: 0;
    font-size: 16px;
  }
}