/* Order summary and social proof — V2 surfaces and typography. */

.osp-3sc-sidebar {
    min-width: 0;
    width: auto;
    position: sticky;
    top: 20px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.osp-3sc-sidebar-box {
    padding: 26px;
    border-radius: var(--osp-radius-panel);
    background: var(--osp-surface);
}

.osp-3sc-order-summary h3 {
    margin: 0 0 18px;
    color: var(--osp-text-primary);
    font-family: var(--osp-font-heading);
    font-size: 24px;
    font-stretch: 112.5%;
    font-weight: 600;
    letter-spacing: normal;
    line-height: 1.2;
}

.osp-3sc-order-summary .woocommerce-checkout-review-order,
.osp-3sc-order-summary table,
.osp-3sc-review-table {
    border: 0;
    background: transparent;
    color: var(--osp-text-primary);
}

.woocommerce table.shop_table,
.osp-3sc-review-table {
    width: 100%;
    margin: 0;
    border: 0;
    border-collapse: separate;
    border-spacing: 0;
    color: var(--osp-text-secondary);
    font-size: 14px;
    font-weight: 400;
}

.woocommerce table.shop_table th,
.woocommerce table.shop_table tbody th,
.woocommerce table.shop_table tfoot td,
.woocommerce table.shop_table tfoot th {
    padding: 0;
    border-top: 0;
    font-weight: inherit;
}

.osp-3sc-review-table .osp-3sc-hidden,
.osp-3sc-review-table tbody .product-quantity {
    display: none;
}

.osp-3sc-review-table tr {
    padding: 12px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    border-bottom: 1px solid var(--osp-divider);
    background: transparent;
}

.osp-3sc-review-table tbody tr.osp-3sc-cart-item td {
    padding: 0;
    border: 0;
    background: transparent;
}

.osp-3sc-review-table tbody tr.osp-3sc-cart-item td.product-name {
    min-width: 0;
    flex: 1;
    color: var(--osp-text-primary);
    font-size: 16px;
    font-weight: 600;
    line-height: 1.4;
}

.osp-3sc-review-table tbody tr.osp-3sc-cart-item td.product-total {
    flex: 0 0 auto;
    color: var(--osp-text-secondary);
    font-size: 14px;
    font-weight: 550;
    text-align: right;
    white-space: nowrap;
}

.osp-3sc-review-table tfoot tr th {
    min-width: 0;
    color: var(--osp-text-secondary);
    line-height: 1.45;
    text-align: left;
}

.osp-3sc-review-table tfoot tr td {
    flex: 0 0 auto;
    color: var(--osp-text-primary);
    font-weight: 600;
    line-height: 1.45;
    text-align: right;
    white-space: nowrap;
}

.osp-3sc-review-table tfoot tr.osp-3sc-order-total {
    padding: 24px 0 8px;
    border-bottom: 0;
    align-items: baseline;
}

.osp-3sc-review-table tfoot tr.osp-3sc-order-total th,
.osp-3sc-review-table tfoot tr.osp-3sc-order-total td {
    color: var(--osp-text-primary);
    font-family: var(--osp-font-heading);
    font-size: 27px;
    font-stretch: 112.5%;
    font-weight: 650;
    letter-spacing: normal;
    line-height: 1.1;
}

.osp-3sc-review-table tfoot tr.osp-3sc-order-total td {
    display: flex;
    align-items: baseline;
    justify-content: flex-end;
    gap: 8px;
    font-family: var(--osp-font-sans);
    font-stretch: normal;
}

.osp-3sc-original-price {
    color: var(--osp-text-muted);
    font-family: var(--osp-font-sans);
    font-size: 16px;
    font-stretch: normal;
    font-weight: 500;
    letter-spacing: 0;
    text-decoration: line-through;
}

.osp-3sc-review-table tfoot tr[class*="shipping"] {
    font-size: 13px;
}

.osp-3sc-fees-notice {
    margin-top: 3px;
    display: block;
    color: var(--osp-text-muted);
    font-size: 12px;
    font-weight: 400;
    line-height: 1.4;
}

.osp-3sc-benefit {
    margin-bottom: 2px;
    display: block;
    color: var(--osp-text-muted);
}

.osp-3sc-benefit:last-child {
    margin-bottom: 0;
}

.osp-3sc-one-time-fee {
    display: none;
}

/* Trust labels under the total. */
.osp-3sc-total-trust-row {
    padding: 4px 0 10px !important;
    border-bottom: 0 !important;
}

.osp-3sc-total-trust-row td {
    width: 100%;
    padding: 0 !important;
    flex: 1 1 100%;
    display: flex;
    align-items: flex-start;
    flex-direction: column;
    gap: 6px;
    white-space: normal !important;
}

.osp-3sc-trust-label {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: var(--osp-text-muted);
    font-size: 13px;
    font-weight: 550;
    line-height: 1.4;
}

.osp-3sc-trust-label svg {
    color: inherit;
}

/* Coupon form. */
.osp-3sc-coupon-section {
    position: relative;
}

.osp-3sc-coupon-section h4 {
    margin: 0 0 8px;
    color: var(--osp-text-primary);
    font-size: 15px;
    font-weight: 650;
}

.osp-3sc-coupon-section p {
    margin: 0 0 13px;
    color: var(--osp-text-muted);
    font-size: 13px;
    line-height: 1.5;
}

.osp-3sc-coupon-section .checkout_coupon {
    margin: 0 !important;
    padding: 0 !important;
    position: relative;
    display: block !important;
    border: 0 !important;
    background: transparent !important;
}

.osp-3sc-coupon-section .checkout_coupon .form-row-first {
    width: 100%;
    margin: 0;
    position: relative;
}

.osp-3sc-coupon-section .checkout_coupon input[type="text"] {
    width: 100%;
    height: 54px;
    padding: 10px 112px 10px 15px;
    border: 1px solid var(--osp-border);
    border-radius: var(--osp-radius-card);
    background: var(--osp-input-background);
    color: var(--osp-text-primary);
    font-family: var(--osp-font-sans);
    font-size: 14px;
    box-sizing: border-box;
    transition: border-color 160ms ease, box-shadow 160ms ease, background-color 160ms ease;
}

.osp-3sc-coupon-section .checkout_coupon input[type="text"]:hover {
    border-color: var(--osp-border-strong);
    background: var(--osp-input-background-hover);
}

.osp-3sc-coupon-section .checkout_coupon input[type="text"]:focus {
    border-color: var(--osp-focus-ring);
    outline: none;
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--osp-focus-ring) 18%, transparent);
}

.osp-3sc-coupon-section .checkout_coupon input[type="text"]::placeholder {
    color: var(--osp-text-muted);
}

.osp-3sc-coupon-section .checkout_coupon button[type="submit"],
.osp-3sc-coupon-section .checkout_coupon .button {
    width: 96px;
    position: absolute;
    top: 5px;
    right: 5px;
    bottom: 5px;
    z-index: 2;
    padding: 0 14px;
    border: 0;
    border-radius: var(--osp-radius-control);
    background: var(--osp-action);
    color: var(--osp-on-action);
    font-family: var(--osp-font-sans);
    font-size: 13px;
    font-weight: 700;
    line-height: 1;
    cursor: pointer;
    transition: background-color 160ms ease;
}

.osp-3sc-coupon-section .checkout_coupon button[type="submit"]:hover,
.osp-3sc-coupon-section .checkout_coupon .button:hover {
    background: var(--osp-action-hover);
}

.osp-3sc-coupon-section .checkout_coupon button[type="submit"]:active,
.osp-3sc-coupon-section .checkout_coupon .button:active {
    background: var(--osp-action-pressed);
}

.osp-3sc-coupon-section .checkout_coupon button[type="submit"]:focus-visible,
.osp-3sc-coupon-section .checkout_coupon .button:focus-visible {
    outline: 2px solid var(--osp-focus-ring);
    outline-offset: 2px;
}

.osp-3sc-coupon-section .checkout_coupon button:disabled {
    opacity: 0.48;
    cursor: not-allowed;
}

.osp-3sc-coupon-section .checkout_coupon .clear {
    clear: both;
}

.osp-3sc-coupon-section .checkout_coupon .coupon-error-notice {
    margin-top: 7px;
    display: block;
    color: var(--osp-danger);
    font-size: 13px;
    line-height: 1.45;
}

.osp-3sc-coupon-section .checkout_coupon input.has-error {
    border-color: var(--osp-danger);
}

/* Applied coupon status. */
.osp-3sc-coupon-savings-msg {
    margin-top: 12px;
    padding: 11px 13px;
    display: flex;
    align-items: center;
    flex-direction: row;
    gap: 10px;
    border: 0;
    border-radius: var(--osp-radius-card);
    background: var(--osp-success-surface);
    color: var(--osp-accent);
    font-size: 13px;
    line-height: 1.5;
}

.osp-3sc-coupon-savings-msg.is-loading {
    display: flex;
    min-height: 48px;
    background: var(--osp-surface-raised);
    border-color: var(--osp-glass-divider);
}

.osp-3sc-coupon-skeleton {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 9px;
}

.osp-3sc-coupon-skeleton-code,
.osp-3sc-coupon-skeleton-copy {
    display: block;
    border-radius: var(--osp-radius-full);
    background: var(--osp-state-hover);
}

.osp-3sc-coupon-skeleton-code {
    width: 72px;
    height: 24px;
    flex: 0 0 72px;
}

.osp-3sc-coupon-skeleton-copy {
    width: min(55%, 180px);
    height: 12px;
}

.osp-3sc-coupon-savings-msg .woocommerce-Price-amount {
    color: inherit;
}

.osp-3sc-savings-content {
    width: auto;
    min-width: 0;
    flex: 1 1 auto;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    line-height: 1.5;
}

.osp-3sc-coupon-code {
    padding: 3px 9px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    border: 0;
    border-radius: var(--osp-radius-full);
    background: color-mix(in srgb, var(--osp-accent) 14%, transparent);
    color: var(--osp-accent);
    font-size: 11px;
    font-weight: 750;
    line-height: 1.25;
    vertical-align: middle;
    white-space: nowrap;
}

.osp-3sc-coupon-code svg {
    flex-shrink: 0;
}

.osp-3sc-savings-copy {
    display: inline;
}

.osp-3sc-change-coupon-btn {
    min-height: 28px;
    margin: 0 0 0 auto;
    padding: 4px 7px;
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    align-self: center;
    border: 0;
    border-radius: var(--osp-radius-control);
    background: transparent;
    color: var(--osp-text-muted);
    font-family: var(--osp-font-sans);
    font-size: 12px;
    font-weight: 550;
    line-height: 1;
    text-decoration: underline;
    text-underline-offset: 2px;
    white-space: nowrap;
    cursor: pointer;
}

.osp-3sc-change-coupon-btn:hover {
    background: color-mix(in srgb, var(--osp-accent) 8%, transparent);
    color: var(--osp-text-primary);
}

.osp-3sc-change-coupon-btn:focus-visible {
    outline: 2px solid var(--osp-focus-ring);
    outline-offset: 2px;
}

/* Trusted traders slider. */
.osp-3sc-trusted-traders {
    text-align: left;
}

.osp-3sc-trusted-header {
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.osp-3sc-trusted-traders h3 {
    margin: 0;
    color: var(--osp-text-primary);
    font-family: var(--osp-font-heading);
    font-size: 17px;
    font-stretch: 112.5%;
    font-weight: 600;
    letter-spacing: normal;
    line-height: 1.35;
}

.osp-3sc-expert-slider {
    display: flex;
    flex-direction: column;
}

.osp-3sc-expert-slides {
    position: relative;
    display: grid;
    cursor: grab;
    user-select: none;
}

.osp-3sc-expert-slides.is-dragging {
    cursor: grabbing;
}

.osp-3sc-expert-slide {
    min-width: 0;
    grid-area: 1 / 1;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 16px;
    border: 0;
    border-radius: 0;
    background: transparent;
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
    transition: opacity 160ms ease;
}

.osp-3sc-expert-slide.active {
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
}

.osp-3sc-expert-head {
    display: flex;
    align-items: center;
    gap: 11px;
}

.osp-3sc-expert-avatar {
    width: 64px;
    height: 64px;
    flex: 0 0 64px;
    border: 1px solid var(--osp-border-strong);
    border-radius: var(--osp-radius-full);
    object-fit: cover;
}

.osp-3sc-expert-meta {
    min-width: 0;
    flex: 1;
}

.osp-3sc-expert-name {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--osp-text-primary);
    font-size: 14px;
    font-weight: 650;
    line-height: 1.3;
}

.osp-3sc-expert-verified {
    width: 16px;
    height: 16px;
    flex: 0 0 16px;
    display: inline-flex;
    color: #1d9bf0;
}

.osp-3sc-expert-verified svg {
    width: 100%;
    height: 100%;
    overflow: visible;
}

.osp-3sc-expert-verified svg path:first-child {
    fill: currentColor;
    stroke: currentColor;
}

.osp-3sc-expert-verified svg path:last-child {
    fill: none;
    stroke: var(--osp-on-action);
}

.osp-3sc-expert-handle {
    margin-top: 3px;
    display: block;
    overflow: hidden;
    color: var(--osp-text-muted);
    font-size: 12px;
    line-height: 1.35;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.osp-3sc-expert-social {
    width: 30px;
    height: 30px;
    margin-left: auto;
    flex: 0 0 30px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--osp-text-secondary);
    opacity: 0.25;
}

.osp-3sc-expert-social svg,
.osp-3sc-expert-social img {
    width: 100%;
    height: 100%;
    border: 0;
    border-radius: 0;
    object-fit: contain;
}

.osp-3sc-expert-review {
    flex: 1;
    color: var(--osp-text-secondary);
    font-size: 13px;
    line-height: 1.6;
}

.osp-3sc-expert-review p {
    margin: 0 0 8px;
}

.osp-3sc-expert-review p:last-child {
    margin-bottom: 0;
}

.osp-3sc-expert-controls {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 6px;
}

.osp-3sc-expert-nav {
    width: 32px;
    height: 32px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: var(--osp-radius-full);
    background: var(--osp-state-hover);
    color: var(--osp-text-secondary);
    cursor: pointer;
    transition: background-color 160ms ease, color 160ms ease;
}

.osp-3sc-expert-nav:hover {
    background: var(--osp-state-selected);
    color: var(--osp-text-primary);
}

.osp-3sc-expert-nav:active {
    background: var(--osp-state-pressed);
}

.osp-3sc-expert-nav:focus-visible {
    outline: 2px solid var(--osp-focus-ring);
    outline-offset: 2px;
}
