
* {
  box-sizing: border-box;
}
html,
body {
  margin: 0;
  padding: 0;
  height: 100%;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 20px;
}
html {
  width: 100%;
  background: rgb(50, 50, 50);
}
body {
  max-width: 720px;
  margin: 0 auto;
}

.barcode-scanner-view{
  width:100%;
  height:100%;
}

.landing-page {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
}

.landing-title {
  color: white;
  font-size: 28px;
  text-align: center;
  padding: 0 24px;
  position: absolute;
  width: 100%;
  bottom: max(60%, calc(50% + 70px));
}

.play-button {
  width: 80px;
  height: 80px;
  background: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
  transition: transform 0.2s, box-shadow 0.2s, opacity 0.2s;
  position: relative;
}
.play-button:hover {
  transform: scale(1.1);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.3);
}
.play-button:active {
  transform: scale(0.95);
}
.play-button.disabled {
  opacity: 0.8;
  cursor: not-allowed;
  pointer-events: none;
}
.play-button.disabled .play-icon {
  display: none;
}
.play-button.disabled::before {
  content: "";
  position: absolute;
  width: 70px;
  height: 70px;
  border: 3px solid rgba(254, 142, 20, 0.3);
  border-top-color: #fe8e14;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}
.play-button.disabled::after {
  content: "Loading";
  position: absolute;
  color: #fe8e14;
  font-size: 12px;
  font-weight: bold;
  letter-spacing: 0.5px;
}
@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}
.play-icon {
  width: 0;
  height: 0;
  border-left: 24px solid #fe8e14;
  border-top: 16px solid transparent;
  border-bottom: 16px solid transparent;
  margin-left: 6px;
}

.landing-page .logo {
  position: absolute;
  bottom: 8%;
  left: 50%;
  transform: translateX(-50%);
}
.landing-page .logo img { 
  width: 95px;
  height: 23.5px;
}

.result-page {
  background: rgb(222, 223, 225);
  width: 100%;
  min-height: 100%;
  padding: 1px;
  position: relative;
}

.barcode-text {
  background: rgb(245, 245, 245);
  font-size: 18px;
  line-height: 32px;
  margin: 1px 0 10px;
  padding: 14px 30px;
  word-break: break-all;
  color: rgb(50, 50, 50);
  font-weight: bold;
}

.gs1AI-info > div {
  background: rgb(245, 245, 245);
  font-size: 18px;
  line-height: 32px;
  margin: 1px 0;
  padding: 14px 30px;
  color: rgb(102, 102, 102);
}
.gs1AI-info > div > span:first-child{
  color: rgb(50, 50, 50);
}
.has-info::after{
  content: url("info.svg");
  margin-left: 2px;
  position: relative;
  top: 1px;
  cursor: pointer;
}

.goods-name {
  font-weight: bolder;
}

.back-to-scan {
  width: calc(100% - 52px);
  margin: 26px;
  padding: 14px;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 24px;
  line-height: 32px;
  background: #fe8e14;
  text-align: center;
  color: white;
  border-radius: 6px;
  display: block;
  border: 0;
  cursor: pointer;
}
.back-to-scan:hover{
  transform: scale(1.05);
}
.back-to-scan:active {
  transform: scale(0.95);
}

.result-page .powered-by-dynamsoft{
  height:74px;
}
.result-page .powered-by-dynamsoft:after{
  content: "Powered by Dynamsoft";
  position: absolute;
  bottom: 0;
  height: 74px;
  font-size: 16px;
  line-height: 74px;
  color: rgb(119, 119, 119);
  width: 100%;
  text-align: center;
}

.dm-camera-mn-toast{position:absolute;font-size:max(1.25vmin,16px);line-height:max(3vmin,32px);padding:0 max(0.5vmin,4px);left:50%;bottom:max(12.5vmin,100px);transform:translateX(-50%);color:#fff;border-radius:max(0.5vmin,4px);background:rgba(100,100,100,0.5);}
