#pes-calculator-container {
    font-family: 'Montserrat', sans-serif;
    background-color: #000000;
    color: #ffffff;
    padding: 30px;
    border-radius: 12px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    margin: 20px 0;
    border: 1px solid #C5A059;
}

.calculator-disclaimer-header {
    color: #C5A059;
    font-size: 18px;
    font-weight: 700;
    border-bottom: 1px solid #C5A059;
    padding-bottom: 15px;
    margin-bottom: 25px;
    text-align: left;
    line-height: 1.4;
}

.hidden-template, #results-area {
    display: none;
}

.plating-selection-wrapper {
    text-align: left;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.logistic-header {
    color: #C5A059;
    font-size: 1.2rem;
    font-weight: 700;
    text-transform: uppercase;
}

.custom-plating-btn {
    background: #333333;
    color: #C5A059;
    border: 2px solid #C5A059;
    padding: 8px 15px;
    font-weight: bold;
    border-radius: 4px;
}

.corner-reference {
    display: flex;
    justify-content: flex-start;
    align-items: flex-start;
    background: #111;
    padding: 30px;
    border-radius: 8px;
    margin-bottom: 15px;
    gap: 20px;
}

.corner-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    flex: 0 0 auto;
    min-width: 180px; 
}

.corner-box img {
    height: 140px !important;
    object-fit: contain;
    margin-bottom: 15px;
    background: #000;
}

.corner-desc {
    color: #C5A059;
    font-weight: bold;
    font-size: 1.1rem;
    white-space: nowrap; 
}

.unit-toggle-wrapper {
    text-align: left;
    margin-bottom: 20px;
    color: #C5A059;
    padding-left: 5px;
}

.unit-toggle-wrapper label {
    margin-right: 20px;
    cursor: pointer;
    font-weight: 600;
}

.form-table {
    width: 100%;
    border-collapse: collapse;
    border: 1px solid #ffffff;
}

.form-table th {
    background-color: #000000;
    color: #C5A059;
    padding: 12px;
    text-transform: uppercase;
    border: 1px solid #ffffff;
}

.form-table td {
    padding: 10px;
    border: 1px solid #ffffff;
    text-align: center;
}

.form-table select, .form-table input {
    background: #333333;
    color: #ffffff;
    border: 1px solid #C5A059;
    padding: 8px;
    border-radius: 4px;
}

.form-table input.qty {
    width: 75px;
}

.button-container {
    display: flex;
    justify-content: space-between;
    margin-top: 25px;
}

.add-row-btn {
    background: #333;
    color: #C5A059;
    border: 1px solid #C5A059;
    padding: 10px 20px;
    cursor: pointer;
    font-weight: 700;
}

.main-calc-btn {
    background: #C5A059;
    color: #000;
    border: none;
    padding: 12px 40px;
    font-weight: bold;
    cursor: pointer;
    text-transform: uppercase;
}

.remove-row-btn {
    background: #C5A059;
    color: #ffffff;
    border: none;
    padding: 6px 12px;
    border-radius: 3px;
    cursor: pointer;
    font-weight: bold;
}

.results-container {
    margin-top: 40px;
    border: 2px solid #C5A059;
    padding: 20px;
    background: #0a0a0a;
}

.results-header {
    color: #C5A059;
    border-bottom: 1px solid #C5A059;
    padding-bottom: 10px;
}

.results-table {
    width: 100%;
}

.results-table td {
    padding: 12px;
    border-bottom: 1px solid #222;
}

.results-table .val {
    text-align: right;
    color: #C5A059;
    font-weight: bold;
}

.sell-row {
    background: #1a150a;
}

.highlight {
    font-size: 1.3em;
    text-decoration: underline;
}

.final-total-row {
    background: #C5A059;
    color: #000;
}

.final-total-row td {
    border: none !important;
}

.final-total-row .val {
    color: #000;
}

.summary-footer {
    text-align: right;
    margin-top: 15px;
    color: #C5A059;
    font-weight: bold;
}