/* Metal Card Specific Styles */
/* Main layout styles are inherited from pvc_card/css/new-design.css */

/* File Upload Display Styles - matching PVC Card */
.artworkHolder .filelist {
    background-color: #fff;
    border: 1px solid #989898;
    border-radius: 5px;
    display: none;
    margin: 0;
    margin-bottom: 10px;
    padding: 12px 20px 15px 10px;
    position: relative;
    width: 249px;
}

.lan-wrist-upload .filelist {
    padding: 10px;
    margin: 0;
    width: 220px;
}

.lan-wrist-upload .filelist>div {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.artworkHolder .filelist a {
    color: rgb(67, 67, 67);
    display: block;
    overflow: hidden;
    white-space: pre;
    max-width: 180px;
    text-overflow: ellipsis;
}

.artworkHolder .filelist span {
    color: #ff0000;
    cursor: pointer;
    font-weight: bold;
    position: relative;
    right: 0px;
    top: 0px;
}

.artworkHolder .filelist img {
    max-width: 60px;
    max-height: 60px;
    margin-right: 10px;
    vertical-align: middle;
}

/* STEP4 Card Data filelist - full width */
#filelistCD {
    width: 100% !important;
}

#filelistCD>div {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

#filelistCD a {
    max-width: none;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    flex: 1;
}

/* Metal Color Box specific styles */
.metal_color_box {
    cursor: pointer;
    transition: all 0.3s ease;
}

.metal_color_box:hover {
    border-color: #cf5b28;
}

.metal_color_box.selected {
    border-color: #cf5b28;
    box-shadow: 0 16px 13px rgba(57, 58, 68, 0.08);
}

/* Metal Color Row - same layout as surface/process */
.metal-color-row .inner_product_box {
    overflow: visible;
    padding-bottom: 30px;
}

.metal-color-row .product_name_dtls {
    height: auto !important;
    padding-bottom: 15px;
    display: block !important;
}

.metal-color-row .wmetalcolor {
    margin-bottom: 15px;
}

/* Fix font size for STEP1 color names - same as STEP4/STEP5 */
.metal-color-row .product_name_dtls h5 {
    font-size: 14px !important;
    line-height: 19px;
    margin-bottom: 0;
}

/* Ensure quantity input is visible - override .con input styles */
.metal-color-row .metal_qty_input {
    display: block !important;
    margin-top: 8px;
}

.metal-color-row .od-product-name {
    height: auto !important;
}

.metal-color-row .con input.txtQty {
    position: relative !important;
    opacity: 1 !important;
    visibility: visible !important;
    width: 100%;
    height: 36px;
    border: 1px solid #ddd;
    border-radius: 4px;
    text-align: center;
    font-size: 14px;
    cursor: text !important;
}

.metal-color-row .inner_product_box figure img {
    max-height: 280px;
    max-width: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
}

.metal-color-row .inner_product_box figure {
    overflow: hidden;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Metal Quantity Input in color selection */
.metal_qty_input {
    margin-top: 8px;
}

.metal_qty_input .txtQty {
    width: 100%;
    height: 36px;
    border: 1px solid #ddd;
    border-radius: 4px;
    text-align: center;
    font-size: 14px;
}

.metal_qty_input .txtQty:focus {
    border-color: #cf5b28;
    outline: none;
}

/* Metal Surface, Process, Thickness styles */
.metal-surface .inner_product_box,
.metal-process .inner_product_box {
    overflow: hidden;
}

.metal-surface .inner_product_box figure img,
.metal-process .inner_product_box figure img,
.metal-thickness .inner_product_box figure img {
    max-height: 200px;
    max-width: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    margin: 10px 10px 10px 10px;
    display: block;
}

.metal-surface .inner_product_box figure,
.metal-process .inner_product_box figure,
.metal-process .inner_product_box figure.type {
    overflow: hidden;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    max-height: 200px;
}

/* Metal card preview image */
.metal_product_img .single_img_innr {
    max-width: 325px;
    margin: 0 auto;
    text-align: center;
}

.metal_product_img .single_img_innr img {
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Metal Tab Links */
.metal_tablinks .lyrdImprnt_nav .nav-tabs .nav-link {
    height: 44px;
    line-height: 44px;
    border: 1px solid #d37533;
    padding: 0;
    border-radius: 8px;
    color: #d37533;
    background-color: #fff;
    width: 150px;
    min-width: 150px;
    font-size: 13px;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    margin: 0 5px;
}

.metal_tablinks .lyrdImprnt_nav .nav-tabs .nav-link:hover,
.metal_tablinks .lyrdImprnt_nav .nav-tabs .nav-link.active,
.metal_tablinks .lyrdImprnt_nav .nav-tabs .nav-item.active .nav-link {
    color: #fff;
    background-color: #d37533;
    cursor: pointer;
}

/* Metal Card Upload Area */
.metal-content .uploadArtwork_fileattach {
    position: relative;
    box-shadow: none;
    border-radius: 4px;
    max-width: 100%;
    margin: 0 auto 15px;
    width: 100%;
}

.metal-content .uploadArtwork_fileattach a {
    position: relative;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background-color: rgb(241, 245, 247) !important;
    height: 100% !important;
    color: rgb(41, 82, 103) !important;
    font-size: 17px;
    font-weight: 400 !important;
    font-family: Poppins, sans-serif;
    display: flex;
    text-align: center;
}

.metal-content .uploadArtwork_fileattach a em {
    font-style: normal;
    font-size: 13px;
    display: block;
}

/* Selected options text centering */
.selected_surface,
.selected_process,
.selected_thickness {
    text-align: center;
}

/* Price Summary Box */
.price_summary_box {
    margin-top: 15px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}

.price_summary_inner {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.price_row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 5px 0;
}

.price_row .price_label {
    font-size: 14px;
    color: #666;
}

.price_row .price_value {
    font-size: 14px;
    font-weight: 600;
    color: #333;
}

.price_row.total_row {
    border-top: 1px solid #ddd;
    padding-top: 10px;
    margin-top: 5px;
}

.price_row.total_row .price_label {
    font-size: 16px;
    font-weight: 600;
    color: #333;
}

.price_row.total_row .price_value {
    font-size: 18px;
    font-weight: 700;
    color: #cf5b28;
}

/* Hide COLORS panel in left section - Metal cards don't use SVG color editing */
.pvc_product_imgs .editor_colorBx {
    display: none !important;
}

/* Metal card canvas sizing - match background image */
.pvc_product_imgs .canvas_pnl {
    position: relative;
    width: 100%;
    max-width: 480px;
}

.pvc_product_imgs #editor_product_single_view {
    position: relative;
    width: 100%;
}

.pvc_product_imgs #editor_product_single_view .product_img {
    width: 100%;
    height: auto;
    display: block;
}

.pvc_product_imgs .canvas-container {
    position: absolute !important;
    top: 0;
    left: 0;
    width: 100% !important;
    height: 100% !important;
}

.pvc_product_imgs .canvas-container canvas {
    width: 100% !important;
    height: 100% !important;
}

/* Uploaded file display */
.uploadedFile {
    display: none;
    align-items: center;
    justify-content: center;
    height: 100%;
    width: 100%;
    position: relative;
    background: #f9f9f9;
}

.uploadedFile a {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: #333;
    width: 100%;
    height: 100%;
}

.uploadedFile img {
    max-height: 100px;
    max-width: 100px;
    margin-bottom: 5px;
    object-fit: contain;
}

.uploadedFile span {
    position: absolute;
    top: 5px;
    right: 5px;
    color: #ff0000;
    font-weight: bold;
    cursor: pointer;
    font-size: 16px;
    width: 20px;
    height: 20px;
    line-height: 20px;
    text-align: center;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 50%;
}

.uploadedFile span:hover {
    background: #ff0000;
    color: #fff;
}

/* Progress Bar Styles */
.fileLoading {
    display: none;
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    background: rgba(255, 255, 255, 0.8);
    z-index: 10;
    align-items: center;
    justify-content: center;
}

.fileLoading span {
    display: block;
    height: 5px;
    width: 0%;
    background-color: #d37533;
    transition: width 0.2s ease;
    position: absolute;
    top: 50%;
    left: 10%;
    right: 10%;
    transform: translateY(-50%);
    max-width: 80%;
}