#product_attributes {
    line-height: 1.5715;
}

.attr-text {
    padding: 10px 0px;

}

.attr-text .attr-label {
    font-size: 18px;
    font-weight: 500;
    color: #202124;
    padding-bottom: 5px;
}

.ant-btn.btn-with-photo {
    padding: 0px;
    height: 50px;
}

.ant-btn.btn-with-photo img {
    max-height: 100%;
    border-top-left-radius: 2px;
    border-bottom-left-radius: 2px;
}

.ant-btn.btn-with-photo span {
    padding: 0px 10px;
}

.ant-btn.ant-btn-purple,
.ant-btn.ant-btn-purple.btn-with-photo,
.attr-container-column .row-item.row-selected,
.attr-input .fonts-list .font-item.font-selected {
    background: #741FA2;
    color: #fff;
    border-color: #741FA2
}

.attr-buttons-space {
    display:flex;
    flex-wrap: wrap;
    gap: 10px;
}

.attr-container-column {
    flex-direction: column;
    width: 100%;
}

.attr-container-column .row-item,
.attr-input .fonts-list {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    border: 1px solid #dedede;
    padding: 10px;
    width: 100%;
    cursor: pointer;
    margin-bottom: 10px;
}

.attr-input .fonts-list {
    justify-content: flex-start;
    border: 0px;
    margin-top: 10px;
    gap: 10px;
    padding: 0px;
}

.attr-input .fonts-list .font-item {
    border: 1px solid #dedede;
    padding: 5px 10px;
    border-radius: 5px;
}

.attr-container-column .ant-space-item,
.attr-container-column .ant-btn {
    width: 100%
}

.attr-input input {
    padding: 10px;
}

.attr-required {
    color: red;
    padding-left: 3px;
    display: inline-block;
}

.attr-desc {
    margin-bottom: 5px;
    font-size: 14px;
}

.attr-photo img {
    max-width: 100%;
    max-height: 100%
}

.attr-photo-list {
    display: flex;
    flex-direction: row;
    justify-content: flex-start;
    align-items: center;
    flex-wrap: wrap;
}

.attr-photo-list .photo-item {
    width: 104px;
    height: 104px;
    border: 1px solid #dedede;
    border-radius: 5px;
    margin-right: 5px;
    margin-bottom: 5px;
    position: relative;
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
}

.attr-photo-list .photo-item .close {
    position: absolute;
    right: 5px;
    top: 5px;
    z-index: 9
}

.photo-item img {
    max-width: 100%;
    max-height: 100%;
}

.photo-item .ant-upload.ant-upload-select-picture-card {
    margin-right: 0px;
    margin-bottom: 0px;
}

.product-detail-buttons {
    display: flex;
    flex-direction: row;
    justify-content: flex-start;
    align-items: flex-end;
    margin-top: 20px
}

.product-detail-buttons input.ant-input {
    width: 80px;
    text-align: center
}

.only-image-button {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    width: 100px;
    position: relative;
}

.only-image-button .only-image-button-text {
    display: block;
    text-align: center;
}

.only-image-button .only-image-button-selected {
    position: absolute;
    z-index: 10;
    left: 35px;
    top: 35px;
    width: 30px;
    height: 30px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.product-reviews .my-photo {
    width: 100px;
    height: 200px;
}

.product-reviews .product-reviews-title {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
}

.ant-modal-body .ant-rate .anticon svg {
    margin-bottom: 3px;
}

.product-review .review-title {
    padding: 5px 0px 10px 0px;
    font-size: 14px;
}

.product-review .review-name {
    font-size: 18px;
    color: #000;
    font-weight: 500;
}

.product-reviews .no-review {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 40px;
}

.ant-btn {
    line-height: 1.5715;
    position: relative;
    display: inline-block;
    font-weight: 400;
    white-space: nowrap;
    text-align: center;
    background-image: none;
    border: 1px solid transparent;
    box-shadow: 0 2px 0 rgba(0, 0, 0, 0.015);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.645, 0.045, 0.355, 1);
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    touch-action: manipulation;
    height: 32px;
    padding: 4px 15px;
    font-size: 14px;
    border-radius: 2px;
    color: rgba(0, 0, 0, 0.85);
    border-color: #d9d9d9;
    background: #fff;
}

ant-btn>span {
    display: inline-block;
}

.ant-btn.btn-with-photo span {
    padding: 0px 10px;
}

.ant-input {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-variant: tabular-nums;
    list-style: none;
    font-feature-settings: 'tnum', "tnum";
    position: relative;
    display: inline-block;
    width: 100%;
    min-width: 0;
    padding: 4px 11px;
    color: rgba(0, 0, 0, 0.85);
    font-size: 14px;
    line-height: 1.5715;
    background-color: #fff;
    background-image: none;
    border: 1px solid #d9d9d9;
    border-radius: 2px;
    transition: all 0.3s;
}

.ant-input:hover {
    border-color: #40a9ff;
    border-right-width: 1px;
}

textarea.ant-input {
    max-width: 100%;
    height: auto;
    min-height: 32px;
    line-height: 1.5715;
    vertical-align: bottom;
    transition: all 0.3s, height 0s;
}

/* 自定义几种提示样式 */
/* 消息容器固定在右上角 */
/* 容器 */
.message-container {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    /* 水平+垂直居中 */
    z-index: 9999;
}

/* 单条消息基础样式（初始为透明并微移） */
.message {
    min-width: 200px;
    max-width: 360px;
    margin-top: 10px;
    padding: 12px 16px;
    border-radius: 4px;
    font-size: 14px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    opacity: 0;
    transform: translateY(-8px);
    cursor: default;
}

/* 显示/隐藏的 class（通过 JS 切换）*/
.message.show {
    animation: fadeIn 0.25s ease forwards;
}

.message.hide {
    animation: fadeOut 0.25s ease forwards;
}

/* 类型颜色 */
.message-success {
    background: #f6ffed;
    border: 1px solid #b7eb8f;
    color: #389e0d;
}

.message-error {
    background: #fff2f0;
    border: 1px solid #ffccc7;
    color: #cf1322;
}

.message-warning {
    background: #fffbe6;
    border: 1px solid #ffe58f;
    color: #ad8b00;
}

.message-info {
    background: #e6f7ff;
    border: 1px solid #91d5ff;
    color: #096dd9;
}

/* 动画关键帧 */
@keyframes fadeIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeOut {
    to {
        opacity: 0;
        transform: translateY(-8px);
    }
}