/* Base Modal Layout */
#packet-calc-modal .modal-calc-content {
    background: #fff;
    border-radius: 12px;
    padding: 30px;
    position: relative;
}

/* Custom Radio Buttons */
.custom-radio {
    display: inline-flex;
    align-items: center;
    cursor: pointer;
    font-weight: 600;
    font-size: 13px;
    color: #000;
    white-space: nowrap;
}

.custom-radio input {
    display: none;
}

.radio-circle {
    width: 24px;
    height: 24px;
    border: 2px solid #555;
    border-radius: 50%;
    margin-right: 10px;
    position: relative;
    flex-shrink: 0;
}

.custom-radio input:checked+.radio-circle {
    border-color: #555;
}

.custom-radio input:checked+.radio-circle::after {
    content: "";
    width: 12px;
    height: 12px;
    background: #555;
    border-radius: 50%;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

/* Header */
.modal-calc-header h2 {
    font-weight: 800;
    font-size: 32px;
    margin-bottom: 15px;
}

/* Grids */
.packet-type-grid,
.packet-size-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin-bottom: 15px;
}

.packet-option-v2 {
    text-align: left;
    cursor: pointer;
}

.packet-option-v2 .img-wrap {
    height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 10px;
    border: none !important;
}

.packet-option-v2 img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    margin-bottom: 0 !important;
    border: none !important;
}

/* Separator */
.calc-separator {
    border: none;
    border-top: 1px solid #ddd;
    margin: 5px 0;
}

/* Rows */
.calc-row-v2 {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 15px;
}

.calc-row-v2 h4 {
    margin: 0;
    font-size: 18px;
    font-weight: 700;
}

.calc-row-v2 .input-wrap {
    flex: 1;
    margin-left: 20px;
}

.qty-input-large {
    width: 100%;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 10px 15px;
    font-size: 20px;
    font-weight: 600;
}

/* Print Method Grid V2 - Parallel Alignment */
.inactive-row {
    filter: grayscale(1);
    opacity: 0.4;
    pointer-events: none;
}

.inactive-row .radio-circle {
    background: #ccc !important;
    border-color: #999 !important;
}

.print-grid-v2 {
    width: 100%;
    margin-top: 0;
}

.print-row-v2 {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid #eee;
    padding: 2px 0;
    gap: 20px;
}

.print-row-v2:last-child {
    border-bottom: none;
}

.print-row-v2 .method-info {
    flex: 0 0 45%;
}

.print-row-v2 .example-info {
    flex: 1;
    text-align: right;
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

.print-row-v2 .example-info img {
    height: 32px;
    width: auto;
    object-fit: contain;
    margin-bottom: 0 !important;
}

/* Results Section */
.results-block-v2 {
    background: #f8fff9;
    padding: 5px 25px;
    border-radius: 8px;

}

.results-block-v2 h3 {
    color: #00843d;
    font-size: 24px;
    font-weight: 800;
    margin-top: 0;

}

.res-packet-name {
    color: #f5821f;
    font-weight: 800;
    font-size: 20px;
}

.res-line {
    display: flex;
    justify-content: space-between;
    font-size: 16px;
    margin-bottom: 10px;
}

.res-total-line {
    border-top: 1px solid #ddd;
    padding-top: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.res-total-label {
    color: #f5821f;
    font-weight: 800;
    font-size: 22px;
}

.res-total-val {
    color: #f5821f;
    font-weight: 800;
    font-size: 24px;
}

/* Footer Buttons */
.modal-footer-v2 {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 10px;
    margin-top: 25px;
}

.btn-green-v2 {
    background: #00A65F;
    color: #fff;
    border: none;
    padding: 15px;
    border-radius: 6px;
    font-weight: 800;
    font-size: 18px;
    cursor: pointer;
}

.btn-orange-v2 {
    background: #E67E22;
    color: #fff;
    border: none;
    padding: 15px;
    border-radius: 6px;
    font-weight: 800;
    font-size: 18px;
    cursor: pointer;
}