/* Upload wrapper */
.wc-custom-upload-wrapper {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  max-width: 400px;
}

/* Upload instructions */
.wc-custom-upload-instructions-wrapper {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  margin-bottom: -5px;
}

.wc-custom-upload-instructions-line1 {
  font-size: 17px;
  color: #333;
}

.wc-custom-upload-instructions-line2 {
  margin-top: -20px;
  font-size: 13px;
}

/* Upload button */
.wc-custom-upload-button {
  position: relative;
  display: inline-block;
  color: #0274be;
  background: #fff;
  border: 1px solid #0274be;
  padding: 7px 16px;
  border-radius: 30px;
  cursor: pointer;
  font-size: 14px;
  line-height: 1.3;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
  overflow: hidden;
}

.wc-custom-upload-button:hover,
.wc-custom-upload-button:focus {
  background: #0274be;
  color: #fff;
  border-color: #0274be;
}

/* Hidden file input */
#custom_file {
  display: none;
}

.wc-custom-upload-button input[type="file"] {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
}

/* Selected file name */
.wc-custom-selected-filename {
  margin-top: 8px;
  min-height: 18px;
  font-size: 14px;
  color: #444;
}

/* Login popup background */
.wc-custom-login-bg {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.55);
  z-index: 9998;
}

/* Login popup */
.wc-custom-login-popup {
  display: none;
  position: fixed;
  top: 50%;
  left: 50%;
  width: min(90vw, 380px);
  background: #fff;
  padding: 28px 26px;
  border-radius: 12px;
  box-shadow: 0 20px 60px rgba(15, 23, 42, 0.25);
  transform: translate(-50%, -50%);
  z-index: 9999;
  text-align: center;
}

/* Visible state */
.wc-custom-login-bg.is-visible,
.wc-custom-login-popup.is-visible {
  display: block;
}

/* Popup text */
.wc-custom-login-popup p {
  margin: 0 0 18px;
  color: #222;
  font-size: 16px;
  line-height: 1.45;
}

/* Login link */
.wc-custom-login-link {
  display: inline-block;
  color: #fff;
  background: #0274be;
  padding: 10px 22px;
  border-radius: 30px;
  font-size: 14px;
  line-height: 1.2;
  text-decoration: none;
  transition: background 0.2s ease, transform 0.2s ease;
}

.wc-custom-login-link:hover,
.wc-custom-login-link:focus {
  color: #fff;
  background: #025f9c;
  transform: translateY(-1px);
}

/* Optional close button */
.wc-custom-login-close {
  position: absolute;
  top: 10px;
  right: 12px;
  width: 28px;
  height: 28px;
  color: #555;
  background: transparent;
  border: 0;
  padding: 0;
  cursor: pointer;
  font-size: 22px;
  line-height: 28px;
}

.wc-custom-login-close:hover,
.wc-custom-login-close:focus {
  color: #111;
}

/* Cart/order meta */
.variation-Ficheiropersonalizado {
  display: block;
  margin-top: 2px;
  margin-bottom: 2px;
  color: #555;
  font-size: 0.85em;
  line-height: 1.2;
  word-break: break-word;
  opacity: 0.85;
}