.bgcw-product-fields input[type="text"],
.bgcw-product-fields input[type="email"],
.bgcw-product-fields input[type="number"],
.bgcw-product-fields input[type="date"],
.bgcw-product-fields select,
.bgcw-product-fields textarea {
border: 1px solid #ddd;
border-radius: 4px;
font-size: 14px;
box-sizing: border-box;
}
.bgcw-product-fields input[type="text"],
.bgcw-product-fields input[type="email"],
.bgcw-product-fields input[type="number"],
.bgcw-product-fields input[type="date"],
.bgcw-product-fields select {
height: 40px;
padding: 0 10px;
line-height: 40px;
}
.bgcw-product-fields textarea {
padding: 8px 10px;
} .bgcw-product-fields {
margin: 20px 0;
width: 100%;
}
.bgcw-amount-selector label {
display: block;
font-weight: 600;
margin-bottom: 8px;
}
.bgcw-amounts {
display: flex;
flex-wrap: wrap;
gap: 8px;
margin-bottom: 12px;
}
.bgcw-amount-btn {
padding: 8px 16px;
border: 2px solid #ddd;
background: #fff;
cursor: pointer;
border-radius: 4px;
font-size: 14px;
line-height: 1.2;
font-weight: 600;
transition: border-color 0.2s, background-color 0.2s;
}
.bgcw-amount-btn:hover {
border-color: #999;
}
.bgcw-amount-btn:focus,
.bgcw-amount-btn:focus-visible,
.bgcw-amount-btn:active {
border-style: solid;
border-width: 2px;
padding: 8px 16px;
box-sizing: border-box;
transform: none;
}
.bgcw-amount-btn:focus {
outline: none;
}
.bgcw-amount-btn:focus-visible {
outline: 2px solid var(--bgcw-amount-focus-color, #7f54b3);
outline-offset: 2px;
}
.bgcw-amount-btn.active {
border-color: var(--bgcw-amount-focus-color, #7f54b3);
background: var(--bgcw-amount-active-bg, #f7f0ff);
color: var(--bgcw-amount-focus-color, #7f54b3);
} .bgcw-amount-dropdown {
width: 100%;
max-width: 280px;
font-weight: 600;
cursor: pointer;
margin-bottom: 12px;
background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='10'%3E%3Cpath d='M1 1l7 7 7-7' stroke='%23555' stroke-width='2' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
background-repeat: no-repeat;
background-position: right 12px center;
padding-right: 36px !important;
-webkit-appearance: none;
appearance: none;
}
.bgcw-amount-dropdown:focus {
border-color: var(--bgcw-amount-focus-color, #7f54b3);
outline: none;
box-shadow: none;
}
.bgcw-custom-amount {
margin-top: 8px;
}
.bgcw-custom-amount input {
width: 96px;
} .bgcw-recipient-fields {
margin-top: 20px;
padding-top: 16px;
border-top: 1px solid #eee;
}
.bgcw-recipient-fields h4 {
margin-bottom: 12px;
}
.bgcw-recipient-fields textarea {
width: 100%;
} .bgcw-applied-card th {
font-weight: normal;
}
.bgcw-remove-card {
color: #d63638;
text-decoration: none;
margin-left: 4px;
}
.bgcw-remove-card:hover {
color: #a00;
} .bgcw-apply-field {
margin: 16px 0;
padding: 16px;
background: #f9f9f9;
border: 1px solid #ddd;
border-radius: 4px;
}
.bgcw-apply-field h3 {
margin: 0 0 12px;
font-size: 16px;
}
.bgcw-apply-form {
display: flex;
gap: 8px;
}
.bgcw-code-input {
flex: 1;
padding: 6px 10px;
}
.bgcw-apply-btn {
white-space: nowrap;
}
.bgcw-field-notice {
margin-top: 8px;
padding: 6px 10px;
border-radius: 3px;
font-size: 13px;
}
.bgcw-field-notice.success {
background: #d4edda;
color: #155724;
}
.bgcw-field-notice.error {
background: #f8d7da;
color: #721c24;
}
.bgcw-applied-list {
margin-bottom: 12px;
}
.bgcw-applied-item {
display: flex;
align-items: center;
gap: 8px;
padding: 4px 0;
}
.bgcw-applied-code {
font-family: monospace;
font-size: 13px;
}
.bgcw-applied-item .bgcw-ajax-remove {
background: none;
border: none;
color: #d63638;
cursor: pointer;
font-size: 16px;
padding: 0 4px;
} .bgcw-myaccount .bgcw-cards-table {
width: 100%;
}
.bgcw-toggle-transactions {
background: none;
border: none;
cursor: pointer;
font-size: 10px;
color: #666;
padding: 2px 6px;
vertical-align: middle;
}
.bgcw-toggle-code {
background: none;
border: 1px solid #ccc;
border-radius: 3px;
cursor: pointer;
font-size: 11px;
color: #555;
padding: 1px 6px;
margin-left: 4px;
vertical-align: middle;
line-height: 1.4;
}
.bgcw-toggle-code:hover,
.bgcw-toggle-code:focus {
background: #f0f0f0;
color: #000;
}
.bgcw-toggle-code[aria-pressed="true"] {
background: #f0f0f0;
border-color: #999;
}
.bgcw-transactions-table {
width: 100%;
margin: 8px 0;
font-size: 13px;
border-collapse: collapse;
}
.bgcw-transactions-table th,
.bgcw-transactions-table td {
padding: 6px 8px;
border-bottom: 1px solid #eee;
text-align: left;
}
.bgcw-transactions-table th {
font-weight: 600;
font-size: 12px;
} .bgcw-tx-type {
display: inline-block;
padding: 1px 6px;
border-radius: 3px;
font-size: 11px;
}
.bgcw-tx-type--credit {
background: #d4edda;
color: #155724;
}
.bgcw-tx-type--debit {
background: #fff3cd;
color: #856404;
}
.bgcw-tx-type--refund {
background: #cce5ff;
color: #004085;
} .bgcw-status {
display: inline-block;
padding: 2px 8px;
border-radius: 3px;
font-size: 12px;
font-weight: 500;
}
.bgcw-status--active {
background: #d4edda;
color: #155724;
}
.bgcw-status--disabled {
background: #e2e3e5;
color: #383d41;
}
.bgcw-status--expired {
background: #f8d7da;
color: #721c24;
}
.bgcw-status--redeemed {
background: #cce5ff;
color: #004085;
} .bgcw-loyalty-blocked-notice {
padding: 12px 16px;
margin: 8px 0 12px;
border: 1px solid #e0e0e0;
border-radius: 4px;
color: #666;
font-size: 0.875em;
background-color: #fafafa;
} @media (max-width: 768px) {
.bgcw-myaccount .bgcw-cards-table,
.bgcw-myaccount .bgcw-cards-table tbody,
.bgcw-myaccount .bgcw-cards-table tr,
.bgcw-myaccount .bgcw-cards-table td {
display: block;
width: 100%;
box-sizing: border-box;
}
.bgcw-myaccount .bgcw-cards-table thead {
display: none;
}
.bgcw-myaccount .bgcw-card-row {
border: 1px solid #e0e0e0;
border-radius: 6px;
padding: 4px 12px;
margin: 0 0 12px;
}
.bgcw-myaccount .bgcw-card-row td {
display: flex;
justify-content: space-between;
align-items: center;
gap: 12px;
padding: 8px 0;
border: 0;
border-bottom: 1px solid #f0f0f0;
text-align: right;
}
.bgcw-myaccount .bgcw-card-row td:last-child {
border-bottom: 0;
}
.bgcw-myaccount .bgcw-card-row td[data-title]::before {
content: attr(data-title);
font-weight: 600;
color: #555;
text-align: left;
flex: 0 0 auto;
}
.bgcw-myaccount .bgcw-card-row td.bgcw-col-code {
display: block;
text-align: left;
padding-bottom: 10px;
}
.bgcw-myaccount .bgcw-card-row td.bgcw-col-code::before {
display: block;
margin-bottom: 6px;
}
.bgcw-myaccount .bgcw-col-code .bgcw-code {
display: block;
font-size: 15px;
margin-bottom: 8px;
word-break: break-all;
}
.bgcw-myaccount .bgcw-col-code .bgcw-locked {
display: block;
margin: -4px 0 8px;
}
.bgcw-myaccount .bgcw-col-code br {
display: none;
}
.bgcw-myaccount .bgcw-col-code .bgcw-toggle-code,
.bgcw-myaccount .bgcw-col-code .bgcw-toggle-transactions,
.bgcw-myaccount .bgcw-col-code .button {
display: inline-block;
margin: 0 8px 6px 0;
padding: 6px 12px;
font-size: 13px;
line-height: 1.3;
border: 1px solid #ccc;
border-radius: 4px;
background: #fff;
color: #333;
}
.bgcw-myaccount .bgcw-transactions-row {
margin: -12px 0 12px;
padding: 0 12px 4px;
border: 1px solid #e0e0e0;
border-top: 0;
border-radius: 0 0 6px 6px;
}
.bgcw-myaccount .bgcw-transactions-row > td {
padding: 0;
}
.bgcw-myaccount .bgcw-transactions-table,
.bgcw-myaccount .bgcw-transactions-table tbody,
.bgcw-myaccount .bgcw-transactions-table tr,
.bgcw-myaccount .bgcw-transactions-table td {
display: block;
width: 100%;
box-sizing: border-box;
}
.bgcw-myaccount .bgcw-transactions-table thead {
display: none;
}
.bgcw-myaccount .bgcw-transactions-table tr {
padding: 6px 0;
border-bottom: 1px solid #eee;
}
.bgcw-myaccount .bgcw-transactions-table tr:last-child {
border-bottom: 0;
}
.bgcw-myaccount .bgcw-transactions-table td {
display: flex;
justify-content: space-between;
gap: 12px;
padding: 3px 0;
border: 0;
text-align: right;
}
.bgcw-myaccount .bgcw-transactions-table td[data-title]::before {
content: attr(data-title);
font-weight: 600;
color: #555;
text-align: left;
}
}