/**
 * @package Woo Review Media
 * @subpackage style/css
 */

.custom-upload-button {
  display: inline-block;
  padding: 8px 16px;
  background-color: #fff;
  color: #333;
  font-size: 14px;
  border: 1px solid #ccc;
  border-radius: 4px;
  cursor: pointer;
}
.custom-upload-button:hover {
  background-color: #f2f2f2;
}

.file-name {
  margin-left: 10px;
  font-size: 14px;
  color: #555;
}

.add-field-button {
  margin: 10px 0;
  padding: 8px 16px;
  background-color: #0073aa;
  color: white;
  font-size: 14px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}
.add-field-button:hover {
  background-color: #005177;
}

/* プレビューサイズ 150px に拡大 */
.wrm-preview-img, .wrm-preview-video {
    max-width: 150px;
    height: auto;
    display: block;
}

/* プレビューアイテム */
.preview-item {
  display: inline-block;
  position: relative;
  margin-top: 10px;
}

.imageRemoveBtn {
  all: unset;
  position: absolute;
  top: -6px;
  right: -6px;
  width: 20px;
  height: 20px;
  background: red;
  color: white;
  border-radius: 50%;
  font-size: 14px;
  line-height: 20px;
  text-align: center;
  cursor: pointer;
  display: inline-block;
}

.fieldGroup {
    margin: 10px 0;
}

.wrm-review-images img {
    margin-bottom: 20px;
}

.wrm-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(255, 255, 255, 0.6);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
}

.wrm-spinner {
  width: 40px;
  height: 40px;
  border: 4px solid #ccc;
  border-top: 4px solid #333;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

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

.comment-text .description {
    width: 85%;
}
