.paper-calculator-container {
  /* max-width: 600px; */
  /* margin: 20px auto; */
  /* background-color: #f5f5dc; */
  /* padding: 20px; */
  /* border-radius: 8px; */
  /* box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1); */
}

.paper-calculator-container h3 {
  text-align: center;
  color: #333;
  margin-bottom: 20px;
  font-size: 24px;
  font-weight: 600;
}

.calc-section {
  margin-bottom: 25px;
  padding: 20px;
  background-color: white;
  border-radius: 8px;
  border: 1px solid #e0e0e0;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.calc-section h4 {
  margin-top: 0;
  color: #333;
  border-bottom: none;
  padding-bottom: 10px;
  font-size: 16px;
  font-weight: bold;
  text-transform: none;
}

/* Option buttons styling */
.option-btn {
  display: inline-block;
  padding: 12px 20px;
  margin: 5px;
  border: 2px solid #e0e0e0;
  background-color: white;
  color: #333;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  border-radius: 6px;
  transition: all 0.3s ease;
  text-decoration: none;
  min-width: 80px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.option-btn:hover {
  background-color: #f8f9fa;
  border-color: #cd9933;
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(205, 153, 51, 0.2);
}

.option-btn.selected {
  background-color: #cd9933; /* Orange-brown color */
  color: #333;
  border-color: #cd9933;
  box-shadow: 0 2px 8px rgba(205, 153, 51, 0.3);
}

/* Size options */
.size-options {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 10px;
}

/* Color options */
.color-options {
  display: flex;
  gap: 10px;
  margin-bottom: 10px;
}

/* Quantity options */
.quantity-options {
  display: flex;
  gap: 10px;
  margin-bottom: 10px;
}

.quantity-options .option-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 100px;
  padding: 15px 10px;
}

.quantity-options .main-text {
  font-size: 16px;
  font-weight: bold;
}

.quantity-options .sub-text {
  font-size: 11px;
  color: #666;
  margin-top: 2px;
}

/* Clear link */
.clear-link {
  margin-top: 10px;
}

.clear-link a {
  color: #0066cc;
  text-decoration: underline;
  font-size: 14px;
  transition: color 0.3s ease;
}

.clear-link a:hover {
  color: #004499;
}

/* File upload styling */
.artwork-upload-section {
  border: none;
  padding: 0;
  text-align: left;
}

.file-input-wrapper {
  display: flex;
  align-items: center;
  gap: 10px;
}

.file-input-wrapper input[type="file"] {
  display: none;
}

.file-upload-btn {
  padding: 10px 20px;
  border: 2px solid #e0e0e0;
  background-color: white;
  color: #333;
  font-size: 14px;
  cursor: pointer;
  border-radius: 6px;
  transition: all 0.3s ease;
  font-weight: 500;
}

.file-upload-btn:hover {
  background-color: #f8f9fa;
  border-color: #cd9933;
  transform: translateY(-1px);
}

.file-chosen-text {
  color: #666;
  font-size: 14px;
}

/* Price display */
.price-display {
  text-align: left;
  margin-bottom: 20px;
  padding: 20px;
  background-color: white;
  border-radius: 8px;
  border: 1px solid #e0e0e0;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.price-breakdown {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.price-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px solid #f0f0f0;
}

.price-row:last-child {
  border-bottom: none;
}

.total-row {
  border-top: 2px solid #cd9933;
  border-bottom: none;
  padding-top: 15px;
  margin-top: 5px;
  font-weight: bold;
}

.price-label {
  font-size: 14px;
  color: #666;
  font-weight: 500;
}

.price-value {
  font-size: 16px;
  font-weight: 600;
  color: #333;
}

.total-price {
  font-size: 20px;
  color: #cd9933;
  font-weight: bold;
}

/* Add to cart button */
.add-to-cart-button {
  width: 100%;
  padding: 16px 30px;
  background: linear-gradient(135deg, #cd9933 0%, #b8860b 100%);
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease;
  text-transform: none;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  box-shadow: 0 4px 15px rgba(205, 153, 51, 0.3);
}

.add-to-cart-button:hover {
  background: linear-gradient(135deg, #b8860b 0%, #cd9933 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(205, 153, 51, 0.4);
}

.add-to-cart-button:active {
  transform: translateY(0);
  box-shadow: 0 2px 10px rgba(205, 153, 51, 0.3);
}

.add-to-cart-button:disabled {
  background: #ccc;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

/* Spinner animation */
.spinner {
  width: 20px;
  height: 20px;
  animation: rotate 2s linear infinite;
}

.path {
  stroke: #ffffff;
  stroke-linecap: round;
  animation: dash 1.5s ease-in-out infinite;
}

@keyframes rotate {
  100% {
    transform: rotate(360deg);
  }
}

@keyframes dash {
  0% {
    stroke-dasharray: 1, 150;
    stroke-dashoffset: 0;
  }
  50% {
    stroke-dasharray: 90, 150;
    stroke-dashoffset: -35;
  }
  100% {
    stroke-dasharray: 90, 150;
    stroke-dashoffset: -124;
  }
}

/* Loading state */
.add-to-cart-button.loading .btn-text {
  opacity: 0;
}

.add-to-cart-button.loading .btn-spinner {
  display: inline-block !important;
}

/* Uploaded file info */
.uploaded-file-info {
  display: none;
  margin-top: 10px;
  padding: 15px;
  background-color: #f8f9fa;
  border-radius: 6px;
  border: 1px solid #e9ecef;
}

.uploaded-file-name {
  font-weight: bold;
  margin-bottom: 5px;
  color: #333;
}

.uploaded-file-size {
  color: #666;
  font-size: 12px;
  margin-bottom: 10px;
}

.remove-file-btn {
  padding: 6px 12px;
  background-color: #dc3545;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 12px;
  transition: background-color 0.3s ease;
}

.remove-file-btn:hover {
  background-color: #c82333;
}

.upload-error {
  display: none;
  color: #dc3545;
  font-size: 14px;
  margin-top: 10px;
  padding: 12px;
  background-color: #f8d7da;
  border: 1px solid #f5c6cb;
  border-radius: 6px;
}

.calc-error {
  color: #dc3545;
  background-color: #f8d7da;
  border: 1px solid #f5c6cb;
  padding: 15px;
  margin: 20px 0;
  border-radius: 6px;
  text-align: left;
  font-weight: 500;
  white-space: pre-line;
  font-family: monospace;
  font-size: 13px;
  line-height: 1.4;
  max-height: 300px;
  overflow-y: auto;
}

.calc-success {
  color: #155724;
  background-color: #d4edda;
  border: 1px solid #c3e6cb;
  padding: 15px;
  margin: 20px 0;
  border-radius: 6px;
  text-align: center;
  font-weight: 500;
}

/* Responsive design */
@media (max-width: 768px) {
  .paper-calculator-container {
    margin: 10px;
    padding: 15px;
  }
  
  .size-options,
  .color-options,
  .quantity-options {
    flex-direction: column;
  }
  
  .option-btn {
    width: 100%;
    margin: 2px 0;
  }
  
  .file-input-wrapper {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .price-display {
    text-align: left;
  }
  
  .price-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 5px;
  }
}

/* Security: Hide source code from view-source */
.paper-calculator-container * {
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

.paper-calculator-container input,
.paper-calculator-container select,
.paper-calculator-container textarea {
  -webkit-user-select: text;
  -moz-user-select: text;
  -ms-user-select: text;
  user-select: text;
}
