@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Fetch Brreg button styles */
#fetch-brreg-btn {
    position: absolute;
    right: 4px;
    top: 50%;
    transform: translateY(-50%);
    background: #0073aa;
    color: #fff;
    border: none;
    border-radius: 3px;
    padding: 6px 10px;
    cursor: pointer;
    font-size: 12px;
    font-weight: 500;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 4px;
    z-index: 10;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

#fetch-brreg-btn:hover:not(:disabled) {
    background: #005a87;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    transform: translateY(-50%) translateY(-1px);
}

#fetch-brreg-btn:active:not(:disabled) {
    transform: translateY(-50%) translateY(0);
    box-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

#fetch-brreg-btn:disabled {
    background: #999;
    cursor: not-allowed;
    opacity: 0.7;
}

#fetch-brreg-btn svg {
    flex-shrink: 0;
}

/* Modal fetch button - styled nicely */

div#invoice-address-fields{
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}
div#invoice-address-fields > *{
    flex-basis: calc(50% - 0.5rem);
}
div#invoice-address-fields > .faktura-modal-submit{
    flex-basis: 100%;
    display: flex;
    justify-content: flex-end;
}
div#invoice-address-fields .other-address{
    display: flex;
    align-items: center;
    gap: 1rem;
    margin: 0;
    margin-top: .5rem;
}

div#invoice-address-fields #shipping-address-fields{
    flex-basis: 100%;
}

div#invoice-address-fields input{
    border-radius: 4px;
    border: 1px solid #ddd;
}

#fetch-brreg-btn-modal {
    position: absolute;
    right: 24px;
    top: 50%;
    transform: translateY(-50%);
    background: linear-gradient(135deg, #4a90d9 0%, #357abd 100%);
    color: #fff;
    border: none;
    border-radius: 6px;
    padding: 8px 14px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.3px;
    transition: all 0.25s ease;
    display: flex;
    align-items: center;
    gap: 6px;
    z-index: 10;
    white-space: nowrap;
    box-shadow: 0 2px 4px rgba(74, 144, 217, 0.25);
}

#fetch-brreg-btn-modal:hover:not(:disabled) {
    background: linear-gradient(135deg, #357abd 0%, #2a5f8f 100%);
    box-shadow: 0 4px 8px rgba(74, 144, 217, 0.35);
    transform: translateY(-50%) translateY(-1px);
}

#fetch-brreg-btn-modal:active:not(:disabled) {
    background: linear-gradient(135deg, #2a5f8f 0%, #1e4a6e 100%);
    box-shadow: 0 1px 2px rgba(74, 144, 217, 0.2);
    transform: translateY(-50%) translateY(0);
}

#fetch-brreg-btn-modal:disabled {
    background: #ccc;
    cursor: not-allowed;
    opacity: 0.6;
    box-shadow: none;
}

#fetch-brreg-btn-modal svg {
    flex-shrink: 0;
    width: 14px;
    height: 14px;
    stroke: currentColor;
    transition: transform 0.2s ease;
}

#fetch-brreg-btn-modal:hover:not(:disabled) svg {
    transform: scale(1.1);
}

#fetch-brreg-btn-modal span {
    white-space: nowrap;
}

.alternative-cart-wrapper .product-remove {
    text-align: center;
    width: 50px;
    min-width: 50px;
    max-width: 50px;
    vertical-align: middle;
    padding: 0;
}

/* Override WooCommerce/theme float styling */
.alternative-cart-wrapper .product-remove a,
.alternative-cart-wrapper .shop_table .product-remove a,
.alternative-cart-wrapper table.shop_table .product-remove a,
.shop_table .product-remove a {
    float: none !important;
    margin: 0 auto !important;
    display: block !important;
}

.alternative-cart-wrapper .product-remove .remove-cart-item-ajax {
    float: none !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 36px;
    height: 36px;
    border-radius: 6px;
    background-color: #fff;
    color: #999;
    text-decoration: none;
    font-size: 0;
    line-height: 1;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1.5px solid #e0e0e0;
    padding: 0;
    cursor: pointer;
    margin: 0 auto !important;
}

.alternative-cart-wrapper .product-remove .remove-cart-item-ajax:hover {
    background-color: #fee;
    color: #dc3545;
    border-color: #dc3545;
    transform: scale(1.05);
    box-shadow: 0 2px 6px rgba(220, 53, 69, 0.2);
}

.alternative-cart-wrapper .product-remove .remove-cart-item-ajax:active {
    transform: scale(0.98);
    box-shadow: 0 1px 3px rgba(220, 53, 69, 0.15);
}

.alternative-cart-wrapper .product-remove .remove-cart-item-ajax:focus {
    outline: 2px solid #dc3545;
    outline-offset: 2px;
}

.alternative-cart-wrapper .product-remove .remove-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

.alternative-cart-wrapper .product-remove .remove-icon svg {
    width: 18px;
    height: 18px;
    stroke: currentColor;
    transition: transform 0.2s ease;
}

.alternative-cart-wrapper .product-remove .remove-cart-item-ajax:hover .remove-icon svg {
    transform: scale(1.1);
}

.alternative-cart-wrapper .cart-updating {
    opacity: 0.6;
    pointer-events: none;
    position: relative;
}

.alternative-cart-wrapper .cart-updating::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid #333;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

/* Loading overlay for sums */
.cart-sum-loading {
    position: relative;
}

.cart-sum-loading::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.8);
    z-index: 1;
    border-radius: 4px;
}

.cart-sum-loading::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 16px;
    height: 16px;
    margin: -8px 0 0 -8px;
    border: 2px solid #e0e0e0;
    border-top: 2px solid #333;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    z-index: 2;
}

/* Loading state for payment buttons */
.payment-button-loading {
    position: relative;
    opacity: 0.7;
    pointer-events: none;
}

.payment-button-loading::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 18px;
    height: 18px;
    margin: -9px 0 0 -9px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top: 2px solid #fff;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    z-index: 1;
}

/* Frakt info tooltip styles */
.frakt-info-icon {
    position: relative;
    display: inline-block;
}

.frakt-info-icon:hover .frakt-tooltip {
    visibility: visible;
    opacity: 1;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.frakt-info-icon .frakt-tooltip {
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.frakt-info-icon span:first-child:hover {
    background-color: #005177;
}

/* Customer type selection styles */
.customer-type-selection {
    margin-bottom: 20px;
    padding: 15px;
    background: #f7f7f7;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
}

.customer-type-selection-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 1rem;
}

.customer-type-selection-button button{
    background: transparent;
    color: #000;
    border: 2px solid #cf8036;
}
.customer-type-selection-button button:hover{
    background: #cf8036;
    color: #FFF;
}


.customer-type-selection-main {
    flex: 1;
    width: 100%;
}

.customer-type-selection-label {
    display: block;
    margin-bottom: 10px;
    font-weight: 600;
}

.customer-type-options {
    display: flex;
    gap: 20px;
    align-items: center;
}

.customer-type-option {
    display: flex;
    align-items: center;
    cursor: pointer;
}

.customer-type-option input[type="radio"] {
    margin-right: 8px;
}

/* Customer type button group styles */
.customer-type-button-group {
    display: flex;
    width: 100%;
    gap: 0;
    border-radius: 8px;
    overflow: hidden;
    background: #f0f0f0;
    border: 1px solid #ddd;
    padding: .25rem;
    max-width: 600px;
}

.customer-type-button {
    flex: 1;
    padding: 10px 20px;
    border: none;
    background: transparent;
    color: #333;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    border-radius: 8px;
}

.customer-type-button:hover {
    background: rgb(201, 201, 201);
    color: #fff;
}

.customer-type-button.active {
    background: #000;
    color: #fff;
}


.business-fields {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    padding-bottom: .5rem;
    border-top: 1px solid #e0e0e0;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
}
.business-fields p {
    flex: 1;
    margin: 0;
    min-width: 250px;
    width: 100%;
}

.form-row-wide {
    margin-bottom: 15px;
}

.form-row-wide:last-child {
    margin-bottom: 0;
}

.form-label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
    font-size: 16px;
}

.form-label-required {
    color: red;
}

.form-input {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.form-input-org {
    max-width: 400px;
}

.form-input-postnummer {
    max-width: 200px;
}

.form-input-date {
}

.datetime-picker-wrapper {
    display: flex;
    gap: 2rem;
    display: flex;
    width: 100%;
    border-radius: 8px;
    background: #f0f0f0;
    border: 1px solid #ddd;
    padding: .25rem;
    max-width: 600px;
}

.datetime-picker-wrapper >*{
    flex: 1;
}

.time-inputs {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.hour-select,
.minute-select {
    padding: 0 1rem;
    border: 1px solid #ddd;
    border-radius: 8px;
    min-width: 80px;
    background-color: #fff;
    cursor: pointer;
    text-align: center;
    font-weight: 600;
}

.time-separator {
    font-weight: 600;
    font-size: 16px;
}

.form-help-text {
    display: block;
    margin-top: 5px;
    color: #666;
}

.form-help-text-large {
    margin-top: 1rem;
}
.form-help-text-large p {
    margin-bottom: 0;
}

.form-link {
    color: #333;
    text-decoration: underline;
}

/* Delivery method selection styles */
.delivery-method-selection {
    margin-bottom: 20px;
    padding: 15px;
    background: #f7f7f7;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
}

.delivery-method-label {
    display: block;
    margin-bottom: 10px;
    font-weight: 600;
}

.delivery-method-options {
    display: flex;
    gap: 20px;
    align-items: center;
    margin-bottom: 15px;
}

.delivery-method-option {
    display: flex;
    align-items: center;
    cursor: pointer;
    gap: 1rem;
}

#shipping-address-fields{
    flex-basis: 100%;
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}
#shipping-address-fields > *{
    flex-basis: calc(50% - 0.5rem);
}
#shipping-address-fields > h3{
    flex-basis: 100%;
}

.delivery-method-option input[type="radio"] {
    margin-right: 8px;
}

.postnummer-field,
.levering-date-field,
.henting-date-field {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #e0e0e0;
}

.postnummer-error {
    display: none;
    margin-top: 8px;
    padding: 8px;
    background-color: #fee;
    border: 1px solid #fcc;
    border-radius: 4px;
    color: #c33;
}

.postnummer-success {
    display: none;
    margin-top: 8px;
    padding: 8px;
    background-color: #efe;
    border: 1px solid #cfc;
    border-radius: 4px;
    color: #3c3;
}

/* Order notes field */
.order-notes-field {
    margin-top: 30px;
    margin-bottom: 20px;
    padding: 15px;
    background: #f7f7f7;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
}

.order-notes-textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-family: inherit;
    font-size: 14px;
    resize: vertical;
    min-height: 80px;
}

/* Payment buttons */
.payment-buttons-container {
    display: none;
    margin-top: 2rem;
    margin-bottom: 2rem;
}
.payment-buttons-container .inner{
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
}

.vipps-button-container {
    display: none;
}

.vipps-checkout-button {
    display: inline-block;
    padding: 15px 30px;
    font-weight: 600;
    background-color: #FF5B24;
    color: #fff;
    border: none;
    border-radius: 8px;
    text-decoration: none;
    cursor: pointer;
    transition: background-color 0.3s ease;
    line-height: 1.6;
    text-align: center;
}
.vipps-checkout-button:hover {
    color: #fff;
    background-color: #000;
}

.faktura-button-container {
    display: none;
}

.faktura-checkout-button {
    display: inline-block;
    padding: 15px 30px;
    font-weight: 600;
    background-color: #333;
    color: #fff;
    border: none;
    border-radius: 8px;
    text-decoration: none;
    cursor: pointer;
    transition: background-color 0.3s ease;
    line-height: 1.6;
}

/* Modal styles */
.faktura-modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.5);
}

.faktura-modal-content {
    position: relative;
    background-color: #fefefe;
    margin: 5% auto;
    padding: 0;
    border: 1px solid #888;
    border-radius: 8px;
    width: 90%;
    max-width: 1200px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}

.faktura-modal-header {
    padding: 20px;
    border-bottom: 1px solid #e0e0e0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faktura-modal-title {
    margin: 0;
    font-size: 24px;
    font-weight: 600;
}

.faktura-modal-close {
    background: none;
    border: none;
    font-size: 28px;
    font-weight: bold;
    color: #aaa;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    line-height: 30px;
    text-align: center;
}

.faktura-modal-body {
    padding: 20px;
}

.faktura-modal-section-title {
    margin-bottom: 20px;
    font-size: 18px;
    font-weight: 600;
}

.faktura-modal-input-wrapper {
    position: relative;
    width: 100%;
}

.faktura-modal-input {
    width: 100%;
    padding: 8px 90px 8px 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.faktura-modal-grid {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 15px;
    margin-bottom: 15px;
}

.faktura-modal-submit {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 2px solid #e0e0e0;
    text-align: center;
}

.faktura-modal-submit-button {
    display: inline-block;
    padding: 15px 40px;
    font-size: 16px;
    font-weight: 600;
    background-color: #333;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

/* Hide country select fields in faktura modal - users should not be able to change country */
#faktura-modal #billing_country,
#faktura-modal #shipping_country,
#faktura-modal label[for="billing_country"],
#faktura-modal label[for="shipping_country"] {
    display: none !important;
}

/* Coupon modal */
.coupon-modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.5);
}

.coupon-modal-content {
    background-color: #fefefe;
    margin: 15% auto;
    padding: 30px;
    border: 1px solid #888;
    border-radius: 8px;
    width: 90%;
    max-width: 500px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.coupon-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.coupon-modal-close {
    color: #aaa;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    line-height: 20px;
}

.coupon-input {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    margin-bottom: 15px;
}

.coupon {
    margin-bottom: 20px;
}

.coupon .coupon-input {
    margin-bottom: 15px;
}

.coupon-modal-header h2 {
    margin: 0;
}

.coupon .form-label {
    margin-bottom: 8px;
}

.shipping-address-title {
    font-size: 16px;
}

.coupon-buttons {
    display: flex;
    gap: 10px;
}

.coupon-button {
    flex: 1;
}

.coupon-button-cancel {
    flex: 0 0 auto;
}

/* Table styles */
.cart-subtotal-cell {
    text-align: right;
    padding: 15px 10px;
    border-top: 2px solid #e0e0e0;
}

.cart-subtotal-label {
    font-weight: 600;
    margin-right: 10px;
}

.cart-subtotal-value {
    font-weight: 600;
}

.cart-shipping-cell {
    text-align: right;
    padding: 15px 10px;
    border-top: 1px solid #e0e0e0;
}

.cart-shipping-label {
    font-weight: 600;
    margin-right: 10px;
}

.frakt-info-icon-inline {
    position: relative;
    display: inline-block;
    margin-left: 5px;
    cursor: help;
}

.frakt-info-badge {
    display: inline-block;
    width: 16px;
    height: 16px;
    line-height: 16px;
    text-align: center;
    background-color: #0073aa;
    color: #fff;
    border-radius: 50%;
    font-size: 11px;
    font-weight: bold;
    vertical-align: middle;
}

.frakt-tooltip {
    visibility: hidden;
    opacity: 0;
    position: absolute;
    bottom: 125%;
    left: 50%;
    transform: translateX(-50%);
    background-color: #333;
    color: #fff;
    padding: 12px 15px;
    border-radius: 6px;
    white-space: normal;
    font-size: 12px;
    line-height: 1.5;
    z-index: 1000;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
    min-width: 280px;
    text-align: left;
}

.frakt-tooltip-title {
    display: block;
    margin-bottom: 8px;
    font-size: 13px;
}

.frakt-tooltip-section {
    margin-bottom: 8px;
}

.frakt-tooltip-footer {
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px solid #555;
    font-size: 11px;
    color: #ccc;
}

.frakt-tooltip-arrow {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-top: 6px solid #333;
}

.cart-tax-cell {
    text-align: right;
    padding: 10px 10px;
    border-top: 1px solid #e0e0e0;
}

.cart-tax-label {
    font-weight: 500;
    margin-right: 10px;
}

.cart-tax-value {
    font-weight: 500;
}

.cart-total-cell {
    text-align: right;
    padding: 15px 10px;
    border-top: 2px solid #333;
}

.cart-total-label {
    font-weight: 600;
    margin-right: 10px;
}

.cart-total-value {
    font-weight: 600;
}

/* Datepicker styles */
.alternative-cart-wrapper .ui-datepicker {
    z-index: 1000 !important;
    position: absolute;
    max-width: 300px;
    background: #fff;
    border: 1px solid #ccc;
    padding: 10px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.alternative-cart-wrapper .ui-timepicker-div {
    background: transparent !important;
    border: none !important;
    padding: 0 !important;
    margin-top: 10px;
}

.alternative-cart-wrapper .ui-timepicker-div dl { margin: 0; text-align: left; }

.alternative-cart-wrapper .ui-timepicker-div dl dt {
    float: left;
    clear: left;
    padding: 0 0 0 5px;
    font-weight: normal;
}

.alternative-cart-wrapper .ui-timepicker-div dl dd {
    margin: 0 10px 10px 40%;
}

.alternative-cart-wrapper #delivery_date,
.alternative-cart-wrapper #henting_date,
#postnummer {
    position: relative;
    z-index: 999;
    font-weight: 600;
    padding: 1.1rem;
    border: 1px solid #ddd;
    border-radius: 8px;
}

.alternative-cart-wrapper .ui-datepicker .ui-timepicker-div { width: 100%; }

.alternative-cart-wrapper .ui-datepicker .ui-datepicker-buttonpane .ui-datepicker-current {
    display: none !important;
}


.alternative-cart-wrapper button.button{
    border-radius: 8px;
}

.alternative-cart-wrapper input,
.alternative-cart-wrapper select{
    height: 50px;
}



/* TABLE STYLES */
.alternative-cart-wrapper table.shop_table{
    margin-top: 0 !important;
}

.delivery-wrapper{
    display: flex;
    gap: 2rem;
}
.delivery-wrapper > *{
    flex: 1;
}

.henting-date-field-map iframe{
    width: 100%;
}


/* Mobile Responsive Styles */
@media (max-width: 768px) {

    .shop_table_responsive.woocommerce-cart-form__contents .product-remove{
        display: none;
    }

    .delivery-wrapper{
        flex-direction: column;
    }

    tfoot{
        display: flex;
        flex-direction: column;
        gap: 1rem;
    }
    .frakt-info-icon .frakt-tooltip {
        left: auto !important;
        right: 0;
        transform: none;
        min-width: 250px;
        max-width: calc(100vw - 20px);
    }

    .datetime-picker-wrapper {
        flex-direction: column;
        gap: 1rem;
    }
    
    .frakt-info-icon .frakt-tooltip .frakt-tooltip-arrow {
        left: auto;
        right: 20px;
        transform: none;
    }
    
    .customer-type-selection,
    .delivery-method-selection {
        padding: 1rem;
        margin-bottom: 1rem;
    }

    .payment-buttons-container .inner{
        flex-direction: column;
    }
    
    .delivery-method-selection {
        margin-top: 1.5rem;
    }

    .customer-type-selection-header {
        flex-direction: column;
        gap: 15px;
    }
    
    .customer-type-selection-button,
    .customer-type-selection-button button {
        width: 100%;
    }
    
    .customer-type-options {
        flex-wrap: wrap;
    }
    
    .delivery-method-options {
        flex-wrap: wrap;
    }
    
    .form-input-org,
    .form-input-postnummer,
    .form-input-date {
        max-width: 100%;
    }
    
    .time-inputs {
        flex-wrap: wrap;
    }
    
    .hour-select,
    .minute-select {
        min-width: 70px;
        flex: 1;
    }
    
    .business-fields,
    .postnummer-field,
    .levering-date-field,
    .henting-date-field {
        margin-top: 10px;
        padding-top: 10px;
    }
    
    .alternative-cart-wrapper table.shop_table {
        font-size: 14px;
    }
    
    .alternative-cart-wrapper table.shop_table thead {
        display: none;
    }
    
    .alternative-cart-wrapper table.shop_table tbody tr {
        display: block;
        border: 1px solid #e0e0e0;
        border-radius: 8px;
        margin-bottom: 15px;
        padding: 15px;
        background: #fff;
    }
    
    .alternative-cart-wrapper table.shop_table tbody td {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 10px 0;
        border: none;
        text-align: left !important;
    }
    
    .alternative-cart-wrapper table.shop_table tbody td:before {
        content: attr(data-title);
        font-weight: 600;
        margin-right: 10px;
        flex: 0 0 40%;
    }
    
    .alternative-cart-wrapper table.shop_table tbody td.product-remove {
        position: absolute;
        top: 16px;
        right: 32px;
        width: auto;
        min-width: auto;
        max-width: none;
        padding: 0;
        display: block;
    }
    
    .alternative-cart-wrapper table.shop_table tbody td.product-remove:before {
        display: none;
    }
    
    .alternative-cart-wrapper table.shop_table tbody td.product-remove .remove-cart-item-ajax {
        margin: 0;
    }
    
    .alternative-cart-wrapper table.shop_table tbody td.product-thumbnail {
        justify-content: center;
        padding: 10px 0;
    }
    
    .alternative-cart-wrapper table.shop_table tbody td.product-thumbnail:before {
        display: none;
    }
    
    .alternative-cart-wrapper table.shop_table tbody td.product-thumbnail img {
        max-width: 80px;
        height: auto;
    }
    
    .alternative-cart-wrapper table.shop_table tbody td.product-name {
        flex-direction: column;
        align-items: flex-start;
        padding-bottom: 15px;
    }
    
    .alternative-cart-wrapper table.shop_table tbody td.product-name:before {
        margin-bottom: 5px;
    }
    
    .alternative-cart-wrapper table.shop_table tbody td.product-quantity {
        justify-content: flex-start;
    }
    
    .alternative-cart-wrapper table.shop_table tbody td.product-quantity .quantity {
        margin-left: auto;
    }
    
    .alternative-cart-wrapper .quantity input.qty[value="1"] ~ .minus,
    .alternative-cart-wrapper .quantity .minus.disabled {
        opacity: 0.3;
        pointer-events: none;
        cursor: not-allowed;
    }
    
    .alternative-cart-wrapper table.shop_table tbody td.product-subtotal {
        font-weight: 600;
        font-size: 16px;
        padding-top: 15px;
        border-top: 1px solid #e0e0e0;
    }
    
    .alternative-cart-wrapper table.shop_table tfoot tr {
        display: block;
        border: 1px solid #e0e0e0;
        border-radius: 8px;
        padding: 15px;
        background: #f8f8f8;
    }
    
    .alternative-cart-wrapper table.shop_table tfoot td {
        display: flex;
        justify-content: space-between;
        padding: 0;
        border: none;
    }
    
    .alternative-cart-wrapper .product-remove .remove-cart-item-ajax {
        width: 32px;
        height: 32px;
    }
    
    .alternative-cart-wrapper .actions {
        padding: 15px 0;
    }
    
    .alternative-cart-wrapper .actions button {
        width: 100%;
        margin-bottom: 10px;
    }
    
    .faktura-modal-content {
        width: 100%;
        margin: 0 auto;
        height: 100vh;
        max-height: none;
    }
    div#invoice-address-fields > *{
        flex-basis: 100%;
    }
    div#invoice-address-fields > .faktura-modal-submit button{
        width: 100%;
    }
    
    .faktura-modal-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    .vipps-checkout-button,
    .faktura-checkout-button,
    .faktura-modal-submit-button,
    #faktura-checkout-button {
        width: 100%;
        padding: 12px 20px;
        line-height: 1.6;
        width: 90%;
        margin: 0 5%;
    }
}

